CVE-2017-7272

NameCVE-2017-7272
DescriptionPHP through 7.1.3 enables potential SSRF in applications that accept an fsockopen 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub code/issues, web search, more)
ReferencesDLA-875-1
NVD severitymedium (attack range: remote)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
php5 (PTS)wheezy5.4.45-0+deb7u2vulnerable
wheezy (security)5.4.45-0+deb7u12fixed
jessie5.6.30+dfsg-0+deb8u1vulnerable
jessie (security)5.6.33+dfsg-0+deb8u1vulnerable
php7.0 (PTS)stretch7.0.19-1fixed
stretch (security)7.0.27-0+deb9u1fixed
buster, sid7.0.27-1fixed
php7.1 (PTS)buster, sid7.1.13-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
php5source(unstable)(unfixed)medium
php5sourcewheezy5.4.45-0+deb7u8mediumDLA-875-1
php7.0source(unstable)7.0.18-1medium
php7.1source(unstable)7.1.4-1medium

Notes

[jessie] - php5 <ignored> (Never applied to PHP 5 by upstream, breaks existing applications)
https://github.com/php/php-src/commit/bab0b99f376dac9170ac81382a5ed526938d595a
https://bugs.php.net/bug.php?id=74216
Fixed in 7.1.4 and 7.0.18

Search for package or bug name: Reporting problems