Oct 10, 2026·5 min read·17 visits
Contao CMS fails to validate anti-CSRF tokens for custom backend GET actions using query parameters like `key=`. An attacker can trick an authenticated backend user into visiting a crafted URL to execute unauthorized state-changing operations within the user's permission scope.
Contao Open Source CMS versions 4.0.0 through 5.3.49 and 5.4.0-RC1 through 5.7.11 contain a Cross-Site Request Forgery (CSRF) vulnerability in backend parameter handling. The `RequestTokenListener` component validates anti-CSRF tokens solely for HTTP POST requests, while GET-based declarative guards run only when an `act` parameter is present in the query string. Consequently, custom backend actions dispatched via alternative parameters such as `key=` can execute without CSRF token verification when triggered by an authenticated user.
CVE-2026-107848 identifies a Cross-Site Request Forgery (CSRF) vulnerability in Contao Open Source CMS affecting versions 4.0.0 through 5.3.49 and 5.4.0-RC1 through 5.7.11. The issue resides in the request listener and guard components responsible for anti-CSRF token verification across backend endpoints.
Contao relies on a dual-layer strategy for preventing cross-site request forgery: global request validation via RequestTokenListener and localized declarative route guards. However, RequestTokenListener was configured to validate the REQUEST_TOKEN parameter (rt) exclusively for HTTP POST requests, leaving HTTP GET requests unmonitored by default.
While declarative GET guards enforced token verification when the act parameter was present in the query string, custom backend actions dispatched via alternative parameters such as key bypassed these checks. Consequently, authenticated backend users who access external malicious URLs can inadvertently trigger state-changing operations within the context of their active sessions.
The root cause of CVE-2026-107848 stems from an incomplete CSRF token enforcement model in RequestTokenListener and route parameter validation. The framework's core request listener assumes that state-altering HTTP requests strictly utilize the POST method. Therefore, the listener bypasses token evaluation when processing HTTP GET requests.
To compensate for GET-based operations, Contao implemented localized declarative guards. These guards check for REQUEST_TOKEN validation specifically when the act query parameter is supplied (e.g., act=edit or act=delete). Operations defined through alternative keys, such as key=resend in tl_opt_in.php or administrative actions in DebugController, fail to invoke these guards.
Because the framework does not inspect query parameters outside the act namespace for anti-CSRF token validation during GET processing, an attacker can construct a cross-site GET link targeting a vulnerable module action. When an authenticated administrator or backend user accesses the crafted link, the handler processes the action under the victim's session privileges.
The remediation implemented in commit 34dd27ee6739f10568d3d95d8784862255c925b4 addresses the vulnerability across three architectural layers: Data Container Array (DCA) declarations, controller token checks, and backend navigation generation.
In DCA configurations like tl_opt_in.php, custom operations that were previously executable via GET requests were explicitly updated to require HTTP POST requests. This ensures that RequestTokenListener evaluates the anti-CSRF token automatically.
// Contao DCA configuration fix in tl_opt_in.php
'operations' => [
'resend' => [
'href' => 'key=resend',
'icon' => 'resend.svg',
// Added method enforcement to prevent GET-based execution
'method' => 'POST',
]
];Additionally, controller handlers such as DebugController and opt-in token re-issuance routines were updated to perform direct verification via ContaoCsrfTokenManager::isTokenValid(). BackendMenuListener was updated to inject valid rt query parameters into dynamic navigation elements, ensuring legitimate backend links pass verification.
Exploitation of CVE-2026-107848 requires an authenticated backend user to load an attacker-controlled URL or web page containing a cross-site GET request. The attack relies on social engineering or drive-by navigation to direct the victim to a malicious target.
<!-- Example CSRF exploit payload targeting key=resend endpoint -->
<img src="https://victim-contao.example.com/contao?do=opt_in&key=resend&id=123" width="1" height="1" alt="" />When the victim loads a page hosting the payload above, the browser automatically sends ambient session cookies (ContaoBackendSession) to the target application. Because the request uses the GET method and lacks an act parameter, RequestTokenListener skips token validation and executes the underlying state-changing action.
The vulnerability does not grant full privilege escalation or arbitrary code execution directly. Reachable operations are strictly constrained to the module permissions and role privileges of the victim's session.
The security impact of CVE-2026-107848 is rated as Low severity under CVSS v3.1, with a base score of 3.5 (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N). The vulnerability impacts data integrity within the boundaries of an authenticated backend session.
Because the flaw allows unauthenticated remote web pages to initiate backend actions on behalf of logged-in users, an attacker can trigger administrative side effects such as resending notification tokens or invoking debug routines. Confidentiality and availability remain unaffected.
The Exploit Prediction Scoring System (EPSS) assigns a probability score of 0.00113 (1.34th percentile), reflecting low likelihood of automated mass exploitation. No active exploitation in the wild or inclusion in the CISA KEV catalog has been observed.
The primary remediation for CVE-2026-107848 is upgrading Contao to fixed versions 5.3.50 or 5.7.12 or higher. Administrator teams should apply the update using Composer.
# Upgrade Contao core packages via Composer
php composer.phar update contao/contaoDevelopers maintaining custom Contao extensions or bespoke Data Container Arrays (DCA) must review custom operation declarations (key=). All state-changing endpoints should specify 'method' => 'POST' in DCA definitions or explicitly check tokens using ContaoCsrfTokenManager::isTokenValid().
> [!NOTE]
> Deploying SameSite=Strict or SameSite=Lax configuration for backend session cookies provides defense-in-depth against cross-site GET request vectors across browser environments.
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N| Product | Affected Versions | Fixed Version |
|---|---|---|
contao/contao contao | >= 4.0.0, < 5.3.50 | 5.3.50 |
contao/contao contao | >= 5.4.0-RC1, < 5.7.12 | 5.7.12 |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-352 (Cross-Site Request Forgery) |
| Attack Vector | Network (AV:N) |
| CVSS v3.1 Score | 3.5 (Low) |
| EPSS Score | 0.00113 (1.34th percentile) |
| Impact | Low Integrity Impact (State-changing backend operations) |
| Exploit Status | None / No public functional exploit |
| CISA KEV Status | Not listed |
The web application does not, or can not, verify whether a well-formed, valid, consistent request was intentionally provided by the user who submitted the request.
Canonical LXD and LXC Incus contain an arbitrary file write vulnerability (CWE-73 / CWE-59) in the `/1.0/instances/<name>/exec` REST API endpoint. When an instance is unpacked from an image archive, top-level symbolic links are extracted directly onto the host filesystem within the instance storage directory. If a crafted image includes a symbolic link named `exec-output` pointing to an arbitrary host path, invoking the execution endpoint with `record-output: true` causes the privileged host daemon to follow the symlink and write command output files directly to the target host directory. An authenticated attacker with permissions to import images and execute commands can exploit this flaw to write controlled content to sensitive host directories such as `/etc/cron.d`, resulting in arbitrary code execution on the host as `root`.
CVE-2026-48749 (tracked as GHSA-vghh-5rfx-xhq8 for LXD and GHSA-2q3f-q5pq-g8wv for Incus) is a critical container escape vulnerability in the Canonical LXD and Linux Containers Incus system container managers. By importing a specially crafted container image archive containing duplicate tar member headers, an authenticated attacker can replace the instance rootfs directory with a symbolic link pointing to the underlying host root filesystem. When performing file operations on a stopped container, the privileged forkfile helper binary resolves the symbolic link without confinement and chroots directly into the host filesystem, granting arbitrary root-level file read and write access.
GHSA-fmc8-p6q7-75cc (associated with CVE-2026-48755) is a critical argument injection vulnerability in Canonical LXD (github.com/canonical/lxd). The vulnerability occurs during instance and storage volume backup operations when processing the user-supplied compression_algorithm configuration parameter. While LXD validates the primary executable token against an allowlist of supported compression binaries, it fails to sanitize or restrict subsequent tokens parsed via shellquote.Split. These additional arguments are passed directly to exec.Command. An authenticated attacker with privileges to trigger backups can inject command-line flags for utilities like zstd to read staged files from a container filesystem and write them to arbitrary paths on the underlying host filesystem, such as /etc/cron.d/, achieving root-level arbitrary code execution on the host.
A critical path traversal vulnerability caused by improper input validation (CWE-20) exists in the direct image download handler of Canonical LXD and Linux Containers Incus. When an authenticated user requests an image import using the URL source type, the daemon reads the image fingerprint from an untrusted HTTP response header (`Incus-Image-Hash` or `LXD-Image-Hash`) without validating that it conforms to a SHA-256 format. This unvalidated string is concatenated directly into a filesystem path via `filepath.Join` prior to file creation and cryptographic verification, allowing directory traversal sequences to write arbitrary files on the host filesystem as root.
CVE-2026-9639 (GHSA-j93m-3j9p-m5m8) is a null pointer dereference vulnerability in Canonical LXD affecting versions 5.0.0 through 5.21.4 and 6.0 through 6.8. The flaw resides in the (*lxdBackend).CreateCustomVolumeFromBackup method within lxd/storage/backend_lxd.go. An authenticated attacker with the can_create_storage_volumes permission can upload a crafted custom volume backup tarball that omits the expires_at field on a snapshot entry, triggering an unhandled SIGSEGV panic and terminating the LXD daemon.
An operating system command injection vulnerability (CWE-78) exists in GeoNode versions prior to 5.1.0. The vulnerability occurs in the vector upload processing pipeline when handling user-supplied geospatial files. By supplying a crafted layer name containing shell metacharacters, an authenticated attacker with basic data upload privileges can execute arbitrary commands on the underlying server or container hosting the GeoNode application and Celery worker processes.