PHP security advisory

Out-of-bounds write in BCMath bccomp()

CVE-2026-17544Not rated Published ext/bcmath

bccomp() can write out of bounds with crafted operands.

Affected versions

BranchAffectedFixed in
PHP 8.5< 8.5.98.5.9
PHP 8.4< 8.4.248.4.24

Older branches: not affected

Exploitation conditions

No special conditions are documented.

Remediation

Upgrade to 8.4.24, 8.5.9 or a later release of your branch. If your branch is end-of-life, move to a supported branch. Distribution packages may carry a backported fix under an older version number; confirm with your vendor's security tracker.

A version number alone cannot prove patch status. Linux distributions and hosting providers often backport security fixes without changing the version. Check your vendor’s changelog.

Severity scores

No CVSS score recorded in our dataset yet. Check NVD for the latest scoring.

References

Data provenance

Secondary sources · pending primary verification

Last reviewed: Oct 24, 2026 · Source

Notes: Reported to affect only PHP 8.4 and 8.5. Assembled from secondary sources.