CVE-2019-20454
PHP vulnerability analysis and mitigation

Overview

CVE-2019-20454 is an out-of-bounds read vulnerability discovered in PCRE (Perl Compatible Regular Expression) versions before 10.34. The vulnerability occurs when the pattern \X is JIT compiled and used to match specially crafted subjects in non-UTF mode. The flaw was discovered in February 2020 and specifically occurs in the do_extuni_no_utf function in pcre2_jit_compile.c (CVE-MITRE, NVD).

Technical details

The vulnerability is triggered when pattern \X is JIT-compiled with the PCRE2_JIT_COMPLETE option and then matched against particular subjects in non-UTF mode. The flaw occurs in the do_extuni_no_utf function within pcre2_jit_compile.c, which uses the GETCHARINC macro to read a character. When an invalid UTF character is encountered, the value read becomes too large, causing an out-of-bounds read in the subsequent UCD_GRAPHBREAK macro execution (Red Hat Bugzilla).

Impact

Applications that use PCRE to parse untrusted input may be vulnerable to this flaw. When exploited, the vulnerability can lead to application crashes and denial of service conditions. The impact is particularly relevant when PCRE is used with JIT compilation enabled (Gentoo Security, Debian LTS).

Mitigation and workarounds

The vulnerability has been fixed in PCRE version 10.34 and later. Users are advised to upgrade to the latest version of PCRE2. For systems where immediate upgrade is not possible, disabling JIT compilation can serve as a temporary workaround. Various Linux distributions have released security updates addressing this vulnerability, including Red Hat Enterprise Linux 8, Fedora, and Debian (Debian LTS, Fedora Update).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-21857HIGH8.3
  • PHPPHP
  • redaxo/source
NoYesJan 07, 2026
CVE-2025-61676MEDIUM6.1
  • PHPPHP
  • october/system
NoYesJan 10, 2026
CVE-2025-61674MEDIUM6.1
  • PHPPHP
  • october/system
NoYesJan 10, 2026
CVE-2026-21896MEDIUM5.8
  • PHPPHP
  • getkirby/cms
NoYesJan 08, 2026
CVE-2026-22242MEDIUM4.9
  • PHPPHP
  • coreshop/core-shop
NoYesJan 08, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management