{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2023-29401","id":"CVE-2023-29401","title":"Improper handling of filenames in Content-Disposition HTTP header in github.com/gin-gonic/gin","description":"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 na","descriptionLong":"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","updated":"2026-10-28T02:30:56.822572719Z","reserved":"2023-04-05T19:36:35.042Z","status":"Modified","rejected":false,"assigner":"Go","metric":{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","rating":"medium","source":"CISA-ADP"},{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["github.com/gin-gonic/gin"],"affectedProducts":[{"vendor":"github.com/gin-gonic/gin","product":"github.com/gin-gonic/gin","defaultStatus":"unaffected","versions":[{"version":"1.3.1-0.20190301021747-ccb9e902956d","lessThan":"1.9.1","status":"affected","versionType":"semver"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"github.com/gin-gonic/gin","purl":"pkg:golang/github.com/gin-gonic/gin","ranges":[">=1.3.1-0.20190301021747-ccb9e902956d <1.9.1"],"fixed":["1.9.1"],"advisory":"GHSA-2c4m-59x9-fr2g"}],"cwes":["CWE-494"],"aliases":["GHSA-2c4m-59x9-fr2g","GO-2023-1737"],"references":[{"url":"https://github.com/gin-gonic/gin/issues/3555","tags":["x_transferred","Exploit","Issue Tracking","report","web"]},{"url":"https://github.com/gin-gonic/gin/pull/3556","tags":["x_transferred","Issue Tracking","Patch","fix","web"]},{"url":"https://github.com/gin-gonic/gin/releases/tag/v1.9.1","tags":["x_transferred","Release Notes","web"]},{"url":"https://pkg.go.dev/vuln/GO-2023-1737","tags":["x_transferred","Third Party Advisory","web"]},{"url":"https://pkg.go.dev","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/29xxx/CVE-2023-29401.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-29401","tags":["advisory"]},{"url":"https://github.com/gin-gonic/gin","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00482,"epssPercentile":0.42314,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2023-29401","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-29401","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2023-29401","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-2c4m-59x9-fr2g","ok":true,"note":"GHSA-2c4m-59x9-fr2g"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2023-29401","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}