{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "688c0f6213afbd000cd22ad0a44555eca80b40ab"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "range": [
                  {
                    "fixed": "0f7989eb5b28d85dcd441ef22f80f8af4f56433e"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "range": [
                  {
                    "fixed": "e820e3c9d79a5c07f274558513c8db08a79bf804"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "5.3.54",
                "range": [
                  {
                    "fixed": "4b4b69a14eb32775caf7ea3b15a38af6a38a85e7"
                  }
                ],
                "source": "REFERENCES_TAG"
              },
              {
                "original_tag": "5.7.17",
                "range": [
                  {
                    "fixed": "1ef9c449fecbac9bba7b107b016f0874148b8fd9"
                  }
                ],
                "source": "REFERENCES_TAG"
              },
              {
                "original_tag": "6.0.6",
                "range": [
                  {
                    "fixed": "76ddadae9056acafc478be26426e555f3c66546e"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "688c0f6213afbd000cd22ad0a44555eca80b40ab"
            },
            {
              "fixed": "0f7989eb5b28d85dcd441ef22f80f8af4f56433e"
            },
            {
              "fixed": "e820e3c9d79a5c07f274558513c8db08a79bf804"
            },
            {
              "fixed": "4b4b69a14eb32775caf7ea3b15a38af6a38a85e7"
            },
            {
              "fixed": "1ef9c449fecbac9bba7b107b016f0874148b8fd9"
            },
            {
              "fixed": "76ddadae9056acafc478be26426e555f3c66546e"
            }
          ],
          "repo": "https://github.com/contao/contao",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-r7cf-mfp4-r23h"
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-180"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/126xxx/CVE-2026-126663.json",
    "unresolved_ranges": [
      {
        "extracted_events": [
          {
            "range": [
              {
                "introduced": "4.0.0"
              },
              {
                "fixed": "5.3.54"
              },
              {
                "introduced": "5.4.0-RC1"
              },
              {
                "fixed": "5.7.17"
              },
              {
                "introduced": "6.0.0-RC1"
              },
              {
                "fixed": "6.0.6"
              }
            ],
            "source": "AFFECTED_FIELD",
            "strategy": "StandardRange"
          }
        ]
      },
      {
        "extracted_events": [
          {
            "range": [
              {
                "introduced": "4.0.0"
              },
              {
                "fixed": "5.3.54"
              },
              {
                "introduced": "5.4.0-rc1"
              },
              {
                "fixed": "5.7.17"
              },
              {
                "introduced": "6.0.0-rc1"
              },
              {
                "fixed": "6.0.6"
              }
            ],
            "source": "CPE_FIELD",
            "strategy": "CPEApplicability"
          }
        ]
      },
      {
        "extracted_events": [
          {
            "range": [
              {
                "introduced": "4.0.0"
              },
              {
                "fixed": "5.3.54"
              },
              {
                "introduced": "5.4.0"
              },
              {
                "fixed": "5.7.17"
              },
              {
                "introduced": "6.0.0"
              },
              {
                "fixed": "6.0.6"
              }
            ],
            "source": "DESCRIPTION"
          }
        ]
      }
    ]
  },
  "details": "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.",
  "id": "CVE-2026-126663",
  "modified": "2026-11-12T02:31:12.580733433Z",
  "published": "2026-11-11T12:24:38.010Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/126xxx/CVE-2026-126663.json"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/contao/contao"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/contao/contao/blob/5.3.53/core-bundle/src/InsertTag/Resolver/LegacyInsertTag.php#L565-L582"
    },
    {
      "type": "FIX",
      "url": "https://github.com/contao/contao/commit/0f7989eb5b28d85dcd441ef22f80f8af4f56433e"
    },
    {
      "type": "FIX",
      "url": "https://github.com/contao/contao/commit/688c0f6213afbd000cd22ad0a44555eca80b40ab"
    },
    {
      "type": "FIX",
      "url": "https://github.com/contao/contao/commit/e820e3c9d79a5c07f274558513c8db08a79bf804"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/contao/contao/releases/tag/5.3.54"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/contao/contao/releases/tag/5.7.17"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/contao/contao/releases/tag/6.0.6"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/contao/contao/security/advisories/GHSA-r7cf-mfp4-r23h"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-126663"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/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"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "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"
}