CVE-2025-49597: Handcraftedinthealps/goodby csv Remote Code Execution Vulnerability

LOW
Advisory Identifier: GHSA-x3c7-22c8-prg7
CVSS 3.9
CWE-915
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2025-49597
GHSA Identifier GHSA-x3c7-22c8-prg7
Severity LOW
CVSS v3.1 Base Score 3.9
CWE Classification CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes
Affected Product Handcraftedinthealps/goodby csv
Package Ecosystem Packagist
Published Date
Last Updated

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).

Attack Vector Local (AV:L)
Attack Complexity High (AC:H)
Privileges Required High (PR:H)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability Low (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.

handcraftedinthealps/goodby-csv fixed: 1.4.3
Upgrade handcraftedinthealps/goodby-csv to 1.4.3
Verify Direct and Transitive Dependencies

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

### 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`: ```diff + 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?_

CVE-2025-49597 Affected Handcraftedinthealps/goodby csv Versions

1 component(s)
Fixed Versions:
1.4.3
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?
CVE-2025-49597 is a security vulnerability in Handcraftedinthealps/goodby csv involving handcraftedinthealps/goodby-csv has Potential Gadget Chain allowing Remote Code Execution under CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes.
Which Handcraftedinthealps/goodby csv versions are affected?
Affected versions include releases prior to 1.4.3 across affected packages: handcraftedinthealps/goodby-csv.
What version fixes CVE-2025-49597?
Upgrading to 1.4.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is handcraftedinthealps/goodby-csv affected?
Yes, handcraftedinthealps/goodby-csv is affected in releases prior to 1.4.3. Upgrade your dependency to 1.4.3 or later.
What is the CVSS score of CVE-2025-49597?
CVE-2025-49597 has a CVSS v3.1 base score of 3.9 (LOW) with vector string CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2025-49597?
CVE-2025-49597 is classified under CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes (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.).
How can I check Packagist dependencies for CVE-2025-49597?
Run the dependency tree command: 'inspect dependencies for handcraftedinthealps/goodby-csv'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}