Improper input validation in PHP

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 class: Drupalgeddon 2 (CVE-2018-7600)

Published · last modified .

CVSS v3 metric

CVSS v3 base score 7.5 (High). Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.

EPSS exploit prediction

EPSS: 0.024 (83.6th percentile), scored .

Low probability of exploitation in the next 30 days, but still tracked. 84th percentile — 83.6% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.

EPSS trend (30 days)EPSS over the last 30 days for CVE-2017-7189: held from 0.025 to 0.024.

EPSS over last 30 days · oldest: 0.025 · newest: 0.024 · change: -0.001

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2017-7189?
CVE-2017-7189 is a high-severity vulnerability in PHP, classified under Improper Input Validation. CVSS score: 7.5/10. Published 2019-07-10.
How severe is CVE-2017-7189?
High severity. CVSS v3 base score is 7.5 out of 10.
Is CVE-2017-7189 known to be exploited?
1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.