Time-of-check Time-of-use (TOCTOU) Race Condition Affecting symfony/http-client package, versions <5.4.56>=6.0.0, <6.4.50>=7.0.0, <7.4.23>=8.0.0, <8.1.11


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.23% (15th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PHP-SYMFONYHTTPCLIENT-23188876
  • published1 Dec 2026
  • disclosed5 Nov 2026
  • creditEirik Stanghelle Morland

Introduced: 5 Nov 2026

NewCVE-2026-123119  (opens in a new tab)
CWE-367  (opens in a new tab)

How to fix?

Upgrade symfony/http-client to version 5.4.56, 6.4.50, 7.4.23, 8.1.11 or higher.

Overview

symfony/http-client is a Symfony HttpClient component.

Affected versions of this package are vulnerable to Time-of-check Time-of-use (TOCTOU) Race Condition via NoPrivateNetworkHttpClient in src/Symfony/Component/HttpClient/NoPrivateNetworkHttpClient.php, which resolves a host's IP and checks it before connecting, but only passes the checked IP through the resolve option on the first lookup. On subsequent requests to the same cached host, the decorated client re-resolves the host independently. An attacker who controls a host's DNS can exploit this with DNS rebinding by returning a public IP on the first lookup and a private IP on subsequent ones, causing later requests from the same client to connect to the private IP. Although the primary_ip check in the on_progress callback aborts the request before data is sent, the TCP connection is established and the differing error responses reveal whether a given internal port is open or closed, enabling enumeration of internal hosts and ports.

CVSS Base Scores

version 4.0
version 3.1