# GHSA-hhw4-xg65-fp2x: serde_yml crate is unsound and unmaintained

- Severity: Medium (CVSS:4.0, scored by GitHub) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2025-09-11T12:00:00.000Z
- Modified: 2025-10-28T06:29:25.168Z
- Also known as: RUSTSEC-2025-0068
- Weaknesses: CWE-787

## Description

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`](https://crates.io/crates/serde_norway) - Maintained fork of `serde_yaml`, using `unsafe-libyaml-norway`
- [`serde_yaml_ng`](https://crates.io/crates/serde_yaml_ng) - Maintained fork of `serde_yaml`, using unmaintained `unsafe-libyaml`

## Incomplete pure Rust alternatives

These implementation do not rely on C `libyaml`.

- [`serde_yaml2`](https://crates.io/crates/serde_yaml2)
- [`yaml-peg`](https://crates.io/crates/yaml-peg)

(As written by GitHub Advisory Database.)

## Affected

- serde_yml (crates.io): up to 0.0.12; from 0.0.0-0

## References

- <https://github.com/rustsec/advisory-db/issues/2395> (report, web)
- <https://github.com/sebastienrousseau/serde_yml> (package)
- <https://rustsec.org/advisories/RUSTSEC-2025-0068.html> (advisory, web)
- <https://crates.io/crates/serde_yml> (package)

## Sources

- GitHub Advisory Database: [GHSA-hhw4-xg65-fp2x](https://github.com/advisories/GHSA-hhw4-xg65-fp2x), CC-BY-4.0, modified 2025-10-28
- RustSec Advisory Database: [RUSTSEC-2025-0068](https://rustsec.org/advisories/RUSTSEC-2025-0068.html), CC0-1.0, modified 2025-10-28

---

Page: https://cve.day/GHSA-hhw4-xg65-fp2x · Whole record: https://cve.day/GHSA-hhw4-xg65-fp2x.json · Rebuilt by cve.day 2026-11-25T22:56:43.267Z
