cvelo
P3 · MediumCVSS 6.3EPSS 0.4%

Symfony: HEAD Requests Bypass the methods Option of security.access_control Rules and Firewalls

  • CVE-2026-118514
  • EUVD-2026-118267

Description

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.

Text from the CVE.org record.

Recommendation

  • symfony

    • If you run a version from 8 to before 8.1.11update to 8.1.11 or laterMinor version change: check the release notes
    • If you run a version from 7 to before 7.4.23update to 7.4.23 or laterMinor version change: check the release notes
    • If you run a version from 6 to before 6.4.50update to 6.4.50 or laterMinor version change: check the release notes
    • If you run a version before 5.4.56update to 5.4.56 or later

Taken from the version ranges of the ENISA EUVD record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • symfony

    Affected versionsFixed in
    from 8 to before 8.1.118.1.11
    from 7 to before 7.4.237.4.23
    from 6 to before 6.4.506.4.50
    before 5.4.565.4.56

Product versions from the ENISA EUVD record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.