Skip to content
vetkitChecksChangelogDocumentation

vetkit.java.crypto.weak-rsa-key

An RSA/DSA/DH key pair is generated with fewer than 2048 bits.

Last updated:

Suite: Security

java

An RSA/DSA/DH key pair is generated with fewer than 2048 bits.

Category: SECURITY · Engine rule severity: WARNING

How to fix it

Use at least 2048-bit (preferably 3072-bit) RSA/DSA/DH keys, or switch to elliptic-curve keys.

References

Source: packages/engine/rules/sast/java.yml.

Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.