CVE-2016-4537: php: bcpowmod accepts negative scale causing heap buffer overflow corrupting _one_ definition

Severity: Critical

CVSS Score: 9.8

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 accepts a negative integer for the scale argument, which allows remote attackers to cause a denial of service or possibly have unspecified other impact via a crafted call.