CVE-2026-55825: Path traversal in the jobs module

Published Jun 15, 2026
·
Updated

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/debuglog.csv becomes victim-job/debuglog.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 (strstartswith($path, '..')) { throw new \OutOfBoundsException(...); }

return Path::join($this->prefix, $path);

Therefore:

text <authorized-job>/../<victim-job>/debuglog.csv

canonicalizes to:

text <victim-job>/debuglog.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 debuglog.csv, broken-link-checkerlog.csv, and search-indexlog.csv, which can contain crawled URLs, referring URLs, tags, and error messages.

Other sources

Contao is an Open Source CMS. In versions 5.7.0 through 5.7.6, 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/debuglog.csv becomes victim-job/debuglog.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.

— MITRE

Affected Software

5 affected componentsFixes available
Contao Contao>=5.7.0<=5.7.6
composer/contao/core-bundle>=5.7.0<5.7.7
5.7.7
composer/contao/contao>=5.7.0<5.7.7
5.7.7
composer/contao/core-bundle>=5.7.0, <5.7.7
5.7.7
composer/contao/contao>=5.7.0, <5.7.7
5.7.7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/contao/core-bundle to a version that resolves this vulnerability.

    Fixed in 5.7.7
  2. Upgrade

    Upgrade composer/contao/contao to a version that resolves this vulnerability.

    Fixed in 5.7.7
  3. Configuration

    Treat attachment identifiers as filenames rather than paths. Add a route requirement preventing slashes in {identifier}, reject /, \, NUL, and dot-segment components, and apply the same validation in Jobs::addAttachment().

    Contao jobs attachment handling attachment identifier validation = Reject /, \, NUL, dot-segment components, and slashes in route parameter {identifier}
  4. Configuration

    After resolving an attachment path, assert that the canonical relative path starts with <authorized-job-uuid>/ before returning a FilesystemItem.

    Contao jobs attachment download resolution canonical relative path boundary = Must start with <authorized-job-uuid>/

Event History

Jun 15, 2026
Advisory Published
via Packagist·03:39 PM
Data Sourced
via Packagist·03:39 PM
DescriptionSeverityAffected Software
Jul 31, 2026
CVE Published
via MITRE·07:07 PM
Data Sourced
via MITRE·07:07 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:16 PM
DescriptionSeverityWeakness
Aug 6, 2026
Advisory Published
via GitHub·07:49 PM
Data Sourced
via GitHub·07:49 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-55825?

The severity of CVE-2026-55825 is classified as low, with a score of 3.1.

2

How do I fix CVE-2026-55825?

To fix CVE-2026-55825, users should upgrade to Contao versions later than 5.7.6 where the vulnerability has been addressed.

3

What type of vulnerability is CVE-2026-55825?

CVE-2026-55825 is a path traversal vulnerability that could allow an authenticated user to access unauthorized files.

4

Who is affected by CVE-2026-55825?

CVE-2026-55825 affects Contao versions 5.7.0 through 5.7.6 for authenticated backend users.

5

What can an attacker achieve with CVE-2026-55825?

An attacker exploiting CVE-2026-55825 can request attachments from other job directories by manipulating attachment identifiers.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203