CVE Vulnerabilities

CVE-2018-0495

Observable Discrepancy

Published: Jun 13, 2018 | Modified: Nov 07, 2023
CVSS 3.x
4.7
MEDIUM
Source:
NVD
CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
CVSS 2.x
1.9 LOW
AV:L/AC:M/Au:N/C:P/I:N/A:N
RedHat/V2
RedHat/V3
5.1 MODERATE
CVSS:3.0/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Ubuntu
LOW

Libgcrypt before 1.7.10 and 1.8.x before 1.8.3 allows a memory-cache side-channel attack on ECDSA signatures that can be mitigated through the use of blinding during the signing process in the _gcry_ecc_ecdsa_sign function in cipher/ecc-ecdsa.c, aka the Return Of the Hidden Number Problem or ROHNP. To discover an ECDSA key, the attacker needs access to either the local machine or a different virtual machine on the same physical host.

Weakness

The product behaves differently or sends different responses under different circumstances in a way that is observable to an unauthorized actor, which exposes security-relevant information about the state of the product, such as whether a particular operation was successful or not.

Affected Software

Name Vendor Start Version End Version
Libgcrypt Gnupg * 1.7.10 (excluding)
Libgcrypt Gnupg 1.8.0 (including) 1.8.3 (excluding)
JBoss Core Services Apache HTTP Server 2.4.29 SP2 RedHat openssl *
JBoss Core Services Apache HTTP Server 2.4.29 SP2 RedHat *
JBoss Core Services on RHEL 6 RedHat jbcs-httpd24-httpd-0:2.4.29-40.jbcs.el6 *
JBoss Core Services on RHEL 6 RedHat jbcs-httpd24-openssl-1:1.0.2n-15.jbcs.el6 *
JBoss Core Services on RHEL 7 RedHat jbcs-httpd24-httpd-0:2.4.29-40.jbcs.el7 *
JBoss Core Services on RHEL 7 RedHat jbcs-httpd24-openssl-1:1.0.2n-15.jbcs.el7 *
Red Hat Ansible Tower 3.4 for RHEL 7 RedHat ansible-tower-34/ansible-tower-memcached:1.4.15-28 *
Red Hat Ansible Tower 3.4 for RHEL 7 RedHat ansible-tower-35/ansible-tower-memcached:1.4.15-28 *
Red Hat Ansible Tower 3.4 for RHEL 7 RedHat ansible-tower-37/ansible-tower-memcached-rhel7:1.4.15-28 *
Red Hat Enterprise Linux 7 RedHat openssl-1:1.0.2k-16.el7 *
Red Hat Enterprise Linux 7 RedHat nspr-0:4.21.0-1.el7 *
Red Hat Enterprise Linux 7 RedHat nss-0:3.44.0-4.el7 *
Red Hat Enterprise Linux 7 RedHat nss-softokn-0:3.44.0-5.el7 *
Red Hat Enterprise Linux 7 RedHat nss-util-0:3.44.0-3.el7 *
Red Hat Enterprise Linux 7.4 Advanced Update Support RedHat nss-softokn-0:3.28.3-9.el7_4 *
Red Hat Enterprise Linux 7.4 Telco Extended Update Support RedHat nss-softokn-0:3.28.3-9.el7_4 *
Red Hat Enterprise Linux 7.4 Update Services for SAP Solutions RedHat nss-softokn-0:3.28.3-9.el7_4 *
Red Hat Enterprise Linux 7.5 Extended Update Support RedHat nss-softokn-0:3.36.0-6.el7_5 *
Red Hat Enterprise Linux 7.6 Extended Update Support RedHat nss-softokn-0:3.36.0-6.el7_6 *
Libgcrypt11 Ubuntu trusty *
Libgcrypt20 Ubuntu artful *
Libgcrypt20 Ubuntu bionic *
Libgcrypt20 Ubuntu cosmic *
Libgcrypt20 Ubuntu devel *
Libgcrypt20 Ubuntu disco *
Libgcrypt20 Ubuntu trusty *
Libgcrypt20 Ubuntu upstream *
Libgcrypt20 Ubuntu xenial *
Nss Ubuntu artful *
Nss Ubuntu bionic *
Nss Ubuntu cosmic *
Nss Ubuntu trusty *
Nss Ubuntu upstream *
Nss Ubuntu xenial *
Openssl Ubuntu artful *
Openssl Ubuntu bionic *
Openssl Ubuntu cosmic *
Openssl Ubuntu devel *
Openssl Ubuntu disco *
Openssl Ubuntu trusty *
Openssl Ubuntu xenial *
Openssl098 Ubuntu trusty *
Openssl1.0 Ubuntu bionic *
Openssl1.0 Ubuntu cosmic *

Potential Mitigations

  • Compartmentalize the system to have “safe” areas where trust boundaries can be unambiguously drawn. Do not allow sensitive data to go outside of the trust boundary and always be careful when interfacing with a compartment outside of the safe area.
  • Ensure that appropriate compartmentalization is built into the system design, and the compartmentalization allows for and reinforces privilege separation functionality. Architects and designers should rely on the principle of least privilege to decide the appropriate time to use privileges and the time to drop privileges.
  • Ensure that error messages only contain minimal details that are useful to the intended audience and no one else. The messages need to strike the balance between being too cryptic (which can confuse users) or being too detailed (which may reveal more than intended). The messages should not reveal the methods that were used to determine the error. Attackers can use detailed information to refine or optimize their original attack, thereby increasing their chances of success.
  • If errors must be captured in some detail, record them in log messages, but consider what could occur if the log messages can be viewed by attackers. Highly sensitive information such as passwords should never be saved to log files.
  • Avoid inconsistent messaging that might accidentally tip off an attacker about internal state, such as whether a user account exists or not.

References