cve.bz

CVE-2023-26125 gin-gonic gin: Improper Input Validation

7.3 highExploit referenceEPSS 0.9%Fix available

High (7.3) in gin-gonic gin. EPSS 0.9% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/gin-gonic/gin 1.9.0.

On this page
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.

Severity

CVSS 3.1

7.3 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
EPSS
0.9% (unchanged from 0.9% a week ago; 0.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 61st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2025-01-29. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-20 Improper Input Validation
CWE-77 Improper Neutralization of Special Elements used in a Command
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-26125 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-26125?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-26125?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-26125 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
gin-gonic:ginbefore 1.9.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-3vp4-m3rf-835hGogithub.com/gin-gonic/gin<1.9.01.9.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12golang-github-gin-gonic-ginno fix listedDEBIAN-CVE-2023-26125
Debian13, 14golang-github-gin-gonic-gin1.8.1-3DEBIAN-CVE-2023-26125
Ubuntu18.04:LTS, 20.04:LTS, 22.04:LTS and 4 moregolang-github-gin-gonic-ginno fix listedUBUNTU-CVE-2023-26125

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Moderate.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Migration Toolkit for Virtualization 2.5migration-toolkit-virtualization/mtv-controller-rhel9:2.5.2-5Fixed 2023-10-24RHBA-2023:6078
Migration Toolkit for Virtualization 2.5migration-toolkit-virtualization/mtv-must-gather-api-rhel8:2.5.2-6Fixed 2023-10-24RHBA-2023:6078
MTA-6.2-RHEL-9mta/mta-hub-rhel9:6.2.0-16Fixed 2023-08-14RHSA-2023:4627
Red Hat Migration Toolkit for Containers 1.7rhmtc/openshift-migration-controller-rhel8:v1.7.11-4Fixed 2023-07-27RHSA-2023:4293
Red Hat OpenShift Container Platform 4.13openshift4/ose-agent-installer-csr-approver-rhel8:v4.13.0-202411300029.p0.g19034d8.assembly.stream.el8Fixed 2024-12-12RHSA-2024:10813
Red Hat OpenShift Container Platform 4.13openshift4/ose-agent-installer-api-server-rhel8:v4.13.0-202410242307.p0.gec6e27b.assembly.stream.el8Fixed 2024-11-06RHSA-2024:8688
Custom Metric Autoscaler operator for Red Hat Openshiftcustom-metrics-autoscaler/custom-metrics-autoscaler-rhel8Not affected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/logging-loki-rhel9Not affected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/loki-rhel9-operatorNot affected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/lokistack-gateway-rhel8Not affected
Migration Toolkit for Applications 6mta/mta-admin-addon-rhel8Will not fix
Migration Toolkit for Applications 6mta/mta-windup-addon-rhel9Affected
Migration Toolkit for Virtualizationmigration-toolkit-virtualization/mtv-rhel8-operatorAffected
OpenShift Serverlessopenshift-serverless-1/client-kn-rhel8Affected
OpenShift Serverlessopenshift-serverless-1/ingress-rhel8-operatorAffected
Red Hat Advanced Cluster Management for Kubernetes 2acm-multicluster-globalhub-agent-containerAffected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/acm-grafana-rhel8Not affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/acm-prometheus-rhel9Not affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/lighthouse-agent-rhel9Not affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/multiclusterhub-rhel8Not affected
32 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-26125.

Attack patterns (CAPEC)

  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-40 Manipulating Writeable Terminal Devices Likelihood: High · Severity: Very High
  • CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
  • CAPEC-75 Manipulating Writeable Configuration Files Likelihood: High · Severity: Very High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-136 LDAP Injection Likelihood: High · Severity: High
  • CAPEC-183 IMAP/SMTP Command Injection Severity: Medium
  • CAPEC-248 Command Injection Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-20 (51).

References

Check your stackJSON