Skip to main content
No exploitation reportedFix available

CVE-2016-4538

No exploitation reported by the sources we read.

  • Published2016-05-22
  • WeaknessCWE-20

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2016-05-2201:59CVE publishedNVD

Versions per branch

NVD
PHP
BranchAffectedFixed in
5.5≤ 5.5.33no fix published
5.6= 5.6.0no fix published
5.6= 5.6.1no fix published
5.6= 5.6.2no fix published
5.6= 5.6.3no fix published
5.6= 5.6.4no fix published
5.6= 5.6.5no fix published
5.6= 5.6.6no fix published
5.6= 5.6.7no fix published
5.6= 5.6.8no fix published
5.6= 5.6.9no fix published
5.6= 5.6.10no fix published
Fedoraproject fedora
BranchAffectedFixed in
24.x= 24no fix published
Opensuse leap
BranchAffectedFixed in
42.1= 42.1no fix published

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • php5Ubuntu:14.04:LTSall versions · fixed in 5.5.9+dfsg-1ubuntu4.17
  • php5SUSE:Linux Enterprise Software Development Kit 12 SP1all versions · fixed in 5.5.14-59.2
  • php5SUSE:Linux Enterprise Software Development Kit 12all versions · fixed in 5.5.14-59.2
  • php5SUSE:Linux Enterprise Module for Web and Scripting 12all versions · fixed in 5.5.14-59.2
  • php5Debian:8all versions · fixed in 5.6.22+dfsg-0+deb8u1
  • php5Debian:7all versions · fixed in 5.4.45-0+deb7u5
  • php53SUSE:OpenStack Cloud 5all versions · fixed in 5.3.17-71.1
  • php53SUSE:Manager Proxy 2.1all versions · fixed in 5.3.17-71.1

14 more package ranges on OSV.dev

Vendor advisories

  • CVE-2016-4538 Red Hat Product Security251 products fixed · 110 known affected

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

    php.src as a component of Red Hat Enterprise Linux 5 · php53.src as a component of Red Hat Enterprise Linux 5 · php as a component of Red Hat Enterprise Linux 6 · +107 more

  • RHSA-2016:2750 Red Hat Product Security251 products fixed

    Red Hat Security Advisory: rh-php56 security, bug fix, and enhancement update

Full record on NVD

Fix

  1. Vendor fix Red Hat Product Security RHSA-2016:2750 · 251 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 After installing the updated packages, the httpd daemon must be restarted for the update to take effect.
  2. No fix planned, says the vendor Red Hat Product Security CVE-2016-4538 · 110 productsWill not fix

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published
2016-05-22
Last Modified
2026-06-17
NVD status
Modified
GitHub Advisory
GHSA-w758-w9qr-5vxq

Frequently asked questions

What is CVE-2016-4538?

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.

Is CVE-2016-4538 actively exploited?

Active exploitation of CVE-2016-4538 has not been confirmed. Its EPSS score was 6.1% on 2026-11-16, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2016-4538?

CVE-2016-4538 has a CVSS v3 base score of 9.8 (CRITICAL severity), with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

Running PHP? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record