Vulnerabilities > CVE-2007-2438 - Remote Code Execution vulnerability in VIM Development Group VIM 7.0

047910
CVSS 7.6 - HIGH
Attack vector
NETWORK
Attack complexity
HIGH
Privileges required
NONE
Confidentiality impact
COMPLETE
Integrity impact
COMPLETE
Availability impact
COMPLETE
network
high complexity
foresight-linux
vim-development-group
nessus

Summary

The sandbox for vim allows dangerous functions such as (1) writefile, (2) feedkeys, and (3) system, which might allow user-assisted attackers to execute shell commands and write files via modelines. Successful exploitation requires that the "modelines" option is enabled and the user is tricked into opening a malicious file. The vendor has addressed this issue with the following patches: VIM Development Group VIM 7.0- VIM Development Group patch 7.0.234 ftp://ftp.vim.org/pub/vim/patches/7.0/7.0.234 VIM Development Group patch 7.0.235 ftp://ftp.vim.org/pub/vim/patches/7.0/7.0.235

Vulnerable Configurations

Part Description Count
OS
Foresight_Linux
1
Application
Vim_Development_Group
1

Nessus

  • NASL familyUbuntu Local Security Checks
    NASL idUBUNTU_USN-463-1.NASL
    descriptionTomas Golembiovsky discovered that some vim commands were accidentally allowed in modelines. By tricking a user into opening a specially crafted file in vim, an attacker could execute arbitrary code with user privileges. Note that Tenable Network Security has extracted the preceding description block directly from the Ubuntu security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen2020-06-01
    modified2020-06-02
    plugin id28063
    published2007-11-10
    reporterUbuntu Security Notice (C) 2007-2019 Canonical, Inc. / NASL script (C) 2018 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/28063
    titleUbuntu 6.10 / 7.04 : vim vulnerability (USN-463-1)
    code
    #%NASL_MIN_LEVEL 80502
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were
    # extracted from Ubuntu Security Notice USN-463-1. The text 
    # itself is copyright (C) Canonical, Inc. See 
    # <http://www.ubuntu.com/usn/>. Ubuntu(R) is a registered 
    # trademark of Canonical, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(28063);
      script_version("1.14");
      script_cvs_date("Date: 2019/08/02 13:33:01");
    
      script_cve_id("CVE-2007-2438");
      script_xref(name:"USN", value:"463-1");
    
      script_name(english:"Ubuntu 6.10 / 7.04 : vim vulnerability (USN-463-1)");
      script_summary(english:"Checks dpkg output for updated packages.");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:
    "The remote Ubuntu host is missing one or more security-related
    patches."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "Tomas Golembiovsky discovered that some vim commands were accidentally
    allowed in modelines. By tricking a user into opening a specially
    crafted file in vim, an attacker could execute arbitrary code with
    user privileges.
    
    Note that Tenable Network Security has extracted the preceding
    description block directly from the Ubuntu security advisory. Tenable
    has attempted to automatically clean and format it as much as possible
    without introducing additional issues."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://usn.ubuntu.com/463-1/"
      );
      script_set_attribute(attribute:"solution", value:"Update the affected 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:canonical:ubuntu_linux:vim");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:vim-common");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:vim-doc");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:vim-full");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:vim-gnome");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:vim-gtk");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:vim-gui-common");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:vim-perl");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:vim-python");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:vim-ruby");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:vim-runtime");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:vim-tcl");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:vim-tiny");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:canonical:ubuntu_linux:6.10");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:canonical:ubuntu_linux:7.04");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2007/05/22");
      script_set_attribute(attribute:"plugin_publication_date", value:"2007/11/10");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"Ubuntu Security Notice (C) 2007-2019 Canonical, Inc. / NASL script (C) 2018 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"Ubuntu Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/cpu", "Host/Ubuntu", "Host/Ubuntu/release", "Host/Debian/dpkg-l");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("ubuntu.inc");
    include("misc_func.inc");
    
    if ( ! get_kb_item("Host/local_checks_enabled") ) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    release = get_kb_item("Host/Ubuntu/release");
    if ( isnull(release) ) audit(AUDIT_OS_NOT, "Ubuntu");
    release = chomp(release);
    if (! ereg(pattern:"^(6\.10|7\.04)$", string:release)) audit(AUDIT_OS_NOT, "Ubuntu 6.10 / 7.04", "Ubuntu " + release);
    if ( ! get_kb_item("Host/Debian/dpkg-l") ) 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, "Ubuntu", cpu);
    
    flag = 0;
    
    if (ubuntu_check(osver:"6.10", pkgname:"vim", pkgver:"1:7.0-035+1ubuntu5.1")) flag++;
    if (ubuntu_check(osver:"6.10", pkgname:"vim-common", pkgver:"7.0-035+1ubuntu5.1")) flag++;
    if (ubuntu_check(osver:"6.10", pkgname:"vim-doc", pkgver:"7.0-035+1ubuntu5.1")) flag++;
    if (ubuntu_check(osver:"6.10", pkgname:"vim-full", pkgver:"7.0-035+1ubuntu5.1")) flag++;
    if (ubuntu_check(osver:"6.10", pkgname:"vim-gnome", pkgver:"7.0-035+1ubuntu5.1")) flag++;
    if (ubuntu_check(osver:"6.10", pkgname:"vim-gtk", pkgver:"7.0-035+1ubuntu5.1")) flag++;
    if (ubuntu_check(osver:"6.10", pkgname:"vim-gui-common", pkgver:"7.0-035+1ubuntu5.1")) flag++;
    if (ubuntu_check(osver:"6.10", pkgname:"vim-perl", pkgver:"7.0-035+1ubuntu5.1")) flag++;
    if (ubuntu_check(osver:"6.10", pkgname:"vim-python", pkgver:"7.0-035+1ubuntu5.1")) flag++;
    if (ubuntu_check(osver:"6.10", pkgname:"vim-ruby", pkgver:"7.0-035+1ubuntu5.1")) flag++;
    if (ubuntu_check(osver:"6.10", pkgname:"vim-runtime", pkgver:"7.0-035+1ubuntu5.1")) flag++;
    if (ubuntu_check(osver:"6.10", pkgname:"vim-tcl", pkgver:"7.0-035+1ubuntu5.1")) flag++;
    if (ubuntu_check(osver:"6.10", pkgname:"vim-tiny", pkgver:"7.0-035+1ubuntu5.1")) flag++;
    if (ubuntu_check(osver:"7.04", pkgname:"vim", pkgver:"1:7.0-164+1ubuntu7.1")) flag++;
    if (ubuntu_check(osver:"7.04", pkgname:"vim-common", pkgver:"7.0-164+1ubuntu7.1")) flag++;
    if (ubuntu_check(osver:"7.04", pkgname:"vim-doc", pkgver:"7.0-164+1ubuntu7.1")) flag++;
    if (ubuntu_check(osver:"7.04", pkgname:"vim-full", pkgver:"7.0-164+1ubuntu7.1")) flag++;
    if (ubuntu_check(osver:"7.04", pkgname:"vim-gnome", pkgver:"7.0-164+1ubuntu7.1")) flag++;
    if (ubuntu_check(osver:"7.04", pkgname:"vim-gtk", pkgver:"7.0-164+1ubuntu7.1")) flag++;
    if (ubuntu_check(osver:"7.04", pkgname:"vim-gui-common", pkgver:"7.0-164+1ubuntu7.1")) flag++;
    if (ubuntu_check(osver:"7.04", pkgname:"vim-perl", pkgver:"7.0-164+1ubuntu7.1")) flag++;
    if (ubuntu_check(osver:"7.04", pkgname:"vim-python", pkgver:"7.0-164+1ubuntu7.1")) flag++;
    if (ubuntu_check(osver:"7.04", pkgname:"vim-ruby", pkgver:"7.0-164+1ubuntu7.1")) flag++;
    if (ubuntu_check(osver:"7.04", pkgname:"vim-runtime", pkgver:"7.0-164+1ubuntu7.1")) flag++;
    if (ubuntu_check(osver:"7.04", pkgname:"vim-tcl", pkgver:"7.0-164+1ubuntu7.1")) flag++;
    if (ubuntu_check(osver:"7.04", pkgname:"vim-tiny", pkgver:"7.0-164+1ubuntu7.1")) flag++;
    
    if (flag)
    {
      security_report_v4(
        port       : 0,
        severity   : SECURITY_HOLE,
        extra      : ubuntu_report_get()
      );
      exit(0);
    }
    else
    {
      tested = ubuntu_pkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "vim / vim-common / vim-doc / vim-full / vim-gnome / vim-gtk / etc");
    }
    
  • NASL familyMandriva Local Security Checks
    NASL idMANDRAKE_MDKSA-2007-101.NASL
    descriptionA vulnerability in vim 7.0
    last seen2020-06-01
    modified2020-06-02
    plugin id25191
    published2007-05-10
    reporterThis script is Copyright (C) 2007-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/25191
    titleMandrake Linux Security Advisory : vim (MDKSA-2007:101)
    code
    #%NASL_MIN_LEVEL 80502
    
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were  
    # extracted from Mandrake Linux Security Advisory MDKSA-2007:101. 
    # The text itself is copyright (C) Mandriva S.A.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(25191);
      script_version ("1.15");
      script_cvs_date("Date: 2019/08/02 13:32:49");
    
      script_cve_id("CVE-2007-2438");
      script_xref(name:"MDKSA", value:"2007:101");
    
      script_name(english:"Mandrake Linux Security Advisory : vim (MDKSA-2007:101)");
      script_summary(english:"Checks rpm output for the updated packages");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:
    "The remote Mandrake Linux host is missing one or more security
    updates."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "A vulnerability in vim 7.0's modeline processing capabilities was
    discovered where a user with modelines enabled could open a text file
    containing a carefully crafted modeline, executing arbitrary commands
    as the user running vim.
    
    Updated packages have been patched to prevent this issue."
      );
      script_set_attribute(attribute:"solution", value:"Update the affected 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:mandriva:linux:vim-X11");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:vim-common");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:vim-enhanced");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:vim-minimal");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:mandriva:linux:2007");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:mandriva:linux:2007.1");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2007/05/09");
      script_set_attribute(attribute:"plugin_publication_date", value:"2007/05/10");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2007-2019 Tenable Network Security, Inc.");
      script_family(english:"Mandriva Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/cpu", "Host/Mandrake/release", "Host/Mandrake/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);
    if (!get_kb_item("Host/Mandrake/release")) audit(AUDIT_OS_NOT, "Mandriva / Mandake Linux");
    if (!get_kb_item("Host/Mandrake/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    cpu = get_kb_item("Host/cpu");
    if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
    if (cpu !~ "^(amd64|i[3-6]86|x86_64)$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "Mandriva / Mandrake Linux", cpu);
    
    
    flag = 0;
    if (rpm_check(release:"MDK2007.0", reference:"vim-X11-7.0-16.1mdv2007.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.0", reference:"vim-common-7.0-16.1mdv2007.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.0", reference:"vim-enhanced-7.0-16.1mdv2007.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.0", reference:"vim-minimal-7.0-16.1mdv2007.0", yank:"mdv")) flag++;
    
    if (rpm_check(release:"MDK2007.1", reference:"vim-X11-7.0-16.1mdv2007.1", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.1", reference:"vim-common-7.0-16.1mdv2007.1", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.1", reference:"vim-enhanced-7.0-16.1mdv2007.1", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.1", reference:"vim-minimal-7.0-16.1mdv2007.1", yank:"mdv")) flag++;
    
    
    if (flag)
    {
      if (report_verbosity > 0) security_hole(port:0, extra:rpm_report_get());
      else security_hole(0);
      exit(0);
    }
    else audit(AUDIT_HOST_NOT, "affected");
    
  • NASL familySuSE Local Security Checks
    NASL idSUSE_VIM-3410.NASL
    descriptionFiles with VIM modelines could call some unsafe VIM functions (CVE-2007-2438). Modelines are disabled in the default config (/etc/vimrc) of openSUSE though.
    last seen2020-06-01
    modified2020-06-02
    plugin id27474
    published2007-10-17
    reporterThis script is Copyright (C) 2007-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/27474
    titleopenSUSE 10 Security Update : vim (vim-3410)
    code
    #%NASL_MIN_LEVEL 80502
    
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were
    # extracted from openSUSE Security Update vim-3410.
    #
    # The text description of this plugin is (C) SUSE LLC.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(27474);
      script_version ("1.12");
      script_cvs_date("Date: 2019/10/25 13:36:30");
    
      script_cve_id("CVE-2007-2438");
    
      script_name(english:"openSUSE 10 Security Update : vim (vim-3410)");
      script_summary(english:"Check for the vim-3410 patch");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote openSUSE host is missing a security update."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "Files with VIM modelines could call some unsafe VIM functions
    (CVE-2007-2438). Modelines are disabled in the default config
    (/etc/vimrc) of openSUSE though."
      );
      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:novell:opensuse:gvim");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:vim");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:vim-enhanced");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:novell:opensuse:10.2");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2007/05/24");
      script_set_attribute(attribute:"plugin_publication_date", value:"2007/10/17");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2007-2019 Tenable Network Security, Inc.");
      script_family(english:"SuSE Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/SuSE/release", "Host/SuSE/rpm-list", "Host/cpu");
    
      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/SuSE/release");
    if (isnull(release) || release =~ "^(SLED|SLES)") audit(AUDIT_OS_NOT, "openSUSE");
    if (release !~ "^(SUSE10\.2)$") audit(AUDIT_OS_RELEASE_NOT, "openSUSE", "10.2", release);
    if (!get_kb_item("Host/SuSE/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    ourarch = get_kb_item("Host/cpu");
    if (!ourarch) audit(AUDIT_UNKNOWN_ARCH);
    if (ourarch !~ "^(i586|i686|x86_64)$") audit(AUDIT_ARCH_NOT, "i586 / i686 / x86_64", ourarch);
    
    flag = 0;
    
    if ( rpm_check(release:"SUSE10.2", reference:"gvim-7.0-36") ) flag++;
    if ( rpm_check(release:"SUSE10.2", reference:"vim-7.0-36") ) flag++;
    if ( rpm_check(release:"SUSE10.2", reference:"vim-enhanced-7.0-36") ) flag++;
    
    if (flag)
    {
      if (report_verbosity > 0) security_hole(port:0, extra:rpm_report_get());
      else security_hole(0);
      exit(0);
    }
    else
    {
      tested = pkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "gvim / vim / vim-enhanced");
    }
    
  • NASL familyRed Hat Local Security Checks
    NASL idREDHAT-RHSA-2007-0346.NASL
    descriptionUpdated 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.
    last seen2020-06-01
    modified2020-06-02
    plugin id25332
    published2007-05-25
    reporterThis script is Copyright (C) 2007-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/25332
    titleRHEL 5 : vim (RHSA-2007:0346)
  • NASL familyDebian Local Security Checks
    NASL idDEBIAN_DSA-1364.NASL
    descriptionSeveral vulnerabilities have been discovered in the vim editor. The Common Vulnerabilities and Exposures project identifies the following problems : - CVE-2007-2953 Ulf Harnhammar discovered that a format string flaw in helptags_one() from src/ex_cmds.c (triggered through the
    last seen2020-06-01
    modified2020-06-02
    plugin id25964
    published2007-09-03
    reporterThis script is Copyright (C) 2007-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/25964
    titleDebian DSA-1364-2 : vim - several vulnerabilities
  • NASL familyOracle Linux Local Security Checks
    NASL idORACLELINUX_ELSA-2007-0346.NASL
    descriptionFrom Red Hat Security Advisory 2007:0346 : 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.
    last seen2020-06-01
    modified2020-06-02
    plugin id67494
    published2013-07-12
    reporterThis script is Copyright (C) 2013-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/67494
    titleOracle Linux 5 : vim (ELSA-2007-0346)
  • NASL familyCentOS Local Security Checks
    NASL idCENTOS_RHSA-2007-0346.NASL
    descriptionUpdated 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.
    last seen2020-06-01
    modified2020-06-02
    plugin id25205
    published2007-05-11
    reporterThis script is Copyright (C) 2007-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/25205
    titleCentOS 5 : vim (CESA-2007:0346)

Oval

accepted2013-04-29T04:22:59.219-04:00
classvulnerability
contributors
  • nameAharon Chernin
    organizationSCAP.com, LLC
  • nameDragos Prisaca
    organizationG2, Inc.
definition_extensions
  • commentThe operating system installed on the system is Red Hat Enterprise Linux 5
    ovaloval:org.mitre.oval:def:11414
  • commentThe operating system installed on the system is CentOS Linux 5.x
    ovaloval:org.mitre.oval:def:15802
  • commentOracle Linux 5.x
    ovaloval:org.mitre.oval:def:15459
descriptionThe sandbox for vim allows dangerous functions such as (1) writefile, (2) feedkeys, and (3) system, which might allow user-assisted attackers to execute shell commands and write files via modelines.
familyunix
idoval:org.mitre.oval:def:9876
statusaccepted
submitted2010-07-09T03:56:16-04:00
titleThe sandbox for vim allows dangerous functions such as (1) writefile, (2) feedkeys, and (3) system, which might allow user-assisted attackers to execute shell commands and write files via modelines.
version18

Redhat

advisories
bugzilla
id238259
titleCVE-2007-2438 vim-7 modeline security issue
oval
OR
  • commentRed Hat Enterprise Linux must be installed
    ovaloval:com.redhat.rhba:tst:20070304026
  • AND
    • commentRed Hat Enterprise Linux 5 is installed
      ovaloval:com.redhat.rhba:tst:20070331005
    • OR
      • AND
        • commentvim-X11 is earlier than 2:7.0.109-3.el5.3
          ovaloval:com.redhat.rhsa:tst:20070346001
        • commentvim-X11 is signed with Red Hat redhatrelease key
          ovaloval:com.redhat.rhsa:tst:20070346002
      • AND
        • commentvim-minimal is earlier than 2:7.0.109-3.el5.3
          ovaloval:com.redhat.rhsa:tst:20070346003
        • commentvim-minimal is signed with Red Hat redhatrelease key
          ovaloval:com.redhat.rhsa:tst:20070346004
      • AND
        • commentvim-enhanced is earlier than 2:7.0.109-3.el5.3
          ovaloval:com.redhat.rhsa:tst:20070346005
        • commentvim-enhanced is signed with Red Hat redhatrelease key
          ovaloval:com.redhat.rhsa:tst:20070346006
      • AND
        • commentvim-common is earlier than 2:7.0.109-3.el5.3
          ovaloval:com.redhat.rhsa:tst:20070346007
        • commentvim-common is signed with Red Hat redhatrelease key
          ovaloval:com.redhat.rhsa:tst:20070346008
rhsa
idRHSA-2007:0346
released2007-05-09
severityModerate
titleRHSA-2007:0346: vim security update (Moderate)
rpms
  • vim-X11-2:7.0.109-3.el5.3
  • vim-common-2:7.0.109-3.el5.3
  • vim-debuginfo-2:7.0.109-3.el5.3
  • vim-enhanced-2:7.0.109-3.el5.3
  • vim-minimal-2:7.0.109-3.el5.3