Lucene search
K

CentOS 5 : vim (CESA-2007:0346)

🗓️ 11 May 2007 00:00:00Reported by TenableType 
nessus
 nessus
🔗 www.tenable.com👁 27 Views

Updated CentOS 5 vim packages fix arbitrary command execution fla

Related
Refs
Code
ReporterTitlePublishedViews
Family
ATTACKERKB
CVE-2007-2653
14 May 200721:19
attackerkb
Cent OS
vim security update
10 May 200715:37
centos
Circl
CVE-2007-2438
10 Apr 202519:09
circl
CVE
CVE-2007-2438
2 May 200721:00
cve
Cvelist
CVE-2007-2438
2 May 200721:00
cvelist
Debian
[SECURITY] [DSA 1364-1] New vim packages fix several vulnerabilities
1 Sep 200711:30
debian
Debian
[SECURITY] [DSA 1364-2] New vim packages fix several vulnerabilities
19 Sep 200722:20
debian
Debian CVE
CVE-2007-2438
2 May 200721:00
debiancve
Tenable Nessus
Debian DSA-1364-2 : vim - several vulnerabilities
3 Sep 200700:00
nessus
Tenable Nessus
Mandrake Linux Security Advisory : vim (MDKSA-2007:101)
10 May 200700:00
nessus
Rows per page
#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#
# The descriptive text and package checks in this plugin were  
# extracted from Red Hat Security Advisory RHSA-2007:0346 and 
# CentOS Errata and Security Advisory 2007:0346 respectively.
#

include('deprecated_nasl_level.inc');
include('compat.inc');

if (description)
{
  script_id(25205);
  script_version("1.15");
  script_set_attribute(attribute:"plugin_modification_date", value:"2021/01/04");

  script_cve_id("CVE-2007-2438");
  script_xref(name:"RHSA", value:"2007:0346");

  script_name(english:"CentOS 5 : vim (CESA-2007:0346)");
  script_summary(english:"Checks rpm output for the updated packages");

  script_set_attribute(
    attribute:"synopsis", 
    value:"The remote CentOS host is missing one or more security updates."
  );
  script_set_attribute(
    attribute:"description", 
    value:
"Updated vim packages that fix a security issue are now available for
Red Hat Enterprise Linux 5.

This update has been rated as having moderate security impact by the
Red Hat Security Response Team.

VIM (VIsual editor iMproved) is a version of the vi editor.

An arbitrary command execution flaw was found in the way VIM processes
modelines. If a user with modelines enabled opened a text file
containing a carefully crafted modeline, arbitrary commands could be
executed as the user running VIM. (CVE-2007-2438)

Users of VIM are advised to upgrade to these updated packages, which
resolve this issue.

Please note: this issue did not affect VIM as distributed with Red Hat
Enterprise Linux 2.1, 3, or 4."
  );
  # https://lists.centos.org/pipermail/centos-announce/2007-May/013745.html
  script_set_attribute(
    attribute:"see_also",
    value:"http://www.nessus.org/u?8e1481bb"
  );
  # https://lists.centos.org/pipermail/centos-announce/2007-May/013746.html
  script_set_attribute(
    attribute:"see_also",
    value:"http://www.nessus.org/u?5eef76aa"
  );
  script_set_attribute(attribute:"solution", value:"Update the affected vim packages.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:H/Au:N/C:C/I:C/A:C");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:vim-X11");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:vim-common");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:vim-enhanced");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:vim-minimal");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:centos:centos:5");

  script_set_attribute(attribute:"vuln_publication_date", value:"2007/05/02");
  script_set_attribute(attribute:"patch_publication_date", value:"2007/05/10");
  script_set_attribute(attribute:"plugin_publication_date", value:"2007/05/11");
  script_set_attribute(attribute:"generated_plugin", value:"current");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_copyright(english:"This script is Copyright (C) 2007-2021 and is owned by Tenable, Inc. or an Affiliate thereof.");
  script_family(english:"CentOS Local Security Checks");

  script_dependencies("ssh_get_info.nasl");
  script_require_keys("Host/local_checks_enabled", "Host/CentOS/release", "Host/CentOS/rpm-list");

  exit(0);
}


include("audit.inc");
include("global_settings.inc");
include("rpm.inc");


if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
release = get_kb_item("Host/CentOS/release");
if (isnull(release) || "CentOS" >!< release) audit(AUDIT_OS_NOT, "CentOS");
os_ver = pregmatch(pattern: "CentOS(?: Linux)? release ([0-9]+)", string:release);
if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "CentOS");
os_ver = os_ver[1];
if (! preg(pattern:"^5([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "CentOS 5.x", "CentOS " + os_ver);

if (!get_kb_item("Host/CentOS/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);


cpu = get_kb_item("Host/cpu");
if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
if ("x86_64" >!< cpu && cpu !~ "^i[3-6]86$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "CentOS", cpu);


flag = 0;
if (rpm_check(release:"CentOS-5", reference:"vim-X11-7.0.109-3.el5.3")) flag++;
if (rpm_check(release:"CentOS-5", reference:"vim-common-7.0.109-3.el5.3")) flag++;
if (rpm_check(release:"CentOS-5", reference:"vim-enhanced-7.0.109-3.el5.3")) flag++;
if (rpm_check(release:"CentOS-5", reference:"vim-minimal-7.0.109-3.el5.3")) flag++;


if (flag)
{
  security_report_v4(
    port       : 0,
    severity   : SECURITY_HOLE,
    extra      : rpm_report_get()
  );
  exit(0);
}
else
{
  tested = pkg_tests_get();
  if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
  else audit(AUDIT_PACKAGE_NOT_INSTALLED, "vim-X11 / vim-common / vim-enhanced / vim-minimal");
}

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

04 Jan 2021 00:00Current
8.3High risk
Vulners AI Score8.3
CVSS 27.6
EPSS0.03505
27