Debian dla-4151 : golang-github-gorilla-csrf-dev - security update

medium Nessus Plugin ID 235057

Synopsis

The remote Debian host is missing a security-related update.

Description

The remote Debian 11 host has a package installed that is affected by a vulnerability as referenced in the dla-4151 advisory.

- -------------------------------------------------------------------------- Debian LTS Advisory DLA-4151-1 [email protected] https://www.debian.org/lts/security/ Andrej Shadura May 01, 2025 https://wiki.debian.org/LTS
- --------------------------------------------------------------------------

Package : golang-github-gorilla-csrf Version : 1.6.2-2+deb11u1 CVE ID : CVE-2025-24358 Debian Bug : 1103584

The following vulnerability has been discovered in the gorilla/csrf package for Go:

Prior to 1.7.3, gorilla/csrf did not validate the Origin header against an allowlist. It executed its validation of the Referer header for cross-origin requests only when it believed the request was being served over TLS. It determined this by inspecting the r.URL.Scheme value. However, this value was never populated for server requests per the Go spec, and so this check did not run in practice. This vulnerability allowed an attacker who has gained XSS on a subdomain or top level domain to perform authenticated form submissions against gorilla/csrf protected targets that shared the same top level domain.

For Debian 11 bullseye, this problem has been fixed in version 1.6.2-2+deb11u1.

The following Go packages have been rebuilt in order to fix this issue:

golang-chroma golang-github-alecthomas-chroma-dev golang-github-niklasfasching-go-org-dev golang-github-yuin-goldmark-highlighting-dev go-org hugo

We recommend that you upgrade these packages.

For the detailed security status of golang-github-gorilla-csrf please refer to its security tracker page at:
https://security-tracker.debian.org/tracker/golang-github-gorilla-csrf

Further information about Debian LTS security advisories, how to apply these updates to your system and frequently asked questions can be found at: https://wiki.debian.org/LTS

Tenable has extracted the preceding description block directly from the Debian security advisory.

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Upgrade the golang-github-gorilla-csrf-dev packages.

See Also

http://www.nessus.org/u?bae97b12

https://security-tracker.debian.org/tracker/CVE-2025-24358

https://packages.debian.org/source/bullseye/golang-github-gorilla-csrf

Plugin Details

Severity: Medium

ID: 235057

File Name: debian_DLA-4151.nasl

Version: 1.1

Type: local

Agent: unix

Published: 5/1/2025

Updated: 5/1/2025

Supported Sensors: Agentless Assessment, Continuous Assessment, Frictionless Assessment Agent, Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: Medium

Base Score: 6.8

Temporal Score: 5

Vector: CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P

CVSS Score Source: CVE-2025-24358

CVSS v3

Risk Factor: High

Base Score: 8.8

Temporal Score: 7.7

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

CVSS v4

Risk Factor: Medium

Base Score: 6

Threat Score: 2.3

Threat Vector: CVSS:4.0/E:U

Vector: 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

Vulnerability Information

CPE: cpe:/o:debian:debian_linux:11.0, p-cpe:/a:debian:debian_linux:golang-github-gorilla-csrf-dev

Required KB Items: Host/local_checks_enabled, Host/Debian/release, Host/Debian/dpkg-l

Exploit Ease: No known exploits are available

Patch Publication Date: 5/1/2025

Vulnerability Publication Date: 4/14/2025

Reference Information

CVE: CVE-2025-24358