CVE-2016-4538

php: bcpowmod accepts negative scale causing heap buffer overflow corrupting _one_ definition

Published May 22, 2016 CVSS 3.0 · 9.8 Critical EPSS 6.1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-628-1 php5 security update
Debian DSA Debian DSA DSA-3602-1 php5 security update
EUVD EUVD EUVD-2016-5525 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.
Ubuntu USN Ubuntu USN USN-2984-1 PHP vulnerabilities
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
debian
Published
Updated
Aug 6, 2024, 12:32 AM
Reserved
May 5, 2016, 12:00 AM
Status
Modified
Published
May 22, 2016, 1:59 AM
Modified
Jun 17, 2026, 12:47 AM
Severity
Low
Public date
Apr 24, 2016, 12:00 AM