CVE-2026-107851: Contao Improper Access Control Vulnerability
MODERATECVE-2026-107851 is a MODERATE (CVSS 4.3) improper access control vulnerability (CWE-524: Use of Cache Containing Sensitive Information) affecting Contao libraries in the Packagist ecosystem. The issue involves improper access control in the table access voter. Remediation is available by upgrading affected packages to version 5.7.12.
CVE-2026-107851 at a Glance
Security Impact
CVSS: 4.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N).
How to Fix CVE-2026-107851
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.
Upgrade contao/core-bundle to 5.7.12
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for contao/core-bundle
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-107851, inspect your project dependencies for Contao:
inspect dependencies for contao/core-bundle
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.12), 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-524: Use of Cache Containing Sensitive Information, where the code uses a cache that contains sensitive information, but the cache can be read by an actor outside of the intended control sphere. 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
CVE-2026-107851 Affected Contao Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
contao/core-bundle
|
Packagist |
≥ 5.7.0
< 5.7.12
|
5.7.12
|
References
Frequently Asked Questions
What is CVE-2026-107851?
Which Contao versions are affected?
What version fixes CVE-2026-107851?
Is contao/core-bundle affected?
What is the CVSS score of CVE-2026-107851?
What CWE is associated with CVE-2026-107851?
How can I check Packagist dependencies for CVE-2026-107851?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-5974-gfqc-wrcm",
"modified" : "2026-10-09T20:53:42Z",
"published" : "2026-10-09T20:53:42Z",
"aliases" : [ "CVE-2026-107851" ],
"summary" : "Contao: Improper access control in the table access voter",
"details" : "Due to a caching defect in the security voter that governs table-level access to Contao's Data Container (DCA) backend, a low-privileged, non-admin backend user can obtain unauthorized read, create, update, and delete access to database tables outside their assigned module permissions. This includes tables containing sensitive personal data, such as frontend member records and newsletter subscriber e-mail addresses.\n\n### Vulnerability Details\n\nIn plain terms: Contao's backend is organized into modules (e.g. \"News\", \"Members\"). Every backend user is assigned to a group, and that group decides which modules, and therefore which database tables, they are allowed to work with. Before Contao lets a user touch a table, it is supposed to check: \"does this user's group actually include this table?\"\n\nTo avoid doing that check over and over, Contao remembers the answer for the rest of the request. The problem is that it remembers the answer under the wrong label. Instead of remembering \"is this user allowed to access table X\", it only remembers \"is this user allowed to access something\", without recording which table the answer was actually about.\n \nSo if a request first checks a table the user IS allowed to see, and then checks a second, completely different table the user is NOT allowed to see, Contao reuses the first answer for the second table too. The user ends up with access to a table their group was never given permission for.\n \n### Technical detail\n \nContao's backend enforces per-table access control through a chain of Symfony security voters. The relevant one is\n`TableAccessVoter::hasAccessToModule()`, in `core-bundle/src/Security/Voter/DataContainer/TableAccessVoter.php`:\n \n```php\n private array $canAccessTable = [];\n private array $canReadAccessTable = [];\n \n private function hasAccessToModule(TokenInterface $token, ...): bool\n {\n $tokenHash = hash('xxh128', serialize($token));\n \n if (isset($this->canAccessTable[$tokenHash]) || (...)) {\n return $this->canAccessTable[$tokenHash] ?? $this->canReadAccessTable[$tokenHash];\n }\n \n $table = $subject->getDataSource();\n \n foreach ($GLOBALS['BE_MOD'] as $modules) {\n ...\n return $this->canAccessTable[$tokenHash] = true; // or false\n }\n }\n ```\n\nThe cache key, `$tokenHash`, is built only from the current user's security token. It does not include the table being checked. Because `TableAccessVoter` is a normal, shared Symfony service, this cache stays alive for the whole duration of one HTTP request. So the first table checked for a user in a request decides the cached answer for every other table checked afterwards in that same request, whether or not that answer is actually correct for the second table.\n \nThis is made worse by `DefaultDataContainerVoter`, a low-priority, permissive fallback voter that grants access to any table-related permission unless another voter explicitly denies it. When `TableAccessVoter` gives a wrong \"no opinion\" answer because of the stale cache, this fallback voter turns that into a full grant.\n \nMost database tables in Contao have no second, table-specific check to catch this. Only `tl_content`, `tl_favorites`, `tl_form`, `tl_form_field`, `tl_module`, `tl_image_size(_item)`, `tl_job`, `tl_layout`, `tl_page`, `tl_preview_link`, `tl_undo`, and `tl_user` have one. Tables such as `tl_member` (website member data), `tl_newsletter_recipients` (subscriber e-mail addresses), `tl_news`, `tl_calendar_events`, `tl_faq`, and `tl_comments` rely only on the defective check described above.\n\n### Credits\n\nThis security vulnerability was found by Sven Jäger of SySS GmbH.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "contao/core-bundle"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "5.7.0"
}, {
"fixed" : "5.7.12"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/contao/contao/security/advisories/GHSA-5974-gfqc-wrcm"
}, {
"type" : "WEB",
"url" : "https://github.com/contao/contao/commit/9d6f582a4cc6a758ce11d1043fc9c0ba62c5f4c9"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/contao/contao"
}, {
"type" : "WEB",
"url" : "https://github.com/contao/contao/releases/tag/5.7.12"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-524", "CWE-863" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-10-09T20:53:42Z",
"nvd_published_at" : null
}
}