5.4

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

Deferred
AliasesUBUNTU-CVE-2025-24358DEBIAN-CVE-2025-24358DLA-4151-1
Published 15-04-2025Last modified 01-05-2025

Vulnerability summary

CVE-2025-24358 is a medium (CVSS 5.4) Cross-Site Request Forgery (CSRF) vulnerability in gorilla csrf. EPSS estimates a 0.37% chance of exploitation in the next 30 days, higher than 30.1% of scored vulnerabilities.

Overall risk
22/100
0100
Low · default modelHow is this calculated?
CVSS score
5.4/10
010
Medium · v4.0 (CVE.org)
EPSS score
0.37%
0%100%
Low · +0.01 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 2 · Related 10

Timeline

  1. 15-04-2025
    PublishedVulnerability first disclosed.
  2. 01-05-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

7 scores · 7 sources · 1 version

EPSS trend

Probability

0.37%

Chance of exploitation in the next 30 days

Percentile

30%

Versus all other CVEs

30-day change

Increase +0.01 pp

From 0.37% on 22-09-2026

22-09-202622-10-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Chainguard61 products
  • harbor-2.11< 2.11.2-r8
  • harbor-2.11-exporter< 2.11.2-r8
  • harbor-2.11-jobservice< 2.11.2-r8
  • harbor-2.11-photon-registry< 2.11.2-r8
  • harbor-2.11-portal< 2.11.2-r8
Wolfi9 products
  • harbor-2.14< 2.14.0-r1
  • harbor-2.14-exporter< 2.14.0-r1
  • harbor-2.14-jobservice< 2.14.0-r1
  • harbor-2.14-portal< 2.14.0-r1
  • harbor-2.14-portal-nginx-config< 2.14.0-r1
Debian1 product
  • golang-github-gorilla-csrfAll versions (No fix recorded) | < 1.7.2+ds1-2 | < 1.6.2-2+deb11u1
Github.com/gorilla1 product
  • csrf< 1.7.3
Gorilla1 product
Ubuntu1 product
  • golang-github-gorilla-csrfAll versions (No fix recorded)

6 vendors · 74 products

References

10 links