handcraftedinthealps/goodby-csv has Potential Gadget Chain allowing Remote Code Execution
The advisory, in context
Impact
goodby-csv could be used as part of a chain of methods that is exploitable when an insecure deserialization vulnerability exists in an application. This so-called "gadget chain" presents no direct threat but is a vector that can be used to achieve remote code execution if the application deserializes untrusted data due to another vulnerability.
Patches
Has the problem been patched? What versions should users upgrade to?
The problem is patched with Version 1.4.3
Workarounds
Patch src/Goodby/CSV/Export/Standard/Collection /CallbackCollection.php:
+ public function __wakeup() {
+ throw new \BadMethodCallException('Cannot unserialize ' . __CLASS__);
+ }
However, this is not directly exploitable; a separate vulnerability must be present to allow an attacker to pass unsafe input to unserialize(). There are no such known exploits in goodby-csv.
References
Are there any links users can visit to find out more?
Affected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
Earlier releases before 1.4.3
Fixed in 1.4.3
3 explicitly affected versions
1.4.0, 1.4.1, 1.4.2
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1.4.3"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.4.0",
"1.4.1",
"1.4.2"
]
}