Property
Languagejava
Severityhigh
CWECWE-326: Inadequate Encryption Strength
OWASPA03:2017 - Sensitive Data Exposure
Confidence LevelHigh
Impact LevelMedium
Likelihood LevelMedium

Description#

The code generates RSA keys with a length less than 2048 bits, which does not meet current security standards and makes the encryption much easier to break. Using such weak keys exposes sensitive data to potential attackers.

Impact#

If weak RSA keys are used, attackers could more easily decrypt confidential information by exploiting the insufficient key strength. This could lead to data breaches, unauthorized access, and compromise of user or organizational data protected by the encryption.