Versions of the package jsrsasign from 7.0.0 and before 11.1.1 are vulnerable to Incomplete Comparison with Missing Factors via the getRandomBigIntegerZeroToMax and getRandomBigIntegerMinToMax functions in src/crypto-1.1.js; an attacker can recover the private key by exploiting the incorrect compareTo checks that accept out-of-range candidates and thus bias DSA nonces during signature generation.
The functions getRandomBigIntegerZeroToMax and getRandomBigIntegerMinToMax in the file src/crypto-1.1.js use incorrect compareTo method checks that accept candidates outside the allowed range. This causes systematic bias in the random nonces used during DSA signature generation. An attacker, by observing a sufficient number of signatures, can statistically extract the pattern resulting from this bias and perform a cryptographic attack allowing recovery of the private key.
An attacker can recover the private DSA key used to generate digital signatures, leading to complete takeover of the victim's cryptographic identity — including the ability to forge signatures and impersonate the key owner.
The jsrsasign package should be updated to version 11.1.1 or later, which fixes the incorrect compareTo checks. The patch is available in commit ee4b013478366cb16cea9a4bdfb218b6077f83b1 in the project repository on GitHub.
The jsrsasign package (Jsrsasign Project) in versions from 7.0.0 (inclusive) to 11.1.1 (exclusive) that utilize DSA signature functionality.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:XKjur Jsrsasign
APPKjur7.0.0 – 11.1.1 (excl.)
Related vulnerabilities
Błędna weryfikacja podpisów RSA PKCS#1 v1.5 w jsrsasign
Błąd weryfikacji podpisu RSA-PSS w bibliotece jsrsasign (Node.js)
Błąd weryfikacji szyfrogramu RSA PKCS1 v1.5 w bibliotece jsrsasign
Versions of the package jsrsasign before 11.1.1 are vulnerable to Infinite loop via the bnModInverse function ...
Versions of the package jsrsasign before 11.1.1 are vulnerable to Improper Verification of Cryptographic Signa...