UBUNTU-CVE-2025-24358

Source
https://ubuntu.com/security/CVE-2025-24358
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-24358.json
JSON Data
https://api.test.osv.dev/v1/vulns/UBUNTU-CVE-2025-24358
Related
Published
2025-04-15T19:16:00Z
Modified
2025-04-23T15:12:46Z
Summary
[none]
Details

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.

References

Affected packages

Ubuntu:20.04:LTS / golang-github-gorilla-csrf

Package

Name
golang-github-gorilla-csrf
Purl
pkg:deb/ubuntu/golang-github-gorilla-csrf@1.6.2-2?arch=source&distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*

1.6.2-1
1.6.2-2

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:22.04:LTS / golang-github-gorilla-csrf

Package

Name
golang-github-gorilla-csrf
Purl
pkg:deb/ubuntu/golang-github-gorilla-csrf@1.6.2-2?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*

1.6.2-2

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:24.10 / golang-github-gorilla-csrf

Package

Name
golang-github-gorilla-csrf
Purl
pkg:deb/ubuntu/golang-github-gorilla-csrf@1.7.2-1?arch=source&distro=oracular

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*

1.7.2-1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:24.04:LTS / golang-github-gorilla-csrf

Package

Name
golang-github-gorilla-csrf
Purl
pkg:deb/ubuntu/golang-github-gorilla-csrf@1.7.2-1?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*

1.7.1-1
1.7.2-1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:25.04 / golang-github-gorilla-csrf

Package

Name
golang-github-gorilla-csrf
Purl
pkg:deb/ubuntu/golang-github-gorilla-csrf@1.7.2+ds1-1?arch=source&distro=plucky

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*

1.7.2-1
1.7.2+ds1-1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}