Skip to main content

PHP CVE-2026-17544

| EUVDEUVD-2026-51091 HIGH
Out-of-bounds Write (CWE-787)
2026-07-30 php
8.1
CVSS 4.0 · Vendor: php
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify endpoint passing input to bccomp()
  2. Delivery
    Submit crafted numeric string
  3. Exploit
    Trigger out-of-bounds write in BCMath
  4. Execution
    Corrupt heap and stack memory
  5. Impact
    Crash worker or execute code in PHP process

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The specific prerequisite is that attacker-controlled input must reach a call to the BCMath bccomp() function in a PHP build with the BCMath extension enabled, running an affected version (8.4.0-8.4.23 or 8.5.0-8.5.8). This limits exploitation to applications that expose bccomp() (or wrappers) to external data - PHP deployments without BCMath, or that never pass untrusted input to bccomp(), are not practically exploitable. While the CVSS vector is AV:N/AC:L/PR:N/UI:N (network-reachable, unauthenticated, no user interaction at the function level), the effective attack surface is bounded by application design and the difficulty of converting an out-of-bounds write into reliable code execution; the CVSS E:U marks exploitation as unproven.

Impact

The vendor CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H) yields 8.1 (High) and implies remote, unauthenticated, low-complexity reachability with full triad impact - but this rating treats the function as if attacker input always reaches it. In practice, exploitation is conditional on an application actually passing attacker-controlled data into bccomp() with the BCMath extension loaded, which is not a universal PHP configuration; this real-world reachability gap should temper the raw score. The CVSS E:U (Exploit: Unproven) subscore and the absence of any KEV listing or public POC indicate no confirmed exploitation. This is a legitimately serious memory-corruption bug in ubiquitous software and warrants prompt patching, but the lack of a proven exploit and the application-dependent trigger make it a priority-but-not-emergency issue rather than an actively-exploited crisis. Note the conflict worth verifying: the vector's AC:L understates the difficulty of turning an OOB write into reliable code execution and of ensuring attacker input reaches bccomp().

Exploit ScenarioDerived

An attacker submits a specially crafted numeric string to a web endpoint that ultimately passes the value to bccomp() (for example, a financial or comparison routine using BCMath), triggering an out-of-bounds write that corrupts heap and stack memory. Given AV:N and the memory-corruption nature, a successful write could crash the PHP worker (denial of service) or, with a reliable exploitation primitive, achieve code execution in the interpreter process. No public exploit is identified at time of analysis, so weaponization remains theoretical.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 30, 2026

Out-of-bounds write in PHP's BCMath bccomp() function allows attacker-controlled inputs to corrupt stack and heap memory in PHP 8.4.x before 8.4.24 and 8.5.x before 8.5.9, with high confidentiality, integrity, and availability impact per the vendor CVSS 4.0 score of 8.1. Exploitation requires an application to pass attacker-influenced values into bccomp() with the BCMath extension enabled; there is no public exploit identified at time of analysis (CVSS E:U, no KEV listing). Memory corruption of this class can lead to crashes and, potentially, arbitrary code execution within the PHP process.

RemediationAI

Vendor-released patch: upgrade to PHP 8.4.24 or later on the 8.4 branch, or PHP 8.5.9 or later on the 8.5 branch, per the PHP security advisory GHSA-x692-q9x7-8c3f (https://github.com/php/php-src/security/advisories/GHSA-x692-q9x7-8c3f). If immediate patching is not possible, compensating controls include disabling the BCMath extension where it is not required (trade-off: any application relying on bccomp/bcadd/etc. will break), and adding strict server-side validation/normalization of numeric string inputs before they reach bccomp() to reject malformed or oversized values (trade-off: requires code review of all call sites and may reject legitimate edge-case inputs). Where BCMath is needed, restrict which endpoints accept user-supplied numeric arguments and enforce length/format limits at the application boundary.

Affected VersionsENISA

PHP 8.4.* <8.4.24
PHP 8.5.* <8.5.9

Affected Packages

euvd php_8_4 fix: 8.4.24
euvd php_8_5 fix: 8.5.9

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw resides in PHP's BCMath extension, specifically the bccomp() function used for arbitrary-precision decimal comparison. Per CWE-787 (Out-of-bounds Write), the root cause is a memory-safety defect in which improperly validated numeric string inputs cause writes past allocated buffer boundaries, corrupting both stack and heap regions of the PHP interpreter's memory. The affected CPE cpe:2.3:a:php_group:php identifies the PHP interpreter itself; because BCMath processes user-supplied numeric strings, any code path where external data reaches bccomp() (directly or via a wrapper) exposes the interpreter to memory corruption. The tags PHP, Buffer Overflow, and Memory Corruption corroborate this as a classic buffer-boundary write in the interpreter's C code.

Know when PHP gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (php) PRIMARY 8.1 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/AU:N
ENISA EUVD HIGH
vuln.today AI 8.1 HIGH

AV:N since input can arrive remotely; AC:H because reaching bccomp() with attacker data is application-dependent and converting an OOB write to code execution is nontrivial; PR:N as the function needs no privileges; C/I/A:H for memory corruption in the interpreter.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE 9.1 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
Red Hat 8.1 HIGH

Primary rating from Vendor (php).

CVSS VectorVendor: php

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Jul 30, 2026 - 12:03 EUVD
CVE Published
Jul 30, 2026 - 11:22 cve.org
HIGH 8.1

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

Organizations running PHP 8.4 or 8.5 with the BCMath extension face potential application crashes and data compromise due to a memory corruption vulnerability (CVE-2026-17544) in the bccomp() function. Without a currently available patch, affected systems require immediate interim controls to prevent exploitation through malicious input. This vulnerability poses a direct threat to application availability and security posture for any organization dependent on affected PHP versions.

Business Impact: High
Compensating Controls

Disable BCMath extension if operationally feasible; implement strict input validation and sanitization for all data passed to bccomp() functions; deploy web application firewall rules to detect and block exploit attempts targeting bccomp(); monitor vendor advisories for patch availability.

Threat Intelligence Overview

EPSS Score
0.4%
Top 65% exploitable
Prevalence
Ubiquitous
PHP powers a large fraction of web servers worldwide
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
9 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment NCSC-NL Vendor CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Total

Priority Score

45
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +40
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: +5

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

Vendor StatusVendor

SUSE

Severity: Critical
Product Status
openSUSE Tumbleweed Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Affected
SUSE Linux Enterprise Module for Legacy 15 SP7 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP7 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy