Debian dla-4082 : libruby2.7 - security update

medium Nessus Plugin ID 232556

Synopsis

The remote Debian host is missing one or more security-related updates.

Description

The remote Debian 11 host has packages installed that are affected by multiple vulnerabilities as referenced in the dla-4082 advisory.

- ------------------------------------------------------------------------- Debian LTS Advisory DLA-4082-1 [email protected] https://www.debian.org/lts/security/ Bastien Roucaris March 10, 2025 https://wiki.debian.org/LTS
- -------------------------------------------------------------------------

Package : ruby2.7 Version : 2.7.4-1+deb11u5 CVE ID : CVE-2025-27219 CVE-2025-27220 CVE-2025-27221

Ruby a popular language was affected by multiple vulnerabilities

CVE-2025-27219

In the CGI gem, the CGI::Cookie.parse method in the CGI library contains a potential Denial of Service (DoS) vulnerability.
The method does not impose any limit on the length of the raw cookie value it processes. This oversight can lead to excessive resource consumption when parsing extremely large cookies

CVE-2025-27220

In the CGI gem, a Regular Expression Denial of Service (ReDoS) vulnerability exists in the Util#escapeElement method.

CVE-2025-27221

In the URI gem, the URI handling methods (URI.join, URI#merge, URI#+) have an inadvertent leakage of authentication credentials because userinfo is retained even after changing the host.

For Debian 11 bullseye, these problems have been fixed in version 2.7.4-1+deb11u5.

We recommend that you upgrade your ruby2.7 packages.

For the detailed security status of ruby2.7 please refer to its security tracker page at:
https://security-tracker.debian.org/tracker/ruby2.7

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 these issues but has instead relied only on the application's self-reported version number.

Solution

Upgrade the libruby2.7 packages.

See Also

https://security-tracker.debian.org/tracker/source-package/ruby2.7

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

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

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

https://packages.debian.org/source/bullseye/ruby2.7

Plugin Details

Severity: Medium

ID: 232556

File Name: debian_DLA-4082.nasl

Version: 1.1

Type: local

Agent: unix

Published: 3/10/2025

Updated: 3/10/2025

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

Risk Information

VPR

Risk Factor: Medium

Score: 4.4

CVSS v2

Risk Factor: Medium

Base Score: 5

Temporal Score: 3.7

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

CVSS Score Source: CVE-2025-27221

CVSS v3

Risk Factor: Medium

Base Score: 5.3

Temporal Score: 4.6

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

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

Vulnerability Information

CPE: p-cpe:/a:debian:debian_linux:ruby2.7, cpe:/o:debian:debian_linux:11.0, p-cpe:/a:debian:debian_linux:ruby2.7-doc, p-cpe:/a:debian:debian_linux:ruby2.7-dev, p-cpe:/a:debian:debian_linux:libruby2.7

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

Exploit Ease: No known exploits are available

Patch Publication Date: 3/10/2025

Vulnerability Publication Date: 3/3/2025

Reference Information

CVE: CVE-2025-27219, CVE-2025-27220, CVE-2025-27221