Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2025-24358— gorilla/csrf CSRF vulnerability due to broken Referer validation

Quick assessment

Affected
gorilla csrf
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

csrf是Gorilla web toolkit开源的一个库,为Go web应用程序和服务提供跨站点请求伪造(csrf)预防中间件。 csrf 1.7.2之前版本存在跨站请求伪造漏洞,该漏洞源于未验证Origin头,可能导致跨站请求伪造攻击。

AI Predicted 5.3 Difficulty: Hard EPSS 0.37% · P30
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2025-24358

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
gorilla/csrf CSRF vulnerability due to broken Referer validation
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P
Source: CVE Program / CVE List V5
Vulnerability Type
跨站请求伪造(CSRF)
Source: CVE Program / CVE List V5
Vulnerability Title
csrf 跨站请求伪造漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
csrf是Gorilla web toolkit开源的一个库,为Go web应用程序和服务提供跨站点请求伪造(csrf)预防中间件。 csrf 1.7.2之前版本存在跨站请求伪造漏洞,该漏洞源于未验证Origin头,可能导致跨站请求伪造攻击。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
gorilla csrf < 1.7.3 -

II. Public POCs for CVE-2025-24358

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2025-24358

登录查看更多情报信息。

Patches & Fixes for CVE-2025-24358 (1)

Vendor Advisories for CVE-2025-24358 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2025-24358

No comments yet


Leave a comment