Security readout for executives and security teams
Plain-English summary
This CVE describes a PHP 7.x socket parsing flaw where an application’s intended fixed port could be bypassed if the hostname came from untrusted input. Business risk depends on whether applications used fsockopen with user-controlled hosts and treated the separate port as a security control.
Executive priority
Treat this as a targeted legacy exposure issue, not a confirmed internet-wide emergency. Prioritize systems running old PHP 7.x code that opens outbound sockets based on user or partner-controlled host input.
Technical view
In PHP 7.x builds before 2017-03-07, main/streams/xp_socket.c could misparse fsockopen host and port inputs. A hostname containing an embedded port could be combined with the explicit port, then truncated so the embedded port was used instead. The impact is application-dependent.
Likely exposure
Exposure is most likely in legacy PHP 7.x applications that call fsockopen with an untrusted hostname argument while relying on a hardcoded port to enforce policy. The source bundle does not identify specific products, distributions, or exact affected package versions.
Exploitation context
The source bundle does not show KEV listing, active exploitation, exploit availability, or broad exploitation evidence. The risk scenario requires vulnerable PHP behavior plus application code that accepts attacker-influenced host strings and depends on a fixed port decision.
Researcher notes
The evidence is narrow but clear about the parsing behavior and the risky call pattern. No CVSS, CWE, affected CPEs, or exploitation data are provided. Validation should focus on runtime vintage and application-specific data flow into fsockopen.
Mitigation direction
- Confirm deployed PHP builds include the fix after 2017-03-07.
- Upgrade unsupported legacy PHP runtimes using vendor guidance.
- Review fsockopen usage that accepts user-controlled hostnames.
- Reject or normalize embedded ports when a fixed port is required.
- Do not rely only on fsockopen argument separation for security policy.
Validation and detection
- Inventory PHP runtime versions and build provenance.
- Search application code for fsockopen calls with variable host arguments.
- Identify paths where host input can come from users or external data.
- Verify validation blocks embedded port values in hostname fields.
- Check regression tests cover fixed-port policy enforcement.
Public sources used
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
CVE-2017-7189 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
Open ATT&CK lookup- Severity
- Unknown
- CVSS
- Not scored
- Known Exploited
- No
- Published
CNA and ADP enrichment extracted from CVE v5
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
CVSS and timeline data
No CVSS vectors or timeline events were available in the normalized CVE source material.
Source materials
- CVE List V5 sourceCVE List V5
- https://github.com/php/php-src/commit/bab0b99f376dac9170ac81382a5ed526938d595aCVE reference · x_refsource_MISC
- https://bugs.php.net/bug.php?id=74192CVE reference · x_refsource_MISC
Products and packages named in the record
CWE details
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
