CVE-2026-17544: Out-of-bounds write in PHP BCMath bccomp()
- Vendor
- PHP Group
CVE-2026-17544 is an out-of-bounds write vulnerability in PHP's BCMath extension affecting PHP 8.4.x before 8.4.24 and 8.5.x before 8.5.9. When bccomp() processes attacker-controlled numeric strings with a specific scale value, bc_str2num() can truncate fractional digits and remove trailing zeroes, reducing the allocated buffer size without updating the endpoint of the fractional data being copied. The resulting out-of-bounds write can corrupt stack or heap memory, causing crashes and potentially arbitrary code execution.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Exploitation can corrupt stack or heap memory and cause denial of service through PHP crashes. Arbitrary code execution is also possible, with exploitability depending on application conditions and the runtime environment. Remote, unauthenticated exploitation is reported for affected Oracle Communications Unified Assurance deployments.
Mitigation
If you can’t patch tonight, do this now.
No vulnerability-specific vendor workaround is established. Until updates are installed, limit exposure of PHP applications to untrusted input, restrict access to affected application interfaces, and apply least-privilege controls to PHP service accounts. These measures reduce exposure but do not correct the memory-corruption defect.
Remediation
Patch, then assume compromise.
Upgrade PHP 8.4.x to 8.4.24 or later, or PHP 8.5.x to 8.5.9 or later. The fix updates the fractional endpoint after zero truncation so copied data fits the allocated buffer. For distribution packages, install the vendor-patched release: Ubuntu 26.04 LTS PHP 8.5.4-0ubuntu1.3, Debian trixie php8.4 8.4.24-1~deb13u1 or later, or the Red Hat Enterprise Linux 10.2 updates covered by RHSA-2026:56969. Applicable Tanzu deployments can use PHP Buildpack 4.6.82, which explicitly includes the fix. Affected Oracle Communications deployments should apply the relevant September 2026 Critical Patch Update.
Exploits
1 exploit validated by Mallory's analysis. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Frequently asked questions
- Is CVE-2026-17544 exploited in the wild?
- As of Oct 8, 2026, Mallory has no reports of CVE-2026-17544 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-17544?
- Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2026-17544, the earliest disclosed Aug 15, 2026.
- Is there a patch for CVE-2026-17544?
- Upgrade PHP 8.4.x to 8.4.24 or later, or PHP 8.5.x to 8.5.9 or later. The fix updates the fractional endpoint after zero truncation so copied data fits the allocated buffer.
- What products are affected by CVE-2026-17544?
- PHP Group Php.
- How severe is CVE-2026-17544?
- CVE-2026-17544 has a CVSS v4 score of 8.1 (High) and an EPSS score of 0.42% (37th percentile) as of Oct 8, 2026.
Recent activity
19 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.