Symfony allows internal address and port enumeration by NoPrivateNetworkHttpClient
Impact
When using the NoPrivateNetworkHttpClient, some internal information is still leaking during host resolution, which leads to possible IP/port enumeration.
Source excerpt · OSVAffected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
| Affected range | Recorded fix |
|---|---|
| From 4.3.0 before 5.4.47Ecosystem versions | 5.4.47 |
| From 6.0.0 before 6.4.15Ecosystem versions | 6.4.15 |
| From 7.0.0 before 7.1.8Ecosystem versions | 7.1.8 |
Version evidence: OSV · GHSA-9c3x-r3wp-mgxm
View original version evidence (261 explicit versions)
| Affected range | Recorded fix |
|---|---|
| From 4.3.0 before 5.4.47Ecosystem versions | 5.4.47 |
| From 6.0.0 before 6.4.15Ecosystem versions | 6.4.15 |
| From 7.0.0 before 7.1.8Ecosystem versions | 7.1.8 |
Version evidence: OSV · GHSA-9c3x-r3wp-mgxm
View original version evidence (306 explicit versions)
Original source description
Description
When using the NoPrivateNetworkHttpClient, some internal information is still leaking during host resolution, which leads to possible IP/port enumeration.
Resolution
The NoPrivateNetworkHttpClient now filters blocked IPs earlier to prevent such leaks.
The fisrt patch for this issue is available here for branch 5.4.
The second one is available here for branch 5.4 also.
Credits
We would like to thank Linus Karlsson and Chris Smith for reporting the issue and Nicolas Grekas for providing the fix.
References
- Security advisory github.com/symfony/symfony/security/advisories/GHSA-9c3x-r3wp-mgxm
- Security advisory nvd.nist.gov/vuln/detail/CVE-2024-50342
- Patch github.com/symfony/symfony/commit/296d4b34a33b1a6ca5475c6040b3203622520f5b
- Security advisory github.com/FriendsOfPHP/security-advisories/blob/master/symfony/http-client/CVE-2024-50342.yaml
- Security advisory github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2024-50342.yaml
- Source reference github.com/symfony/symfony
- Security advisory symfony.com/cve-2024-50342