CVE-2020-4043: Phar unserialization vulnerability in phpMussel

phpmussel/phpmussel Updated 02 Oct 2025

Summary

10/06/2020
Yes i
High
7.7

CVE-2020-4043: Phar unserialization vulnerability in phpMussel. Affects phpmussel/phpmussel versions >= 1.0.0, < 1.6.0. Fixed in 1.6.0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

phpMussel is an open-source package available on Packagist that provides a PHP-based anti-virus scanner for detecting and removing malicious code from files. It is commonly used to enhance the security of web applications by scanning uploaded files for potential threats. However, versions between v1.0.0 and v1.6.0 of phpMussel are vulnerable to a Phar unserialization vulnerability.

Vulnerability Detail

The vulnerability in phpMussel arises from a Phar unserialization issue. This vulnerability allows an attacker to execute arbitrary code during the unserialization process, potentially leading to remote code execution. Any user of phpMussel with a version between v1.0.0 and v1.6.0 is impacted by this vulnerability. The severity of this vulnerability is rated as HIGH with a CVSS score of 7.7.

How To Fix

Minimum fixed version

1.6.0

This is the first release that contains the fix.

composer require phpmussel/phpmussel:1.6.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If upgrading is not immediately feasible, users can disable archive checking in the package's configuration by setting the 'check_archives' parameter to 'false'. This will prevent the execution of the affected parts of the codebase and mitigate the vulnerability.

Conclusion

In conclusion, the Phar unserialization vulnerability in phpMussel poses a significant risk to users of versions between v1.0.0 and v1.6.0. It is crucial to upgrade to at least v1.6.0 or the latest available version to ensure the security of the application. If immediate upgrading is not possible, disabling archive checking can provide a temporary workaround. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for phpmussel/phpmussel →

Share this vulnerability

FAQ

Anyone using phpMussel with a version between v1.0.0 and v1.6.0 is affected by this vulnerability.

The vulnerability allows an attacker to execute arbitrary code, potentially leading to remote code execution.

Yes, the vulnerability has been patched in phpMussel v1.6.0 and later versions.

Yes, users can disable archive checking in the package's configuration to mitigate the vulnerability.

More information about this vulnerability can be found in the SECURITY.md file of the phpMussel repository and in issue #167 on GitHub.

How To Fix

Minimum fixed version

1.6.0

This is the first release that contains the fix.

composer require phpmussel/phpmussel:1.6.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback