Вернуться к предупреждениям о безопасности

Gorilla CSRF Vulnerability — Ubuntu Security Update (USN-9297-1)

USN-9297-1 fixes CVE-2025-24358 in Gorilla CSRF on Ubuntu 24.04 LTS, 22.04 LTS and 20.04 LTS: Gorilla CSRF could allow a remote attacker to perform actions as another user. A standard system update installs the fix.

High 5.4 CVSS
Ubuntu 20.04 Ubuntu 22.04

Что это значит по лицензии SharedLicense

The notice itself does not spell out the impact; the vendor pages linked above have the details.

  1. Ubuntu Security Notices

  2. USN-9297-1


Publication date

1 December 2026

Overview

Gorilla CSRF could allow a remote attacker to perform actions as another
user.

Releases


24.04 LTS


22.04 LTS


20.04 LTS


Packages

Details

It was discovered that Gorilla CSRF did not properly validate the Origin
and Referer headers of cross-origin requests. A remote attacker who was
able to perform cross-site scripting attacks on a site sharing the same
top-level domain could possibly use this issue to perform cross-site
request forgery attacks. After this update, Gorilla CSRF treats all
requests as HTTPS requests unless the application marks them as plaintext
HTTP requests.

It was discovered that Gorilla CSRF did not properly validate the Origin
and Referer headers of cross-origin requests. A remote attacker who was
able to perform cross-site scripting attacks on a site sharing the same
top-level domain could possibly use this issue to perform cross-site
request forgery attacks. After this update, Gorilla CSRF treats all
requests as HTTPS requests unless the application marks them as plaintext
HTTP requests.

Update instructions

In general, a standard system update will make all the necessary changes.

Learn more about how to get the fixes.

The problem can be corrected by updating your system to the following package versions:

Ubuntu Release Package Version
24.04 LTS noble golang-github-gorilla-csrf-dev –  1.7.2-1ubuntu0.24.04.1
22.04 LTS jammy golang-github-gorilla-csrf-dev –  1.6.2-2+deb11u1build0.22.04.1
20.04 LTS focal golang-github-gorilla-csrf-dev –  1.6.2-2ubuntu0.20.04.1~esm1   Ubuntu Pro Fix available with Ubuntu Pro via ESM Apps. A community fix might become publicly available in the future.

References

Часто задаваемые вопросы

What does USN-9297-1 fix?
.
Which Ubuntu releases are affected?
The notice lists Ubuntu 24.04 LTS, Ubuntu 22.04 LTS, Ubuntu 20.04 LTS.
How do I apply USN-9297-1?
In general, a standard system update will make all the necessary changes. In practice: run sudo apt update && sudo apt upgrade on the server.
Which packages are updated?
The update ships new builds of golang-github-gorilla-csrf - Cross Site Request Forgery (CSRF) prevention middleware for Go.

Проверьте систему на уязвимости

Выберите продукт и операционную систему, чтобы увидеть точные команды исправления.

Проверьте свою систему