Server-Side Request Forgery (SSRF) Affecting php-mysql package, versions *


Severity

Recommended
low

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
0.26% (67th 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 Learn

Learn about Server-Side Request Forgery (SSRF) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RHEL7-PHPMYSQL-1372178
  • published26 Jul 2021
  • disclosed27 Mar 2017

Introduced: 27 Mar 2017

CVE-2017-7272  (opens in a new tab)
CWE-918  (opens in a new tab)

How to fix?

There is no fixed version for RHEL:7 php-mysql.

NVD Description

Note: Versions mentioned in the description apply only to the upstream php-mysql package and not the php-mysql package as distributed by RHEL. See How to fix? for RHEL:7 relevant fixed versions and status.

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.