CVE-2025-49597: handcraftedinthealps/goodby-csv Remote Code Execution Risk via Gadget Chain

Summary

13/06/2025
Yes i
Low
3.9

CVE-2025-49597: handcraftedinthealps/goodby-csv has Potential Gadget Chain allowing Remote Code Execution. Affects handcraftedinthealps/goodby-csv versions < 1.4.3. Fixed in 1.4.3. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The handcraftedinthealps/goodby-csv package is a PHP library designed for handling CSV file exports efficiently. It provides various functionalities for exporting data in CSV format, making it a popular choice among developers. However, it has been identified to have a potential gadget chain vulnerability that could lead to remote code execution if combined with an insecure deserialization flaw in an application.

Vulnerability Detail

The vulnerability in goodby-csv arises from its potential to be exploited as part of a gadget chain, which is a sequence of methods that can be leveraged to execute arbitrary code. This vulnerability does not pose a direct threat on its own; however, it can be exploited if an application deserializes untrusted data due to another existing vulnerability. The specific technical aspect involves the unserialize() function, which can be manipulated if unsafe input is passed to it, leading to remote code execution.

How To Fix

Minimum fixed version

1.4.3

This is the first release that contains the fix.

composer require handcraftedinthealps/goodby-csv:1.4.3

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, you can modify the file located at src/Goodby/CSV/Export/Standard/Collection/CallbackCollection.php by adding the following code snippet:

public function __wakeup() {

   throw new \BadMethodCallException('Cannot unserialize ' . __CLASS__);
}

This change prevents the class from being unserialized, but it is important to note that this workaround does not directly exploit the vulnerability; a separate vulnerability must exist for it to be a concern.

Conclusion

In summary, the handcraftedinthealps/goodby-csv package has a potential gadget chain vulnerability that could lead to remote code execution if combined with an insecure deserialization flaw. Users are advised to upgrade to version 1.4.3 to mitigate this risk, and a workaround is available for those who cannot update immediately.

See every vulnerability recorded for handcraftedinthealps/goodby-csv →

Share this vulnerability

FAQ

The CVSS score of this vulnerability is 3.9, indicating a low severity level.

No, this vulnerability cannot be exploited directly. It requires another vulnerability in the application that allows unsafe input to be passed to the unserialize() function.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. You can check if your application is affected by visiting the Vulert playground at Vulert Scanner without any signup.

If you cannot upgrade to the patched version, consider implementing the provided workaround to mitigate the risk temporarily.

As of now, there are no known exploits specifically targeting the goodby-csv package for this vulnerability.

How To Fix

Minimum fixed version

1.4.3

This is the first release that contains the fix.

composer require handcraftedinthealps/goodby-csv:1.4.3

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback