Read the docs
TI-2024-24186 Aliases CVE-2024-36400GHSA-9hc7-6w9r-wj94

nano-id is unable to generate the correct character set

Priority MEDIUM 50CWE-331Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
—
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00754 55th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed nano-id (viz-rs): 0.4.0nano-id (crates.io): 0.4.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
Yes
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
viz-rsnano-idbefore 0.4.00.4.0Patch availableCNA
—nano-id (crates.io)before 0.4.00.4.0Patch availableGHSA-9hc7-6w9r-wj94
  • nano-id Vendorviz-rs Affected before 0.4.0 Fixed in 0.4.0 Patch available CNA
  • nano-id (crates.io) Vendor— Affected before 0.4.0 Fixed in 0.4.0 Patch available GHSA-9hc7-6w9r-wj94

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:viz:nano_id:*:*:*:*:*:rust:*:*before 0.4.0VulnerableViz
  • cpe:2.3:a:viz:nano_id:*:*:*:*:*:rust:*:* Versions before 0.4.0 Vulnerable ·Viz

Remediation

  • Fix · CNA nano-id (viz-rs) Fixed in 0.4.0
  • Fix · GHSA-9hc7-6w9r-wj94 nano-id (crates.io) Fixed in 0.4.0 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2024-36400
  2. 2026-10-03 Alias added: GHSA-9hc7-6w9r-wj94

References

Sources