Ubuntu 20.04 LTS / 22.04 LTS : rust-regex vulnerability (USN-5610-1)

high Nessus Plugin ID 165084

Synopsis

The remote Ubuntu host is missing a security update.

Description

The remote Ubuntu 20.04 LTS / 22.04 LTS host has packages installed that are affected by a vulnerability as referenced in the USN-5610-1 advisory.

- regex is an implementation of regular expressions for the Rust language. The regex crate features built-in mitigations to prevent denial of service attacks caused by untrusted regexes, or untrusted input matched by trusted regexes. Those (tunable) mitigations already provide sane defaults to prevent attacks. This guarantee is documented and it's considered part of the crate's API. Unfortunately a bug was discovered in the mitigations designed to prevent untrusted regexes to take an arbitrary amount of time during parsing, and it's possible to craft regexes that bypass such mitigations. This makes it possible to perform denial of service attacks by sending specially crafted regexes to services accepting user-controlled, untrusted regexes. All versions of the regex crate before or equal to 1.5.4 are affected by this issue. The fix is include starting from regex 1.5.5. All users accepting user-controlled regexes are recommended to upgrade immediately to the latest version of the regex crate. Unfortunately there is no fixed set of problematic regexes, as there are practically infinite regexes that could be crafted to exploit this vulnerability.
Because of this, it us not recommend to deny known problematic regexes. (CVE-2022-24713)

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

Solution

Update the affected packages.

See Also

https://ubuntu.com/security/notices/USN-5610-1

Plugin Details

Severity: High

ID: 165084

File Name: ubuntu_USN-5610-1.nasl

Version: 1.4

Type: local

Agent: unix

Published: 9/14/2022

Updated: 7/12/2023

Supported Sensors: Frictionless Assessment AWS, Frictionless Assessment Azure, Frictionless Assessment Agent, Nessus Agent, Agentless Assessment, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 4.4

CVSS v2

Risk Factor: Medium

Base Score: 5

Temporal Score: 3.9

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

CVSS Score Source: CVE-2022-24713

CVSS v3

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.7

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

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

Vulnerability Information

CPE: p-cpe:/a:canonical:ubuntu_linux:librust-regex%2bdefault-dev, p-cpe:/a:canonical:ubuntu_linux:librust-regex%2bmemchr-dev, p-cpe:/a:canonical:ubuntu_linux:librust-regex%2bperf-dev, p-cpe:/a:canonical:ubuntu_linux:librust-regex%2bperf-literal-dev, p-cpe:/a:canonical:ubuntu_linux:librust-regex%2bunicode-age-dev, p-cpe:/a:canonical:ubuntu_linux:librust-regex%2bunicode-bool-dev, p-cpe:/a:canonical:ubuntu_linux:librust-regex%2bunicode-case-dev, p-cpe:/a:canonical:ubuntu_linux:librust-regex%2bunicode-dev, p-cpe:/a:canonical:ubuntu_linux:librust-regex%2bunicode-gencat-dev, p-cpe:/a:canonical:ubuntu_linux:librust-regex%2bunicode-perl-dev, p-cpe:/a:canonical:ubuntu_linux:librust-regex%2bunicode-script-dev, p-cpe:/a:canonical:ubuntu_linux:librust-regex%2bunicode-segment-dev, p-cpe:/a:canonical:ubuntu_linux:librust-regex-dev, cpe:/o:canonical:ubuntu_linux:20.04:-:lts, cpe:/o:canonical:ubuntu_linux:22.04:-:lts, p-cpe:/a:canonical:ubuntu_linux:librust-regex%2baho-corasick-dev

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

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 9/14/2022

Vulnerability Publication Date: 3/8/2022

Reference Information

CVE: CVE-2022-24713

USN: 5610-1