CVE-2021-45712Rust-embed Project Rust-embed
High 7.5 No auth needed
Follow: this CVE · Rust-embed Project · Rust-embed Project Rust-embed We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 1.6% probability of exploitation in 30 days · percentile 77
- Auth required
- No
- Published
- Dec 26, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-22
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
What happens
An issue was discovered in the rust-embed crate before 6.3.0 for Rust. A ../ directory traversal can sometimes occur in debug mode.
What to do
- Apply the vendor's security update for Rust-embed.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| crates.io | rust-embed |
< 6.3.0 |
6.3.0 |
cargo update -p rust-embed --precise 6.3.0 |
| crates.io | rust-embed |
< 6.3.0 |
6.3.0 |
cargo update -p rust-embed --precise 6.3.0 |
| crates.io | rust-embed |
≥ 0.0.0-0 < 6.3.0 |
6.3.0 |
cargo update -p rust-embed --precise 6.3.0 |
Per OSV / GitHub Advisories (GHSA-cgw6-f3mj-h742, GHSA-xrg3-hmf3-rvgw, RUSTSEC-2021-0126). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| rust-embed_project | rust-embed | < 6.3.0 |
Official sources
References
Links published by the sources. Open them with care.
- raw.githubusercontent.com Exploit Third Party Advisory
- rustsec.org Exploit Issue Tracking Third Party Advisory