crates.io (Rust)Worst: Critical6 advisories

diesel: known vulnerabilities

diesel has 6 reviewed security advisories in the GitHub Advisory Database — 1 critical, 2 high, 3 moderate. The most recent was published 2026-07-16. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the diesel versions running across your servers, containers and images, and ranks what to patch first.

How to fix diesel

Upgrade diesel to a release at or above the fixed version shown for each advisory below. For crates.io (Rust):

cargo update -p diesel --precise 2.3.10 (cargo audit)

SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.

Advisories (6)

Diesel has possible use after free when deserializing a SQLite database via `SqliteConnection::deserialize_readonly_database` Moderate CWE-416 — Affected: before 2.3.10. Fixed in 2.3.10. Published 2026-07-16. GHSA-ggxf-9f6j-w742
Diesel: Command injection in Diesel's implementation of `COPY FROM`/`COPY TO` Moderate CWE-88 — Affected: before 2.3.8. Fixed in 2.3.8. Published 2026-05-19. GHSA-m9p2-fxp5-v3fp
Diesel: Possible unaligned data access for implementations of `SqliteAggregate` Moderate CWE-188 — Affected: before 2.3.8. Fixed in 2.3.8. Published 2026-05-19. GHSA-q8x8-jrhj-fh9p
Diesel's SQLite backend has possible UTF-8 corruption High CWE-20 — Affected: before 2.3.8. Fixed in 2.3.8. Published 2026-05-05. GHSA-h5x4-m2qf-r4f2
Diesel vulnerable to Binary Protocol Misinterpretation caused by Truncating or Overflowing Casts High 8.1 CWE-89 — Affected: before 2.2.3. Fixed in 2.2.3. Published 2024-08-23. GHSA-wq9x-qwcq-mmgf
Fix a use-after-free bug in diesels Sqlite backend Critical 9.8 CWE-416 — Affected: before 1.4.6. Fixed in 1.4.6. Published 2021-03-12. GHSA-j8q9-5rp9-4mv9 · CVE-2021-28305

Find diesel across your fleet

Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA, CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month. Start free.