CVE-2023-29401 - CVE House
Back to Database
Status published Unknown CVE-2023-29401

Improper handling of filenames in Content-Disposition HTTP header in github.com/gin-gonic/gin

Vulnerability 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.

Impact Analysis

Refer to official advisory for detailed impact metrics.

Remediation

Ensure systems are updated to the latest vendor-supplied patch levels.

THREAT MONITOR

Am I Vulnerable?

Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2023-29401

Credits & Attribution

The following person or organization is credited with identifying this vulnerability, as recorded in the NVD database:

  • motoyasu-saburi

Affected Vendor

github.com/gin-gonic/gin

View all reports →

Affected Software

github.com/gin-gonic/gin
Vulnerable Versions:
1.3.1-0.20190301021747-ccb9e902956d

Timeline

Official Publish: June 8th, 2023
Last Modified: January 6th, 2025
Added to House: July 22nd, 2026

CVSS Vectors

No vector data available

Weaknesses (CWE)

No CWE data available

MITRE ATT&CK TTPs

No associated TTPs found for this vulnerability.