CVE-2025-49597 is a low-severity (CVSS 3.9) CWE-915 vulnerability in handcraftedinthealps/goodby-csv. A fix is available for handcraftedinthealps/goodby-csv — see the affected versions and patch details below.
handcraftedinthealps goodby-csv Potential Gadget Chain allowing Remote Code Execution
Exploitation Status
No confirmed exploitation observed yet
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for CVE-2025-49597.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
handcraftedinthealps/goodby-csvReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Packagist packages — download data is not available via public APIs for these ecosystems.
Description
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
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐘Packagist | handcraftedinthealps/goodby-csv | all versions | 1.4.3composer require handcraftedinthealps/goodby-csv:^1.4.3 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for handcraftedinthealps/goodby-csv, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update handcraftedinthealps/goodby-csv to 1.4.3 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2025-49597 is resolved across your whole dependency graph.
Workarounds
Do not deserialise data from untrusted sources: where the format allows it, restrict deserialisation to an explicit allowlist of expected types, and prefer a data-only format (JSON, Protobuf) over one that can reconstruct arbitrary objects until you can upgrade.
Frequently Asked Questions
Is CVE-2025-49597 in your dependencies?
Find it across Packagist, including transitive dependencies.