GHSA-87mp-xc4x-x8rh asymmetricrypt/asymmetricrypt Padding Oracle Vulnerability in RSA Encryption

Not scored Published

An attacker can decrypt RSA ciphertexts via a padding oracle attack due to insecure PKCS#1 v1.5 padding usage in the AsymmetriCrypt library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is GHSA-87mp-xc4x-x8rh?

GHSA-87mp-xc4x-x8rh is a vulnerability in asymmetricrypt/asymmetricrypt, published on 15 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The encryption and decryption process were vulnerable against the Bleichenbacher's attack, which is a padding oracle vulnerability disclosed in the 98'. The issue was about the wrong padding utilized, which allowed to retrieve the encrypted content. The OPENSSL_PKCS1_PADDING version, aka PKCS v1.5 was vulnerable (is the one set by default when using openssl_* methods), while the PKCS v2.0 isn't anymore (it's also called OAEP).

A fix for this vulnerability was merged at https://github.com/Cosmicist/AsymmetriCrypt/pull/5/commits/a0318cfc5022f2a7715322dba3ff91d475ace7c6.

Which versions are affected by GHSA-87mp-xc4x-x8rh?

2 open source packages ship an affected version, including asymmetricrypt/asymmetricrypt.

PackageAffectedFixed in
asymmetricrypt/asymmetricrypt PackagistAll versions to 0.3.0None
asymmetricrypt/asymmetricrypt PackagistAll versions to 0.3.0None

How do I fix GHSA-87mp-xc4x-x8rh?

No fix has been published for GHSA-87mp-xc4x-x8rh yet. Limit exposure of the affected software until one is available.

Is GHSA-87mp-xc4x-x8rh being exploited?

There is no known exploitation of GHSA-87mp-xc4x-x8rh in the wild and no public exploit code.

Sources

Is GHSA-87mp-xc4x-x8rh in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free