CVE & CISA-KEV Catalog

CVE-2025-24358

UNSCORED

Description

gorilla/csrf provides Cross Site Request Forgery (CSRF) prevention middleware for Go web applications & services. Prior to 1.7.2, gorilla/csrf does not validate the Origin header against an allowlist. Its executes its validation of the Referer header for cross-origin requests only when it believes the request is being served over TLS. It determines this by inspecting the r.URL.Scheme value. However, this value is never populated for "server" requests per the Go spec, and so this check does not run in practice. This vulnerability allows an attacker who has gained XSS on a subdomain or top level domain to perform authenticated form submissions against gorilla/csrf protected targets that share the same top level domain. This vulnerability is fixed in 1.7.2.

How to fix

Remediation Available
golang-github-gorilla-csrfDebian
Fixed in:1.6.2-2+deb11u1CVE-2025-24358
Fixed in:1.7.2+ds1-2CVE-2025-24358
Fixed in:1.7.2+ds1-2CVE-2025-24358

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3.1 Vector

No CVSS vector data available.

Exploit Intelligence

0.34%probability of exploitation in 30 days
27thpercentile

Low risk: more likely to be exploited than 27% of all known CVEs.

References

Related Vulnerabilities

Other CWE-352 (Cross-Site Request Forgery) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2016-6277High8.8100%KEV-
CVE-2014-0054Medium6.891%-Fix
CVE-2013-6429Medium6.890%-Fix
CVE-2022-41622High8.888%--
CVE-2018-7700High8.875%--
CVE-2015-2295Medium6.866%--
Embed a live status badge for CVE-2025-24358
CVE-2025-24358 severity badge

Markdown

[![CVE-2025-24358](https://tridentstack.com/cve/badge/CVE-2025-24358.svg)](https://tridentstack.com/cve/CVE-2025-24358)

HTML

<a href="https://tridentstack.com/cve/CVE-2025-24358"><img src="https://tridentstack.com/cve/badge/CVE-2025-24358.svg" alt="CVE-2025-24358"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2025-05-01.