Skip to content

disable RSA PKCS v1.5

High
zandbelt published GHSA-6x73-979p-x9jr Apr 29, 2024

Package

cjose

Affected versions

<= 0.6.2.2

Patched versions

>= 0.6.2.3

Description

Impact

When using PKCS v1.5 padding in a JWT/JWE, one is vulnerable to the so-called Marvin attack. The Marvin Attack is a return of a 25 year old vulnerability that allows performing RSA decryption and signing operations as an attacker with the ability to observe only the time of the decryption operation performed with the private key. As such the JWE RSA1_5 algorithm should no longer be used and is in fact deprecated.

Patches

Users can upgrade to a version of cjose >= 0.6.2.3 which disables the use of PKCS v1.5 - by default - at compile-time.

Workarounds

Users may avoid using PKCS v1.5 even though they are on a version of cjose that still allows using it.

References

https://people.redhat.com/~hkario/marvin/

Severity

High

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
High
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

CVE ID

No known CVE

Weaknesses

No CWEs

Credits