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

- Severity: Medium (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2024-05-15T17:47:31.000Z
- Modified: 2024-11-29T05:32:28.469Z
- Weaknesses: CWE-327

## 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.

(As written by GitHub Advisory Database.)

## Affected

- asymmetricrypt/asymmetricrypt (Packagist): up to 0.3.0

## References

- <https://github.com/Cosmicist/AsymmetriCrypt/issues/4> (web)
- <https://github.com/Cosmicist/AsymmetriCrypt/pull/5> (web)
- <https://github.com/Cosmicist/AsymmetriCrypt> (package)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/asymmetricrypt/asymmetricrypt/2017-11-20.yaml> (web)

## Sources

- GitHub Advisory Database: [GHSA-87mp-xc4x-x8rh](https://github.com/advisories/GHSA-87mp-xc4x-x8rh), CC-BY-4.0, modified 2024-11-29

---

Page: https://cve.day/GHSA-87mp-xc4x-x8rh · Whole record: https://cve.day/GHSA-87mp-xc4x-x8rh.json · Rebuilt by cve.day 2026-11-25T22:56:31.572Z
