Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

RUSTSEC-2020-0159

UNSCORED

Potential segfault in `localtime_r` invocations

Mitigation

  • Upgrade chrono to 0.4.20 or later.

Who should check

  • Projects that depend on crates.io package chrono (>= 0.0.0-0, < 0.4.20)

Vulnerability facts

Affected
chrono >= 0.0.0-0, < 0.4.20
Fixed in
0.4.20
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Unknown
CVSS
Not scored yet
Published
Modified

Description

### 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 - [time-rs/time#293](https://github.com/time-rs/time/issues/293)

Affected and fixed versions

Package / productAffectedFixedSource
crates.io chrono>= 0.0.0-0, < 0.4.200.4.20osv

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by RUSTSEC-2020-0159. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/RUSTSEC-2020-0159.md
Affected: chrono >= 0.0.0-0, < 0.4.20
Fixed in: 0.4.20

Steps:
1. Search this machine and project for chrono (crates.io): dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is RUSTSEC-2020-0159 being exploited?

There is no confirmed exploitation: RUSTSEC-2020-0159 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

How serious is RUSTSEC-2020-0159?

It has no CVSS score yet. Unknown.

Which versions are affected by RUSTSEC-2020-0159?

chrono >= 0.0.0-0, < 0.4.20.

Is there a fix for RUSTSEC-2020-0159?

Yes. Fixed in 0.4.20. Upgrade chrono to 0.4.20 or later.

How do I check if I'm affected by RUSTSEC-2020-0159?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors