Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/gin-gonic/gin
  4. ›
  5. CVE-2023-26125

CVE-2023-26125: Improper input validation in github.com/gin-gonic/gin

May 4, 2023 (updated November 9, 2023)

Versions of the package github.com/gin-gonic/gin before 1.9.0 is vulnerable to Improper Input Validation by allowing an attacker to use a specially crafted request via the X-Forwarded-Prefix header, potentially leading to cache poisoning. Note: Although this issue does not pose a significant threat on its own it can serve as an input vector for other more impactful vulnerabilities. However, successful exploitation may depend on the server configuration and whether the header is used in the application logic.

References

  • github.com/advisories/GHSA-3vp4-m3rf-835h
  • github.com/gin-gonic/gin/pull/3500
  • github.com/gin-gonic/gin/pull/3503
  • github.com/gin-gonic/gin/releases/tag/v1.9.0
  • github.com/t0rchwo0d/gin/commit/fd9f98e70fb4107ee68c783482d231d35e60507b
  • nvd.nist.gov/vuln/detail/CVE-2023-26125
  • security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGINGONICGIN-3324285

Code Behaviors & Features

Detect and mitigate CVE-2023-26125 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before v1.9.0

Fixed versions

  • v1.9.0

Solution

Upgrade to version 1.9.0 or above.

Impact 7.3 HIGH

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

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation

Source file

go/github.com/gin-gonic/gin/CVE-2023-26125.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:40 +0000.