Skip to main content
MEDIUM

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.

Set up CVE WatchFree account · no credit card

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

  • CVE-2023-29401 Red Hat Product Security13 products fixed · 16 known affected

    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

  • RHSA-2024:8697 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: OpenShift Container Platform 4.14.40 bug fix and security update

  • RHSA-2024:8235 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: OpenShift Container Platform 4.14.39 security update

  • RHSA-2023:5006 Red Hat Product Security2 products fixed

    Red Hat Security Advisory: OpenShift Container Platform 4.14.0 bug fix and security update

  • RHBA-2023:6078 Red Hat Product Security2 products fixed

    Red Hat Bug Fix Advisory: MTV 2.5.2 Images

  • RHSA-2023:4293 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Migration Toolkit for Containers (MTC) 1.7.11 security and bug fix update

Full record on NVD

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?

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.

Is CVE-2023-29401 actively exploited?

Active exploitation of CVE-2023-29401 has not been confirmed. Its EPSS score was 0.5% on 2026-10-19, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2023-29401?

CVE-2023-29401 has a CVSS v3 base score of 4.3 (MEDIUM severity).

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