CVE-2023-29401
Summary
| CVE | CVE-2023-29401 |
|---|---|
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2023-06-08 21:15:00 UTC |
| Updated | 2023-06-16 12:45:00 UTC |
| 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";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. |
Risk And Classification
Problem Types: CWE-494
NVD Known Affected Configurations (CPE 2.3)
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| GO-2023-1737 - Go Packages | MISC | pkg.go.dev | |
| FileAttachment() is vulnerable to Reflect File Download · Issue #3555 · gin-gonic/gin · GitHub | MISC | github.com | |
| fix lack of escaping of filename in Content-Disposition by motoyasu-saburi · Pull Request #3556 · gin-gonic/gin · GitHub | MISC | github.com | |
| Release v1.9.1 · gin-gonic/gin · GitHub | MISC | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.