Arbitrary Code Injection Affecting php-mbstring package, versions <0:5.1.6-3.el4s1.10


Severity

Recommended
low

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
4.7% (91st 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-9845176
  • published28 Apr 2025
  • disclosed4 Sept 2007

Introduced: 4 Sep 2007

CVE-2007-4782  (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.6-3.el4s1.10 or higher.
This issue was patched in RHSA-2008:0582.

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.

PHP before 5.2.3 allows context-dependent attackers to cause a denial of service (application crash) via (1) a long string in the pattern parameter to the glob function; or (2) a long string in the string parameter to the fnmatch function, accompanied by a pattern parameter value with undefined characteristics, as demonstrated by a "*[1]e" value. NOTE: this might not be a vulnerability in most web server environments that support multiple threads, unless these issues can be demonstrated for code execution.

CVSS Base Scores

version 3.1