{"id":"GHSA-hhw4-xg65-fp2x","aliases":["GHSA-hhw4-xg65-fp2x","RUSTSEC-2025-0068"],"related":[],"kind":"vulnerability","state":"published","title":"serde_yml crate is unsound and unmaintained","summary":"Using `serde_yml::ser::Serializer.emitter` can cause a segmentation fault, which is unsound.\n\nThe GitHub project for `serde_yml` was archived after unsoundness issues were raised.\n\nIf you rely on this crate, it is highly recommended switching to a maintained alternative.\n\n## Recommended alternatives\n\n- [`serde_norway`](https://crates.io/crates/serde_norway) - Maintained fork of `serde_yaml`, using `unsafe-libyaml-norway`\n- [`serde_yaml_ng`](https://crates.io/crates/serde_yaml_ng) - Maintained fork of `serde_yaml`, using unmaintained `unsafe-libyaml`\n\n## Incomplete pure Rust alternatives\n\nThese implementation do not rely on C `libyaml`.\n\n- [`serde_yaml2`](https://crates.io/crates/serde_yaml2)\n- [`yaml-peg`](https://crates.io/crates/yaml-peg)","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"Using `serde_yml::ser::Serializer.emitter` can cause a segmentation fault, which is unsound.\n\nThe GitHub project for `serde_yml` was archived after unsoundness issues were raised.\n\nIf you rely on this crate, it is highly recommended switching to a maintained alternative.\n\n## Recommended alternatives\n\n- [`serde_norway`](https://crates.io/crates/serde_norway) - Maintained fork of `serde_yaml`, using `unsafe-libyaml-norway`\n- [`serde_yaml_ng`](https://crates.io/crates/serde_yaml_ng) - Maintained fork of `serde_yaml`, using unmaintained `unsafe-libyaml`\n\n## Incomplete pure Rust alternatives\n\nThese implementation do not rely on C `libyaml`.\n\n- [`serde_yaml2`](https://crates.io/crates/serde_yaml2)\n- [`yaml-peg`](https://crates.io/crates/yaml-peg)","format":"markdown","source":"ghsa"}],"published":"2025-09-11T12:00:00.000Z","modified":"2025-10-28T06:29:25.168Z","severity":{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"}],"cwes":["CWE-787"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"0.0.12"}],"ecosystem":"crates.io","package":"serde_yml","purl":"pkg:cargo/serde_yml","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected"}],"ecosystem":"crates.io","package":"serde_yml","purl":"pkg:cargo/serde_yml","source":"rustsec"}],"references":[{"url":"https://github.com/rustsec/advisory-db/issues/2395","tags":["report","web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/sebastienrousseau/serde_yml","tags":["package"],"sources":["ghsa"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2025-0068.html","tags":["advisory","web"],"sources":["ghsa","rustsec"]},{"url":"https://crates.io/crates/serde_yml","tags":["package"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-hhw4-xg65-fp2x","url":"https://github.com/advisories/GHSA-hhw4-xg65-fp2x","licence":"CC-BY-4.0","modified":"2025-10-28T06:29:25.168Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2025-0068","url":"https://rustsec.org/advisories/RUSTSEC-2025-0068.html","licence":"CC0-1.0","modified":"2025-10-28T06:29:25.168Z"}],"updatedAt":"2026-11-25T22:56:43.267Z"}