GHSA-45xg-4w5x-j429 TYPO3 Arbitrary Shell Execution in Swiftmailer library
Attackers can execute arbitrary shell commands in TYPO3 installations using sendmail transport without a Return-Path configured.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is GHSA-45xg-4w5x-j429?
GHSA-45xg-4w5x-j429 is a command injection vulnerability in typo3/cms, published on 30 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The swiftmailer library in use allows to execute arbitrary shell commands if the "From" header comes from a non-trusted source and no "Return-Path" is configured. Affected are only TYPO3 installation the configuration option
$GLOBALS['TYPO3_CONF_VARS']['MAIL']['transport']
is set to "sendmail". Installations with the default configuration are not affected.
Which versions are affected by GHSA-45xg-4w5x-j429?
8 open source packages ship an affected version, including typo3/cms.
| Package | Affected | Fixed in |
|---|---|---|
typo3/cms Packagist | From 4.5.0 | 4.5.37 |
typo3/cms Packagist | From 4.5.0 | 4.5.37 |
typo3/cms Packagist | From 4.7.0 | 4.7.20 |
typo3/cms Packagist | From 4.7.0 | 4.7.20 |
typo3/cms Packagist | From 6.1.0 | 6.1.12 |
typo3/cms Packagist | From 6.1.0 | 6.1.12 |
2 more packages
typo3/cms Packagist | From 6.2.0 | 6.2.6 |
typo3/cms Packagist | From 6.2.0 | 6.2.6 |
How do I fix GHSA-45xg-4w5x-j429?
Upgrade typo3/cms to a fixed version for your release line: 4.5.37, 4.7.20, 6.1.12 or 6.2.6.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is GHSA-45xg-4w5x-j429 being exploited?
There is no known exploitation of GHSA-45xg-4w5x-j429 in the wild and no public exploit code.