Improper Input Validation Affecting php-mbstring package, versions <0:5.1.6-3.el4s1.8


Severity

Recommended
low

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
2.99% (86th 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-9845090
  • published28 Apr 2025
  • disclosed30 Aug 2007

Introduced: 30 Aug 2007

CVE-2007-3998  (opens in a new tab)
CWE-20  (opens in a new tab)

How to fix?

Upgrade RHEL:10 php-mbstring to version 0:5.1.6-3.el4s1.8 or higher.
This issue was patched in RHSA-2007:0891.

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.

The wordwrap function in PHP 4 before 4.4.8, and PHP 5 before 5.2.4, does not properly use the breakcharlen variable, which allows remote attackers to cause a denial of service (divide-by-zero error and application crash, or infinite loop) via certain arguments, as demonstrated by a 'chr(0), 0, ""' argument set.

References

CVSS Base Scores

version 3.1