php: misparsing fsockopen calls in main/streams/xp_socket.c leads to information disclosure
Published Jul 10, 2019
7.5
HIGHCVSS 3.0
EPSS 2.43%
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.
Affected products
No data.
No data.
Red Hat Enterprise Linux 5
php
Out of support scope
Red Hat Enterprise Linux 5
php53
Out of support scope
Red Hat Enterprise Linux 6
php
Out of support scope
Red Hat Enterprise Linux 7
php
Will not fix
Red Hat Enterprise Linux 8
php:7.2/php
Will not fix
Red Hat Software Collections
rh-php70-php
Will not fix
Red Hat Software Collections
rh-php71-php
Will not fix
Red Hat Software Collections
rh-php72-php
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 5 | php | Out of support scope | n/a |
| Red Hat Enterprise Linux 5 | php53 | Out of support scope | n/a |
| Red Hat Enterprise Linux 6 | php | Out of support scope | n/a |
| Red Hat Enterprise Linux 7 | php | Will not fix | n/a |
| Red Hat Enterprise Linux 8 | php:7.2/php | Will not fix | n/a |
| Red Hat Software Collections | rh-php70-php | Will not fix | n/a |
| Red Hat Software Collections | rh-php71-php | Will not fix | n/a |
| Red Hat Software Collections | rh-php72-php | Will not fix | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
This issue affects the php version as shipped with Red Hat Enterprise Linux 5, 6, 7, 8 and it was rated as having a security impact of 'Moderate'. It also affects the versions rh-php71-php, rh-php70-php, rh-php72-php distributed with Red Hat Software Collection 3.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
1 other source (Red Hat) ▾
CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N
AV:N/AC:L/Au:N/C:P/I:N/A:N
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v5
Percentile over time
- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v5
Table of values (13 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 2.43% (0.02425) | 83.61th | v5 (v2026.06.15) |
| Jun 15, 2026 | 2.49% (0.02492) | 82.53th | v5 (v2026.06.15) |
| Jul 20, 2024 | 0.18% (0.00178) | 55.36th | v3 (v2023.03.01) |
| Jun 20, 2024 | 0.18% (0.00178) | 55.13th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.18% (0.00178) | 53.13th | v3 (v2023.03.01) |
| Mar 6, 2023 | 0.89% (0.00885) | 27.89th | v2 (v2022.01.01) |
| Sep 10, 2022 | 0.89% (0.00885) | 26.24th | v2 (v2022.01.01) |
| Apr 1, 2022 | 0.89% (0.00885) | 24.24th | v2 (v2022.01.01) |
| Feb 4, 2022 | 0.89% (0.00885) | 10.50th | v2 (v2022.01.01) |
| Feb 3, 2022 | 0.62% (0.00624) | 17.80th | v1 |
| Jan 6, 2022 | 0.62% (0.00624) | 17.24th | v1 |
| Sep 1, 2021 | 0.62% (0.00624) | 45.04th | v1 |
| Apr 14, 2021 | 0.62% (0.00624) | 0.00th | v1 |
References (6)
- https://access.redhat.com/security/cve/CVE-2017-7189 Vendor Advisory
- https://bugs.php.net/bug.php?id=74192 x_refsource_MISCPermissions RequiredVendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1734756 Issue Tracking
- https://github.com/php/php-src/commit/bab0b99f376dac9170ac81382a5ed526938d595a x_refsource_MISCPatchThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2017-7189
- https://www.cve.org/CVERecord?id=CVE-2017-7189
| Link | Providers | Tags |
|---|---|---|
| https://access.redhat.com/security/cve/CVE-2017-7189 | Vendor Advisory | |
| https://bugs.php.net/bug.php?id=74192 | x_refsource_MISCPermissions RequiredVendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1734756 | Issue Tracking | |
| https://github.com/php/php-src/commit/bab0b99f376dac9170ac81382a5ed526938d595a | x_refsource_MISCPatchThird Party Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2017-7189 | ||
| https://www.cve.org/CVERecord?id=CVE-2017-7189 |
Change history (0)
No recorded changes yet.