Affected versions

Symfony versions <5.4.47; >=6, <6.4.15; >=7, <7.1.8 of the Symfony HttpClient component are affected by this security issue.

Update: Versions 5.4.46, 6.4.14, and 7.1.7 are still affected and new releases have been published: 5.4.47, 6.4.15, and 7.1.8.

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

The second patch 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.

Published in #Security Advisories