Skip to content
OpenAdvisories
Medium · 5.6 CVE-2023-26125 EUVD-2023-1460GHSA-3vp4-m3rf-835h

Improper input validation in github.com/gin-gonic/gin

Published May 4, 2023 · Updated Jan 29, 2025 · Assigned by snyk

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 products

VendorProductAffectedFixed
— github.com/gin-gonic/gin < 1.9.0 1.9.0

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 golang-github-gin-gonic-gin 1.8.1-3 —
Debian 13 golang-github-gin-gonic-gin 1.8.1-3 —
Debian 12 golang-github-gin-gonic-gin No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 golang-github-gin-gonic-gin No fix yet —
Ubuntu 26.04 LTS golang-github-gin-gonic-gin No fix yet —
Ubuntu 25.10 golang-github-gin-gonic-gin No fix yet —
Ubuntu 24.04 LTS golang-github-gin-gonic-gin No fix yet —
Ubuntu 22.04 LTS golang-github-gin-gonic-gin No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS golang-github-gin-gonic-gin No fix yet —
Ubuntu 18.04 LTS golang-github-gin-gonic-gin No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/gin-gonic/gin < 1.9.0 1.9.0 GHSA-3vp4-m3rf-835h

References