CVE-2026-89161: CWE-590 Free of Memory not on the Heap in PCRE PCRE2
CVE-2026-89161 is a high-severity vulnerability in PCRE2 versions before 10.48. It involves an incorrect free operation in the pcre2_jit_match function when handling a previously copied subject passed as context, leading to a use-after-free or double-free condition.
AI Analysis
Technical Summary
In PCRE2 versions prior to 10.48, the function pcre2_jit_match improperly handles memory management for a previously copied subject passed as a context parameter. This mishandling results in an incorrect free operation on memory not allocated on the heap, classified as CWE-590 (Free of Memory not on the Heap). The vulnerability can lead to memory corruption, potentially causing denial of service or arbitrary code execution. The CVSS 3.1 base score is 7.4, indicating high severity with attack vector local, high attack complexity, no privileges required, no user interaction, and impacts on confidentiality, integrity, and availability.
Potential Impact
Successful exploitation of this vulnerability can cause memory corruption due to freeing memory not allocated on the heap. This can lead to application crashes (denial of service) or potentially allow an attacker to execute arbitrary code with the privileges of the affected application. The attack requires local access and has high complexity, limiting ease of exploitation.
Mitigation Recommendations
A fix is available in PCRE2 version 10.48 and later. Users should upgrade to version 10.48 or newer to remediate this vulnerability. No vendor advisory content was provided, but the affected versions are explicitly stated and the patch version is known.
CVE-2026-89161: CWE-590 Free of Memory not on the Heap in PCRE PCRE2
Description
CVE-2026-89161 is a high-severity vulnerability in PCRE2 versions before 10.48. It involves an incorrect free operation in the pcre2_jit_match function when handling a previously copied subject passed as context, leading to a use-after-free or double-free condition.
CVSS v3.1
Score 7.4high
Affected software
PCRE
PCRE2
pkg:github/pcre2project/pcre2Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
In PCRE2 versions prior to 10.48, the function pcre2_jit_match improperly handles memory management for a previously copied subject passed as a context parameter. This mishandling results in an incorrect free operation on memory not allocated on the heap, classified as CWE-590 (Free of Memory not on the Heap). The vulnerability can lead to memory corruption, potentially causing denial of service or arbitrary code execution. The CVSS 3.1 base score is 7.4, indicating high severity with attack vector local, high attack complexity, no privileges required, no user interaction, and impacts on confidentiality, integrity, and availability.
Potential Impact
Successful exploitation of this vulnerability can cause memory corruption due to freeing memory not allocated on the heap. This can lead to application crashes (denial of service) or potentially allow an attacker to execute arbitrary code with the privileges of the affected application. The attack requires local access and has high complexity, limiting ease of exploitation.
Mitigation Recommendations
A fix is available in PCRE2 version 10.48 and later. Users should upgrade to version 10.48 or newer to remediate this vulnerability. No vendor advisory content was provided, but the affected versions are explicitly stated and the patch version is known.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- mitre
- Date Reserved
- 2026-09-11T04:11:51.278Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6aa380d491cc7f3848a3b522
Added to database: 09/11/2026, 04:17:24 UTC
Last enriched: 09/11/2026, 04:31:51 UTC
Last updated: 09/11/2026, 04:39:58 UTC
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.