RUSTSEC-2025-0068
MEDIUMserde_yml crate is unsound and unmaintained
Using serde_yml::ser::Serializer.emitter can cause a segmentation fault, which is unsound.
The GitHub project for serde_yml was archived after unsoundness issues were raised.
If you rely on this crate, it is highly recommended switching to a maintained alternative.
Recommended alternatives
serde_norway- Maintained fork ofserde_yaml, usingunsafe-libyaml-norwayserde_yaml_ng- Maintained fork ofserde_yaml, using unmaintainedunsafe-libyaml
Incomplete pure Rust alternatives
These implementation do not rely on C libyaml.
- Published
- 11 Sep 2025
- Last modified
- 28 Oct 2025
- Weakness
- CWE-787
- Also known as
- GHSA-hhw4-xg65-fp2x
- Sources
- OSV GHSA-hhw4-xg65-fp2xJSONOSVJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | crates.io | serde_yml | <= 0.0.12 | |
| OSV | crates.io | serde_yml | >= 0.0.0-0 |
References
- https://github.com/rustsec/advisory-db/issues/2395 · WEB, REPORT
- https://github.com/sebastienrousseau/serde_yml · PACKAGE
- https://rustsec.org/advisories/RUSTSEC-2025-0068.html · WEB, ADVISORY
- https://crates.io/crates/serde_yml · PACKAGE
History
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 11 Sep 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 15 Sep 2025)