1. CVE archive
  2. 2008
  3. CVE-2008-4989

CVE-2008-4989

5.9 Medium severity CVSS v3.1 · source NVD CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N 5.9 – Medium

Description

The _gnutls_x509_verify_certificate function in lib/x509/verify.c in libgnutls in GnuTLS before 2.6.1 trusts certificate chains in which the last certificate is an arbitrary trusted, self-signed certificate, which allows man-in-the-middle attackers to insert a spoofed certificate for any Distinguished Name (DN).

Affected products

VendorProductVersionPlatform
canonical ubuntu linux 6.06 –
canonical ubuntu linux 7.10 –
canonical ubuntu linux 8.04 –
canonical ubuntu linux 8.10 –
debian debian linux 4.0 –
fedoraproject fedora 8 –
fedoraproject fedora 9 –
gnu gnutls < 2.6.1 –
opensuse opensuse >= 10.3 <= 11.1 –
suse linux enterprise 10.0 –
suse linux enterprise 11.0 –
suse linux enterprise server 10 –
suse linux enterprise server 11 –
All 74 Gnutls vulnerabilities

Vulnerability type

CWE-295 Improper Certificate Validation

The product does not validate, or incorrectly validates, a certificate.

Impact on systems

ScopeImpact
Integrity, Authentication Bypass Protection Mechanism, Gain Privileges or Assume Identity
When a certificate is invalid or malicious, it might allow an attacker to spoof a trusted entity by interfering in the communication path between the host and client. The product might connect to a malicious host while believing it is a trusted host, or the product might be deceived into accepting spoofed data that appears to originate from a trusted host.

How to prevent it

Architecture and Design · Implementation Certificates should be carefully managed and checked to assure that data are encrypted with the intended owner's public key.
Implementation If certificate pinning is being used, ensure that all relevant properties of the certificate are fully validated before the certificate is pinned, including the hostname.

All 1,816 CWE-295 CVEs, with trend and prevention

Source: MITRE CWE catalog · cwe.mitre.org