Live Exposure Defense: From CVE to Confirmed Exposure in 12 Hours – See more

New CVE Detected

CVE-2026-17544 – Out-of-Bounds Write / Potential RCE – PHP BCMath Extension (8.4.x before 8.4.24,…

Be the first to know when new zero-days emerge:

Summary

CVE-2026-17544 is a high-severity out-of-bounds write vulnerability (CWE-787 / CWE-121) in the BCMath extension of PHP, affecting versions 8.4.x before 8.4.24 and 8.5.x before 8.5.9. The flaw is reachable via the bccomp() function when supplied with attacker-controlled operands and a scale parameter, and can result in stack or heap memory corruption with potential for Remote Code Execution. It carries a CVSS v4.0 base score of 8.1 (HIGH) with no privileges or user interaction required.

Technical details

  • Root cause: In bc_str2num() (within ext/bcmath/libbcmath/src/str2num.c), when a fractional value is first truncated to a caller-supplied scale and then stripped of trailing zeros, the internal variable str_scale is decremented but fractional_end is not updated to match. As a result, bc_copy_and_toggle_bcd() subsequently copies more bytes than were allocated by bc_new_num_nonzeroed().
  • Trigger conditions: The vulnerability is reachable via a call to bccomp($num1, $num2, $scale) — for example, bccomp("1.901", "0", 2) — where numeric inputs are attacker-controlled. Exploitation requires untrusted user input to flow into BCMath comparison functions.
  • Attack vector: Network — no authentication, no privileges, and no user interaction are required (CVSS v4.0: AV:N/AC:L/AT:N/PR:N/UI:N).
  • Memory impact: For small numbers allocated from PHP BCMath’s 256-byte stack arena, the mismatch produces a stack-based out-of-bounds write. Larger allocations fall through to the heap, making heap corruption also possible.
  • Potential impact: Memory corruption enabling Remote Code Execution, or severe denial of service; rated High across Confidentiality, Integrity, and Availability (VC:H/VI:H/VA:H in CVSS v4.0).
  • No public proof-of-concept has been observed at time of publication.

Affected software

  • PHP 8.4.x — all versions before 8.4.24
  • PHP 8.5.x — all versions before 8.5.9

Severity

  • CVSS v4.0 Base Score: 8.1 (HIGH)
  • 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

Mitigation and recommended actions

  • Immediate — apply the vendor patch:
    • PHP 8.4.x users: upgrade to PHP 8.4.24 or later.
    • PHP 8.5.x users: upgrade to PHP 8.5.9 or later.
  • If immediate patching is not possible: Review application code to identify any code path where user-supplied values flow into bccomp() or other BCMath functions, and apply strict input validation and type enforcement to prevent attacker-controlled scale or operand values from reaching the extension.
  • Network-level mitigation: Where internet-exposed PHP endpoints use BCMath for financial or precision arithmetic, consider placing a Web Application Firewall (WAF) in front to flag or block anomalous numeric payloads while patching is in progress.

IONIX Status

The IONIX research team is tracking ongoing exploitation attempts and recommends immediate patching. Potentially affected assets are outlined in this post.

References

Are you exposed?

Get a free report of your organization’s exposure to this CVE and threat

How IONIX’s External Exposure Management Platform Detects and Validates
Zero-Days to Shrink MTTR

1

Map your entire attack surface (continously)

IONIX uses multi-factor discovery methods, including DNS analysis, certificate mapping, metadata inspection, and more, to automatically map every internet-facing asset across your environment. This includes cloud instances, third-party platforms, shadow IT, and even forgotten infrastructure that traditional tools miss.

2

Monitor for new CVEs

Dozens of threat intel feeds using agentic technology are continuously analyzed to detect the appearance of proof-of-concept code, exploit kits, and indicators of active targeting. IONIX goes further by applying AI to proactively evaluate whether emerging vulnerabilities are likely to be exploited, even before PoCs go public.

3

Identify Potential External Exposures

Not all CVEs matter. IONIX filters vulnerabilities by asking attacker-centric questions: Can it be reached from the internet? Does it require authentication? Is it being exploited in the wild? This dramatically reduces noise and focuses teams on threats that can actually be weaponized.

4

Create Safe, Scalable Exploit Validations

IONIX transforms real-world PoCs into safe, non-intrusive test payloads that can be run in production environments without disruption. These simulations are precisely targeted to the systems that are vulnerable, ensuring rapid validation without unnecessary load.

5

Execute Exploit Validations

By combining context about software stack, versioning, exposure status, and reachability, IONIX ensures that only the right payloads are executed against the right assets, maximizing efficiency and minimizing risk.

6

Drive Fast and Actionable Remediation

Results are routed through integrations with ticketing, SOAR, and SIEM tools. Issues are written in plain language, bundled into remediation clusters, and prioritized based on asset criticality, exploitability, and blast radius. This shortens mean time to remediation (MTTR) and empowers teams to act with confidence.

Are you exposed?

Get a free report of your organization’s exposure to this CVE and threat

Subscribe to Threat Center RSS

Copy/paste the link below into your preferred RSS reader or follow these instructions to subscribe to Slack alerts.

Get Real-Time CVE Alerts to Your Email

Be the first to know when new zero-days emerge