{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2017-7189","published":"2019-07-10T15:15:11.163000Z","last_modified":"2026-06-17T01:23:50.297000Z","status":"Modified","cvss":{"version":"3.0","score":7.5,"severity":"HIGH","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-20"],"cpes":[{"criteria":"cpe:2.3:a:php:php:*:*:*:*:*:*:*:*","part":"a","vendor":"php","product":"php","version_start_including":"7.0.0","version_end_excluding":"7.0.16"}],"cpes_truncated":false,"vendors":["php"],"products":["php/php"],"epss":{"score":0.02425,"percentile":0.84951,"date":"2026-11-28","model_version":"v2026.06.15"},"cat":"web","platform":"multi","eol":false,"packages":[],"severity":"high","priority_score":60,"links":{"html_es":"/es/cve/CVE-2017-7189/","html_en":"/en/cve/CVE-2017-7189/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2017-7189","cve_org":"https://www.cve.org/CVERecord?id=CVE-2017-7189"},"untrusted":{"vendor_name":"Php","product_name":"Php","desc_en":"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.","affected":[],"references":[{"url":"https://bugs.php.net/bug.php?id=74192","tags":["Permissions Required","Vendor Advisory"]},{"url":"https://github.com/php/php-src/commit/bab0b99f376dac9170ac81382a5ed526938d595a","tags":["Patch","Third Party Advisory"]}]}}