bccomp() can write out of bounds with crafted operands.
Affected versions
| Branch | Affected | Fixed in |
|---|---|---|
| PHP 8.5 | < 8.5.9 | 8.5.9 |
| PHP 8.4 | < 8.4.24 | 8.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 verificationLast reviewed: Oct 24, 2026 · Source
Notes: Reported to affect only PHP 8.4 and 8.5. Assembled from secondary sources.