{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2023-29401","published":"2023-06-08T21:15:16.620000Z","last_modified":"2026-06-17T05:49:58.100000Z","status":"Modified","cvss":{"version":"3.1","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","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-494"],"cpes":[{"criteria":"cpe:2.3:a:gin-gonic:gin:*:*:*:*:*:*:*:*","part":"a","vendor":"gin-gonic","product":"gin","version_start_including":"1.3.1-0.20190301021747-ccb9e902956d","version_end_excluding":"1.9.1"}],"cpes_truncated":false,"vendors":["gin-gonic"],"products":["gin-gonic/gin"],"ssvc":{"exploitation":"poc","automatable":"no","technical_impact":"partial"},"epss":{"score":0.00529,"percentile":0.3818,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-2c4m-59x9-fr2g","ecosystem":"Go","name":"github.com/gin-gonic/gin","purl":"pkg:golang/github.com/gin-gonic/gin","ranges":[{"introduced":"1.3.1-0.20190301021747-ccb9e902956d","fixed":"1.9.1"}],"versions":[],"versions_truncated":false},{"advisory":"GO-2023-1737","ecosystem":"Go","name":"github.com/gin-gonic/gin","purl":"pkg:golang/github.com/gin-gonic/gin","ranges":[{"introduced":"1.3.1-0.20190301021747-ccb9e902956d","fixed":"1.9.1"}],"versions":[],"versions_truncated":false}],"severity":"medium","priority_score":41,"links":{"html_es":"/es/cve/CVE-2023-29401/","html_en":"/en/cve/CVE-2023-29401/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2023-29401","cve_org":"https://www.cve.org/CVERecord?id=CVE-2023-29401"},"untrusted":{"vendor_name":"Gin-gonic","product_name":"Gin","desc_en":"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.","affected":[{"untrusted_vendor":"github.com/gin-gonic/gin","untrusted_product":"github.com/gin-gonic/gin","versions":[]}],"references":[{"url":"https://github.com/gin-gonic/gin/issues/3555","tags":["Exploit","Issue Tracking"]},{"url":"https://github.com/gin-gonic/gin/pull/3556","tags":["Issue Tracking","Patch"]},{"url":"https://github.com/gin-gonic/gin/releases/tag/v1.9.1","tags":["Release Notes"]},{"url":"https://pkg.go.dev/vuln/GO-2023-1737","tags":["Third Party Advisory"]}]}}