UBUNTU-CVE-2023-26125 (CVE-2023-26125)
Vulnerability from osv_ubuntu – Published: 2023-05-04 05:15 – Updated: 2026-05-20 15:02 – Source websiteVersions 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": [
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "golang-github-gin-gonic-gin-dev",
"binary_version": "1.2+dfsg1-2ubuntu1"
}
]
},
"package": {
"ecosystem": "Ubuntu:18.04:LTS",
"name": "golang-github-gin-gonic-gin",
"purl": "pkg:deb/ubuntu/golang-github-gin-gonic-gin@1.2+dfsg1-2ubuntu1?arch=source\u0026distro=bionic"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.2+dfsg1-2",
"1.2+dfsg1-2ubuntu1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "golang-github-gin-gonic-gin-dev",
"binary_version": "1.3.0+dfsg1-3"
}
]
},
"package": {
"ecosystem": "Ubuntu:20.04:LTS",
"name": "golang-github-gin-gonic-gin",
"purl": "pkg:deb/ubuntu/golang-github-gin-gonic-gin@1.3.0+dfsg1-3?arch=source\u0026distro=focal"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.3.0+dfsg1-3"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "golang-github-gin-gonic-gin-dev",
"binary_version": "1.6.3-4"
}
]
},
"package": {
"ecosystem": "Ubuntu:22.04:LTS",
"name": "golang-github-gin-gonic-gin",
"purl": "pkg:deb/ubuntu/golang-github-gin-gonic-gin@1.6.3-4?arch=source\u0026distro=jammy"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.6.3-4"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "golang-github-gin-gonic-gin-dev",
"binary_version": "1.8.1-2"
}
]
},
"package": {
"ecosystem": "Ubuntu:24.04:LTS",
"name": "golang-github-gin-gonic-gin",
"purl": "pkg:deb/ubuntu/golang-github-gin-gonic-gin@1.8.1-2?arch=source\u0026distro=noble"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.8.1-1",
"1.8.1-2"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "golang-github-gin-gonic-gin-dev",
"binary_version": "1.8.1-3"
}
]
},
"package": {
"ecosystem": "Ubuntu:25.10",
"name": "golang-github-gin-gonic-gin",
"purl": "pkg:deb/ubuntu/golang-github-gin-gonic-gin@1.8.1-3?arch=source\u0026distro=questing"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.8.1-2",
"1.8.1-3"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "golang-github-gin-gonic-gin-dev",
"binary_version": "1.8.1-3"
}
]
},
"package": {
"ecosystem": "Ubuntu:26.04:LTS",
"name": "golang-github-gin-gonic-gin",
"purl": "pkg:deb/ubuntu/golang-github-gin-gonic-gin@1.8.1-3?arch=source\u0026distro=resolute"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.8.1-3"
]
}
],
"aliases": [],
"details": "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.",
"id": "UBUNTU-CVE-2023-26125",
"modified": "2026-05-20T15:02:31Z",
"published": "2023-05-04T05:15:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2023-26125"
},
{
"type": "REPORT",
"url": "https://github.com/gin-gonic/gin/pull/3500"
},
{
"type": "REPORT",
"url": "https://github.com/gin-gonic/gin/pull/3503"
},
{
"type": "REPORT",
"url": "https://github.com/gin-gonic/gin/commit/81ac7d55a09e34013225db0aeac6e70c1ae68928"
},
{
"type": "REPORT",
"url": "https://github.com/t0rchwo0d/gin/commit/fd9f98e70fb4107ee68c783482d231d35e60507b"
},
{
"type": "REPORT",
"url": "https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGINGONICGIN-3324285"
},
{
"type": "REPORT",
"url": "https://github.com/gin-gonic/gin/releases/tag/v1.9.0"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2023-26125"
}
],
"related": [],
"schema_version": "1.7.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L",
"type": "CVSS_V3"
},
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L",
"type": "CVSS_V3"
},
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L",
"type": "CVSS_V3"
},
{
"score": "medium",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2023-26125"
]
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.