CVE-2016-8635
Medium · 5.9CVSS
5.9
EPSS
2.0%
Published
Aug 1, 2018
CISA due date
—
Cloudanix analysis
A problem in the code that handles secure key exchanges could let attackers figure out secret encryption keys and read private information sent over the network.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- High
- Impact
- Data Exposure
- Component
- Library
- Class
- Cryptographic Weakness
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The vulnerability permits a small subgroup confinement attack during Diffie-Hellman client key exchange in NSS 3.21.x, allowing an attacker to restrict the client's DH key to a small subgroup of the negotiated group and mathematically recover the private key from the resulting limited keyspace.
Why it matters to the business
Successful exploitation can expose encryption keys used in secure network sessions, leading to decryption of sensitive traffic, loss of confidentiality for data in transit, and potential compromise of systems relying on NSS for TLS or other cryptographic operations across enterprise Linux and application environments.
How an attack unfolds
An attacker positioned to observe or manipulate a DH key exchange intercepts the client's public value, forces confinement to a small subgroup through crafted parameters or responses, then brute-forces the reduced private key space to obtain the secret and decrypt or impersonate subsequent communications.
How to fix it
Upgrade NSS to a version that validates DH public keys and prevents small subgroup confinement (post-3.21.x releases containing the fix); apply vendor updates for Mozilla NSS and rebuild or redeploy any dependent applications on affected Red Hat Enterprise Linux variants.
How to confirm the fix worked
Confirm NSS library versions exceed the vulnerable 3.21.x range on all systems, run cryptographic protocol test suites that exercise DH key exchange with invalid subgroup parameters, and verify that connections fail or reject non-prime-order keys as expected.
Typical attack path
- Establish network position allowing observation or interference with TLS/DH handshakes
- Manipulate or observe the Diffie-Hellman client key exchange to confine the key to a small subgroup
- Compute the client's private key using the reduced subgroup order
- Use the recovered private key to decrypt recorded sessions or perform active attacks
How to detect it
Review application and system logs for NSS-related DH handshake errors or unusual parameter sizes; examine network captures for anomalous DH public values or subgroup orders during TLS negotiations; correlate with any observed decryption of previously recorded traffic.
What your security team should do
- Immediately inventory and update all instances of NSS to patched releases
- Disable or deprecate DH cipher suites if upgrades cannot be applied promptly
- Monitor cryptographic library usage for any remaining 3.21.x deployments
The record
It was found that Diffie Hellman Client key exchange handling in NSS 3.21.x was vulnerable to small subgroup confinement attack. An attacker could use this flaw to recover private keys by confining the client DH key to small subgroup of the desired group.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | nss | 0 | 2:3.25-1 |
| Debian:12 | nss | 0 | 2:3.25-1 |
| Debian:13 | nss | 0 | 2:3.25-1 |
| Red Hat:enterprise_linux:5::client | nss | 0 | 0:3.21.3-2.el5_11 |
| Red Hat:enterprise_linux:5::client | nss-debuginfo | 0 | 0:3.21.3-2.el5_11 |
| Red Hat:enterprise_linux:5::client | nss-devel | 0 | 0:3.21.3-2.el5_11 |
| Red Hat:enterprise_linux:5::client | nss-pkcs11-devel | 0 | 0:3.21.3-2.el5_11 |
| Red Hat:enterprise_linux:5::client | nss-tools | 0 | 0:3.21.3-2.el5_11 |
| Red Hat:enterprise_linux:5::client_workstation | nss | 0 | 0:3.21.3-2.el5_11 |
| Red Hat:enterprise_linux:5::client_workstation | nss-debuginfo | 0 | 0:3.21.3-2.el5_11 |
| Red Hat:enterprise_linux:5::client_workstation | nss-devel | 0 | 0:3.21.3-2.el5_11 |
| Red Hat:enterprise_linux:5::client_workstation | nss-pkcs11-devel | 0 | 0:3.21.3-2.el5_11 |
| Red Hat:enterprise_linux:5::client_workstation | nss-tools | 0 | 0:3.21.3-2.el5_11 |
| Red Hat:enterprise_linux:5::server | nss | 0 | 0:3.21.3-2.el5_11 |
| Red Hat:enterprise_linux:5::server | nss-debuginfo | 0 | 0:3.21.3-2.el5_11 |
| Red Hat:enterprise_linux:5::server | nss-devel | 0 | 0:3.21.3-2.el5_11 |
| Red Hat:enterprise_linux:5::server | nss-pkcs11-devel | 0 | 0:3.21.3-2.el5_11 |
| Red Hat:enterprise_linux:5::server | nss-tools | 0 | 0:3.21.3-2.el5_11 |
| Red Hat:enterprise_linux:6::client | nss | 0 | 0:3.21.3-2.el6_8 |
| Red Hat:enterprise_linux:6::client | nss-debuginfo | 0 | 0:3.21.3-2.el6_8 |
| Red Hat:enterprise_linux:6::client | nss-devel | 0 | 0:3.21.3-2.el6_8 |
| Red Hat:enterprise_linux:6::client | nss-pkcs11-devel | 0 | 0:3.21.3-2.el6_8 |
| Red Hat:enterprise_linux:6::client | nss-sysinit | 0 | 0:3.21.3-2.el6_8 |
| Red Hat:enterprise_linux:6::client | nss-tools | 0 | 0:3.21.3-2.el6_8 |
| Red Hat:enterprise_linux:6::client | nss-util | 0 | 0:3.21.3-1.el6_8 |
| Red Hat:enterprise_linux:6::client | nss-util-debuginfo | 0 | 0:3.21.3-1.el6_8 |
| Red Hat:enterprise_linux:6::client | nss-util-devel | 0 | 0:3.21.3-1.el6_8 |
| Red Hat:enterprise_linux:6::computenode | nss | 0 | 0:3.21.3-2.el6_8 |
| Red Hat:enterprise_linux:6::computenode | nss-debuginfo | 0 | 0:3.21.3-2.el6_8 |
| Red Hat:enterprise_linux:6::computenode | nss-devel | 0 | 0:3.21.3-2.el6_8 |
| Red Hat:enterprise_linux:6::computenode | nss-pkcs11-devel | 0 | 0:3.21.3-2.el6_8 |
| Red Hat:enterprise_linux:6::computenode | nss-sysinit | 0 | 0:3.21.3-2.el6_8 |
| Red Hat:enterprise_linux:6::computenode | nss-tools | 0 | 0:3.21.3-2.el6_8 |
| Red Hat:enterprise_linux:6::computenode | nss-util | 0 | 0:3.21.3-1.el6_8 |
| Red Hat:enterprise_linux:6::computenode | nss-util-debuginfo | 0 | 0:3.21.3-1.el6_8 |
| Red Hat:enterprise_linux:6::computenode | nss-util-devel | 0 | 0:3.21.3-1.el6_8 |
| Red Hat:enterprise_linux:6::server | nss | 0 | 0:3.21.3-2.el6_8 |
| Red Hat:enterprise_linux:6::server | nss-debuginfo | 0 | 0:3.21.3-2.el6_8 |
| Red Hat:enterprise_linux:6::server | nss-devel | 0 | 0:3.21.3-2.el6_8 |
| Red Hat:enterprise_linux:6::server | nss-pkcs11-devel | 0 | 0:3.21.3-2.el6_8 |
| Red Hat:enterprise_linux:6::server | nss-sysinit | 0 | 0:3.21.3-2.el6_8 |
| Red Hat:enterprise_linux:6::server | nss-tools | 0 | 0:3.21.3-2.el6_8 |
| Red Hat:enterprise_linux:6::server | nss-util | 0 | 0:3.21.3-1.el6_8 |
| Red Hat:enterprise_linux:6::server | nss-util-debuginfo | 0 | 0:3.21.3-1.el6_8 |
| Red Hat:enterprise_linux:6::server | nss-util-devel | 0 | 0:3.21.3-1.el6_8 |
| Red Hat:enterprise_linux:6::workstation | nss | 0 | 0:3.21.3-2.el6_8 |
| Red Hat:enterprise_linux:6::workstation | nss-debuginfo | 0 | 0:3.21.3-2.el6_8 |
| Red Hat:enterprise_linux:6::workstation | nss-devel | 0 | 0:3.21.3-2.el6_8 |
| Red Hat:enterprise_linux:6::workstation | nss-pkcs11-devel | 0 | 0:3.21.3-2.el6_8 |
| Red Hat:enterprise_linux:6::workstation | nss-sysinit | 0 | 0:3.21.3-2.el6_8 |
| Red Hat:enterprise_linux:6::workstation | nss-tools | 0 | 0:3.21.3-2.el6_8 |
| Red Hat:enterprise_linux:6::workstation | nss-util | 0 | 0:3.21.3-1.el6_8 |
| Red Hat:enterprise_linux:6::workstation | nss-util-debuginfo | 0 | 0:3.21.3-1.el6_8 |
| Red Hat:enterprise_linux:6::workstation | nss-util-devel | 0 | 0:3.21.3-1.el6_8 |
| Red Hat:enterprise_linux:7::client | nss | 0 | 0:3.21.3-2.el7_3 |
| Red Hat:enterprise_linux:7::client | nss-debuginfo | 0 | 0:3.21.3-2.el7_3 |
| Red Hat:enterprise_linux:7::client | nss-devel | 0 | 0:3.21.3-2.el7_3 |
| Red Hat:enterprise_linux:7::client | nss-pkcs11-devel | 0 | 0:3.21.3-2.el7_3 |
| Red Hat:enterprise_linux:7::client | nss-sysinit | 0 | 0:3.21.3-2.el7_3 |
| Red Hat:enterprise_linux:7::client | nss-tools | 0 | 0:3.21.3-2.el7_3 |
| Red Hat:enterprise_linux:7::client | nss-util | 0 | 0:3.21.3-1.1.el7_3 |
| Red Hat:enterprise_linux:7::client | nss-util-debuginfo | 0 | 0:3.21.3-1.1.el7_3 |
| Red Hat:enterprise_linux:7::client | nss-util-devel | 0 | 0:3.21.3-1.1.el7_3 |
| Red Hat:enterprise_linux:7::computenode | nss | 0 | 0:3.21.3-2.el7_3 |
| Red Hat:enterprise_linux:7::computenode | nss-debuginfo | 0 | 0:3.21.3-2.el7_3 |
| Red Hat:enterprise_linux:7::computenode | nss-devel | 0 | 0:3.21.3-2.el7_3 |
| Red Hat:enterprise_linux:7::computenode | nss-pkcs11-devel | 0 | 0:3.21.3-2.el7_3 |
| Red Hat:enterprise_linux:7::computenode | nss-sysinit | 0 | 0:3.21.3-2.el7_3 |
| Red Hat:enterprise_linux:7::computenode | nss-tools | 0 | 0:3.21.3-2.el7_3 |
| Red Hat:enterprise_linux:7::computenode | nss-util | 0 | 0:3.21.3-1.1.el7_3 |
| Red Hat:enterprise_linux:7::computenode | nss-util-debuginfo | 0 | 0:3.21.3-1.1.el7_3 |
| Red Hat:enterprise_linux:7::computenode | nss-util-devel | 0 | 0:3.21.3-1.1.el7_3 |
| Red Hat:enterprise_linux:7::server | nss | 0 | 0:3.21.3-2.el7_3 |
| Red Hat:enterprise_linux:7::server | nss-debuginfo | 0 | 0:3.21.3-2.el7_3 |
| Red Hat:enterprise_linux:7::server | nss-devel | 0 | 0:3.21.3-2.el7_3 |
| Red Hat:enterprise_linux:7::server | nss-pkcs11-devel | 0 | 0:3.21.3-2.el7_3 |
| Red Hat:enterprise_linux:7::server | nss-sysinit | 0 | 0:3.21.3-2.el7_3 |
| Red Hat:enterprise_linux:7::server | nss-tools | 0 | 0:3.21.3-2.el7_3 |
| Red Hat:enterprise_linux:7::server | nss-util | 0 | 0:3.21.3-1.1.el7_3 |
| Red Hat:enterprise_linux:7::server | nss-util-debuginfo | 0 | 0:3.21.3-1.1.el7_3 |
| Red Hat:enterprise_linux:7::server | nss-util-devel | 0 | 0:3.21.3-1.1.el7_3 |
| Red Hat:enterprise_linux:7::workstation | nss | 0 | 0:3.21.3-2.el7_3 |
| Red Hat:enterprise_linux:7::workstation | nss-debuginfo | 0 | 0:3.21.3-2.el7_3 |
| Red Hat:enterprise_linux:7::workstation | nss-devel | 0 | 0:3.21.3-2.el7_3 |
| Red Hat:enterprise_linux:7::workstation | nss-pkcs11-devel | 0 | 0:3.21.3-2.el7_3 |
| Red Hat:enterprise_linux:7::workstation | nss-sysinit | 0 | 0:3.21.3-2.el7_3 |
| Red Hat:enterprise_linux:7::workstation | nss-tools | 0 | 0:3.21.3-2.el7_3 |
| Red Hat:enterprise_linux:7::workstation | nss-util | 0 | 0:3.21.3-1.1.el7_3 |
| Red Hat:enterprise_linux:7::workstation | nss-util-debuginfo | 0 | 0:3.21.3-1.1.el7_3 |
| Red Hat:enterprise_linux:7::workstation | nss-util-devel | 0 | 0:3.21.3-1.1.el7_3 |
| SUSE:Linux Enterprise Desktop 12 SP1 | MozillaFirefox | 0 | 45.9.0esr-105.1 |
| SUSE:Linux Enterprise Desktop 12 SP1 | java-1_8_0-openjdk | 0 | 1.8.0.121-23.4 |
| SUSE:Linux Enterprise Desktop 12 SP1 | mozilla-nspr | 0 | 4.13.1-18.1 |
| SUSE:Linux Enterprise Desktop 12 SP1 | mozilla-nss | 0 | 3.29.5-57.1 |
| SUSE:Linux Enterprise Desktop 12 SP2 | MozillaFirefox | 0 | 45.9.0esr-105.1 |
| SUSE:Linux Enterprise Desktop 12 SP2 | java-1_8_0-openjdk | 0 | 1.8.0.121-23.4 |
| SUSE:Linux Enterprise Desktop 12 SP2 | mozilla-nspr | 0 | 4.13.1-18.1 |
| SUSE:Linux Enterprise Desktop 12 SP2 | mozilla-nss | 0 | 3.29.5-57.1 |
| SUSE:Linux Enterprise Point of Sale 11 SP3 | MozillaFirefox | 0 | 45.9.0esr-71.2 |
| SUSE:Linux Enterprise Point of Sale 11 SP3 | mozilla-nspr | 0 | 4.13.1-32.1 |
| SUSE:Linux Enterprise Point of Sale 11 SP3 | mozilla-nss | 0 | 3.29.5-46.1 |
| SUSE:Linux Enterprise Server 11 SP3-LTSS | MozillaFirefox | 0 | 45.9.0esr-71.2 |
| SUSE:Linux Enterprise Server 11 SP3-LTSS | mozilla-nspr | 0 | 4.13.1-32.1 |
| SUSE:Linux Enterprise Server 11 SP3-LTSS | mozilla-nss | 0 | 3.29.5-46.1 |
| SUSE:Linux Enterprise Server 11 SP3-TERADATA | MozillaFirefox | 0 | 45.9.0esr-71.2 |
| SUSE:Linux Enterprise Server 11 SP3-TERADATA | mozilla-nspr | 0 | 4.13.1-32.1 |
| SUSE:Linux Enterprise Server 11 SP3-TERADATA | mozilla-nss | 0 | 3.29.5-46.1 |
| SUSE:Linux Enterprise Server 11 SP4 | MozillaFirefox | 0 | 45.9.0esr-71.2 |
| SUSE:Linux Enterprise Server 11 SP4 | mozilla-nspr | 0 | 4.13.1-32.1 |
| SUSE:Linux Enterprise Server 11 SP4 | mozilla-nss | 0 | 3.29.5-46.1 |
| SUSE:Linux Enterprise Server 12 SP1 | MozillaFirefox | 0 | 45.9.0esr-105.1 |
| SUSE:Linux Enterprise Server 12 SP1 | java-1_8_0-openjdk | 0 | 1.8.0.121-23.4 |
| SUSE:Linux Enterprise Server 12 SP1 | mozilla-nspr | 0 | 4.13.1-18.1 |
| SUSE:Linux Enterprise Server 12 SP1 | mozilla-nss | 0 | 3.29.5-57.1 |
| SUSE:Linux Enterprise Server 12 SP2 | MozillaFirefox | 0 | 45.9.0esr-105.1 |
| SUSE:Linux Enterprise Server 12 SP2 | java-1_8_0-openjdk | 0 | 1.8.0.121-23.4 |
| SUSE:Linux Enterprise Server 12 SP2 | mozilla-nspr | 0 | 4.13.1-18.1 |
| SUSE:Linux Enterprise Server 12 SP2 | mozilla-nss | 0 | 3.29.5-57.1 |
| SUSE:Linux Enterprise Server 12-LTSS | MozillaFirefox | 0 | 45.9.0esr-105.1 |
| SUSE:Linux Enterprise Server 12-LTSS | mozilla-nspr | 0 | 4.13.1-18.1 |
| SUSE:Linux Enterprise Server 12-LTSS | mozilla-nss | 0 | 3.29.5-57.1 |
| SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 | MozillaFirefox | 0 | 45.9.0esr-105.1 |
| SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 | java-1_8_0-openjdk | 0 | 1.8.0.121-23.4 |
| SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 | mozilla-nspr | 0 | 4.13.1-18.1 |
| SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 | mozilla-nss | 0 | 3.29.5-57.1 |
| SUSE:Linux Enterprise Server for SAP Applications 11 SP4 | MozillaFirefox | 0 | 45.9.0esr-71.2 |
| SUSE:Linux Enterprise Server for SAP Applications 11 SP4 | mozilla-nspr | 0 | 4.13.1-32.1 |
| SUSE:Linux Enterprise Server for SAP Applications 11 SP4 | mozilla-nss | 0 | 3.29.5-46.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 | MozillaFirefox | 0 | 45.9.0esr-105.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 | mozilla-nspr | 0 | 4.13.1-18.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 | mozilla-nss | 0 | 3.29.5-57.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP1 | MozillaFirefox | 0 | 45.9.0esr-105.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP1 | java-1_8_0-openjdk | 0 | 1.8.0.121-23.4 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP1 | mozilla-nspr | 0 | 4.13.1-18.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP1 | mozilla-nss | 0 | 3.29.5-57.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP2 | MozillaFirefox | 0 | 45.9.0esr-105.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP2 | java-1_8_0-openjdk | 0 | 1.8.0.121-23.4 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP2 | mozilla-nspr | 0 | 4.13.1-18.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP2 | mozilla-nss | 0 | 3.29.5-57.1 |
| SUSE:Linux Enterprise Software Development Kit 11 SP4 | MozillaFirefox | 0 | 45.9.0esr-71.2 |
| SUSE:Linux Enterprise Software Development Kit 11 SP4 | mozilla-nspr | 0 | 4.13.1-32.1 |
| SUSE:Linux Enterprise Software Development Kit 11 SP4 | mozilla-nss | 0 | 3.29.5-46.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP1 | MozillaFirefox | 0 | 45.9.0esr-105.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP1 | mozilla-nspr | 0 | 4.13.1-18.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP1 | mozilla-nss | 0 | 3.29.5-57.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP2 | MozillaFirefox | 0 | 45.9.0esr-105.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP2 | mozilla-nspr | 0 | 4.13.1-18.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP2 | mozilla-nss | 0 | 3.29.5-57.1 |
| SUSE:Manager 2.1 | MozillaFirefox | 0 | 45.9.0esr-71.2 |
| SUSE:Manager 2.1 | mozilla-nspr | 0 | 4.13.1-32.1 |
| SUSE:Manager 2.1 | mozilla-nss | 0 | 3.29.5-46.1 |
| SUSE:Manager Proxy 2.1 | MozillaFirefox | 0 | 45.9.0esr-71.2 |
| SUSE:Manager Proxy 2.1 | mozilla-nspr | 0 | 4.13.1-32.1 |
| SUSE:Manager Proxy 2.1 | mozilla-nss | 0 | 3.29.5-46.1 |
| SUSE:OpenStack Cloud 5 | MozillaFirefox | 0 | 45.9.0esr-71.2 |
| SUSE:OpenStack Cloud 5 | mozilla-nspr | 0 | 4.13.1-32.1 |
| SUSE:OpenStack Cloud 5 | mozilla-nss | 0 | 3.29.5-46.1 |
| Ubuntu:14.04:LTS | nss | 0 | 2:3.26.2-0ubuntu0.14.04.3 |
| Ubuntu:16.04:LTS | nss | 0 | 2:3.26.2-0ubuntu0.16.04.2 |
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-2020-12413 The Raccoon attack is a timing attack on DHE ciphersuites inherit in the TLS… Also affects nss