> CVE-2023-29401 [MEDIUM]

« BACK_TO_HOME
PUBLISHED
2023-06-08 21:15
MODIFIED
2025-01-06 20:15
CVSS_SCORE V3
4.3
EPSS (Prob. Exploit)
0.48%
Top 58.2%
DATA SOURCES:
NVD 🔗 2025-10-18 CVE PROJECT 🔗 2026-01-19 FIRST EPSS 🔗 2026-11-08 GITHUB 🔗 2026-11-10 OSV 🔗 2026-11-15

> 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.

> AFFECTED_PRODUCTS

Gin-Gonic - Gin
>= 1.3.1-0.20190301021747-ccb9e902956d < 1.9.1

> CVSS V3 METRICS

CVSS_VECTOR
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
Métrique Valeur Interprétation
AV (Vecteur d'Attaque)
Attack Vector
Network (N)
Exploit possible à distance via réseau (HTTP, API, etc.)
AC (Complexité d'Attaque)
Attack Complexity
Low (L)
Peu de conditions requises pour exploiter
PR (Privilèges Requis)
Privileges Required
None (N)
Aucune authentification requise
UI (Interaction Utilisateur)
User Interaction
Required (R)
Nécessite une action utilisateur (clic lien, ouverture fichier, etc.)
S (Périmètre)
Scope
Unchanged (U)
Impact reste dans le périmètre du composant compromis
C (Impact Confidentialité)
Confidentiality Impact
None (N)
Aucune divulgation d'informations
I (Impact Intégrité)
Integrity Impact
Low (L)
Modification limitée des données possible
A (Impact Disponibilité)
Availability Impact
None (N)
Aucune interruption de service

> RÉSUMÉ DES IMPACTS

Confidentialité
None
Aucune divulgation d'informations
Intégrité
Low
Modification limitée des données possible
Disponibilité
None
Aucune interruption de service

> RED HAT SECURITY ADVISORIES

Red Hat Security Advisory: OpenShift Container Platform 4.14.40 bug fix and security update
Red Hat OpenShift Container Platform release 4.14.40 is now available with updates to packages and images that fix several bugs and add enhancements. This release includes a security update for Red H...
Red Hat Security Advisory: OpenShift Container Platform 4.14.39 security update
Red Hat OpenShift Container Platform release 4.14.39 is now available with updates to packages and images that fix several bugs and add enhancements. This release includes a security update for Red H...

> GITHUB SECURITY ADVISORY

GHSA-2c4m-59x9-fr2g MODERATE

Gin Web Framework does not properly sanitize filename parameter of Context.FileAttachment function

AFFECTED PACKAGES:
GO / github.com/gin-gonic/gin
>= 1.3.1-0.20190301021747-ccb9e902956d, < 1.9.1
Fixed in: 1.9.1

> OSV (GOOGLE OPEN SOURCE VULNERABILITIES)

Improper handling of filenames in Content-Disposition HTTP header in github.com/gin-gonic/gin

AFFECTED PACKAGES:
Unknown / Unknown
26 versions affected
ALIASES:
GHSA-2c4m-59x9-fr2g, GO-2023-1737

> HISTORIQUE DES MODIFICATIONS

Première apparition
08/06/2023 21:15
Source: NVD
📊 ENRICHISSEMENT 18/10/2025 14:41
CVEPROJECT
Champ modifié: CVE Project
Ancienne valeur:
Non
Nouvelle valeur:
Oui
Total des modifications: 1 Dernière mise à jour: 1 year ago
« BACK_TO_HOME