CVE-2020-12413
Medium · 5.9CVSS
5.9
EPSS
0.6%
Published
Feb 16, 2023
CISA due date
—
Cloudanix analysis
A subtle weakness in how some older web browsers handle encrypted connections could theoretically let a skilled attacker read past private communications, but the issue is already fixed in current browser versions and is very hard to exploit in practice.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- High
- Impact
- Data Exposure
- Component
- Library
- Class
- Cryptographic Weakness
- Remediation
- Config Change
- Effort
- Low
- Patch risk
- Medium
What it actually does
The flaw enables a timing side-channel in TLS DHE key exchange that can leak enough information to decrypt recorded sessions when the same long-term DH parameters are reused across handshakes.
Why it matters to the business
Organizations relying on older Firefox versions face a theoretical risk of past encrypted web traffic being decrypted, which could expose sensitive data and create compliance exposure, though real-world exploitation remains unlikely given the attack's complexity and low prevalence in current environments.
How an attack unfolds
An attacker positioned to observe many TLS handshakes to the same server reuses the server's static DH group; by measuring subtle timing differences in the client's modular exponentiation, the attacker gradually recovers the premaster secret and decrypts prior sessions. No named threat actors have been observed exploiting this weakness.
How to fix it
Upgrade Mozilla Firefox and Firefox ESR to current releases that have removed support for all DHE ciphersuites; alternatively, enforce TLS configurations that disable DHE in any remaining legacy browsers or middleboxes.
How to confirm the fix worked
Confirm that Firefox about:config shows security.ssl3.dhe_rsa_aes_128_gcm_sha256 and related DHE preferences set to false or absent; run external TLS scanners against internal web services to verify DHE ciphersuites are no longer offered.
Typical attack path
- Identify target servers that still advertise DHE ciphersuites with static DH parameters
- Capture large numbers of TLS handshakes from clients using vulnerable implementations
- Perform statistical timing analysis on the observed exponentiation operations
- Recover the DH private value and derive session keys for recorded traffic
How to detect it
Because successful exploitation requires capturing and analyzing many handshakes offline, there are no reliable real-time log indicators; examine historical TLS traffic captures for repeated use of DHE ciphersuites with identical server DH parameters and look for client timing anomalies in forensic packet captures.
What your security team should do
- Prioritize browser updates for all Firefox instances within standard patch windows given the low EPSS and absence from CISA KEV
- Add DHE ciphersuite detection to routine TLS configuration audits across the environment
- Review any custom TLS policies that explicitly allow DHE and remove them
The record
The Raccoon attack is a timing attack on DHE ciphersuites inherit in the TLS specification. To mitigate this vulnerability, Firefox disabled support for DHE ciphersuites.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | nss | 0 | 2:3.17-1 |
| Debian:12 | nss | 0 | 2:3.17-1 |
| Debian:13 | nss | 0 | 2:3.17-1 |
| Debian:14 | nss | 0 | 2:3.17-1 |
| Ubuntu:18.04:LTS | nss | 0 | 2:3.35-2ubuntu2.14 |
| Ubuntu:20.04:LTS | nss | 0 | 2:3.49.1-1ubuntu1.7 |
| Ubuntu:22.04:LTS | nss | 0 | 2:3.68.2-0ubuntu1 |
Related vulnerabilities
- CVE-2024-7531 Calling `PK11_Encrypt()` in NSS using CKM_CHACHA20 and the same buffer for input and… Also affects nss
- CVE-2024-6609 When almost out-of-memory an elliptic curve key which was never allocated could have been… Also affects nss
- CVE-2024-6602 A mismatch between allocator and deallocator could have lead to memory corruption. Also affects nss
- CVE-2024-0743 An unchecked return value in TLS handshake code could have caused a potentially… Also affects nss
- CVE-2023-6135 Multiple NSS NIST curves were susceptible to a side-channel attack known as "Minerva". Also affects nss
- CVE-2023-4421 The NSS code used for checking PKCS#1 v1.5 was leaking information useful in mounting… Also affects nss
- CVE-2023-0767 An attacker could construct a PKCS 12 cert bundle in such a way that could allow for… Also affects nss
- CVE-2022-22747 After accepting an untrusted certificate, handling an empty pkcs7 sequence as part of the… Also affects nss