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)

EPSS: 0.025 (83.0th percentile) — read the EPSS interpretation.

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.

Affected products

  • Php
  • N/a — versions n/a

Weakness classification (CWE)

Public proof-of-concept exploits

References

  • cve@mitre.org (Patch, Third Party Advisory, x_refsource_MISC)
  • cve@mitre.org (Permissions Required, x_refsource_MISC, Vendor Advisory)

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.