Advisory

RUSTSEC-2020-0159

Also known as: None

Summary

Potential segfault in localtime_r invocations

Details

Impact

Unix-like operating systems may segfault due to dereferencing a dangling pointer in specific circumstances. This requires an environment variable to be set in a different thread than the affected functions. This may occur without the user's knowledge, notably in a third-party library.

Workarounds

No workarounds are known.

References

Severity

Not rated by the source.

Dates

Published
2020-11-10 12:00 UTC
Modified
2026-02-04 02:59 UTC

Affected packages and fixes

chrono

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.4.20 (semver)

Fixed versions

0.4.20

Fix

  • Fixed version 0.4.20
    cargo update -p chrono --precise 0.4.20

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