golang-github-gin-gonic-gin — security advisory
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.
- Products
- golang-github-gin-gonic-gin
- Affected versions
- 1.8.1-1, 1.8.1-2, 1.8.1-3, 1.8.1-4
- Fixed versions
- 1.8.1-3
- CVEs
- CVE-2023-29401
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 15:31 UTC · Revision 1
Source evidence
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.
osv:DEBIAN-CVE-2023-29401
golang-github-gin-gonic-gin
Fixed versions: Not specified
golang-github-gin-gonic-gin
Fixed versions: 1.8.1-3
golang-github-gin-gonic-gin
Fixed versions: 1.8.1-3
Complete source record
{
"id": "086448b64e7cec41db63c754eeb065e04a5530eee0db8a62a2cc7b5581d2e7af",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2023-29401",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2023-29401",
"summary": "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.",
"evidence": "osv:DEBIAN-CVE-2023-29401",
"products": [
{
"name": {
"value": "golang-github-gin-gonic-gin",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.8.1-1",
"evidence": "/affected/0/versions"
},
{
"value": "1.8.1-2",
"evidence": "/affected/0/versions"
},
{
"value": "1.8.1-3",
"evidence": "/affected/0/versions"
},
{
"value": "1.8.1-4",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "golang-github-gin-gonic-gin",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.8.1-3",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "golang-github-gin-gonic-gin",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.8.1-3",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": []
}
],
"severity": "medium",
"structured": {
"id": "DEBIAN-CVE-2023-29401",
"aliases": [
"DEBIAN-CVE-2023-29401"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "golang-github-gin-gonic-gin",
"purl": "pkg:deb/debian/golang-github-gin-gonic-gin?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"versions": [
"1.8.1-1",
"1.8.1-2",
"1.8.1-3",
"1.8.1-4"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-29401.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.8.1-3"
}
]
}
],
"package": {
"name": "golang-github-gin-gonic-gin",
"purl": "pkg:deb/debian/golang-github-gin-gonic-gin?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-29401.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.8.1-3"
}
]
}
],
"package": {
"name": "golang-github-gin-gonic-gin",
"purl": "pkg:deb/debian/golang-github-gin-gonic-gin?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-29401.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-26T18:00:55.996468422Z",
"provider": "osv",
"upstream": [
"CVE-2023-29401"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2023-29401"
]
},
"related_cves": [
{
"value": "CVE-2023-29401",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 455251,
"published_at": "2023-06-08T21:15:16.62+00:00"
}