VDB
Sign up
MEDIUM6.6

GHSA-98vj-mm79-v77r

Contao is vulnerable to remote code execution in template closures

Quick fix

GHSA-98vj-mm79-v77r — contao/core-bundle: upgrade to the fixed version with the command below.

composer require contao/core-bundle:^4.13.57

Details

### Impact

Backend users with precise control over the contents of template closures can execute arbitrary PHP functions that do not have required parameters.

### Patches

Update to Contao 4.13.57, 5.3.42 or 5.6.5

### Workarounds

Manually patch the `Contao\Template::once()` method.

### Resources

https://contao.org/en/security-advisories/remote-code-execution-in-template-closures

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/contao/core-bundle
Introduced in: 4.0.0Fixed in: 4.13.57
Fixcomposer require contao/core-bundle:^4.13.57
Packagist/contao/core-bundle
Introduced in: 5.0.0-RC1Fixed in: 5.3.42
Fixcomposer require contao/core-bundle:^5.3.42
Packagist/contao/core-bundle
Introduced in: 5.4.0-RC1Fixed in: 5.6.5
Fixcomposer require contao/core-bundle:^5.6.5

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:composer/contao/core-bundle"]}'