VDB
CVE-2017-7189
CVE-2017-7189
PUBLISHED
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.
EPSS 2.49% · 83.4th percentile
Risk Scores
EPSS Score
2.49%
83.4th percentile
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Ubuntu:22.04:LTS | php8.1 | 0, 8.1.2-1ubuntu2.10, 8.1.2-1ubuntu2.23 |
| Ubuntu:Pro:16.04:LTS | php7.0 | 7.0.30-0ubuntu0.16.04.1, 7.0.32-0ubuntu0.16.04.1, 7.0.33-0ubuntu0.16.04.2 |
| Ubuntu:Pro:18.04:LTS | php7.2 | *, 7.2.7-0ubuntu0.18.04.1, 0 |
| Ubuntu:Pro:14.04:LTS | php5 | 5.5.9+dfsg-1ubuntu4.29+esm5, 5.5.9+dfsg-1ubuntu4.29+esm8, 5.5.9+dfsg-1ubuntu4.29+esm10 |
| Ubuntu:Pro:20.04:LTS | php7.4 | 7.4.3-4ubuntu2.29+esm2, 7.4.3-4ubuntu2.29+esm1, 7.4.3-4ubuntu2.29 |
Timeline
- CVE Published
- Nov 12, 2019 PoC Published
- Apr 14, 2021 EPSS Score
- Jun 23, 2021 EPSS Score
- Aug 24, 2021 EPSS Score
- Dec 28, 2021 EPSS Score
- Feb 28, 2022 EPSS Score
- May 2, 2022 EPSS Score
- Jul 4, 2022 EPSS Score
- Sep 5, 2022 EPSS Score
- Nov 7, 2022 EPSS Score
- Mar 7, 2023 EPSS Score
References
- https://ubuntu.com/security/CVE-2017-7189 third-party-advisory
- https://www.cve.org/CVERecord?id=CVE-2017-7189 third-party-advisory