CVE-2021-45711 Panic on incorrect date input to `simple_asn1`
A remote attacker can cause a denial of service by sending malformed UTCTime data to applications using the simple_asn1 crate.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-45711?
CVE-2021-45711 is a high-severity denial of service vulnerability in n/a, published on 26 Dec 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
An issue was discovered in the simple_asn1 crate 0.6.0 before 0.6.1 for Rust. There is a panic if UTCTime data, supplied by a remote attacker, has a second character greater than 0x7f.
Weakness: CWE-20
Which versions are affected by CVE-2021-45711?
5 open source packages ship an affected version, including simple_asn1. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
simple_asn1 crates.io | From 0.6.0 | 0.6.1 |
simple_asn1 crates.io | From 0.6.0 | 0.6.1 |
simple_asn1 crates.io | From 0.6.0 | 0.6.1 |
simple_asn1 crates.io | From 0.6.0 | 0.6.1 |
simple_asn1 crates.io | From 0.6.0 | 0.6.1 |
Products include Simple Asn1 Project Simple Asn1.
How do I fix CVE-2021-45711?
Upgrade simple_asn1 to 0.6.1 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2021-45711 being exploited?
There is no known exploitation of CVE-2021-45711 in the wild and no public exploit code.
Sources
Also known as GHSA-3m6f-3gfg-4x56, GHSA-g4h2-4wvh-grc5, RUSTSEC-2021-0125.