📄 deb_1399_1.nasl
字号:
# OpenVAS Vulnerability Test# $Id$# Description: Auto-generated from advisory DSA 1399-1## Authors:# Thomas Reinke <reinke@securityspace.com>## Copyright:# Copyright (c) 2007 E-Soft Inc. http://www.securityspace.com# Text descriptions are largerly excerpted from the referenced# advisory, and are Copyright (c) the respective author(s)## This program is free software; you can redistribute it and/or modify# it under the terms of the GNU General Public License version 2,# as published by the Free Software Foundation## This program is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.## You should have received a copy of the GNU General Public License# along with this program; if not, write to the Free Software# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.#if(description){ script_id(58731); script_cve_id("CVE-2007-1659", "CVE-2007-1660", "CVE-2007-1661", "CVE-2007-1662", "CVE-2007-4766", "CVE-2007-4767", "CVE-2007-4768"); script_version ("$"); name["english"] = "Debian Security Advisory DSA 1399-1 (pcre3)"; script_name(english:name["english"]); desc["english"] = "The remote host is missing an update to pcre3announced via advisory DSA 1399-1.Tavis Ormandy of the Google Security Team has discovered severalsecurity issues in PCRE, the Perl-Compatible Regular Expression library,which potentially allow attackers to execute arbitrary code by compilingspecially crafted regular expressions.Version 7.0 of the PCRE library featured a major rewrite of the regularexpression compiler, and it was deemed infeasible to backport thesecurity fixes in version 7.3 to the versions in Debian's stable andoldstable distributions (6.7 and 4.5, respectively). Therefore, thisupdate contains version 7.3, with special patches to improve thecompatibility with the older versions. As a result, extra care isnecessary when applying this update.The Common Vulnerabilities and Exposures project identifies thefollowing problems:CVE-2007-1659Unmatched \Q\E sequences with orphan \E codes can cause the compiledregex to become desynchronized, resulting in corrupt bytecode that mayresult in multiple exploitable conditions.CVE-2007-1660Multiple forms of character class had their sizes miscalculated oninitial passes, resulting in too little memory being allocated.CVE-2007-1661Multiple patterns of the form \X?\d or \P{L}?\d in non-UTF-8 modecould backtrack before the start of the string, possibly leakinginformation from the address space, or causing a crash by reading outof bounds.CVE-2007-1662A number of routines can be fooled into reading past the end of anstring looking for unmatched parentheses or brackets, resulting in adenial of service.CVE-2007-4766Multiple integer overflows in the processing of escape sequences couldresult in heap overflows or out of bounds reads/writes.CVE-2007-4767Multiple infinite loops and heap overflows were disovered in thehandling of \P and \P{x} sequences, where the length of thesenon-standard operations was mishandled.CVE-2007-4768Character classes containing a lone unicode sequence were incorrectlyoptimised, resulting in a heap overflow.For the stable distribution (etch), these problems have been fixed inversion 6.7+7.4-2.For the old stable distribution (sarge), these problems have been fixed inversion 4.5+7.4-1.For the unstable distribution (sid), these problems have been fixed inversion 7.3-1.Solution:https://secure1.securityspace.com/smysecure/catid.html?in=DSA%201399-1Risk factor : High"; script_description(english:desc["english"]); summary["english"] = "Debian Security Advisory DSA 1399-1 (pcre3)"; script_summary(english:summary["english"]); script_category(ACT_GATHER_INFO); script_copyright(english:"Copyright (c) 2007 E-Soft Inc. http://www.securityspace.com"); family["english"] = "Debian Local Security Checks"; script_family(english:family["english"]); script_dependencies("gather-package-list.nasl"); script_require_keys("ssh/login/packages"); exit(0);}## The script code starts here#include("revisions-lib.inc");include("pkg-lib-deb.inc");vuln = 0;if(isdpkgvuln(pkg:"pgrep", ver:"4.5+7.4-1", rls:"DEB3.1")) { vuln = 1;}if(isdpkgvuln(pkg:"libpcre3-dev", ver:"4.5+7.4-1", rls:"DEB3.1")) { vuln = 1;}if(isdpkgvuln(pkg:"libpcre3", ver:"4.5+7.4-1", rls:"DEB3.1")) { vuln = 1;}if(isdpkgvuln(pkg:"pcregrep", ver:"4.5+7.4-1", rls:"DEB3.1")) { vuln = 1;}if(isdpkgvuln(pkg:"libpcrecpp0", ver:"6.7+7.4-2", rls:"DEB4.0")) { vuln = 1;}if(isdpkgvuln(pkg:"libpcre3-dev", ver:"6.7+7.4-2", rls:"DEB4.0")) { vuln = 1;}if(isdpkgvuln(pkg:"pcregrep", ver:"6.7+7.4-2", rls:"DEB4.0")) { vuln = 1;}if(isdpkgvuln(pkg:"libpcre3", ver:"6.7+7.4-2", rls:"DEB4.0")) { vuln = 1;}if(vuln) { security_hole(0);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -