CVE-2023-26125
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.
What to do
Fixed builds are available from Debian, Go: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | golang-github-gin-gonic-gin | Fix pending | UBUNTU-CVE-2023-26125 | |
| Ubuntu 26.04 | golang-github-gin-gonic-gin | Under investigation | UBUNTU-CVE-2023-26125 | |
| Ubuntu 25.10 | golang-github-gin-gonic-gin | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2023-26125 | |
| Ubuntu 24.04 | golang-github-gin-gonic-gin | Under investigation | UBUNTU-CVE-2023-26125 | |
| Ubuntu 22.04 | golang-github-gin-gonic-gin | Under investigation | UBUNTU-CVE-2023-26125 | |
| Ubuntu 20.04 | golang-github-gin-gonic-gin | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2023-26125 | |
| Ubuntu 18.04 | golang-github-gin-gonic-gin | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2023-26125 | |
| Debian 14 | golang-github-gin-gonic-gin | Fixed | 1.8.1-3 | DEBIAN-CVE-2023-26125 |
| Debian 13 | golang-github-gin-gonic-gin | Fixed | 1.8.1-3 | DEBIAN-CVE-2023-26125 |
| Debian 12 | golang-github-gin-gonic-gin | Fix pending | DEBIAN-CVE-2023-26125 | |
| Go library | github.com/gin-gonic/gin | Fixed | 1.9.0 | GHSA-3vp4-m3rf-835h |
What the vendor says
As published in the CVE record by snyk, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- github.com/gin-gonic/gin: affected: before 1.9.0; fixed in
1.9.0
References
- https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGINGONICGIN-3324285
- https://github.com/t0rchwo0d/gin/commit/fd9f98e70fb4107ee68c783482d231d35e60507b
- https://github.com/gin-gonic/gin/pull/3500
- https://github.com/gin-gonic/gin/pull/3503
- https://github.com/gin-gonic/gin/releases/tag/v1.9.0
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.