CVE-2023-29401
CVSS v3
4.3
MEDIUM
EPSS Score
0.5 %
exploit probability, as of 2026-10-19
CISA KEV
No
known exploited
Exploitation
—
SSVC status
Get an alert for each new CVE published for golang-github-gin-gonic-gin.
Affected and fixed versions
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- github.com/gin-gonic/ginGofrom 1.3.1-0.20190301021747-ccb9e902956d · fixed in 1.9.1
Vendor advisories
golang-github-gin-gonic-gin: Gin Web Framework does not properly sanitize filename parameter of Context.FileAttachment function
mta/mta-admin-addon-rhel8 as a component of Migration Toolkit for Applications 6 · mta/mta-windup-addon-rhel8 as a component of Migration Toolkit for Applications 6 · openshift-serverless-1/ingress-rhel8-operator as a component of OpenShift Serverless
Red Hat Security Advisory: OpenShift Container Platform 4.14.40 bug fix and security update
Red Hat Security Advisory: OpenShift Container Platform 4.14.39 security update
Red Hat Security Advisory: OpenShift Container Platform 4.14.0 bug fix and security update
Red Hat Bug Fix Advisory: MTV 2.5.2 Images
Red Hat Security Advisory: Migration Toolkit for Containers (MTC) 1.7.11 security and bug fix update
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.
Technical details
- Published
- 2023-06-08
Frequently asked questions
What is CVE-2023-29401?
Is CVE-2023-29401 actively exploited?
What is the CVSS score for CVE-2023-29401?
Running golang-github-gin-gonic-gin? Hear about its next vulnerability
CVE Watch matches each new CVE to the vendors and products you list (vendor and product, not the version) and puts it in your alerts with its KEV and EPSS status.
Already have an account? Open CVE WatchNo credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? CVE Watch alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.