CVE-2024-50342: Internal address and port enumeration allowed by NoPrivateNetworkHttpClient


Affected versions

Symfony versions <5.4.46; >=6, <6.4.14; >=7, <7.1.7 of the Symfony HttpClient component are affected by this security issue.

The issue has been fixed in Symfony 5.4.46, 6.4.14, and 7.1.7.

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 patch for this issue is available here for branch 5.4.

Credits

We would like to thank Linus Karlsson for reporting the issue and Nicolas Grekas for providing the fix.

Sponsor the Symfony project.