GHSA-hhw4-xg65-fp2x
JSON

medium

serde_yml crate is unsound and unmaintained

Severity
medium CVSS:4.0 by GitHub
Published
Last changed
Also known as
RUSTSEC-2025-0068

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 - Maintained fork of serde_yaml, using unsafe-libyaml-norway
  • serde_yaml_ng - Maintained fork of serde_yaml, using unmaintained unsafe-libyaml

Incomplete pure Rust alternatives

These implementation do not rely on C libyaml.

Affected

Product or packageVersionsReported by
serde_yml (crates.io)up to 0.0.12, from 0.0.0-0GitHub Advisory Database, RustSec Advisory Database

Classification

References

Sources

SourceRecordLicence
GitHub Advisory DatabaseGHSA-hhw4-xg65-fp2x changed 2025-10-28CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2025-0068 changed 2025-10-28CC0-1.0