Vendors › PHP

CVE-2026-17544

High (no CVSS assigned) EPSS 0.5% PHP · bcmath

Out-of-bounds write in bccomp() via crafted operand and scale

A call to bccomp() with attacker-supplied inputs can lead to an out-of-bounds write to either stack or heap memory. The bug occurs in bc_str2num() when the scale truncates a number whose trailing zeros are subsequently trimmed.

Published2026-07-30
Updated2026-07-30
AffectedPHP versions < 8.4.24; PHP versions < 8.5.9
FixUpgrade to 8.4.24, 8.5.9 (first fixed release per supported branch).
Vendor advisoryhttps://github.com/php/php-src/security/advisories/GHSA-x692-q9x7-8c3f

CVEs (1)

CVECWETypeImpactLinks
CVE-2026-17544CWE-787OverflowCode ExecutionNVD · CVE.org · EUVD

CWE, type and impact come from the NVD enrichment pass; unfilled rows are pending enrichment.

Same CVE in other advisories

Open in the CVEMesh app Create a free account

Track this advisory against your own stack — add your assets and CVEMesh shows which advisories actually apply to the versions you run.

CVEMesh aggregates public vendor advisories as guidance; always verify against the vendor's official advisory before patching or upgrading.