Skip to content

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

MediumCVSS 6.9
Published
Updated
Exploit status
No public exploit known

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.

Upgrade path

1 package: 0 fixed, 1 partially fixed.

PackageAffectedFixed inStatus
crates.io serde_yml(crates.io) <= 0.0.12; >= 0.0.0-0 after 0.0.12 Partially fixed

Affected products

ProductAffected versionsFixed in
crates.io serde_yml(crates.io) <= 0.0.12 No fix listed
crates.io serde_yml(crates.io) >= 0.0.0-0 No fix listed

References