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.
Published: 2026-07-30
Score: 8.1 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Attacker‑supplied data to the bccomp() function in PHP can trigger an out‑of‑bounds write, causing corruption of both stack and heap memory. This memory corruption could result in arbitrary code execution by an attacker who is able to supply crafted operands and scale values to bccomp(). The vulnerability is identified as a buffer overrun (CWE‑787) and is ranked as high severity.

Affected Systems

The flaw affects PHP version 8.4.x prior to 8.4.24 and PHP version 8.5.x prior to 8.5.9. Systems running these PHP releases with any code paths that invoke bccomp() are potentially vulnerable; PHP Group:PHP is the affected vendor.

Risk and Exploitability

The CVSS score of 8.1 indicates a high impact, and the EPSS score of < 1% indicates a low probability of exploitation, while the absence of a KEV listing does not reduce the likelihood of exploitation. Given that bccomp() accepts attacker‑controlled input, the likely attack vector is remote and can be exercised via web applications or services that use bccomp(). An attacker who can supply the proper inputs can exploit the vulnerability to corrupt memory, potentially leading to arbitrary code execution on the affected host.

Generated by OpenCVE AI on August 4, 2026 at 11:45 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade PHP to 8.4.24 or later, or 8.5.9 or later, as these releases contain the fix for the buffer overrun in bccomp().
  • Redeploy or restart the application environment to ensure the updated PHP runtime is in use.
  • Audit application code to identify any usage of bccomp(); if the function is unnecessary, consider disabling it or refactoring the code to avoid the vulnerable routine.

Generated by OpenCVE AI on August 4, 2026 at 11:45 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DSA Debian DSA DSA-6406-1 php8.4 security update
History

Wed, 05 Aug 2026 12:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'}

threat_severity

Important


Thu, 30 Jul 2026 13:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 30 Jul 2026 12:45:00 +0000

Type Values Removed Values Added
First Time appeared Php Group
Php Group php
Vendors & Products Php Group
Php Group php

Thu, 30 Jul 2026 11:30:00 +0000

Type Values Removed Values Added
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.
Title Out-of-bounds write in bccomp() via crafted operand and scale
Weaknesses CWE-787
References
Metrics cvssV4_0

{'score': 8.1, 'vector': '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: php

Published:

Updated: 2026-07-31T03:55:47.261Z

Reserved: 2026-07-27T10:14:42.318Z

Link: CVE-2026-17544

cve-icon Vulnrichment

Updated: 2026-07-30T12:17:49.362Z

cve-icon NVD

Status : Analyzed

Published: 2026-07-30T12:17:27.347

Modified: 2026-08-05T19:40:18.413

Link: CVE-2026-17544

cve-icon Redhat

Severity : Important

Publid Date: 2026-07-30T11:22:24Z

Links: CVE-2026-17544 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-04T12:00:10Z

Weaknesses