CVE-2023-26125
Improper input validation in github.com/gin-gonic/gin
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- High
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- Low
- Integrity
- Low
- Availability
- Low
Exploit likelihood
What each source reports
CVE List Score used
5.6
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.
- Record
CVE-2023-26125- CVSS 3.1
- 5.6 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L - CVSS 3.1
- 7.3 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L - Weakness
- CWE-20, CWE-77
- Updated
- 2026-11-02
EUVDEUVD-2023-1460
5.6
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.
- Record
EUVD-2023-1460- CVSS 3.1
- 5.6 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L - Updated
- 2026-11-03
GitHub AdvisoriesGHSA-3vp4-m3rf-835h
5.6
Improper input validation in github.com/gin-gonic/gin
Versions of the package github.com/gin-gonic/gin before version 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.
- Record
GHSA-3vp4-m3rf-835h- CVSS 3.1
- 5.6 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L - Weakness
- CWE-20, CWE-77
- Updated
- 2026-11-02
NVD
5.6
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.
- Record
CVE-2023-26125- CVSS 3.1
- 5.6 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L - CVSS 3.1
- 7.3 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L - CVSS 3.1
- 7.3 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L - Weakness
- CWE-20, CWE-77
- Updated
- 2026-11-02
OSV
5.6
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.
- Record
CVE-2023-26125- CVSS 3.1
- 5.6 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L - Weakness
- CWE-20
- Updated
- 2026-11-02
OSVDEBIAN-CVE-2023-26125
7.3
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.
- Record
DEBIAN-CVE-2023-26125- CVSS 3.1
- 7.3 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L - Updated
- 2026-11-02
OSVGHSA-3vp4-m3rf-835h
5.6
Improper input validation in github.com/gin-gonic/gin
Versions of the package github.com/gin-gonic/gin before version 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.
- Record
GHSA-3vp4-m3rf-835h- CVSS 3.1
- 5.6 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L - Weakness
- CWE-20, CWE-77
- Updated
- 2026-11-02
OSVUBUNTU-CVE-2023-26125
5.6
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.
- Record
UBUNTU-CVE-2023-26125- CVSS 3.1
- 5.6 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L - CVSS 3.1
- 7.3 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L - Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
github.com/gin-gonic/ginGo |
before 1.9.0 | 1.9.0 |
golang-github-gin-gonic-ginDebian:12 |
All versions, plus listed versions 1.8.1-11.8.1-21.8.1-31.8.1-4 |
None known |
golang-github-gin-gonic-ginDebian:13 |
before 1.8.1-3 | 1.8.1-3 |
golang-github-gin-gonic-ginDebian:14 |
before 1.8.1-3 | 1.8.1-3 |
golang-github-gin-gonic-ginUbuntu:18.04:LTS |
All versions, plus listed versions 1.2+dfsg1-21.2+dfsg1-2ubuntu1 |
None known |
golang-github-gin-gonic-ginUbuntu:20.04:LTS |
All versions, plus listed versions 1.3.0+dfsg1-3 |
None known |
golang-github-gin-gonic-ginUbuntu:22.04:LTS |
All versions, plus listed versions 1.6.3-4 |
None known |
golang-github-gin-gonic-ginUbuntu:24.04:LTS |
All versions, plus listed versions 1.8.1-11.8.1-2 |
None known |
golang-github-gin-gonic-ginUbuntu:25.10 |
All versions, plus listed versions 1.8.1-21.8.1-3 |
None known |
golang-github-gin-gonic-ginUbuntu:26.10 |
All versions, plus listed versions 1.8.1-31.8.1-4 |
None known |
golang-github-gin-gonic-ginUbuntu:26.04:LTS |
All versions, plus listed versions 1.8.1-3 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases, products, published | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2023-26125 is a medium vulnerability (CVSS 5.6) in Gin-gonic Gin, published May 4, 2023. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.91%, the 60th percentile. Fixed in github.com/gin-gonic/gin 1.9.0.
References
security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGINGONICGIN-3324285
github.com/t0rchwo0d/gin/commit/fd9f98e70fb4107ee68c783482d231d35e60507b
github.com/gin-gonic/gin/pull/3500
github.com/gin-gonic/gin/pull/3503
github.com/gin-gonic/gin/releases/tag/v1.9.0
nvd.nist.gov/vuln/detail/CVE-2023-26125
Show 7 moreShow less
github.com/advisories/GHSA-3vp4-m3rf-835h
github.com/CVEProject/cvelistV5/tree/main/cves/2023/26xxx/CVE-2023-26125.json
security-tracker.debian.org/tracker/CVE-2023-26125
github.com/gin-gonic/gin
ubuntu.com/security/CVE-2023-26125
github.com/gin-gonic/gin/commit/81ac7d55a09e34013225db0aeac6e70c1ae68928
cve.org/CVERecord?id=CVE-2023-26125