Vulnerabilities · 2017 · Php
CVE-2017-7272
Php vulnerability
PHP through 7.1.11 enables potential SSRF in applications that accept an fsockopen or pfsockopen hostname argument with an expectation that the port number is constrained. Because a :port syntax is recognized, fsockopen will use the port number that is specified in the hostname argument, instead of the port number in the second argument of the function.
Affected products
Php. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Php runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- bugs.php.net/bug.php?id=74216 · Vendor Advisory
- github.com/php/php-src/commit/bab0b99f376dac9170ac81382a5ed526938d595a · Patch
- www.securityfocus.com/bid/97178 · Third Party Advisory
- www.securitytracker.com/id/1038158
- bugs.php.net/bug.php?id=75505
- security.netapp.com/advisory/ntap-20180112-0001/
- www.sec-consult.com/fxdata/seccons/prod/temedia/advisories_txt/20170403-0_PHP_Misbehavior_
- nvd.nist.gov/vuln/detail/CVE-2017-7272
- cve.org/CVERecord?id=CVE-2017-7272
More vulnerabilities in Php products
CVE-2025-14180CVE-2025-14178CVE-2025-14177CVE-2025-6491CVE-2025-1861CVE-2025-1736CVE-2025-1735CVE-2025-1734All 740
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.