Debian DLA-3363-1 : pcre2 - LTS security update

critical Nessus Plugin ID 172599

Synopsis

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

Description

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

- An out-of-bounds read was discovered in PCRE before 10.34 when the pattern \X is JIT compiled and used to match specially crafted subjects in non-UTF mode. Applications that use PCRE to parse untrusted input may be vulnerable to this flaw, which would allow an attacker to crash the application. The flaw occurs in do_extuni_no_utf in pcre2_jit_compile.c. (CVE-2019-20454)

- An out-of-bounds read vulnerability was discovered in the PCRE2 library in the compile_xclass_matchingpath() function of the pcre2_jit_compile.c file. This involves a unicode property matching issue in JIT-compiled regular expressions. The issue occurs because the character was not fully read in case-less matching within JIT. (CVE-2022-1586)

- An out-of-bounds read vulnerability was discovered in the PCRE2 library in the get_recurse_data_length() function of the pcre2_jit_compile.c file. This issue affects recursions in JIT-compiled regular expressions caused by duplicate data transfers. (CVE-2022-1587)

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 pcre2 packages.

For Debian 10 buster, these problems have been fixed in version 10.32-5+deb10u1.

See Also

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1011954

https://security-tracker.debian.org/tracker/source-package/pcre2

https://www.debian.org/lts/security/2023/dla-3363

https://security-tracker.debian.org/tracker/CVE-2019-20454

https://security-tracker.debian.org/tracker/CVE-2022-1586

https://security-tracker.debian.org/tracker/CVE-2022-1587

https://packages.debian.org/source/buster/pcre2

Plugin Details

Severity: Critical

ID: 172599

File Name: debian_DLA-3363.nasl

Version: 1.1

Type: local

Agent: unix

Published: 3/16/2023

Updated: 8/30/2023

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

Risk Information

VPR

Risk Factor: Medium

Score: 6.0

CVSS v2

Risk Factor: Medium

Base Score: 6.4

Temporal Score: 5.3

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

CVSS Score Source: CVE-2022-1587

CVSS v3

Risk Factor: Critical

Base Score: 9.1

Temporal Score: 8.4

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

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

Vulnerability Information

CPE: p-cpe:/a:debian:debian_linux:libpcre2-16-0, p-cpe:/a:debian:debian_linux:libpcre2-32-0, p-cpe:/a:debian:debian_linux:libpcre2-8-0, p-cpe:/a:debian:debian_linux:libpcre2-dbg, p-cpe:/a:debian:debian_linux:libpcre2-dev, p-cpe:/a:debian:debian_linux:libpcre2-posix0, p-cpe:/a:debian:debian_linux:pcre2-utils, cpe:/o:debian:debian_linux:10.0

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

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 3/16/2023

Vulnerability Publication Date: 2/14/2020

Reference Information

CVE: CVE-2019-20454, CVE-2022-1586, CVE-2022-1587