CVE-2017-7189
CVSS V2 Medium 5
CVSS V3 High 7.5
Description
main/streams/xp_socket.c in PHP 7.x before 2017-03-07 misparses fsockopen calls, such as by interpreting fsockopen('127.0.0.1:80', 443) as if the address/port were 127.0.0.1:80:443, which is later truncated to 127.0.0.1:80. This behavior has a security risk if the explicitly provided port number (i.e., 443 in this example) is hardcoded into an application as a security policy, but the hostname argument (i.e., 127.0.0.1:80 in this example) is obtained from untrusted input.
Overview
- CVE ID
- CVE-2017-7189
- Assigner
- cve@mitre.org
- Vulnerability Status
- Analyzed
- Published Version
- 2019-07-10T15:15:11
- Last Modified Date
- 2019-07-17T16:39:25
Weakness Enumerations
CPE Configuration (Product)
CPE | Vulnerable | Operator | Version Start | Version End |
---|---|---|---|---|
cpe:2.3:a:php:php:*:*:*:*:*:*:*:* | 1 | OR | 7.0.0 | 7.0.16 |
CVSS Version 2
- Version
- 2.0
- Vector String
- AV:N/AC:L/Au:N/C:P/I:N/A:N
- Access Vector
- NETWORK
- Access Compatibility
- LOW
- Authentication
- NONE
- Confidentiality Impact
- PARTIAL
- Integrity Impact
- NONE
- Availability Impact
- NONE
- Base Score
- 5
- Severity
- MEDIUM
- Exploitability Score
- 10
- Impact Score
- 2.9
CVSS Version 3
- Version
- 3.0
- Vector String
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Attack Vector
- NETWORK
- Attack Compatibility
- LOW
- Privileges Required
- NONE
- User Interaction
- NONE
- Scope
- UNCHANGED
- Confidentiality Impact
- HIGH
- Availability Impact
- NONE
- Base Score
- 7.5
- Base Severity
- HIGH
- Exploitability Score
- 3.9
- Impact Score
- 3.6
References
Reference URL | Reference Tags |
---|---|
https://github.com/php/php-src/commit/bab0b99f376dac9170ac81382a5ed526938d595a | Patch Third Party Advisory |
https://bugs.php.net/bug.php?id=74192 | Permissions Required Vendor Advisory |
Sources
Source Name | Source URL |
---|---|
NIST | https://nvd.nist.gov/vuln/detail/CVE-2017-7189 |
MITRE | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-7189 |
History
Created | Old Value | New Value | Data Type | Notes |
---|---|---|---|---|
2022-05-10 17:40:51 | Added to TrackCVE | |||
2022-12-03 23:05:08 | 2019-07-10T15:15Z | 2019-07-10T15:15:11 | CVE Published Date | updated |
2022-12-03 23:05:08 | 2019-07-17T16:39:25 | CVE Modified Date | updated | |
2022-12-03 23:05:08 | Analyzed | Vulnerability Status | updated |