PatchClock

PHP security digest · 20 Nov 2026

contao/core-bundle: Improper access control in the CSV import wizard

Medium CVE-2026-104882

Package
contao/core-bundle
Fixed in
5.3.50, 5.7.12
Published
Fri 20 Nov 2026, 23:44 LisbonUpdated Fri 27 Nov 2026, 00:45 Lisbon
Installs on Packagist
2M

In plain words

A non-admin editor restricted to certain pages or forms can use the CSV import wizard to overwrite table items, list items or options in content and form-field records outside their scope. The custom backend action checks access to the module but does not check access to each record. This allows unauthorised content changes, not object injection.

Affected versions

PackageAffectedFixed in
contao/core-bundle>= 5.0.0, < 5.3.505.3.50
contao/core-bundle>= 5.4.0-RC1, < 5.7.125.7.12

How serious is it?

Medium is a CVSS score of 4.0 to 6.9: real impact, but the attacker needs something first, such as an account, a particular setting or a user who clicks a link. If your site meets that condition, treat it as High; if not, ship the fix in your next planned release.

contao/core-bundle has 2M installs on Packagist, so the advisory reaches a large number of projects: expect scanners to look for it soon.

Am I affected?

Look for contao/core-bundle in composer.lock. Affected versions are >= 5.0.0, < 5.3.50 and >= 5.4.0-RC1, < 5.7.12; the fixes are 5.3.50 and 5.7.12. Check whether non-admin editors restricted to particular pages or forms have module-level access to the CSV import wizard. The affected records are in tl_content and tl_form_field.

Did you install contao/core-bundle, or did a dependency?

Composer says why a package is in your project:

composer why contao/core-bundle

If the output names your own project, you required contao/core-bundle directly and the update is yours to make. If it names another package, contao/core-bundle came in through it, and that package's version constraint decides which release you can install. To see what stands between you and the fix, ask Composer directly:

composer why-not contao/core-bundle 5.3.50

Every line it prints is a constraint that blocks 5.3.50. Update the package it names, or raise your own constraint, and run it again until it prints nothing. If you stay on an older branch, ask about its fix instead: 5.7.12.

What to do

Check which version you have, then update to a fixed release for your branch (5.3.50, 5.7.12):

composer show contao/core-bundle | grep versions
composer update contao/core-bundle

If your version constraint in composer.json keeps you below a fixed release, raise it first. Whether your configuration is affected, and the exact version ranges, are in the advisory itself.

Check the whole project at once

Composer 2.4 and later can list every installed package with a known advisory, this one included once Packagist has it:

composer audit --locked

--locked reads composer.lock instead of the vendor folder, so you can run it on a release tag or in CI without installing anything. It exits with a non-zero code when it finds an advisory, which is enough to fail a build. Run it on every branch you still support, not only the newest: an older release your customers run is affected in the same way.

Under the Cyber Resilience Act

CRA Article 14 timeline: aware of exploitation at hour 0, early warning within 24 hours, notification within 72 hours, final report within 14 days after the fix.

No exploitation of this vulnerability is known, so on its own it does not start the Article 14 reporting clock, which covers actively exploited vulnerabilities. That changes if you learn it is being exploited through your product: then the 24-hour early warning applies.

Either way, if contao/core-bundle ships inside a product you sell, the CRA treats its vulnerabilities as yours. Article 13(5) asks for due diligence on the components you include, and from 11 December 2027 Annex I asks you to ship security fixes without delay and free of charge for the support period you declared. A short note in your changelog saying which release updated contao/core-bundle, and why, is the evidence you will want later.

What goes in each Article 14 report · Does the CRA apply to your product?

contao/core-bundle's record

This is one of 10 advisories for contao/core-bundle in the digest, the first published on 24 September 2026. A package with several advisories is not worse than one with none, which often just means nobody looked; it does tell you to keep it on your update list and to run composer audit after each update.

Other advisories for contao/core-bundle

  • CVE-2026-104884 · 20 Nov 2026 · Medium · fixed in 5.3.50, 5.7.12 contao/core-bundle: Cross-site scripting in the frontend search results
  • CVE-2026-104883 · 20 Nov 2026 · High · fixed in 5.3.50, 5.7.12 contao/core-bundle: Non-admin users can self-grant permissions that implicitly make them administrators
  • CVE-2026-107842 · 9 Oct 2026 · Medium · fixed in 5.3.50, 5.7.12 Contao: Protected page content is disclosed to anonymous visitors after contao.search.index_protected is disabled
  • CVE-2026-107843 · 9 Oct 2026 · Medium · fixed in 5.3.50, 5.7.12 Contao: The registration module re-sends activation mails
  • CVE-2026-107848 · 9 Oct 2026 · Low · fixed in 5.3.50, 5.7.12 Contao: Cross-site request forgery in custom backend actions
  • CVE-2026-107844 · 9 Oct 2026 · Medium · fixed in 5.3.50, 5.7.12 Contao: Path traversal in the images controller
  • CVE-2026-107850 · 9 Oct 2026 · Medium · fixed in 5.7.12 Contao: Improper access control in the preview links module
  • CVE-2026-107851 · 9 Oct 2026 · Medium · fixed in 5.7.12 Contao: Improper access control in the table access voter

The advisory's description

Custom backend module "key" actions are dispatched in Backend::getBackendModule() (Backend.php:322-327) after only the module-level USER_CAN_ACCESS_MODULE check - no per-record voter runs.

Impact

A non-admin editor scoped to certain pages/forms can overwrite the tableitems/listitems/options of arbitrary tl_content / tl_form_field records outside their scope, defeating the per-record access control. Integrity IDOR (blind content overwrite; the value written is serialize() of a plain string array from the CSV - not object injection).

Credits

This security vulnerability was found by @HDWSec

Weakness: CWE-639 Authorization Bypass Through User-Controlled Key; CWE-862 Missing Authorization. Reported by HDWSec.

CWE-639. Insecure direct object reference: changing an id in the request reaches another user's record.

CWE-862. Missing authorization: an action checks that you are logged in but not that you are allowed to do it.

The advisory

From OSV.dev, which gathers the GitHub Advisory Database, FriendsOfPHP and Drupal security advisories; the summary is theirs. The description, affected versions, weakness and credits are from the GitHub Advisory Database (CC BY 4.0). "In plain words", "Am I affected?" and "If you cannot update yet" are based on that advisory, and checked to name no version it does not.