---
title: "GHSA-wxxw-5gq6-j2g5: contao/core Insufficient input validation allows for code injection and remote execution"
url: https://erroneo.us/security/ghsa/GHSA-wxxw-5gq6-j2g5/
description: "GHSA-wxxw-5gq6-j2g5 (critical, Composer (PHP)): contao/core Insufficient input validation allows for code injection and remote execution. contao/core…"
type: advisory
section: "Security Digest"
date_published: 2024-05-15
date_modified: 2024-05-15
publisher: erroneo.us
author: erroneo.us Security Desk
ghsa: "GHSA-wxxw-5gq6-j2g5"
license: All rights reserved. Quote with attribution and a link.
---

# GHSA-wxxw-5gq6-j2g5: contao/core Insufficient input validation allows for code injection and remote execution

## Affected packages

- Composer (PHP) `contao/core` >= 2.0.0, < 2.11.17 → fixed: 2.11.17
- Composer (PHP) `contao/core` >= 3.0.0, < 3.2.9 → fixed: 3.2.9

## Details

contao/core versions 2.x prior to 2.11.17 and 3.x prior to 3.2.9 are vulnerable to arbitrary code execution on the server due to insufficient input validation. In fact, attackers can remove or change pathconfig.php by entering a URL, meaning that the entire Contao installation will no longer be accessible or malicious code can be executed.

## Sources

- [GitHub Advisory GHSA-wxxw-5gq6-j2g5](https://github.com/advisories/GHSA-wxxw-5gq6-j2g5)
- [github.com](https://github.com/contao/core/issues/6855)
- [github.com](https://github.com/contao/core/commit/d45503568751a868193929ef349a49ae5e6686f0)
- [github.com](https://github.com/contao/core/commit/d4a14f167e0cbb2e77c7829299e5b36f55c1ebce)
- [c-c-a.org](https://c-c-a.org/aktuelles/news/details/eine-neue-kritische-sicherheitsluecke-in-contao-entdeckt)
- [github.com](https://github.com/FriendsOfPHP/security-advisories/blob/master/contao/core/2014-04-07.yaml)
- [web.archive.org](https://web.archive.org/web/20240214121817/https://contao.org/en/news/new-security-hole-found-in-contao)

---
Source page: https://erroneo.us/security/ghsa/GHSA-wxxw-5gq6-j2g5/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
