Advisory record · GHSA-m9p2-fxp5-v3fp

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

CVSS 4.0, no score published

Published by the GitHub Advisory Database at 19 May 2026, 19:42 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
dieselcrates.io<2.3.82.3.8
Identifiers
GHSA-m9p2-fxp5-v3fp · RUSTSEC-2026-0136
Weakness (CWE)
CWE-88
Published
19 May 2026
Updated
20 May 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Diesel versions before 2.3.8 are vulnerable to command injection in their handling of PostgreSQL COPY FROM and COPY TO statements. Options passed as strings or characters are not checked for quote characters, so an attacker who can influence those values can inject extra options into the statement, though not additional statements. Upgrade to Diesel 2.3.8 or newer, which escapes quotes in the provided arguments.

Written 8 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
Not published None 4.0 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N GitHub Advisory Database
  • CISA KEV Not listed.
  • EPSS No score.

Timeline

  1. 31 Oct 2026, 15:18 UTC First seen by agentprime
  2. 31 Oct 2026, 15:18 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.