CVE-2026-126663

Contao 4.0.0 before 5.3.54, 5.4.0 before 5.7.17, and 6.0.0 before 6.0.6 Path Traversal via Image Insert Tag

Published Nov 11, 2026 CVSS 4.0 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
Contao 4.0.0 before 5.3.54, 5.4.0 before 5.7.17, and 6.0.0 before 6.0.6 contains a path traversal vulnerability that allows content editors to read image files anywhere on the filesystem via the {{image::}} insert tag. Attackers can embed percent-encoded sequences like ..%2f that pass Validator::isInsecurePath() before rawurldecode(), making the frontend resize and serve readable image files outside the files directory.

Analysis

AI-generated

Technical impact

Contao versions 4.0.0 through 5.3.53, 5.4.0 through 5.7.16, and 6.0.0 through 6.0.5 contain a path traversal flaw in the image insert tag processing. By inserting a percentage‑encoded traversal sequence such as ..%2f into a {{image::}} tag, a content editor can bypass the validator that normally blocks insecure paths. The string is later URL‑decoded and the system attempts to serve the file as an image, allowing the attacker to read any file that the web server can access outside the intended files directory. This leads to a remote file read vulnerability without the need for elevated privileges.

Affected Systems

All installations of Contao, including the 4.x branch up to but excluding 5.3.54, the 5.x branch up to but excluding 5.7.17, and the 6.x branch up to but excluding 6.0.6, are affected. Versions newer than these release points are not compromised.

Risk and Exploitability

The CVSS score of 5.3 reflects moderate severity, while the EPSS score of less than 1% indicates a very low, but nonzero, probability that the flaw will be exploited in the wild. The vulnerability is not listed in the CISA KEV catalog. Attackers can exploit the flaw by creating or modifying a page or content element that uses the image insert tag through a normal content‑editor interface; no special user privileges are required beyond edit access. Because the flaw permits reading files from the server filesystem, the impact could be significant if sensitive configuration files or private images are exposed.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Contao to the latest available release, ensuring the version is 5.3.54 for the 4.x line, 5.7.17 for the 5.x line, or 6.0.6 for the 6.x line or newer.
  • If an upgrade cannot be applied immediately, temporarily disable the image insert tag feature or restrict it to the intended files directory so that percent‑encoded traversal sequences cannot be processed.
  • Configure the image insert tag handling to whitelist only a safe directory or enforce stringent path validation to block any percent‑encoded traversal attempts, following Contao’s recommended security hardening practices.

Generated by OpenCVE AI on November 13, 2026 at 19:40 UTC.

Tracking

Sign in to view the affected projects.

Exploits

Explore public exploit intelligence with OpenCVE Pro.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Contao 4.0.0 before 5.3.54, 5.4.0 before 5.7.17, and 6.0.0 before 6.0.6 contains a path traversal vulnerability that allows content editors to read image files anywhere on the filesystem via the {{image::}} insert tag. Attackers can embed percent-encoded sequences like ..%2f that pass Validator::isInsecurePath() before rawurldecode(), making the frontend resize and serve readable image files outside the files directory.
Title Contao 4.0.0 before 5.3.54, 5.4.0 before 5.7.17, and 6.0.0 before 6.0.6 Path Traversal via Image Insert Tag
First Time appeared Contao
Contao contao
Weaknesses CWE-180
CPEs cpe:2.3:a:contao:contao:*:*:*:*:*:*:*:*
Vendors & Products Contao
Contao contao
References
Metrics cvssV3_1

{'score': 4.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N'}

cvssV4_0

{'score': 5.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-180

    Incorrect Behavior Order: Validate Before Canonicalize

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 16, 2026, 6:10 PM
Reserved
Nov 11, 2026, 12:04 PM
Status
Deferred
Published
Nov 11, 2026, 1:17 PM
Modified
Nov 16, 2026, 7:17 PM