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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | golang-github-gin-gonic-gin | no fix listed | DEBIAN-CVE-2023-26125 |
| Debian:13 | golang-github-gin-gonic-gin | 1.8.1-3 | DEBIAN-CVE-2023-26125 |
| Debian:14 | golang-github-gin-gonic-gin | 1.8.1-3 | DEBIAN-CVE-2023-26125 |
| Go | github.com/gin-gonic/gin | 1.9.0 | GHSA-3vp4-m3rf-835h |
| Ubuntu:22.04:LTS | golang-github-gin-gonic-gin | no fix listed | UBUNTU-CVE-2023-26125 |
| Ubuntu:24.04:LTS | golang-github-gin-gonic-gin | no fix listed | UBUNTU-CVE-2023-26125 |
| Ubuntu:25.10 | golang-github-gin-gonic-gin | no fix listed | UBUNTU-CVE-2023-26125 |
| Ubuntu:26.04:LTS | golang-github-gin-gonic-gin | no fix listed | UBUNTU-CVE-2023-26125 |
| Ubuntu:26.10 | golang-github-gin-gonic-gin | no fix listed | UBUNTU-CVE-2023-26125 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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