7.5
CWE
494 20
Advisory Published
CVE Published
Updated

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

First published: Fri May 12 2023(Updated: )

Gin-Gonic Gin Web Framework could allow a remote attacker to bypass security restrictions, caused by improper input validation by the filename parameter of the Context.FileAttachment function. By using a specially-crafted attachment file name, an attacker could exploit this vulnerability to modify the Content-Disposition header.

Credit: security@golang.org security@golang.org

Affected SoftwareAffected VersionHow to fix
Gin-Gonic Gin>=1.3.1-0.20190301021747-ccb9e902956d<1.9.1
go/github.com/gin-gonic/gin>=1.3.1-0.20190301021747-ccb9e902956d<1.9.1
1.9.1
redhat/golang-github-gin-gonic-gin<1.9.1
1.9.1
IBM Planning Analytics Local - IBM Planning Analytics Workspace<=2.1
IBM Planning Analytics Local - IBM Planning Analytics Workspace<=2.0

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Parent vulnerabilities

(Appears in the following advisories)

Frequently Asked Questions

  • What is CVE-2023-29401?

    CVE-2023-29401 is a vulnerability in the Gin-Gonic Gin web framework that could allow a remote attacker to bypass security restrictions.

  • How does CVE-2023-29401 work?

    The vulnerability occurs due to the filename parameter of the Context.FileAttachment function not being properly sanitized, allowing a maliciously crafted filename to modify the Content-Disposition header.

  • What is the severity of CVE-2023-29401?

    The severity of CVE-2023-29401 is high with a CVSS score of 7.5.

  • Which software versions are affected by CVE-2023-29401?

    The affected software versions include Gin-Gonic Gin versions between 1.3.1 and 1.9.1, golang-github-gin-gonic-gin version 1.9.1, and github.com/gin-gonic/gin versions between 1.3.1 and 1.9.1.

  • How can I fix CVE-2023-29401?

    To fix CVE-2023-29401, update the Gin-Gonic Gin web framework to version 1.9.1 or higher.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203