CVE-2016-5114
What it is
sapi/fpm/fpm/fpm_log.c in PHP before 5.5.31, 5.6.x before 5.6.17, and 7.x before 7.0.2 misinterprets the semantics of the snprintf return value, which allows attackers to obtain sensitive information from process memory or cause a denial of service (out-of-bounds read and buffer overflow) via a long string, as demonstrated by a long URI in a configuration with custom REQUEST_URI logging.
At a glance
- Exploitability
- Can be exploited over the network without logging in. High risk of data exposure, service disruption.
- Exploit odds
- 4.5% chance of exploitation in the next 30 days (EPSS).
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: 4.5% in the next 30 days (EPSS).
- Severity: 9.1 CRITICAL (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Exploit probability
- 4.5% · EPSS, next 30 days
- Weakness
- CWE-119 · Buffer errors
- Record status
- Modified
Affected
- PHP ≤ 5.5.30
- PHP 5.6.0
- PHP 5.6.1
- PHP 5.6.2
- PHP 5.6.3
- PHP 5.6.4
- PHP 5.6.5
- PHP 5.6.6
Attack profile CVSS 3.0 · 9.1
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- None
- Availability
- High
Raw vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2016-5114.md and follow it. Check whether this project is affected by CVE-2016-5114. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
Fix and advisories
- http://github.com/php/php-src/commit/2721a0148649e07ed74468f097a28899741eb58f?w=1
- http://php.net/ChangeLog-5.php
- http://php.net/ChangeLog-7.php
- http://www.search-lab.hu/about-us/news/111-some-unusual-vulnerabilities-in-the-php-engine
- http://github.com/php/php-src/commit/2721a0148649e07ed74468f097a28899741eb58f?w=1
- http://php.net/ChangeLog-5.php
- http://php.net/ChangeLog-7.php
- http://www.search-lab.hu/about-us/news/111-some-unusual-vulnerabilities-in-the-php-engine
References
- http://github.com/php/php-src/commit/2721a0148649e07ed74468f097a28899741eb58f?w=1
- http://php.net/ChangeLog-5.php
- http://php.net/ChangeLog-7.php
- http://rhn.redhat.com/errata/RHSA-2016-2750.html
- http://www.openwall.com/lists/oss-security/2016/05/29/1
- http://www.search-lab.hu/about-us/news/111-some-unusual-vulnerabilities-in-the-php-engine
- https://bugs.php.net/bug.php?id=70755
- https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05240731
- http://github.com/php/php-src/commit/2721a0148649e07ed74468f097a28899741eb58f?w=1
- http://php.net/ChangeLog-5.php
- http://php.net/ChangeLog-7.php
- http://rhn.redhat.com/errata/RHSA-2016-2750.html
- http://www.openwall.com/lists/oss-security/2016/05/29/1
- http://www.search-lab.hu/about-us/news/111-some-unusual-vulnerabilities-in-the-php-engine
- https://bugs.php.net/bug.php?id=70755
- https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05240731