Arbitrary Code Injection Affecting php-mbstring package, versions <0:5.1.4-1.el4s1.4


Severity

Recommended
high

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
15.39% (97th 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-PHPMBSTRING-9862083
  • published28 Apr 2025
  • disclosed30 Sept 2006

Introduced: 30 Sep 2006

CVE-2006-4812  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade RHEL:10 php-mbstring to version 0:5.1.4-1.el4s1.4 or higher.
This issue was patched in RHSA-2006:0688.

NVD Description

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

Integer overflow in PHP 5 up to 5.1.6 and 4 before 4.3.0 allows remote attackers to execute arbitrary code via an argument to the unserialize PHP function with a large value for the number of array elements, which triggers the overflow in the Zend Engine ecalloc function (Zend/zend_alloc.c).

CVSS Base Scores

version 3.1