Mutual TLS role bypass via silent EKU error
Published Dec 5, 2024 · Updated Dec 6, 2024
Improper certificate validation in Erlang/OTP allows remote authenticated users to bypass mutual TLS role restrictions with a trusted certificate. The ssl application's certificate-purpose check turns an incorrect extended-key-usage result into a silent error, so a server certificate can pass for client authentication and vice versa. Exploitation requires a mutual TLS deployment, the opposite role's trusted certificate and private key, and no verify_fun callback that rejects the unknown-purpose result.
Summary
What happened
Improper certificate validation in Erlang/OTP allows remote authenticated users to bypass mutual TLS role restrictions with a trusted certificate. The ssl application's certificate-purpose check turns an incorrect extended-key-usage result into a silent error, so a server certificate can pass for client authentication and vice versa. Exploitation requires a mutual TLS deployment, the opposite role's trusted certificate and private key, and no verify_fun callback that rejects the unknown-purpose result.
The record
- CVE
- CVE-2024-53846
- Published
- Dec 5, 2024
- Updated
- Dec 6, 2024
- Vendor
- Erlang
- Product
- Erlang/OTP
- Classifications
- CWE-295
- Attack vector
- network
- Privileges
- authenticated
Timeline
How it unfolded
- Dec 5, 2024CVE publishedPublication date reported by the CVE source.
- Dec 6, 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=0 <=25.3.2.8
- Affected versionversion=>= 25.3.2.8, <= 25.3.2.16
- Affected versionversion=>= 26.2, <= 26.2.5.6
- Affected versionversion=>= 27.0, <= 27.1.3
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
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
- Upstream wrong-EKU mutual TLS reproductionproof of concept · 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