GHSA-3m6f-3gfg-4x56: Panic on incorrect date input to `simple_asn1`
N/A
CVSS Score
Basic Information
CVE ID
-
GHSA ID
EPSS Score
-
CWE
-
Published
6/17/2022
Updated
6/13/2023
KEV Status
No
Technology
Rust
Technical Details
CVSS Vector
-
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
simple_asn1 | rust | = 0.6.0 | 0.6.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability manifests in the UTCTime parsing logic within from_der_. The critical code path converts raw bytes to a String via char conversion, then performs a direct slice (v[0..2]) without validating UTF-8 boundaries. This matches the advisory's description of panicking on high-ASCII second bytes. The commit diff shows this logic was introduced when switching from chrono to time crate handling. The function is directly mentioned in vulnerability descriptions and matches the panic scenario described.