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 1.59% · 82.0th percentile
Risk Scores
EPSS Score
1.59%
82.0th 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 |
Exploit Intelligence
- Inappropriate URL parsing may cause security risk! (hackerone)
- Inappropriate URL parsing may cause security risk! (hackerone)
- Inappropriate URL parsing may cause security risk! (hackerone)
- https://github.com/php/php-src/commit/bab0b99f376dac9170ac81382a5ed526938d595a (circl)
- https://bugs.php.net/bug.php?id=74192 (circl)
Timeline
- CVE Published
- Nov 12, 2019 PoC Published
- Apr 14, 2021 EPSS Score
- Jun 23, 2021 EPSS Score
- Aug 24, 2021 EPSS Score
- Oct 26, 2021 EPSS Score
- Feb 28, 2022 EPSS Score
- May 2, 2022 EPSS Score
- Jul 3, 2022 EPSS Score
- Sep 5, 2022 EPSS Score
- Nov 6, 2022 EPSS Score
- Jan 8, 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