Amazon Linux AMI update for pcre2



Risk Medium
Patch available YES
Number of vulnerabilities 2
CVE-ID CVE-2022-1586
CVE-2022-1587
CWE-ID CWE-125
Exploitation vector Network
Public exploit N/A
Vulnerable software
Amazon Linux AMI
Operating systems & Components / Operating system

pcre2
Operating systems & Components / Operating system package or component

Vendor Amazon Web Services

Security Bulletin

This security bulletin contains information about 2 vulnerabilities.

1) Out-of-bounds read

EUVDB-ID: #VU63945

Risk: Medium

CVSSv4.0: 6.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N/E:U/U:Green]

CVE-ID: CVE-2022-1586

CWE-ID: CWE-125 - Out-of-bounds read

Exploit availability: No

Description

The vulnerability allows a remote attacker to perform a denial of service attack.

The vulnerability exists due to a boundary condition in the PCRE2 library in the compile_xclass_matchingpath() function of the pcre2_jit_compile.c file. A remote attacker can pass specially crafted data to the application, trigger out-of-bounds read error, gain access to sensitive information or perform a denial of service attack.

Mitigation

Update the affected packages:

aarch64:
    pcre2-debuginfo-10.40-1.amzn2023.0.2.aarch64
    pcre2-debugsource-10.40-1.amzn2023.0.2.aarch64
    pcre2-10.40-1.amzn2023.0.2.aarch64
    pcre2-utf32-10.40-1.amzn2023.0.2.aarch64
    pcre2-tools-debuginfo-10.40-1.amzn2023.0.2.aarch64
    pcre2-utf16-10.40-1.amzn2023.0.2.aarch64
    pcre2-utf32-debuginfo-10.40-1.amzn2023.0.2.aarch64
    pcre2-static-10.40-1.amzn2023.0.2.aarch64
    pcre2-devel-10.40-1.amzn2023.0.2.aarch64
    pcre2-tools-10.40-1.amzn2023.0.2.aarch64
    pcre2-utf16-debuginfo-10.40-1.amzn2023.0.2.aarch64

noarch:
    pcre2-syntax-10.40-1.amzn2023.0.2.noarch

src:
    pcre2-10.40-1.amzn2023.0.2.src

x86_64:
    pcre2-static-10.40-1.amzn2023.0.2.x86_64
    pcre2-debugsource-10.40-1.amzn2023.0.2.x86_64
    pcre2-utf16-debuginfo-10.40-1.amzn2023.0.2.x86_64
    pcre2-utf32-10.40-1.amzn2023.0.2.x86_64
    pcre2-debuginfo-10.40-1.amzn2023.0.2.x86_64
    pcre2-tools-10.40-1.amzn2023.0.2.x86_64
    pcre2-utf16-10.40-1.amzn2023.0.2.x86_64
    pcre2-utf32-debuginfo-10.40-1.amzn2023.0.2.x86_64
    pcre2-tools-debuginfo-10.40-1.amzn2023.0.2.x86_64
    pcre2-10.40-1.amzn2023.0.2.x86_64
    pcre2-devel-10.40-1.amzn2023.0.2.x86_64

Vulnerable software versions

Amazon Linux AMI: All versions

pcre2: before 10.40-1

CPE2.3 External links

https://alas.aws.amazon.com/AL2023/ALAS-2023-045.html


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.

2) Out-of-bounds read

EUVDB-ID: #VU65553

Risk: Medium

CVSSv4.0: 2.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N/E:U/U:Green]

CVE-ID: CVE-2022-1587

CWE-ID: CWE-125 - Out-of-bounds read

Exploit availability: No

Description

The vulnerability allows a remote attacker to gain access to potentially sensitive information.

The vulnerability exists due to a boundary condition in the get_recurse_data_length() function in pcre2_jit_compile.c when handling recursions in JIT-compiled regular expressions. A remote attacker can pass specially crafted input to the affected application, trigger an out-of-bounds read error and read contents of memory on the system.

Mitigation

Update the affected packages:

aarch64:
    pcre2-debuginfo-10.40-1.amzn2023.0.2.aarch64
    pcre2-debugsource-10.40-1.amzn2023.0.2.aarch64
    pcre2-10.40-1.amzn2023.0.2.aarch64
    pcre2-utf32-10.40-1.amzn2023.0.2.aarch64
    pcre2-tools-debuginfo-10.40-1.amzn2023.0.2.aarch64
    pcre2-utf16-10.40-1.amzn2023.0.2.aarch64
    pcre2-utf32-debuginfo-10.40-1.amzn2023.0.2.aarch64
    pcre2-static-10.40-1.amzn2023.0.2.aarch64
    pcre2-devel-10.40-1.amzn2023.0.2.aarch64
    pcre2-tools-10.40-1.amzn2023.0.2.aarch64
    pcre2-utf16-debuginfo-10.40-1.amzn2023.0.2.aarch64

noarch:
    pcre2-syntax-10.40-1.amzn2023.0.2.noarch

src:
    pcre2-10.40-1.amzn2023.0.2.src

x86_64:
    pcre2-static-10.40-1.amzn2023.0.2.x86_64
    pcre2-debugsource-10.40-1.amzn2023.0.2.x86_64
    pcre2-utf16-debuginfo-10.40-1.amzn2023.0.2.x86_64
    pcre2-utf32-10.40-1.amzn2023.0.2.x86_64
    pcre2-debuginfo-10.40-1.amzn2023.0.2.x86_64
    pcre2-tools-10.40-1.amzn2023.0.2.x86_64
    pcre2-utf16-10.40-1.amzn2023.0.2.x86_64
    pcre2-utf32-debuginfo-10.40-1.amzn2023.0.2.x86_64
    pcre2-tools-debuginfo-10.40-1.amzn2023.0.2.x86_64
    pcre2-10.40-1.amzn2023.0.2.x86_64
    pcre2-devel-10.40-1.amzn2023.0.2.x86_64

Vulnerable software versions

Amazon Linux AMI: All versions

pcre2: before 10.40-1

CPE2.3 External links

https://alas.aws.amazon.com/AL2023/ALAS-2023-045.html


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.



###SIDEBAR###