Lucene search
+L

GnuTLS < 2.2.5 Vulnerability - Linux

🗓️ 06 Sep 2008 00:00:00Reported by Copyright (C) 2008 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 26 Views

GnuTLS < 2.2.5 Vulnerability - Linux. Remote code execution and denial of service vulnerabilities

Related
Code
# SPDX-FileCopyrightText: 2008 Greenbone AG
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-only

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.90026");
  script_version("2024-02-22T05:06:55+0000");
  script_tag(name:"last_modification", value:"2024-02-22 05:06:55 +0000 (Thu, 22 Feb 2024)");
  script_tag(name:"creation_date", value:"2008-09-06 11:16:56 +0200 (Sat, 06 Sep 2008)");
  script_tag(name:"cvss_base", value:"10.0");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:C/I:C/A:C");
  script_cve_id("CVE-2008-1948", "CVE-2008-1949", "CVE-2008-1950");
  script_name("GnuTLS < 2.2.5 Vulnerability - Linux");
  script_category(ACT_GATHER_INFO);
  script_tag(name:"qod_type", value:"executable_version_unreliable");
  script_copyright("Copyright (C) 2008 Greenbone AG");
  script_family("General");
  script_mandatory_keys("login/SSH/success");
  script_dependencies("gather-package-list.nasl");
  script_exclude_keys("ssh/no_linux_shell");

  script_tag(name:"solution_type", value:"VendorFix");

  script_tag(name:"solution", value:"All GnuTLS users should upgrade to the latest version.");

  script_tag(name:"impact", value:"CVE-2008-1948
  The _gnutls_server_name_recv_params function in lib/ext_server_name.c
  in libgnutls in gnutls-serv in GnuTLS before 2.2.4 does not properly
  calculate the number of Server Names in a TLS 1.0 Client Hello
  message during extension handling, which allows remote attackers
  to cause a denial of service (crash) or possibly execute arbitrary
  code via a zero value for the length of Server Names, which leads
  to a buffer overflow in session resumption data in the
  pack_security_parameters function, aka GNUTLS-SA-2008-1-1.

  CVE-2008-1949

  The _gnutls_recv_client_kx_message function in lib/gnutls_kx.c
  in libgnutls in gnutls-serv in GnuTLS before 2.2.4 continues to
  process Client Hello messages within a TLS message after one has
  already been processed, which allows remote attackers to cause a
  denial of service (NULL dereference and crash) via a TLS message
  containing multiple Client Hello messages, aka GNUTLS-SA-2008-1-2.

  CVE 2008-1950

  Integer signedness error in the _gnutls_ciphertext2compressed
  function in lib/gnutls_cipher.c in libgnutls in GnuTLS before 2.2.4
  allows remote attackers to cause a denial of service (buffer over-read
  and crash) via a certain integer value in the Random field in an
  encrypted Client Hello message within a TLS record with an invalid
  Record Length, which leads to an invalid cipher padding length,
  aka GNUTLS-SA-2008-1-3.");

  script_tag(name:"summary", value:"The remote host is probably affected by the vulnerabilities
  described in CVE-2008-1948, CVE-2008-1949, CVE-2008-1950.");

  exit(0);
}

include("ssh_func.inc");
include("version_func.inc");

sock = ssh_login_or_reuse_connection();
if(!sock)
  exit(0);

gnuPath = ssh_find_file(file_name:"/gnutls-cli$", useregex:TRUE, sock:sock);
foreach gnutlsBin (gnuPath)
{

  gnutlsBin = chomp(gnutlsBin);
  if(!gnutlsBin)
    continue;

  gnutlsVer = ssh_get_bin_version(full_prog_name:gnutlsBin, sock:sock, version_argv:"--version", ver_pattern:"version ([0-9.]+)");
  if(gnutlsVer[1])
  {
    if(version_is_less(version:gnutlsVer[1], test_version:"2.2.4")){
      security_message( port: 0, data: "The target host was found to be vulnerable" );
    }
    ssh_close_connection();
    exit(0);
  }
}
ssh_close_connection();

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

22 Feb 2024 00:00Current
6.3Medium risk
Vulners AI Score6.3
CVSS 210
EPSS0.12018
26