Vulnerability HighRUSTSEC-2019-0020 · generator
RUSTSEC-2019-0020: fix unsound APIs that could lead to UB
Short answerA security vulnerability in the generator crate: fix unsound APIs that could lead to UB. High severity (CVSS 7.5). Fixed in 0.6.18: update to a fixed version.
| Crate | generator |
|---|---|
| Type | Vulnerability |
| Affected versions | Before 0.6.18. |
| Fixed in | 0.6.18 |
| Severity | High, CVSS 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| Published | 2019-09-06 |
| Last changed | 2023-11-08 |
| Also known as | CVE-2019-16144, GHSA-6c65-xcf5-299x |
What to do
- See which version you have:
cargo tree -i generator(it also shows which of your dependencies pulls it in). - Update within your version requirement:
cargo update -p generator. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for examplegenerator = "0.6.18") or update the dependency that pulls it in. - Check again with
cargo audit, or paste your Cargo.lock into our Cargo.toml checker.
Details from the advisory
Affected versions of this crate API could use uninitialized memory with some APIs in special cases, like use the API in none generator context. This could lead to UB. The flaw was corrected by <https://github.com/Xudong-Huang/generator-rs/issues/9> <https://github.com/Xudong-Huang/generator-rs/issues/11> <https://github.com/Xudong-Huang/generator-rs/issues/13> <https://github.com/Xudong-Huang/generator-rs/issues/14> This patch fixes all those issues above.
References
- Package: crates.io/crates/generator
- Advisory: rustsec.org/advisories/RUSTSEC-2019-0020.html
- Report: github.com/Xudong-Huang/generator-rs/issues/9
From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.
Other advisories for generator
Up next
Same crategenerator: security historyEvery advisory for this crate, and whether it is safe to use today.Read it next →Did this answer your question?