ADVISORIES

GitHub Advisory Database

GHSA-9c3x-r3wp-mgxm

Symfony allows internal address and port enumeration by NoPrivateNetworkHttpClient

Details

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.

Affected packages

EcosystemPackageAffected versions
Packagistsymfony/http-client
From 4.3.0 before 5.4.47 (fixed in 5.4.47)
Packagistsymfony/http-client
From 6.0.0 before 6.4.15 (fixed in 6.4.15)
Packagistsymfony/http-client
From 7.0.0 before 7.1.8 (fixed in 7.1.8)
Packagistsymfony/symfony
From 4.3.0 before 5.4.47 (fixed in 5.4.47)
Packagistsymfony/symfony
From 6.0.0 before 6.4.15 (fixed in 6.4.15)
Packagistsymfony/symfony
From 7.0.0 before 7.1.8 (fixed in 7.1.8)

References