CVE-2020-4043: Phpmussel/phpmussel Phar Unserialization Vulnerability Vulnerability
HIGHCVE-2020-4043 is a HIGH (CVSS 7.7) phar unserialization vulnerability vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Phpmussel/phpmussel libraries in the Packagist ecosystem. The issue involves phar unserialization vulnerability in phpmussel. Remediation is available by upgrading affected packages to version 1.6.0.
CVE-2020-4043 at a Glance
Security Impact
CVSS: 7.7
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N).
How to Fix CVE-2020-4043
To remediate this vulnerability, upgrade all affected Phpmussel/phpmussel dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade phpmussel/phpmussel to 1.6.0
Upgrade maikuolan/phpmussel to 1.6.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for phpmussel/phpmussel
How to Check if You Are Affected
To determine whether your application is affected by CVE-2020-4043, inspect your project dependencies for Phpmussel/phpmussel:
inspect dependencies for phpmussel/phpmussel
Analyze the terminal output to locate any version of Phpmussel/phpmussel in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.6.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. In Phpmussel/phpmussel, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2020-4043 Affected Phpmussel/phpmussel Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
phpmussel/phpmussel
|
Packagist |
≥ 1.0.0
< 1.6.0
|
1.6.0
|
|
maikuolan/phpmussel
|
Packagist |
≥ 1.0.0
< 1.6.0
|
1.6.0
|
References
Frequently Asked Questions
What is CVE-2020-4043?
Which Phpmussel/phpmussel versions are affected?
What version fixes CVE-2020-4043?
Is phpmussel/phpmussel affected?
Is maikuolan/phpmussel affected?
What is the CVSS score of CVE-2020-4043?
What CWE is associated with CVE-2020-4043?
How can I check Packagist dependencies for CVE-2020-4043?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-qr95-4mq5-r3fh",
"modified" : "2022-10-11T18:27:10Z",
"published" : "2020-06-10T19:40:30Z",
"aliases" : [ "CVE-2020-4043" ],
"summary" : "Phar unserialization vulnerability in phpMussel",
"details" : "### Impact\n_What kind of vulnerability is it? Who is impacted?_\n\nAnyone using >= v1.0.0 < v1.6.0.\n\n### Patches\n_Has the problem been patched? What versions should users upgrade to?_\n\nYes. Upgrading to at least >= v1.6.0 (the earliest safe version) will resolve the problem. However, as multiple new major versions have been released since that version, upgrading to the latest available version is recommended, in order to protect against any potential future vulnerabilities, unknown at the time of writing this advisory.\n\n### Workarounds\n_Is there a way for users to fix or remediate the vulnerability without upgrading?_\n\nYes. In the package's configuration, disable archive checking by setting `check_archives` to `false` (thus avoiding execution of the affected parts of the codebase entirely).\n\n### References\n_Are there any links users can visit to find out more?_\n\nYes. The vulnerability is documented at [SECURITY.md](https://github.com/phpMussel/phpMussel/security/policy) and also at [#167](https://github.com/phpMussel/phpMussel/issues/167).\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Comment at the issue linked to this advisory, or..\n* Contact [the package author](https://github.com/Maikuolan).\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "phpmussel/phpmussel"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.0.0"
}, {
"fixed" : "1.6.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "maikuolan/phpmussel"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.0.0"
}, {
"fixed" : "1.6.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/phpMussel/phpMussel/security/advisories/GHSA-qr95-4mq5-r3fh"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-4043"
}, {
"type" : "WEB",
"url" : "https://github.com/phpMussel/phpMussel/issues/167"
}, {
"type" : "WEB",
"url" : "https://github.com/phpMussel/phpMussel/pull/173"
}, {
"type" : "WEB",
"url" : "https://github.com/phpMussel/phpMussel/commit/97f25973433921c1f953430f32d3081adc4851a4"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/phpMussel/phpMussel"
}, {
"type" : "WEB",
"url" : "https://github.com/phpMussel/phpMussel/security/policy#currently-known-vulnerabilities"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-502" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-10T19:39:58Z",
"nvd_published_at" : null
}
}