{"id":"UBUNTU-CVE-2023-26125","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.","modified":"2026-05-20T16:13:29.998778783Z","published":"2023-05-04T05:15:00Z","upstream":["CVE-2023-26125"],"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"}],"affected":[{"package":{"name":"golang-github-gin-gonic-gin","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/golang-github-gin-gonic-gin?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.2+dfsg1-2","1.2+dfsg1-2ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_name":"golang-github-gin-gonic-gin-dev","binary_version":"1.2+dfsg1-2ubuntu1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-26125.json"}},{"package":{"name":"golang-github-gin-gonic-gin","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/golang-github-gin-gonic-gin?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.3.0+dfsg1-3"],"ecosystem_specific":{"binaries":[{"binary_name":"golang-github-gin-gonic-gin-dev","binary_version":"1.3.0+dfsg1-3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-26125.json"}},{"package":{"name":"golang-github-gin-gonic-gin","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/golang-github-gin-gonic-gin?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.6.3-4"],"ecosystem_specific":{"binaries":[{"binary_name":"golang-github-gin-gonic-gin-dev","binary_version":"1.6.3-4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-26125.json"}},{"package":{"name":"golang-github-gin-gonic-gin","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/golang-github-gin-gonic-gin?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.8.1-1","1.8.1-2"],"ecosystem_specific":{"binaries":[{"binary_version":"1.8.1-2","binary_name":"golang-github-gin-gonic-gin-dev"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-26125.json"}},{"package":{"name":"golang-github-gin-gonic-gin","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/golang-github-gin-gonic-gin?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.8.1-2","1.8.1-3"],"ecosystem_specific":{"binaries":[{"binary_version":"1.8.1-3","binary_name":"golang-github-gin-gonic-gin-dev"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-26125.json"}},{"package":{"name":"golang-github-gin-gonic-gin","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/golang-github-gin-gonic-gin?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.8.1-3"],"ecosystem_specific":{"binaries":[{"binary_version":"1.8.1-3","binary_name":"golang-github-gin-gonic-gin-dev"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-26125.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","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":"Ubuntu","score":"medium"}]}