In Symfony http-foundation prior to versions 5.4.56, 6.4.50, 7.4.23, and 8.1.11, Symfony\Component\HttpFoundation\RequestMatcher, and RequestMatcher\MethodRequestMatcher which replaces it from 6.2.x on, matches a request against a list of HTTP methods. Они сравнили метод запроса со списком дословно, в то время как маршрутизатор обслуживает запрос HEAD с обработчиком GET, как того требует семантика HTTP. Это произошло после неполного исправления CVE-2026-45075 https://github.com/advisories/GHSA-6439-2f28-8p8q, которое устранило тот же разрыв только в атрибутах [IsGranted], [IsSignatureValid] и [IsCsrfTokenValid].
Поэтому правила безопасности, настроенные только на запросы GET, можно обойти, отправив запрос HEAD тому же URL. Хотя ответы HEAD не содержат тела, злоумышленники все еще могут получить доступ к заголовкам ответов и вызвать выполнение контроллера, включая любые побочные эффекты. Эта проблема также затрагивает брандмауэры, настроенные с помощью методов: [GET].
Запрос HEAD не соответствует этому брандмауэру и вместо этого может обрабатываться другим соответствующим брандмауэром или вообще без брандмауэра. Приложения, использующие эти уязвимые совпадающие запросы напрямую, в том числе через пользовательский брандмауэр request_matcher, также могут быть затронуты. Проблема затрагивает symfony / HTTP-foundation через v5.4.55, v6.x через 6.4.49, v7.x через v7.4.22 и v8.x через v8.1.10.
Показать оригинальное описание (EN)
In Symfony http-foundation prior to versions 5.4.56, 6.4.50, 7.4.23, and 8.1.11, Symfony\Component\HttpFoundation\RequestMatcher, and RequestMatcher\MethodRequestMatcher which replaces it from 6.2.x on, matches a request against a list of HTTP methods. These compared the request method to the list verbatim, while the router serves a HEAD request with the GET handler, as HTTP semantics require. This came after the incomplete fix of CVE-2026-45075 https://github.com/advisories/GHSA-6439-2f28-8p8q , which addressed the same gap in the #[IsGranted], #[IsSignatureValid] and #[IsCsrfTokenValid] attributes only. Security rules configured to apply only to GET requests could therefore be bypassed by sending a HEAD request to the same URL. Although HEAD responses contain no body, attackers could still access response headers and trigger the controller's execution, including any side effects. This issue also affects firewalls configured with methods: [GET]. A HEAD request would not match that firewall and could instead be handled by another matching firewall or no firewall at all. Applications using these vulnerable request matchers directly, including through a custom firewall request_matcher, could also be affected. The issue affects symfony/http-foundation through v5.4.55, v6.x through 6.4.49, v7.x through v7.4.22, and v8.x through v8.1.10.
Характеристики атаки
Последствия
Строка CVSS v4.0