CVE-2023-29401Improper handling of filenames in Content-Disposition HTTP header in…
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.
What to do
Fixed builds are available from Debian, Go: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | golang-github-gin-gonic-gin | Fix pending | UBUNTU-CVE-2023-29401 | |
| Ubuntu 26.04 | golang-github-gin-gonic-gin | Under investigation | UBUNTU-CVE-2023-29401 | |
| Ubuntu 25.10 | golang-github-gin-gonic-gin | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2023-29401 | |
| Ubuntu 24.04 | golang-github-gin-gonic-gin | Under investigation | UBUNTU-CVE-2023-29401 | |
| Ubuntu 22.04 | golang-github-gin-gonic-gin | Under investigation | UBUNTU-CVE-2023-29401 | |
| Ubuntu 20.04 | golang-github-gin-gonic-gin | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2023-29401 | |
| Ubuntu 18.04 | golang-github-gin-gonic-gin | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2023-29401 | |
| Debian 14 | golang-github-gin-gonic-gin | Fixed | 1.8.1-3 | DEBIAN-CVE-2023-29401 |
| Debian 13 | golang-github-gin-gonic-gin | Fixed | 1.8.1-3 | DEBIAN-CVE-2023-29401 |
| Debian 12 | golang-github-gin-gonic-gin | Fix pending | DEBIAN-CVE-2023-29401 | |
| Go library | github.com/gin-gonic/gin | Fixed | 1.9.1 | GHSA-2c4m-59x9-fr2g |
What the vendor says
As published in the CVE record by Go, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- github.com/gin-gonic/gin: affected: 1.3.1-0.20190301021747-ccb9e902956d to before 1.9.1; fixed in
1.9.1
References
- https://github.com/gin-gonic/gin/issues/3555
- https://github.com/gin-gonic/gin/pull/3556
- https://github.com/gin-gonic/gin/releases/tag/v1.9.1
- https://pkg.go.dev/vuln/GO-2023-1737
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.