CVE catalog

CVE-2023-29401

golang-github-gin-gonic-gin: CVE-2023-29401

[CVE catalog]

Severity
Medium · CVSS 4.3CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
Published
Source
[NVD] · [CVE record]
EPSS
0.48% · Oct 27, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiangolang-github-gin-gonic-ginsid1.8.1-4fixed
Debiangolang-github-gin-gonic-ginforky1.8.1-4fixed
Debiangolang-github-gin-gonic-gintrixie1.8.1-3fixed
Debiangolang-github-gin-gonic-ginbookworm1.8.1-1vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiangolang-github-gin-gonic-ginsourcesid1.8.1-3not yet assignedNot reported[1037530]
Debiangolang-github-gin-gonic-ginsourceforky1.8.1-3not yet assignedNot reported[1037530]
Debiangolang-github-gin-gonic-ginsourcetrixie1.8.1-3not yet assignedNot reported[1037530]
Debiangolang-github-gin-gonic-ginsourcebookworm(unfixed)not yet assignedNot reported[1037530]

[Debian bug #1037530]

Notes

[bookworm] golang-github-gin-gonic-gin: Minor issue

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Source package: [golang-github-gin-gonic-gin]

    Details (2)
    • 1.8.1-1 · all · bookworm

      Affected

      dsa · golang-github-gin-gonic-gin · debian · bookworm; dsa · golang-github-gin-gonic-gin · debian · 12

    • 1.8.1-1 · all · bookworm

      Affected

      dsa · golang-github-gin-gonic-gin · debian · bookworm; dsa · golang-github-gin-gonic-gin · debian · 12

[Debian 13 (Trixie)]

Observed:

References