Skip to main content

Incorrect Authorization

CVE-2026-45075

Severity High
Score 8.6/10

Summary

Symfony's `#[IsGranted('...')]`, `#[IsSignatureValid]`, and `#[IsCsrfTokenValid(...)]` attributes allows to define a `methods: [...]` argument to only enforce these checks for the listed HTTP methods and skip them otherwise. E.g. an attribute defining `methods: ['GET']` would be ignored for a `HEAD` request. On the other hand, Symfony's router (and HTTP semantics generally) serves 'HEAD' requests using the 'GET' handler. Therefore, a controller protected by e.g. '#[IsGranted('ROLE_ADMIN', methods: ['GET'])]' can be reached via 'HEAD' with the authorization check silently skipped. Even if the 'HEAD' request won't get any response content, response headers leak (Content-Length, Location, custom headers). Also, the controller still executes and any side effects (DB writes, state changes) occur. This issue affects Symfony versions from 7.4.0 prior to 7.4.12 and 8.0.0 prior to 8.0.12.

  • LOW
  • NETWORK
  • HIGH
  • UNCHANGED
  • NONE
  • NONE
  • LOW
  • NONE

CWE-863 - Incorrect Authorization

Authorization is a security mechanism performed by an application to grant or deny access to the requested resources by verifying the privileges of the user. When an application lacks effective authorization mechanisms, it enables unauthorized users to gain unintended privileges and illegitimate access to resources. Such a vulnerability may result in exposure of sensitive information, denial of service, arbitrary code execution, and complete system takeover.

Advisory Timeline

  • Published