GitHub Advisoryadvisory · Go

GHSA-3vp4-m3rf-835h Improper input validation in github.com/gin-gonic/gin

MEDIUM Published 2023-05-04 Modified 2023-05-11 Official page ↗
Aliases
CVE-2023-26125
Ecosystem
Go
Packages
github.com/gin-gonic/gin
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
Weaknesses
CWE-20, CWE-77
Reviewed
2023-05-05

Affected packages

• Go github.com/gin-gonic/gin: < 1.9.0 → fixed in 1.9.0

Description

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.

Related

Alias · CVE (1)

  • 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… vulnerability

Weakness · CWE (2)

  • CWE-20 Improper Input Validation weakness
  • CWE-77 Improper Neutralization of Special Elements used in a Command weakness

References