Integer Overflow or Wraparound Affecting php-bcmath package, versions <0:5.4.16-36.el7_1


Severity

Recommended
high

Based on CentOS security rating.

Threat Intelligence

EPSS
69.98% (99th 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-CENTOS7-PHPBCMATH-2049351
  • published26 Jul 2021
  • disclosed14 May 2015

Introduced: 14 May 2015

CVE-2015-4021  (opens in a new tab)
CWE-190  (opens in a new tab)
CWE-125  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

Upgrade Centos:7 php-bcmath to version 0:5.4.16-36.el7_1 or higher.

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 Centos. See How to fix? for Centos:7 relevant fixed versions and status.

The phar_parse_tarfile function in ext/phar/tar.c in PHP before 5.4.41, 5.5.x before 5.5.25, and 5.6.x before 5.6.9 does not verify that the first character of a filename is different from the \0 character, which allows remote attackers to cause a denial of service (integer underflow and memory corruption) via a crafted entry in a tar archive.

CVSS Scores

version 3.1