CVE-2020-4043 Phar unserialization vulnerability in phpMussel
Attackers can achieve arbitrary code execution by uploading a specially crafted file exploiting a Phar unserialization vulnerability in phpMussel.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2020-4043?
CVE-2020-4043 is a high-severity unsafe deserialization vulnerability in phpMussel, published on 10 Jun 2020. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
phpMussel from versions 1.0.0 and less than 1.6.0 has an unserialization vulnerability in PHP's phar wrapper. Uploading a specially crafted file to an affected version allows arbitrary code execution (discovered, tested, and confirmed by myself), so the risk factor should be regarded as very high. Newer phpMussel versions don't use PHP's phar wrapper, and are therefore unaffected. This has been fixed in version 1.6.0.
Weakness: CWE-502
Which versions are affected by CVE-2020-4043?
4 open source packages ship an affected version, including maikuolan/phpmussel and phpmussel/phpmussel. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
maikuolan/phpmussel Packagist | From 1.0.0 | 1.6.0 |
maikuolan/phpmussel Packagist | From 1.0.0 | 1.6.0 |
phpmussel/phpmussel Packagist | From 1.0.0 | 1.6.0 |
phpmussel/phpmussel Packagist | From 1.0.0 | 1.6.0 |
Products include Phpmussel Project Phpmussel.
How do I fix CVE-2020-4043?
Upgrade maikuolan/phpmussel to 1.6.0 or later.
Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.
Is CVE-2020-4043 being exploited?
There is no known exploitation of CVE-2020-4043 in the wild and no public exploit code.
Sources
Also known as GHSA-qr95-4mq5-r3fh.