CVE-2024-36400
CRITICALDescription
nano-id is a unique string ID generator for Rust. Affected versions of the nano-id crate incorrectly generated IDs using a reduced character set in the `nano_id::base62` and `nano_id::base58` functions. Specifically, the `base62` function used a character set of 32 symbols instead of the intended 62 symbols, and the `base58` function used a character set of 16 symbols instead of the intended 58 symbols. Additionally, the `nano_id::gen` macro is also affected when a custom character set that is not a power of 2 in size is specified. It should be noted that `nano_id::base64` is not affected by this vulnerability. This can result in a significant reduction in entropy, making the generated IDs predictable and vulnerable to brute-force attacks when the IDs are used in security-sensitive contexts such as session tokens or unique identifiers. The vulnerability is fixed in 0.4.0.
How to fix
TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works
Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.
CVSS v3 Vector
Exploitability
Impact
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L
Exploit Intelligence
Moderate risk: more likely to be exploited than 52% of all known CVEs.
References
Related Vulnerabilities
Other CWE-331 vulnerabilities, ordered by exploit likelihood. View all
| CVE | Severity | CVSS | EPSS | Exploited | Fix |
|---|---|---|---|---|---|
| CVE-2008-1447 | Medium | 6.8 | 95% | - | Fix |
| CVE-2018-18326 | High | 7.5 | 54% | - | - |
| CVE-2018-15812 | High | 7.5 | 47% | - | - |
| CVE-2023-38357 | Medium | 5.3 | 5.3% | - | Fix |
| CVE-2015-3405 | High | 7.5 | 5.3% | - | Fix |
| CVE-2008-2108 | Critical | 9.8 | 4.3% | - | Fix |
Common questions
How do I fix CVE-2024-36400?
Upgrade nano id to 0.4.0 or later.
Is CVE-2024-36400 being actively exploited?
Not that we know of. CVE-2024-36400 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 0.75% is the estimated probability that it will be exploited in the next 30 days. That is higher than 52% of all scored CVEs.
How severe is CVE-2024-36400?
CVE-2024-36400 has a CVSS v3 base score of 9.4, rated critical. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.
What does CVE-2024-36400 affect?
Published advisories record a fix for nano id (NVD). Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.
Embed a live status badge for CVE-2024-36400
Markdown
[](https://tridentstack.com/cve/CVE-2024-36400)HTML
<a href="https://tridentstack.com/cve/CVE-2024-36400"><img src="https://tridentstack.com/cve/badge/CVE-2024-36400.svg" alt="CVE-2024-36400"></a>Find and fix vulnerabilities across your fleet
TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.
This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.