
CVE catalog
CVE-2023-29401
golang-github-gin-gonic-gin: CVE-2023-29401
- Severity
- Medium · CVSS 4.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.48% · Oct 27, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | golang-github-gin-gonic-gin | sid | 1.8.1-4 | fixed |
| Debian | golang-github-gin-gonic-gin | forky | 1.8.1-4 | fixed |
| Debian | golang-github-gin-gonic-gin | trixie | 1.8.1-3 | fixed |
| Debian | golang-github-gin-gonic-gin | bookworm | 1.8.1-1 | vulnerable |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | golang-github-gin-gonic-gin | source | sid | 1.8.1-3 | not yet assigned | Not reported | [1037530] |
| Debian | golang-github-gin-gonic-gin | source | forky | 1.8.1-3 | not yet assigned | Not reported | [1037530] |
| Debian | golang-github-gin-gonic-gin | source | trixie | 1.8.1-3 | not yet assigned | Not reported | [1037530] |
| Debian | golang-github-gin-gonic-gin | source | bookworm | (unfixed) | not yet assigned | Not reported | [1037530] |
Notes
[bookworm] golang-github-gin-gonic-gin: Minor issue
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [golang-github-gin-gonic-gin-dev]Affected
Source package: [golang-github-gin-gonic-gin]
Details (2)
1.8.1-1· all · bookwormAffected
dsa · golang-github-gin-gonic-gin · debian · bookworm; dsa · golang-github-gin-gonic-gin · debian · 12
1.8.1-1· all · bookwormAffected
dsa · golang-github-gin-gonic-gin · debian · bookworm; dsa · golang-github-gin-gonic-gin · debian · 12
[Debian 13 (Trixie)]
Source package: [golang-github-gin-gonic-gin]
Details (2)
1.8.1-3· all · trixieFixed · Fixed:
1.8.1-3dsa · golang-github-gin-gonic-gin · debian · 13
1.8.1-3· all · trixieFixed · Fixed:
1.8.1-3dsa · golang-github-gin-gonic-gin · debian · 13
Observed:
References
- [https://access.redhat.com/errata/RHSA-2023:5006]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2023-29401]
- [https://security-tracker.debian.org/tracker/CVE-2023-29401]
- [https://wid.cert-bund.de/.well-known/csaf/white/2024/wid-sec-w-2024-3370.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]