Vulnerability · Published May 4, 2023 · Assigned by snyk

CVE-2023-26125

Medium 5.6

In plain English

A medium-severity improper input validation in github.com/gin-gonic/gin. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 60% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.6Medium
Exploit odds (30 days)0.9%top 40.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

Versions of the package github.com/gin-gonic/gin before 1.9.0 are 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12golang-github-gin-gonic-ginno fix listedDEBIAN-CVE-2023-26125
Debian:13golang-github-gin-gonic-gin1.8.1-3DEBIAN-CVE-2023-26125
Debian:14golang-github-gin-gonic-gin1.8.1-3DEBIAN-CVE-2023-26125
Gogithub.com/gin-gonic/gin1.9.0GHSA-3vp4-m3rf-835h
Ubuntu:22.04:LTSgolang-github-gin-gonic-ginno fix listedUBUNTU-CVE-2023-26125
Ubuntu:24.04:LTSgolang-github-gin-gonic-ginno fix listedUBUNTU-CVE-2023-26125
Ubuntu:25.10golang-github-gin-gonic-ginno fix listedUBUNTU-CVE-2023-26125
Ubuntu:26.04:LTSgolang-github-gin-gonic-ginno fix listedUBUNTU-CVE-2023-26125
Ubuntu:26.10golang-github-gin-gonic-ginno fix listedUBUNTU-CVE-2023-26125

Affected products (as reported)

VendorProductVersions
n/a github.com/gin-gonic/gin 0 – before 1.9.0

Weakness: CWE-20, CWE-77 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L

References