Critical Vulnerability in pcre2 Package: Out-of-Bounds Write and Denial of Service Risks

pcre2 Updated 14 Oct 2026

Summary

14/10/2026
N/A
Yes i
High
8.2

RLSA-2026:81532: Important: pcre2 security update. Affects pcre2 versions < 0:10.40-7.el9_8. Fixed in 0:10.40-7.el9_8. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The pcre2 package is a modern implementation of the Perl Compatible Regular Expressions library, designed for efficient pattern matching in strings. It supports advanced features such as Just-In-Time (JIT) compilation for improved performance. However, recent security findings have revealed multiple vulnerabilities that could lead to severe consequences, including arbitrary code execution and denial of service.

Vulnerability Detail

The vulnerabilities in the pcre2 package stem from improper handling of regular expressions, leading to out-of-bounds writes and reads. Specifically, crafted regular expressions can exploit these flaws, resulting in arbitrary code execution (CVE-2026-86145) and denial of service (CVE-2026-89160). The vulnerabilities are particularly concerning on 32-bit platforms due to integer overflow issues (CVE-2026-89158). These flaws can be triggered by malicious input, making systems using pcre2 susceptible to attacks.

How To Fix

Minimum fixed version

0:10.40-7.el9_8

This is the first release that contains the fix.

sudo dnf update pcre2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If immediate patching is not feasible, consider restricting the input to the pcre2 library to prevent the use of crafted regular expressions. Implement input validation to ensure that only safe patterns are processed.

Conclusion

The pcre2 package has critical vulnerabilities that require immediate attention. By updating to the latest patched version, users can mitigate the risks associated with these vulnerabilities. Regular monitoring and input validation are also recommended to enhance security.

See every vulnerability recorded for pcre2 →

Share this vulnerability

FAQ

The CVSS score of the vulnerability is 8.2, indicating a high level of severity.

The vulnerability affects systems using the pcre2 package, particularly those running Rocky Linux 9.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

Exploitation of this vulnerability can lead to arbitrary code execution, memory corruption, and denial of service, potentially compromising system integrity.

Yes, Vulert can monitor and alert you in real-time for open-source vulnerabilities using just a manifest file like package-lock.json.

Related vulnerabilities

Recent vulnerabilities recorded for pcre2.

How To Fix

Minimum fixed version

0:10.40-7.el9_8

This is the first release that contains the fix.

sudo dnf update pcre2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback