{"id":"CVE-2023-29401","aliases":["GHSA-2c4m-59x9-fr2g","GO-2023-1737"],"url":"https://o3.security/vulnerability/CVE-2023-29401","summary":"Improper handling of filenames in Content-Disposition HTTP header in github.com/gin-gonic/gin","details":"The filename parameter of the Context.FileAttachment function is not properly sanitized. A maliciously crafted filename can cause the Content-Disposition header to be sent with an unexpected filename value or otherwise modify the Content-Disposition header. For example, a filename of \"setup.bat&quot;;x=.txt\" will be sent as a file named \"setup.bat\". If the FileAttachment function is called with names provided by an untrusted source, this may permit an attacker to cause a file to be served with a name different than provided. Maliciously crafted attachment file name can modify the Content-Disposition header.","published":"2023-06-08T20:27:15.057Z","modified":"2026-08-12T03:51:20.517738363Z","cvss":{"score":4.3,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":1,"affectedPackages":[{"ecosystem":"Go","name":"github.com/gin-gonic/gin","fixedVersion":"1.9.1"}],"fix":{"url":"https://github.com/gin-gonic/gin/pull/3556","label":"gin-gonic/gin#3556"},"references":[{"type":"WEB","url":"https://github.com/gin-gonic/gin/releases/tag/v1.9.1"},{"type":"WEB","url":"https://pkg.go.dev"},{"type":"WEB","url":"https://pkg.go.dev/vuln/GO-2023-1737"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/29xxx/CVE-2023-29401.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-29401"},{"type":"REPORT","url":"https://github.com/gin-gonic/gin/issues/3555"},{"type":"FIX","url":"https://github.com/gin-gonic/gin/pull/3556"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:20.517738363Z"}}