Lucene search

K
openvasCopyright (C) 2009 Greenbone AGOPENVAS:1361412562310800646
HistoryJul 07, 2009 - 12:00 a.m.

LibTIFF TIFF Image Buffer Underflow Vulnerability

2009-07-0700:00:00
Copyright (C) 2009 Greenbone AG
plugins.openvas.org
6

4.3 Medium

CVSS2

Access Vector

NETWORK

Access Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

NONE

Availability Impact

NONE

AV:N/AC:M/Au:N/C:P/I:N/A:N

0.003 Low

EPSS

Percentile

64.9%

LibTIFF is prone to buffer underflow vulnerability.

# SPDX-FileCopyrightText: 2009 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.800646");
  script_version("2023-07-27T05:05:08+0000");
  script_tag(name:"last_modification", value:"2023-07-27 05:05:08 +0000 (Thu, 27 Jul 2023)");
  script_tag(name:"creation_date", value:"2009-07-07 11:58:41 +0200 (Tue, 07 Jul 2009)");
  script_tag(name:"cvss_base", value:"4.3");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:P/I:N/A:N");
  script_cve_id("CVE-2009-2285");
  script_name("LibTIFF TIFF Image Buffer Underflow Vulnerability");
  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (C) 2009 Greenbone AG");
  script_family("Denial of Service");
  script_dependencies("gather-package-list.nasl");
  script_mandatory_keys("login/SSH/success");
  script_exclude_keys("ssh/no_linux_shell");

  script_xref(name:"URL", value:"http://secunia.com/advisories/35515/");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/35451");
  script_xref(name:"URL", value:"https://bugs.edge.launchpad.net/bugs/380149");
  script_xref(name:"URL", value:"http://www.lan.st/showthread.php?t=1856&page=3");
  script_xref(name:"URL", value:"http://www.vupen.com/english/advisories/2009/1637");
  script_xref(name:"URL", value:"http://bugzilla.maptools.org/attachment.cgi?id=314");

  script_tag(name:"affected", value:"LibTIFF versions 3.x.");

  script_tag(name:"insight", value:"The flaw is due to buffer underflow error in the 'LZWDecodeCompat()'
  [libtiff/tif_lzw.c] function when processing malicious TIFF images.");

  script_tag(name:"solution", value:"Apply the patches available from the linked references.");

  script_tag(name:"summary", value:"LibTIFF is prone to buffer underflow vulnerability.");

  script_tag(name:"impact", value:"A remote attacker could exploit this issue to execute arbitrary code
  or to crash the affected application.");

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

  exit(0);
}

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

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

libtiffPaths = ssh_find_file(file_name:"/config\.status$", useregex:TRUE, sock:sock);
if(!libtiffPaths){
  ssh_close_connection();
  exit(0);
}

foreach libtiffBin(libtiffPaths) {

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

  libtiffVer = ssh_get_bin_version(full_prog_name:libtiffBin, sock:sock, version_argv:"--version", ver_pattern:"config.status ([0-9.]+)");

  if("LibTIFF" >< libtiffVer && libtiffVer[1]) {
    if(version_in_range(version:libtiffVer[1], test_version:"3.0", test_version2:"3.8.2")){
      report = report_fixed_ver(installed_version:libtiffVer[1], fixed_version:"See references", install_path:libtiffBin);
      security_message(port:0, data:report);
      ssh_close_connection();
      exit(0);
    }
  }
}

ssh_close_connection();
exit(0);

4.3 Medium

CVSS2

Access Vector

NETWORK

Access Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

NONE

Availability Impact

NONE

AV:N/AC:M/Au:N/C:P/I:N/A:N

0.003 Low

EPSS

Percentile

64.9%