CVE-2023-50981
Linux Debian vulnerability analysis and mitigation

Overview

ModularSquareRoot in Crypto++ (aka cryptopp) through 8.9.0 contains a vulnerability that allows attackers to cause a denial of service through infinite loop exploitation. The vulnerability was discovered and disclosed in December 2023, affecting all versions of Crypto++ up to and including version 8.9.0. The issue specifically occurs when processing crafted DER public-key data associated with squared odd numbers (NVD).

Technical details

The vulnerability exists in the ModularSquareRoot function, which is used in ECP::DecodePoint. The issue occurs in the second while loop where the function attempts to find a value n starting from 2 and incrementing by one until Jacobi(n, p) = -1. The flaw manifests when p is in the form of m^2 where m is an odd number, causing Jacobi(n, p) to only return values of 1 or 0, never -1, resulting in an infinite loop. The vulnerability has been assigned a CVSS v3.1 base score of 7.5 (HIGH) with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (NVD, GitHub Issue).

Impact

When exploited, this vulnerability can lead to a denial of service condition. Any user or server attempting to read a maliciously crafted DER public key file during processes such as ECDSA verification can be forced into an infinite loop, effectively causing the system to become unresponsive (GitHub Issue).

Mitigation and workarounds

A proposed fix involves checking whether p is a prime number at the beginning of the ModularSquareRoot function. If p is not prime, the function should reject further calculations as any results would be incorrect in this case (GitHub Issue).

Additional resources


SourceThis report was generated using AI

Related Linux Debian vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-22857MEDIUM6.8
  • Linux DebianLinux Debian
  • freerdp-plugins
NoNoJan 14, 2026
CVE-2026-22856MEDIUM6.8
  • Linux DebianLinux Debian
  • freerdp2
NoNoJan 14, 2026
CVE-2026-22859MEDIUM5.6
  • Linux DebianLinux Debian
  • freerdp3
NoNoJan 14, 2026
CVE-2026-22858MEDIUM5.6
  • Linux DebianLinux Debian
  • freerdp3
NoNoJan 14, 2026
CVE-2026-22036LOW3.7
  • JavaScriptJavaScript
  • node-undici
NoYesJan 14, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management