CVE-2026-17544
Analyzed Analyzed - Analysis Complete

Out-of-Bounds Write in PHP via bccomp()

Vulnerability report for CVE-2026-17544, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-30

Last updated on: 2026-08-05

Assigner: PHP Group

Description

Attacker-provided inputs to bccomp() could lead to an out-of-bounds write with stack and heap corruption in PHP versions from 8.4.* before 8.4.24 and from 8.5.* before 8.5.9.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-30
Last Modified
2026-08-05
Generated
2026-08-19
AI Q&A
2026-07-30
EPSS Evaluated
2026-08-18
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
php php From 8.4.0 (inc) to 8.4.24 (exc)
php php From 8.5.0 (inc) to 8.5.9 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-787 The product writes data past the end, or before the beginning, of the intended buffer.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

CVE-2026-17544 is a high-severity vulnerability in PHP's ext-bcmath extension affecting the bccomp() function. It allows an out-of-bounds write attack when processing crafted inputs due to improper handling of the fractional_end pointer in bc_str2num(). This causes buffer overflow leading to stack or heap corruption.

Detection Guidance

To detect this vulnerability, check your PHP version using 'php -v'. If your version is 8.4.* before 8.4.24 or 8.5.* before 8.5.9, the system is vulnerable. Inspect applications using the ext-bcmath extension, particularly those calling bccomp(). Enable PHP error logging to detect crashes or memory corruption during input processing.

Impact Analysis

An attacker could exploit this to execute arbitrary code, crash applications, or gain unauthorized access to systems running vulnerable PHP versions before 8.4.24 or 8.5.9. It may also enable data theft or system compromise depending on the application's context.

Compliance Impact

This vulnerability could lead to unauthorized data access or modification, violating GDPR's integrity and confidentiality principles or HIPAA's security requirements. Organizations must patch systems to maintain compliance and prevent potential regulatory penalties.

Mitigation Strategies

Immediately upgrade PHP to version 8.4.24 or later, or 8.5.9 or later, depending on your branch. If upgrading is not possible, disable the ext-bcmath extension in php.ini by setting 'extension=bcmath' to ';extension=bcmath'. Monitor logs for signs of exploitation attempts targeting bccomp().

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-17544. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart