Advisory record · GHSA-cgw6-f3mj-h742

RustEmbed generated `get` method allows for directory traversal when reading files from disk

No CVSS scoreEPSS 0.016 · 77th percentile

Published by the GitHub Advisory Database at 17 Jun 2022, 00:18 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
rust-embedcrates.io<6.3.06.3.0
Identifiers
GHSA-cgw6-f3mj-h742 · CVE-2021-45712 · GHSA-xrg3-hmf3-rvgw · RUSTSEC-2021-0126
Weakness (CWE)
CWE-22
Published
17 Jun 2022
Updated
8 Nov 2023

Machine-written summary

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

The rust-embed crate, versions before 6.3.0, is vulnerable when built in debug mode without the debug-embed feature enabled (which is off by default). The generated get method does not check that the requested path stays inside the embedded folder, so an attacker who controls the filename can read arbitrary files on the file system. Upgrade rust-embed to version 6.3.0 or later.

Written 9 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

No source has published a CVSS score for this record yet.

  • CISA KEV Not listed.
  • EPSS 0.016, the 77th percentile, on 20 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 15:21 UTC First seen by agentprime
  2. 31 Oct 2026, 15:21 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.