CVE Vulnerabilities

CVE-2017-7272

Server-Side Request Forgery (SSRF)

Published: Mar 27, 2017 | Modified: Nov 21, 2024
CVSS 3.x
7.4
HIGH
Source:
NVD
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N
CVSS 2.x
5.8 MEDIUM
AV:N/AC:M/Au:N/C:P/I:P/A:N
RedHat/V2
RedHat/V3
5.4 LOW
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N
Ubuntu
LOW

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.

Weakness

The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.

Affected Software

Name Vendor Start Version End Version
Php Php * 7.1.3 (including)
Php5 Ubuntu esm-infra-legacy/trusty *
Php5 Ubuntu precise *
Php5 Ubuntu precise/esm *
Php5 Ubuntu trusty *
Php5 Ubuntu trusty/esm *
Php7.0 Ubuntu esm-infra/xenial *
Php7.0 Ubuntu upstream *
Php7.0 Ubuntu xenial *
Php7.0 Ubuntu yakkety *
Php7.0 Ubuntu zesty *
Php7.1 Ubuntu upstream *

References