5.6medium
Improper input validation in github.com/gin-gonic/gin
- Severity
- 5.6medium CVSS:3.1 by snyk
- Exploit likelihood
- 0.91% (higher than 60% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- snyk
- Also known as
- GHSA-3vp4-m3rf-835h
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
| Product or package | Versions | Reported by |
|---|---|---|
| github.com/gin-gonic/gin | before 1.9.0 | CVE List |
| github.com/gin-gonic/gin (Go) | before 1.9.0 | GitHub Advisory Database |
| gin-gonic gin | before 1.9.0 | NVD |
All scores
| snyk | 5.6medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L |
| CISA-ADP | 7.3high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| GitHub | 5.6medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L |
| NVD | 7.3high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
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.
References
| https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGINGONICGIN-3324285 | exploit, patch, third-party-advisory, web | |
| https://github.com/t0rchwo0d/gin/commit/fd9f98e70fb4107ee68c783482d231d35e60507b | patch, web | |
| https://github.com/gin-gonic/gin/pull/3500 | exploit, patch, web | |
| https://github.com/gin-gonic/gin/pull/3503 | issue-tracking, patch, web | |
| https://github.com/gin-gonic/gin/releases/tag/v1.9.0 | release-notes, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2023-26125 | advisory | |
| https://github.com/gin-gonic/gin | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-26125 changed 2025-01-29 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-3vp4-m3rf-835h changed 2023-11-08 | CC-BY-4.0 |
| NVD | CVE-2023-26125 changed 2026-06-17 | Public domain |