Advisory

RUSTSEC-2025-0068

Also known as: GHSA-hhw4-xg65-fp2x

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

Not rated by the source.

Dates

Published
2025-09-11 12:00 UTC
Modified
2025-10-28 06:29 UTC

Affected packages and fixes

serde_yml

crates.io · All systems

Affected

  • introduced 0.0.0-0 (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: RustSec Advisory Database · CC0-1.0

Sources & licences