CVE-2026-55825: Contao Path Traversal Vulnerability

LOW
Advisory Identifier: GHSA-grm4-wm43-9jh5
CVSS 3.1
CWE-22
Published
Advisory Summary

CVE-2026-55825 is a LOW (CVSS 3.1) path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Contao libraries in the Packagist ecosystem. The issue involves possible path traversal in job download uris. Remediation is available by upgrading affected packages to version 5.7.7.

CVE-2026-55825 at a Glance

CVE Identifier CVE-2026-55825
GHSA Identifier GHSA-grm4-wm43-9jh5
Severity LOW
CVSS v3.1 Base Score 3.1
CWE Classification CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Product Contao
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 3.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2026-55825

To remediate this vulnerability, upgrade all affected Contao dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

contao/contao fixed: 5.7.7
Upgrade contao/contao to 5.7.7
contao/core-bundle fixed: 5.7.7
Upgrade contao/core-bundle to 5.7.7
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for contao/contao

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-55825, inspect your project dependencies for Contao:

inspect dependencies for contao/contao

Analyze the terminal output to locate any version of Contao in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.7.7), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Contao, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

## Summary An authenticated backend user who can access one job can request an attachment identifier containing `../` segments and make the job attachment download endpoint read a file from another job directory inside `var/job-attachments`. The controller authorizes only the `jobUuid` route parameter. The later attachment lookup joins that authorized job UUID with the attacker-controlled `identifier`, then passes the combined path to the virtual filesystem. `VirtualFilesystem::resolve()` canonicalizes the whole path and only rejects paths that escape the filesystem mount, so `authorized-job/../victim-job/debug_log.csv` becomes `victim-job/debug_log.csv`. This is a cross-job authorization bypass for known job attachment paths. It is not a practical brute-force against unknown jobs because job directories are UUID v4 values. ## Root Cause `JobsController::downloadJobAttachment()` checks access to the route `jobUuid` before loading the attachment: ```php $job = $this->jobs->getByUuid($jobUuid); if (!$job || !$this->jobs->hasAccess($job)) { throw $this->createNotFoundException(); } $attachment = $this->jobs->getAttachment($jobUuid, $identifier); ``` `Jobs::getAttachment()` then resolves a path built from the authorized job UUID and the attacker-controlled identifier: ```php $fileItem = $this->jobAttachmentsStorage->get($this->getAttachmentIdentifier($job, $identifier)); ``` ```php return $job->getUuid().'/'.$identifier; ``` `VirtualFilesystem::resolve()` canonicalizes the combined path. It rejects absolute paths and paths that start with `..`, but it does not preserve the authorized job directory as a boundary: ```php $path = Path::canonicalize($location); if (str_starts_with($path, '..')) { throw new \OutOfBoundsException(...); } return Path::join($this->prefix, $path); ``` Therefore: ```text <authorized-job>/../<victim-job>/debug_log.csv ``` canonicalizes to: ```text <victim-job>/debug_log.csv ``` which remains inside the `job-attachments` filesystem mount and is accepted. ## Recommended Fix Treat the attachment identifier as a filename, not a path: - Reject `/`, `\`, NUL, and dot-segment components in `identifier`. - Add a route requirement that prevents slashes in `{identifier}` if nested attachment paths are not intended. - After resolving, assert the canonical relative path starts with `<authorized-job-uuid>/` before returning a `FilesystemItem`. - Apply the same identifier validation in `Jobs::addAttachment()` so future producers/extensions cannot write outside the owning job directory. ### Impact A low-privileged backend user can read another job's attachment if they know or obtain the target job UUID and attachment filename. Built-in crawler jobs attach CSV logs such as `debug_log.csv`, `broken-link-checker_log.csv`, and `search-index_log.csv`, which can contain crawled URLs, referring URLs, tags, and error messages.

CVE-2026-55825 Affected Contao Versions

2 component(s)
Fixed Versions:
5.7.7
Product / Package Ecosystem Affected Versions Fixed Version
contao/contao
Packagist
≥ 5.7.0
< 5.7.7
5.7.7
contao/core-bundle
Packagist
≥ 5.7.0
< 5.7.7
5.7.7

References

Frequently Asked Questions

What is CVE-2026-55825?
CVE-2026-55825 is a security vulnerability in Contao involving Possible path traversal in job download URIs under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').
Which Contao versions are affected?
Affected versions include releases prior to 5.7.7 across affected packages: contao/contao, contao/core-bundle.
What version fixes CVE-2026-55825?
Upgrading to 5.7.7 (or the latest patched release for your respective branch) resolves the vulnerability.
Is contao/contao affected?
Yes, contao/contao is affected in releases prior to 5.7.7. Upgrade your dependency to 5.7.7 or later.
Is contao/core-bundle affected?
Yes, contao/core-bundle is affected in releases prior to 5.7.7. Upgrade your dependency to 5.7.7 or later.
What is the CVSS score of CVE-2026-55825?
CVE-2026-55825 has a CVSS v3.1 base score of 3.1 (LOW) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2026-55825?
CVE-2026-55825 is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.).
How can I check Packagist dependencies for CVE-2026-55825?
Run the dependency tree command: 'inspect dependencies for contao/contao'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-grm4-wm43-9jh5",
  "modified" : "2026-08-06T19:49:59Z",
  "published" : "2026-08-06T19:49:59Z",
  "aliases" : [ "CVE-2026-55825" ],
  "summary" : "Contao: Possible path traversal in job download URIs",
  "details" : "## Summary\n\nAn authenticated backend user who can access one job can request an attachment identifier containing `../` segments and make the job attachment download endpoint read a file from another job directory inside `var/job-attachments`.\n\nThe controller authorizes only the `jobUuid` route parameter. The later attachment lookup joins that authorized job UUID with the attacker-controlled `identifier`, then passes the combined path to the virtual filesystem. `VirtualFilesystem::resolve()` canonicalizes the whole path and only rejects paths that escape the filesystem mount, so `authorized-job/../victim-job/debug_log.csv` becomes `victim-job/debug_log.csv`.\n\nThis is a cross-job authorization bypass for known job attachment paths. It is not a practical brute-force against unknown jobs because job directories are UUID v4 values.\n\n\n## Root Cause\n\n`JobsController::downloadJobAttachment()` checks access to the route `jobUuid` before loading the attachment:\n\n```php\n$job = $this->jobs->getByUuid($jobUuid);\n\nif (!$job || !$this->jobs->hasAccess($job)) {\n    throw $this->createNotFoundException();\n}\n\n$attachment = $this->jobs->getAttachment($jobUuid, $identifier);\n```\n\n`Jobs::getAttachment()` then resolves a path built from the authorized job UUID and the attacker-controlled identifier:\n\n```php\n$fileItem = $this->jobAttachmentsStorage->get($this->getAttachmentIdentifier($job, $identifier));\n```\n\n```php\nreturn $job->getUuid().'/'.$identifier;\n```\n\n`VirtualFilesystem::resolve()` canonicalizes the combined path. It rejects absolute paths and paths that start with `..`, but it does not preserve the authorized job directory as a boundary:\n\n```php\n$path = Path::canonicalize($location);\n\nif (str_starts_with($path, '..')) {\n    throw new \\OutOfBoundsException(...);\n}\n\nreturn Path::join($this->prefix, $path);\n```\n\nTherefore:\n\n```text\n<authorized-job>/../<victim-job>/debug_log.csv\n```\n\ncanonicalizes to:\n\n```text\n<victim-job>/debug_log.csv\n```\n\nwhich remains inside the `job-attachments` filesystem mount and is accepted.\n\n\n## Recommended Fix\n\nTreat the attachment identifier as a filename, not a path:\n\n- Reject `/`, `\\`, NUL, and dot-segment components in `identifier`.\n- Add a route requirement that prevents slashes in `{identifier}` if nested attachment paths are not intended.\n- After resolving, assert the canonical relative path starts with `<authorized-job-uuid>/` before returning a `FilesystemItem`.\n- Apply the same identifier validation in `Jobs::addAttachment()` so future producers/extensions cannot write outside the owning job directory.\n\n### Impact\nA low-privileged backend user can read another job's attachment if they know or obtain the target job UUID and attachment filename. Built-in crawler jobs attach CSV logs such as `debug_log.csv`, `broken-link-checker_log.csv`, and `search-index_log.csv`, which can contain crawled URLs, referring URLs, tags, and error messages.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "contao/contao"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.7.0"
      }, {
        "fixed" : "5.7.7"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "contao/core-bundle"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.7.0"
      }, {
        "fixed" : "5.7.7"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/contao/contao/security/advisories/GHSA-grm4-wm43-9jh5"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-55825"
  }, {
    "type" : "WEB",
    "url" : "https://contao.org/en/security-advisories/path-traversal-in-the-jobs-module"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/contao/contao/CVE-2026-55825.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/contao/core-bundle/CVE-2026-55825.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/contao/contao"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-08-06T19:49:59Z",
    "nvd_published_at" : "2026-07-31T20:16:52Z"
  }
}