CVE-2023-6237: Unbounded Bignum Primality Test

A BigNum (e.g., an RSA modulus) is tested for primality without first enforcing an upper bounds limit on its bit length. Miller-Rabin primality testing is computationally expensive, meaning that testing an excessively large attacker-controlled key can cause CPU exhaustion and Denial of Service.

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0Cβ
greprules fetch cve-2023-6237-unbounded-bignum-primality-test --engine opengrep

Description

A BigNum (e.g., an RSA modulus) is tested for primality without first enforcing an upper bounds limit on its bit length. Miller-Rabin primality testing is computationally expensive, meaning that testing an excessively large attacker-controlled key can cause CPU exhaustion and Denial of Service.