Integer Overflow or Wraparound Affecting php-bcmath package, versions <0:5.3.3-14.el6_3


Severity

Recommended
0.0
medium
0
10

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
23.12% (96th 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 Learn

Learn about Integer Overflow or Wraparound vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RHEL6-PHPBCMATH-1443325
  • published26 Jul 2021
  • disclosed21 May 2012

Introduced: 21 May 2012

CVE-2012-2386  (opens in a new tab)
CWE-190  (opens in a new tab)
CWE-122  (opens in a new tab)

How to fix?

Upgrade RHEL:6 php-bcmath to version 0:5.3.3-14.el6_3 or higher.
This issue was patched in RHSA-2012:1046.

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:6 relevant fixed versions and status.

Integer overflow in the phar_parse_tarfile function in tar.c in the phar extension in PHP before 5.3.14 and 5.4.x before 5.4.4 allows remote attackers to cause a denial of service (application crash) or possibly execute arbitrary code via a crafted tar file that triggers a heap-based buffer overflow.

CVSS Base Scores

version 3.1