National Vulnerability Database

National Vulnerability Database

National Vulnerability
Database

CVE-2016-5114 Detail

Current Description

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.

Source:  MITRE
View Analysis Description

Impact

CVSS v3.0 Severity and Metrics:

Base Score: 9.1 CRITICAL
Vector: AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H (V3 legend)
Impact Score: 5.2
Exploitability Score: 3.9


Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): None
Scope (S): Unchanged
Confidentiality (C): High
Integrity (I): None
Availability (A): High

CVSS v2.0 Severity and Metrics:

Base Score: 6.4 MEDIUM
Vector: (AV:N/AC:L/Au:N/C:P/I:N/A:P) (V2 legend)
Impact Subscore: 4.9
Exploitability Subscore: 10.0


Access Vector (AV): Network
Access Complexity (AC): Low
Authentication (AU): None
Confidentiality (C): Partial
Integrity (I): None
Availability (A): Partial
Additional Information:
Allows unauthorized disclosure of information
Allows disruption of service

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving NIST webspace. We have provided these links to other web sites because they may have information that would be of interest to you. No inferences should be drawn on account of other sites being referenced, or not, from this page. There may be other web sites that are more appropriate for your purpose. NIST does not necessarily endorse the views expressed, or concur with the facts presented on these sites. Further, NIST does not endorse any commercial products that may be mentioned on these sites. Please address comments about this page to nvd@nist.gov.

Hyperlink Resource
http://github.com/php/php-src/commit/2721a0148649e07ed74468f097a28899741eb58f?w=1
http://php.net/ChangeLog-5.php Patch Release Notes
http://php.net/ChangeLog-7.php Patch Release Notes
http://rhn.redhat.com/errata/RHSA-2016-2750.html
http://www.openwall.com/lists/oss-security/2016/05/29/1 Release Notes
http://www.search-lab.hu/about-us/news/111-some-unusual-vulnerabilities-in-the-php-engine Patch Third Party Advisory
https://bugs.php.net/bug.php?id=70755 Exploit
https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05240731

Technical Details

Vulnerability Type (View All)

  • Improper Restriction of Operations within the Bounds of a Memory Buffer (CWE-119)
  • Out-of-bounds Read (CWE-125)

Known Affected Software Configurations Switch to CPE 2.3

Configuration 1 ( hide )
 cpe:/a:php:php
     Show Matching CPE(s)
Up to (including)
5.5.30
 cpe:/a:php:php:5.6.0:alpha1
     Show Matching CPE(s)
 cpe:/a:php:php:5.6.0:alpha2
     Show Matching CPE(s)
 cpe:/a:php:php:5.6.0:alpha3
     Show Matching CPE(s)
 cpe:/a:php:php:5.6.0:alpha4
     Show Matching CPE(s)
 cpe:/a:php:php:5.6.0:alpha5
     Show Matching CPE(s)
 cpe:/a:php:php:5.6.0:beta1
     Show Matching CPE(s)
 cpe:/a:php:php:5.6.0:beta2
     Show Matching CPE(s)
 cpe:/a:php:php:5.6.0:beta3
     Show Matching CPE(s)
 cpe:/a:php:php:5.6.0:beta4
     Show Matching CPE(s)
 cpe:/a:php:php:5.6.1
     Show Matching CPE(s)
 cpe:/a:php:php:5.6.2
     Show Matching CPE(s)
 cpe:/a:php:php:5.6.3
     Show Matching CPE(s)
 cpe:/a:php:php:5.6.4
     Show Matching CPE(s)
 cpe:/a:php:php:5.6.5
     Show Matching CPE(s)
 cpe:/a:php:php:5.6.6
     Show Matching CPE(s)
 cpe:/a:php:php:5.6.7
     Show Matching CPE(s)
 cpe:/a:php:php:5.6.8
     Show Matching CPE(s)
 cpe:/a:php:php:5.6.9
     Show Matching CPE(s)
 cpe:/a:php:php:5.6.10
     Show Matching CPE(s)
 cpe:/a:php:php:5.6.11
     Show Matching CPE(s)
 cpe:/a:php:php:5.6.12
     Show Matching CPE(s)
 cpe:/a:php:php:5.6.13
     Show Matching CPE(s)
 cpe:/a:php:php:5.6.14
     Show Matching CPE(s)
 cpe:/a:php:php:5.6.15
     Show Matching CPE(s)
 cpe:/a:php:php:5.6.16
     Show Matching CPE(s)
 cpe:/a:php:php:7.0.0
     Show Matching CPE(s)
 cpe:/a:php:php:7.0.1
     Show Matching CPE(s)


Change History

4 change records found - show changes

Quick Info

CVE Dictionary Entry:
CVE-2016-5114
NVD Published Date:
08/07/2016
NVD Last Modified:
01/04/2018