CVE-2017-7189 Other in n/a

High 7.5 Published Updated

PHP misparses socket addresses, allowing attackers to bypass hardcoded port security policies when hostnames are user-controlled.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2017-7189?

CVE-2017-7189 is a high-severity vulnerability in Php Php, published on 10 Jul 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-20

Which versions are affected by CVE-2017-7189?

It affects 1 product.

Products include Php Php.

How do I fix CVE-2017-7189?

No fix has been published for CVE-2017-7189 yet. Limit exposure of the affected software until one is available.

Is CVE-2017-7189 being exploited?

There is no known exploitation of CVE-2017-7189 in the wild and no public exploit code.

All Php Php vulnerabilities

Sources

Also known as GHSA-3mh5-9253-628p, UBUNTU-CVE-2017-7189.

Is CVE-2017-7189 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free