CVE-2025-49597: Handcraftedinthealps/goodby csv Remote Code Execution Vulnerability
LOWCVE-2025-49597 is a LOW (CVSS 3.9) remote code execution vulnerability (CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes) affecting Handcraftedinthealps/goodby csv libraries in the Packagist ecosystem. The issue involves handcraftedinthealps/goodby-csv has potential gadget chain allowing remote code execution. Remediation is available by upgrading affected packages to version 1.4.3.
CVE-2025-49597 at a Glance
Security Impact
CVSS: 3.9
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:L).
How to Fix CVE-2025-49597
To remediate this vulnerability, upgrade all affected Handcraftedinthealps/goodby csv 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 handcraftedinthealps/goodby-csv to 1.4.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for handcraftedinthealps/goodby-csv
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-49597, inspect your project dependencies for Handcraftedinthealps/goodby csv:
inspect dependencies for handcraftedinthealps/goodby-csv
Analyze the terminal output to locate any version of Handcraftedinthealps/goodby csv in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.4.3), 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-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes, where the product receives input from an upstream component that specifies multiple attributes, properties, or fields that are to be initialized or updated in an object, but it does not properly control which attributes can be modified. In Handcraftedinthealps/goodby csv, 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-2025-49597 Affected Handcraftedinthealps/goodby csv Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
handcraftedinthealps/goodby-csv
|
Packagist |
< 1.4.3
|
1.4.3
|
References
Frequently Asked Questions
What is CVE-2025-49597?
Which Handcraftedinthealps/goodby csv versions are affected?
What version fixes CVE-2025-49597?
Is handcraftedinthealps/goodby-csv affected?
What is the CVSS score of CVE-2025-49597?
What CWE is associated with CVE-2025-49597?
How can I check Packagist dependencies for CVE-2025-49597?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-x3c7-22c8-prg7",
"modified" : "2025-06-14T00:23:21Z",
"published" : "2025-06-13T21:09:00Z",
"aliases" : [ "CVE-2025-49597" ],
"summary" : "handcraftedinthealps/goodby-csv has Potential Gadget Chain allowing Remote Code Execution",
"details" : "### Impact\n\ngoodby-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.\n\n### Patches\n\nHas the problem been patched? What versions should users upgrade to?\n\nThe problem is patched with Version 1.4.3\n\n### Workarounds\n\nPatch `src/Goodby/CSV/Export/Standard/Collection /CallbackCollection.php`:\n\n```diff\n+ public function __wakeup() {\n+ throw new \\BadMethodCallException('Cannot unserialize ' . __CLASS__);\n+ }\n```\n\nHowever, 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.\n\n### References\n_Are there any links users can visit to find out more?_",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "handcraftedinthealps/goodby-csv"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.4.3"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/handcraftedinthealps/goodby-csv/security/advisories/GHSA-x3c7-22c8-prg7"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-49597"
}, {
"type" : "WEB",
"url" : "https://github.com/handcraftedinthealps/goodby-csv/commit/acd14c6ed85116bb2cb4da35ab62821e5cf54519"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/handcraftedinthealps/goodby-csv"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-915" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2025-06-13T21:09:00Z",
"nvd_published_at" : "2025-06-13T20:15:23Z"
}
}