GHSA-M9P2-FXP5-V3FP

GHSA-M9P2-FXP5-V3FP is a medium-severity security vulnerability in diesel (rust), affecting versions < 2.3.8. It is fixed in 2.3.8.

Does this CVE actually affect you?

Kodem shows which CVEs are reachable and running in your applications, so you fix what's exploitable, not just what's listed.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Runtime intelligence, not another scanner.

Summary

Diesel: Command injection in Diesel's implementation of COPY FROM/COPY TO

Diesel allows users to configure various options for PostgreSQL's COPY FROM and COPY TO statements. These configurations are partially provided as strings or characters.

Diesel did not check if any these user-provided options contain a quote character ', which can lead to the injection of additional options in the current COPY FROM/COPY TO statement.

This vulnerability affects any user of COPY FROM/COPY TO that passes user-provided input to any of the affected functions. It can result in modifications of options in the current statement, but it is not possible inject additional statements.

Mitigation

The preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem.

Resolution

Diesel now correctly escapes any quotes contained in the provided arguments.

Impact

Affected versions

diesel (< 2.3.8)

Security releases

diesel → 2.3.8 (rust)

Kodem intelligence

Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.

Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.

Already deployed Kodem?

See it in your environmentNew to Kodem? Get a demo →

Remediation advice

Upgrade diesel to 2.3.8 or later to resolve this vulnerability.

Kodem Kai can prioritize this vulnerability in your dependency tree and generate a fix recommendation.

Frequently Asked Questions

  1. What is GHSA-M9P2-FXP5-V3FP? GHSA-M9P2-FXP5-V3FP is a medium-severity security vulnerability in diesel (rust), affecting versions < 2.3.8. It is fixed in 2.3.8.
  2. Which versions of diesel are affected by GHSA-M9P2-FXP5-V3FP? diesel (rust) versions < 2.3.8 is affected.
  3. Is there a fix for GHSA-M9P2-FXP5-V3FP? Yes. GHSA-M9P2-FXP5-V3FP is fixed in 2.3.8. Upgrade to this version or later.
  4. Is GHSA-M9P2-FXP5-V3FP exploitable, and should I be worried? Whether GHSA-M9P2-FXP5-V3FP is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
  5. What actually determines whether GHSA-M9P2-FXP5-V3FP is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
  6. How do I fix GHSA-M9P2-FXP5-V3FP? Upgrade diesel to 2.3.8 or later.

Other vulnerabilities in diesel

Stop the waste.
Protect your environment with Kodem.