UBUNTU-CVE-2025-47909

Source
https://ubuntu.com/security/CVE-2025-47909
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-47909.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2025-47909
Upstream
Published
2025-09-01T00:00:00Z
Modified
2025-09-01T17:46:52.635026Z
Severity
  • 7.3 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L CVSS Calculator
  • Ubuntu - medium
Summary
[none]
Details

Hosts listed in TrustedOrigins implicitly allow requests from the corresponding HTTP origins, allowing network MitMs to perform CSRF attacks. After the CVE-2025-24358 fix, a network attacker that places a form at http://example.com can't get it to submit to https://example.com because the Origin header is checked with sameOrigin against a synthetic URL. However, if a host is added to TrustedOrigins, both its HTTP and HTTPS origins will be allowed, because the schema of the synthetic URL is ignored and only the host is checked. For example, if an application is hosted on https://example.com and adds example.net to TrustedOrigins, a network attacker can serve a form at http://example.net to perform the attack. Applications should migrate to net/http.CrossOriginProtection, introduced in Go 1.25. If that is not an option, a backport is available as a module at filippo.io/csrf, and a drop-in replacement for the github.com/gorilla/csrf API is available at filippo.io/csrf/gorilla.

References

Affected packages

Ubuntu:Pro: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=esm-apps/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

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

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

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