Safeguard
Vulnerability Analysis•

CVE-2026-89161: High Invalid Free in JIT in PCRE2

CVE-2026-89161 is a high invalid free in jit flaw in PCRE2 (7.4). Check your version, apply the fix and limit access until you have. Steps inside.

Safeguard Security Team
3 min read

CVE-2026-89161 is a high severity invalid free in jit flaw in PCRE2, scored 7.4. PCRE2 10.48. Check your installed version against the affected list below, then patch or restrict access until you can. The record does not flag it as exploited.

What's affected

  • PCRE2 before 10.48.

Severity in the record: High (7.4), vector CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H. Weakness: CWE-590.

Fix: PCRE2 10.48.

How to check if you're exposed

  1. Check the library version: pcre2-config --version or pkg-config --modversion libpcre2-8.
  2. Check whether your application uses JIT matching (pcre2_jit_match).

Run these on every host, image and build that could carry the component. Dependency files in repositories and base images in registries are easy to miss.

What to do now

  1. Confirm the version of every affected system using the checks above.
  2. Read the vendor advisory linked in Sources and note the fixed version for your release line.
  3. Schedule the update, starting with systems that face untrusted networks or hold the most sensitive data.
  4. In the meantime: rebuild statically linked applications against 10.48.
  5. Record the change, then recheck the version to confirm it took effect.

Why it matters

pcre2_jit_match mishandles a previously copied subject passed in as a context, and an incorrect free can occur (CWE-590, free of memory not on the heap). The record rates it 7.4 with local vector and high complexity. Exposure needs code that calls the JIT match function in that pattern.

The record's KEV flag is false, so this post makes no claim that the flaw is exploited in the wild. That can change, so recheck the CISA catalog from time to time.

Libraries like this often arrive as transitive dependencies, so the version in your lockfile may not be one you chose. Safeguard's free in-browser dependency scan can show whether the package is in a project, and reachability analysis helps separate code paths that call the weak function from those that never do.

Try it yourself

Click through it at your own pace, or open it full screen.

The vector string in the record is a compact summary of how the flaw is reached and what it costs. AV is the attack vector (network, adjacent or local), PR is the privilege the attacker needs, and the C, I and A letters give the impact on confidentiality, integrity and availability. Read it against your own network layout rather than relying on the score alone.

After you patch

Patching is not the end of the job. Recheck the version on each system, because an upgrade that failed or rolled back looks the same as a success until someone looks. Keep the advisory link with your change record so the next reviewer can see why the update happened.

If you cannot patch soon, write down the reason, the compensating control you chose and a date to revisit. Exceptions without a date tend to become permanent.

Quick check

What is the fix?

Upgrade to PCRE2 10.48.

Sources

Last reviewed: 18 October 2026.

Never miss an update

Weekly insights on software supply chain security, delivered to your inbox.

Self-healing security runs on Safeguard.

Your first fix PR is minutes away.

No sales call required, even your agent can complete the purchase over MCP.