CVE-2017-7189
Last modified
CVE-2017-7189 is a vulnerability of currently unknown severity. 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.. EPSS estimates a 2.49% chance of exploitation in the next 30 days.
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.
Metrics
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Php | Php | >= 7.0.0, < 7.0.16 |
References
- https://bugs.php.net/bug.php?id=74192Permissions Required, Vendor Advisory
- https://github.com/php/php-src/commit/bab0b99f376dac9170ac81382a5ed526938d595aPatch, Third Party Advisory
- https://bugs.php.net/bug.php?id=74192Permissions Required, Vendor Advisory
- https://github.com/php/php-src/commit/bab0b99f376dac9170ac81382a5ed526938d595aPatch, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2017-7189?
How severe is CVE-2017-7189?
How do I fix CVE-2017-7189?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2017
- CVE-2017-7183The TFTP server in ExtraPuTTY 0.30 and earlier allows remote…
- CVE-2017-7184The xfrm_replay_verify_len function in net/xfrm/xfrm_user.c …7.8
- CVE-2017-7185Use-after-free vulnerability in the mg_http_multipart_wait_f…
- CVE-2017-7186libpcre1 in PCRE 8.40 and libpcre2 in PCRE2 10.23 allow remo…
- CVE-2017-7187The sg_ioctl function in drivers/scsi/sg.c in the Linux kern…7.8
- CVE-2017-7188Zurmo 3.1.1 Stable allows a Cross-Site Scripting (XSS) attac…5.4
- CVE-2017-7191The netjoin processing in Irssi 1.x before 1.0.2 allows atta…
- CVE-2017-7192WebSocket.swift in Starscream before 2.0.4 allows an SSL Pin…
- CVE-2017-7199Nessus 6.6.2 - 6.10.3 contains a flaw related to insecure pe…
- CVE-2017-7200An SSRF issue was discovered in OpenStack Glance before Newt…
- CVE-2017-7202Multiple Cross-Site Scripting (XSS) were discovered in SLiMS…
- CVE-2017-7203A Cross-Site Scripting (XSS) was discovered in ZoneMinder be…
Are you affected by CVE-2017-7189?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
