openpgp is vulnerable to Uncontrolled Resource Consumption
50
CVE Score
Medium
Uncontrolled Resource Consumption
The openpgp library derives symmetric keys from a passphrase using the Argon2 string-to-key function when it parses password-protected messages or private keys that select Argon2. It reads the Argon2 memory-cost exponent directly from the external-supplied packet and, before running key derivation, does not cap how much memory the derivation may request. An attacker can craft a message or key whose Argon2 parameters stay within the OpenPGP specification yet demand very large allocations, so a victim who attempts decryption triggers excessive memory allocation that can crash the process. The fix adds a config.maxArgon2MemoryExponent limit and throws Argon2OutOfMemoryError when the requested exponent exceeds it.
Upgrade the openpgp library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and decrypt password-protected messages or keys that use Argon2 for string-to-key derivation.
6.0.0 - 6.3.0
Fixed in 6.3.1openpgp is vulnerable to Uncontrolled Resource Consumption in versions 6.0.0 - 6.3.0.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.