Integer Overflow or Wraparound Affecting php-bcmath package, versions <0:8.5.11-2.hum1


Severity

Recommended
0.0
medium
0
10

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
0.34% (26th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RHEL10-PHPBCMATH-20234919
  • published29 Sept 2026
  • disclosed1 Jan 2025

Introduced: 1 Jan 2025

CVE-2025-14181  (opens in a new tab)
CWE-190  (opens in a new tab)

How to fix?

Upgrade RHEL:10 php-bcmath to version 0:8.5.11-2.hum1 or higher.
This issue was patched in RHSA-2026:70720.

NVD Description

Note: Versions mentioned in the description apply only to the upstream php-bcmath package and not the php-bcmath package as distributed by RHEL. See How to fix? for RHEL:10 relevant fixed versions and status.

The SOAP HTTP client guards its response buffer growth with a check that relies on signed integer overflow, which is undefined behaviour and is not guaranteed to trigger. When the check is optimised away, a malicious SOAP server can make the client allocate a buffer far smaller than the data it then writes into it, producing a heap buffer overflow.

CVSS Base Scores

version 3.1