CVE-2023-29401 Details
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.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jan 6, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/gin-gonic/gin/issues/3555 | CVE | ExploitIssue Tracking |
| https://github.com/gin-gonic/gin/pull/3556 | CVE | Issue TrackingPatch |
| https://github.com/gin-gonic/gin/releases/tag/v1.9.1 | CVE | Release Notes |
| https://pkg.go.dev/vuln/GO-2023-1737 | CVE | Third Party Advisory |
| https://github.com/gin-gonic/gin/issues/3555 | [email protected] | ExploitIssue Tracking |
| https://github.com/gin-gonic/gin/pull/3556 | [email protected] | Issue TrackingPatch |
| https://github.com/gin-gonic/gin/releases/tag/v1.9.1 | [email protected] | Release Notes |
| https://pkg.go.dev/vuln/GO-2023-1737 | [email protected] | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-494 | Download of Code Without Integrity Check | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| gin-gonic gin | >= 1.3.1-0.20190301021747-ccb9e902956d, < 1.9.1 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jan 6, 2025 | CVE Modified | CISA-ADP |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Jun 16, 2023 | Initial Analysis | [email protected] |