Feed
4.3MEDIUM

CVE-2023-29401Gin Web Framework does not properly sanitize filename parameter of Context.FileAttachment function

A medium-severity vulnerability reachable over the network, needing no privileges and user interaction. EPSS estimates a 0.5% chance of exploitation in the next 30 days. A fixed version is named.

Exploited in the wild
Not in KEV
EPSS
0.5%
percentile 38%
Priority
18/100 low
how it is computed
Fix
Named by a source
CVE published 8 Jun 2023

Reference

None of the "Needs attention" rules apply right now.

EPSS 0.5% (+1) · Network attack vector (+10) · No privileges required (+5)

Immediate actions

Who should check

  • github.com/gin-gonic/gin (Go) pkg:golang/github.com/gin-gonic/gin

    • Affected>= 1.3.1-0.20190301021747-ccb9e902956d, < 1.9.1Fixed in1.9.1OSV (GO-2023-1737)

Confirmed facts

CVSS
4.3 MEDIUM (version 3.1)
Score from
GitHub Advisory Database (GHSA-2c4m-59x9-fr2g)
Attack vector
network
Attack complexity
low
Privileges required
none
User interaction
required
Weakness
CWE-494

Unknowns

  • We show one CVSS score. Other sources may score this CVE differently.

Advisory text

Quoted from the source advisory (untrusted)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&quot;;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.

Update history

No events recorded. Our history starts on 1 Jan 2025.

References

Sources

This page is our own presentation: records are shortened, normalised and merged. Licences

Last checked: kev 41 min ago · osv 41 min ago · nvd 40 min ago · epss 40 min ago · JSON · ask via MCP: explain_vulnerability

Also known as GHSA-2c4m-59x9-fr2g, GO-2023-1737