PT-2021-18683 · Jsrsasign · Jsrsasign

Yahyazadeh

·

Published

2021-04-07

·

Updated

2022-02-09

·

CVE-2021-30246

CVSS v3.1

9.1

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Name of the Vulnerable Software and Affected Versions jsrsasign versions through 10.1.13
Description The issue concerns the validation of RSA PKCS#1 v1.5 signatures. Specifically, some invalid signatures are mistakenly recognized as valid due to insufficient checking of the decoded RSA signature value. This value consists of a specific form: 01(ff...(8 or more ffs)...ff)00[ASN.1 OF DigestInfo], and its byte length must match the RSA key length. However, crafting a message for a practical attack is considered very hard. There is no known practical attack.
Recommendations For versions through 10.1.13, upgrade to 10.2.0 or later to resolve the issue. As a temporary workaround, consider avoiding the use of RSA signature validation in jsrsasign until a patch is applied.

Fix

Improper Verification of Cryptographic Signature

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2021-30246
GHSA-27FJ-MC8W-J9WG
GHSA-H87Q-G2WP-47PJ

Affected Products

Jsrsasign