Back to list

Diesel: Command injection in Diesel's implementation of `COPY FROM`/`COPY TO` — GHSA-M9P2-FXP5-V3FP

GitHub · GitHub · GHSA-M9P2-FXP5-V3FP

ID
GHSA-M9P2-FXP5-V3FP
Date
Activity
Source
GitHub
Vendor
GitHub
Threat
medium
CVSS
6.9

Summary

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…

Product

rust: diesel

What to do

General, cautious steps (verify details in the official source):

  • Review exposure and plan remediation based on risk and environment.
  • Identify affected product versions in your inventory and verify whether you are impacted.
  • Apply vendor patches/updates or recommended mitigations as soon as available.
  • Read the official advisory for exact affected versions and remediation steps.

Official advisory

Related advisories