CVE-2025-24358
golang-github-gorilla-csrf - security update
描述
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.
如何修補 CVE-2025-24358
要修補 CVE-2025-24358,請將受影響套件升級到下列已修補版本。
- —升級至 1.6.2-2+deb11u1 或更新版本
- —升級至 1.6.2-2+deb11u1 或更新版本
- —升級至 1.7.3 或更新版本
- —升級至 1.7.3 或更新版本
CVE-2025-24358 正在被利用嗎?
低 — EPSS 為 0.1%,目前沒有觀察到大規模利用活動。
受影響套件(4)
- from 0, < 1.6.2-2+deb11u1
- from 0, < 1.6.2-2+deb11u1
- from 0, < 1.7.3
- from 0, < 1.7.3
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 4.0 | — | 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 |