Advisory

GHSA-hhw4-xg65-fp2x

Also known as: RUSTSEC-2025-0068

Summary

serde_yml crate is unsound and unmaintained

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2025-09-15 13:58 UTC
Modified
2025-10-28 06:29 UTC

Affected packages and fixes

serde_yml

crates.io · All systems

Affected

  • introduced 0, last affected 0.0.12 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences