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

VendorProductVersions
Ubuntu:22.04:LTSphp8.10, 8.1.2-1ubuntu2.10, 8.1.2-1ubuntu2.23
Ubuntu:Pro:16.04:LTSphp7.07.0.30-0ubuntu0.16.04.1, 7.0.32-0ubuntu0.16.04.1, 7.0.33-0ubuntu0.16.04.2
Ubuntu:Pro:18.04:LTSphp7.2*, 7.2.7-0ubuntu0.18.04.1, 0
Ubuntu:Pro:14.04:LTSphp55.5.9+dfsg-1ubuntu4.29+esm5, 5.5.9+dfsg-1ubuntu4.29+esm8, 5.5.9+dfsg-1ubuntu4.29+esm10
Ubuntu:Pro:20.04:LTSphp7.47.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
  • 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
Open in Interactive Console →
$ Console Community · 100/wk Open console ›