Plaintext recovery via RSA decryption timing oracle
Published Jan 12, 2021 · Updated Aug 4, 2024
Timing side channel in M2Crypto's RSA decryption API allows remote attackers to recover PKCS#1 v1.5 plaintext through oracle queries. rsa_private_decrypt follows measurably different error-handling paths for conforming and nonconforming ciphertext, exposing a padding oracle. Exploitation requires repeated chosen-ciphertext queries and precise timing measurements against an application that exposes the API, and yields message plaintext without integrity or availability impact.
Summary
What happened
Timing side channel in M2Crypto's RSA decryption API allows remote attackers to recover PKCS#1 v1.5 plaintext through oracle queries. rsa_private_decrypt follows measurably different error-handling paths for conforming and nonconforming ciphertext, exposing a padding oracle. Exploitation requires repeated chosen-ciphertext queries and precise timing measurements against an application that exposes the API, and yields message plaintext without integrity or availability impact.
The record
- CVE
- CVE-2020-25657
- Published
- Jan 12, 2021
- Updated
- Aug 4, 2024
- Vendor
- M2Crypto Project
- Product
- M2Crypto
- Classifications
- CWE-385, CWE-203, T1040
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Jan 12, 2021CVE publishedPublication date reported by the CVE source.
- Aug 4, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=All released versions of m2crypto
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Everlasting ROBOT Marvin attack demonstrationfunctional · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo