Improper Input Validation Affecting php package, versions [7.0.0,7.0.16)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.2% (58th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-PHP-2335347
  • published12 Jan 2022
  • disclosed10 Jul 2019
  • creditUnknown

Introduced: 10 Jul 2019

CVE-2017-7189  (opens in a new tab)
CWE-20  (opens in a new tab)

How to fix?

Upgrade php to version 7.0.16 or higher.

Overview

Affected versions of this package are vulnerable to Improper Input Validation 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.

CVSS Scores

version 3.1