CVE-2023-29401

Source
https://cve.org/CVERecord?id=CVE-2023-29401
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-29401.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2023-29401
Aliases
Downstream
Published
2023-06-08T20:27:15.057Z
Modified
2026-07-15T01:49:20.879165675Z
Severity
  • 4.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N CVSS Calculator
Summary
Improper handling of filenames in Content-Disposition HTTP header in github.com/gin-gonic/gin
Details

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.

Database specific
{
    "cna_assigner": "Go",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/29xxx/CVE-2023-29401.json"
}
References

Affected packages

Git / github.com/gin-gonic/gin

Affected ranges

Type
GIT
Repo
https://github.com/gin-gonic/gin
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
{
    "cpe": "cpe:2.3:a:gin-gonic:gin:*:*:*:*:*:*:*:*",
    "extracted_events": [
        {
            "introduced": "1.3.1-0.20190301021747-ccb9e902956d"
        },
        {
            "fixed": "1.9.1"
        }
    ],
    "source": [
        "AFFECTED_FIELD",
        "CPE_RANGE",
        "REFERENCES"
    ]
}

Affected versions

v0.*
v0.1
v0.2b
v0.3
v0.4
v0.5
v0.6
v1.*
v1.0
v1.0-rc.2
v1.0rc1
v1.1
v1.1.1
v1.1.2
v1.1.3
v1.1.4
v1.2
v1.3.0
v1.4.0
v1.5.0
v1.6.0
v1.6.1
v1.6.2
v1.7.0
v1.7.1
v1.8.0
v1.8.1
v1.9.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-29401.json"