cve.bz

CVE-2023-29401 gin-gonic gin: Download of Code Without Integrity Check

4.3 mediumExploit referenceEPSS 0.5%Fix available

Medium (4.3) in gin-gonic gin. EPSS 0.5% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/gin-gonic/gin 1.9.1.

On this page
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.

Severity

CVSS 3.1

4.3 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 42nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2025-01-06. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-494 Download of Code Without Integrity Check
OWASP Top 10
A08:2025 Software or Data Integrity Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-29401 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-29401?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-29401?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-29401 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
github.com/gin-gonic/ginfrom 1.3.1-0.20190301021747-ccb9e902956d before 1.9.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-2c4m-59x9-fr2gGogithub.com/gin-gonic/gin>=1.3.1-0.20190301021747-ccb9e902956d <1.9.11.9.1
GO-2023-1737Gogithub.com/gin-gonic/gin>=1.3.1-0.20190301021747-ccb9e902956d <1.9.11.9.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12golang-github-gin-gonic-ginno fix listedDEBIAN-CVE-2023-29401
Debian13, 14golang-github-gin-gonic-gin1.8.1-3DEBIAN-CVE-2023-29401
Ubuntu18.04:LTS, 20.04:LTS, 22.04:LTS and 4 moregolang-github-gin-gonic-ginno fix listedUBUNTU-CVE-2023-29401

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Migration Toolkit for Virtualization 2.5migration-toolkit-virtualization/mtv-controller-rhel9:2.5.2-5Fixed 2023-10-24RHBA-2023:6078
Migration Toolkit for Virtualization 2.5migration-toolkit-virtualization/mtv-must-gather-api-rhel8:2.5.2-6Fixed 2023-10-24RHBA-2023:6078
Red Hat Migration Toolkit for Containers 1.7rhmtc/openshift-migration-controller-rhel8:v1.7.11-4Fixed 2023-07-27RHSA-2023:4293
Red Hat OpenShift Container Platform 4.14openshift4/ose-image-customization-controller-rhel8:v4.14.0-202310201027.p0.g2dda87a.assembly.streamFixed 2023-10-31RHSA-2023:5006
Red Hat OpenShift Container Platform 4.14openshift4/ose-agent-installer-api-server-rhel8:v4.14.0-202410151739.p0.gcb552db.assembly.stream.el8Fixed 2024-10-23RHSA-2024:8235
Red Hat OpenShift Container Platform 4.14openshift4/ose-agent-installer-csr-approver-rhel8:v4.14.0-202410220407.p0.g53ccc48.assembly.stream.el8Fixed 2024-11-08RHSA-2024:8697
Custom Metric Autoscaler operator for Red Hat Openshiftcustom-metrics-autoscaler/custom-metrics-autoscaler-rhel8Not affected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/logging-loki-rhel9Not affected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/lokistack-gateway-rhel8Not affected
Migration Toolkit for Applications 6mta/mta-admin-addon-rhel8Will not fix
Migration Toolkit for Applications 6mta/mta-hub-rhel9Not affected
Migration Toolkit for Applications 6mta/mta-windup-addon-rhel9Will not fix
Migration Toolkit for Virtualizationmigration-toolkit-virtualization/mtv-rhel8-operatorNot affected
OpenShift Serverlessopenshift-serverless-1/ingress-rhel8-operatorWill not fix
Red Hat Advanced Cluster Management for Kubernetes 2acm-multicluster-globalhub-agent-containerAffected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/acm-grafana-rhel8Not affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/acm-prometheus-rhel9Not affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/multiclusterhub-rhel8Not affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/rbac-query-proxy-rhel8Not affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/thanos-receive-controller-rhel8Not affected
25 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-29401.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-494 (12).

References

Check your stackJSON