CVE-2016-4538Improper Input Validation in PHP

Severity
9.8CRITICALNVD
OSV7.3
EPSS
6.5%
top 8.87%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedMay 22
Latest updateMay 14

Description

The bcpowmod function in ext/bcmath/bcmath.c in PHP before 5.5.35, 5.6.x before 5.6.21, and 7.x before 7.0.6 modifies certain data structures without considering whether they are copies of the _zero_, _one_, or _two_ global variable, which allows remote attackers to cause a denial of service or possibly have unspecified other impact via a crafted call.

CVSS vector

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitability: 3.9 | Impact: 5.9

Affected Packages3 packages

Ubuntuphp5/php5< 5.5.9+dfsg-1ubuntu4.17
NVDphp/php5.5.33+27
NVDopensuse/leap42.1

Also affects: Fedora 24

Patches

🔴Vulnerability Details

3
GHSA
GHSA-w758-w9qr-5vxq: The bcpowmod function in ext/bcmath/bcmath2022-05-14
OSV
php5, php7.0 vulnerabilities2016-05-24
OSV
CVE-2016-4538: The bcpowmod function in ext/bcmath/bcmath2016-05-06

📋Vendor Advisories

2
Ubuntu
PHP vulnerabilities2016-05-24
Red Hat
php: bcpowmod accepts negative scale causing heap buffer overflow corrupting _one_ definition2016-04-24

💬Community

2
Bugzilla
CVE-2016-4537 CVE-2016-4538 CVE-2016-4539 CVE-2016-4540 CVE-2016-4541 CVE-2016-4542 CVE-2016-4543 CVE-2016-4544 php: various flaws [fedora-all]2016-05-04
Bugzilla
CVE-2016-4537 CVE-2016-4538 php: bcpowmod accepts negative scale causing heap buffer overflow corrupting _one_ definition2016-05-04