Vulnerability Details : CVE-2017-7189
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.
Vulnerability category: Input validation
Products affected by CVE-2017-7189
- cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
Threat overview for CVE-2017-7189
Top countries where our scanners detected CVE-2017-7189
Top open port discovered on systems with this issue
80
IPs affected by CVE-2017-7189 11,493
Threat actors abusing to this issue?
Yes
Find out if you* are
affected by CVE-2017-7189!
*Directly or indirectly through your vendors, service providers and 3rd parties.
Powered by
attack surface intelligence
from SecurityScorecard.
Exploit prediction scoring system (EPSS) score for CVE-2017-7189
0.18%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 54 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2017-7189
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
5.0
|
MEDIUM | AV:N/AC:L/Au:N/C:P/I:N/A:N |
10.0
|
2.9
|
NIST | |
7.5
|
HIGH | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
3.9
|
3.6
|
NIST |
CWE ids for CVE-2017-7189
-
The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.Assigned by: nvd@nist.gov (Primary)
References for CVE-2017-7189
-
https://bugs.php.net/bug.php?id=74192
PHP :: You must be logged inPermissions Required;Vendor Advisory
-
https://github.com/php/php-src/commit/bab0b99f376dac9170ac81382a5ed526938d595a
Detect invalid port in xp_socket parse ip address · php/php-src@bab0b99 · GitHubPatch;Third Party Advisory
Jump to