Vulnerabilities > CVE-2007-2949 - Integer Overflow or Wraparound vulnerability in multiple products
Attack vector
NETWORK Attack complexity
MEDIUM Privileges required
NONE Confidentiality impact
PARTIAL Integrity impact
PARTIAL Availability impact
PARTIAL Summary
Integer overflow in the seek_to_and_unpack_pixeldata function in the psd.c plugin in Gimp 2.2.15 allows remote attackers to execute arbitrary code via a crafted PSD file that contains a large (1) width or (2) height value.
Vulnerable Configurations
Common Weakness Enumeration (CWE)
Common Attack Pattern Enumeration and Classification (CAPEC)
- Forced Integer Overflow This attack forces an integer variable to go out of range. The integer variable is often used as an offset such as size of memory allocation or similarly. The attacker would typically control the value of such variable and try to get it out of range. For instance the integer in question is incremented past the maximum possible value, it may wrap to become a very small, or negative number, therefore providing a very incorrect value which can lead to unexpected behavior. At worst the attacker can execute arbitrary code.
Nessus
NASL family Gentoo Local Security Checks NASL id GENTOO_GLSA-200707-09.NASL description The remote host is affected by the vulnerability described in GLSA-200707-09 (GIMP: Multiple integer overflows) Sean Larsson from iDefense Labs discovered multiple integer overflows in various GIMP plugins (CVE-2006-4519). Stefan Cornelius from Secunia Research discovered an integer overflow in the seek_to_and_unpack_pixeldata() function when processing PSD files (CVE-2007-2949). Impact : A remote attacker could entice a user to open a specially crafted image file, possibly resulting in the execution of arbitrary code with the privileges of the user running GIMP. Workaround : There is no known workaround at this time. last seen 2020-06-01 modified 2020-06-02 plugin id 25791 published 2007-07-27 reporter This script is Copyright (C) 2007-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/25791 title GLSA-200707-09 : GIMP: Multiple integer overflows code #%NASL_MIN_LEVEL 80502 # # (C) Tenable Network Security, Inc. # # The descriptive text and package checks in this plugin were # extracted from Gentoo Linux Security Advisory GLSA 200707-09. # # The advisory text is Copyright (C) 2001-2015 Gentoo Foundation, Inc. # and licensed under the Creative Commons - Attribution / Share Alike # license. See http://creativecommons.org/licenses/by-sa/3.0/ # include("compat.inc"); if (description) { script_id(25791); script_version("1.13"); script_cvs_date("Date: 2019/08/02 13:32:44"); script_cve_id("CVE-2006-4519", "CVE-2007-2949"); script_xref(name:"GLSA", value:"200707-09"); script_name(english:"GLSA-200707-09 : GIMP: Multiple integer overflows"); script_summary(english:"Checks for updated package(s) in /var/db/pkg"); script_set_attribute( attribute:"synopsis", value: "The remote Gentoo host is missing one or more security-related patches." ); script_set_attribute( attribute:"description", value: "The remote host is affected by the vulnerability described in GLSA-200707-09 (GIMP: Multiple integer overflows) Sean Larsson from iDefense Labs discovered multiple integer overflows in various GIMP plugins (CVE-2006-4519). Stefan Cornelius from Secunia Research discovered an integer overflow in the seek_to_and_unpack_pixeldata() function when processing PSD files (CVE-2007-2949). Impact : A remote attacker could entice a user to open a specially crafted image file, possibly resulting in the execution of arbitrary code with the privileges of the user running GIMP. Workaround : There is no known workaround at this time." ); script_set_attribute( attribute:"see_also", value:"https://security.gentoo.org/glsa/200707-09" ); script_set_attribute( attribute:"solution", value: "All GIMP users should upgrade to the latest version: # emerge --sync # emerge --ask --oneshot --verbose '>=media-gfx/gimp-2.2.16'" ); script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P"); script_cwe_id(189); script_set_attribute(attribute:"plugin_type", value:"local"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:gentoo:linux:gimp"); script_set_attribute(attribute:"cpe", value:"cpe:/o:gentoo:linux"); script_set_attribute(attribute:"patch_publication_date", value:"2007/07/25"); script_set_attribute(attribute:"plugin_publication_date", value:"2007/07/27"); 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:"Gentoo Local Security Checks"); script_dependencies("ssh_get_info.nasl"); script_require_keys("Host/local_checks_enabled", "Host/Gentoo/release", "Host/Gentoo/qpkg-list"); exit(0); } include("audit.inc"); include("global_settings.inc"); include("qpkg.inc"); if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED); if (!get_kb_item("Host/Gentoo/release")) audit(AUDIT_OS_NOT, "Gentoo"); if (!get_kb_item("Host/Gentoo/qpkg-list")) audit(AUDIT_PACKAGE_LIST_MISSING); flag = 0; if (qpkg_check(package:"media-gfx/gimp", unaffected:make_list("ge 2.2.16"), vulnerable:make_list("lt 2.2.16"))) flag++; if (flag) { if (report_verbosity > 0) security_warning(port:0, extra:qpkg_report_get()); else security_warning(0); exit(0); } else { tested = qpkg_tests_get(); if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested); else audit(AUDIT_PACKAGE_NOT_INSTALLED, "GIMP"); }
NASL family Ubuntu Local Security Checks NASL id UBUNTU_USN-494-1.NASL description Sean Larsson discovered multiple integer overflows in Gimp. By tricking a user into opening a specially crafted DICOM, PNM, PSD, PSP, RAS, XBM, or XWD image, a remote attacker could exploit this to execute arbitrary code with the user last seen 2020-06-01 modified 2020-06-02 plugin id 28096 published 2007-11-10 reporter Ubuntu Security Notice (C) 2007-2019 Canonical, Inc. / NASL script (C) 2018 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/28096 title Ubuntu 6.06 LTS / 6.10 / 7.04 : gimp vulnerability (USN-494-1) NASL family SuSE Local Security Checks NASL id SUSE_GIMP-3949.NASL description The image editor GIMP was updated to fix a integer overflow in the handling of PSD files. By providing a crafted PSD file and tricking the user to open it an attacker could execute code. (CVE-2007-2949) last seen 2020-06-01 modified 2020-06-02 plugin id 27236 published 2007-10-17 reporter This script is Copyright (C) 2007-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/27236 title openSUSE 10 Security Update : gimp (gimp-3949) NASL family SuSE Local Security Checks NASL id SUSE_GIMP-3962.NASL description The image editor gimp was updated to fix a integer overflow in the handling of PSD files. By providing a crafted PSD file and tricking the user to open it an attacker could execute code. (CVE-2007-2949) last seen 2020-06-01 modified 2020-06-02 plugin id 29443 published 2007-12-13 reporter This script is Copyright (C) 2007-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/29443 title SuSE 10 Security Update : gimp (ZYPP Patch Number 3962) NASL family Oracle Linux Local Security Checks NASL id ORACLELINUX_ELSA-2007-0513.NASL description From Red Hat Security Advisory 2007:0513 : Updated gimp packages that fix several security issues are now available for Red Hat Enterprise Linux. This update has been rated as having moderate security impact by the Red Hat Security Response Team. The GIMP (GNU Image Manipulation Program) is an image composition and editing program. Multiple integer overflow and input validation flaws were found in The GIMP last seen 2020-06-01 modified 2020-06-02 plugin id 67527 published 2013-07-12 reporter This script is Copyright (C) 2013-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/67527 title Oracle Linux 3 / 4 / 5 : gimp (ELSA-2007-0513) NASL family Debian Local Security Checks NASL id DEBIAN_DSA-1335.NASL description Several remote vulnerabilities have been discovered in Gimp, the GNU Image Manipulation Program, which might lead to the execution of arbitrary code. The Common Vulnerabilities and Exposures project identifies the following problems : - CVE-2006-4519 Sean Larsson discovered several integer overflows in the processing code for DICOM, PNM, PSD, RAS, XBM and XWD images, which might lead to the execution of arbitrary code if a user is tricked into opening such a malformed media file. - CVE-2007-2949 Stefan Cornelius discovered an integer overflow in the processing code for PSD images, which might lead to the execution of arbitrary code if a user is tricked into opening such a malformed media file. last seen 2020-06-01 modified 2020-06-02 plugin id 25744 published 2007-07-23 reporter This script is Copyright (C) 2007-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/25744 title Debian DSA-1335-1 : gimp - several vulnerabilities NASL family Slackware Local Security Checks NASL id SLACKWARE_SSA_2007-222-01.NASL description New gimp packages are available for Slackware 10.2, 11.0, and 12.0 to fix security issues. last seen 2020-06-01 modified 2020-06-02 plugin id 25844 published 2007-08-13 reporter This script is Copyright (C) 2007-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/25844 title Slackware 10.2 / 11.0 / 12.0 : gimp (SSA:2007-222-01) NASL family Ubuntu Local Security Checks NASL id UBUNTU_USN-480-1.NASL description Stefan Cornelius discovered that Gimp could miscalculate the size of heap buffers when processing PSD images. By tricking a user into opening a specially crafted PSD file with Gimp, an attacker could exploit this to execute arbitrary code with the user last seen 2020-06-01 modified 2020-06-02 plugin id 28081 published 2007-11-10 reporter Ubuntu Security Notice (C) 2007-2019 Canonical, Inc. / NASL script (C) 2018 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/28081 title Ubuntu 6.06 LTS / 6.10 / 7.04 : gimp vulnerability (USN-480-1) NASL family CentOS Local Security Checks NASL id CENTOS_RHSA-2007-0513.NASL description Updated gimp packages that fix several security issues are now available for Red Hat Enterprise Linux. This update has been rated as having moderate security impact by the Red Hat Security Response Team. The GIMP (GNU Image Manipulation Program) is an image composition and editing program. Multiple integer overflow and input validation flaws were found in The GIMP last seen 2020-06-01 modified 2020-06-02 plugin id 26203 published 2007-10-03 reporter This script is Copyright (C) 2007-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/26203 title CentOS 3 / 4 / 5 : gimp (CESA-2007:0513) NASL family Mandriva Local Security Checks NASL id MANDRAKE_MDKSA-2007-170.NASL description Multiple integer overflows in the image loader plug-ins in GIMP before 2.2.16 allow user-assisted remote attackers to execute arbitrary code via crafted length values in (1) DICOM, (2) PNM, (3) PSD, (4) PSP, (5) Sun RAS, (6) XBM, and (7) XWD files. (CVE-2006-4519) Integer overflow in the seek_to_and_unpack_pixeldata function in the psd.c plugin in Gimp 2.2.15 allows remote attackers to execute arbitrary code via a crafted PSD file that contains a large (1) width or (2) height value. (CVE-2007-2949) Victor Stinner has discovered several flaws in file plug-ins using his fuzzyfier tool fusil. Several modified image files cause the plug-ins to crash or consume excessive amounts of memory due to insufficient input validation. Affected plug-ins: bmp, pcx, psd, psp (*.tub). (CVE-2007-3741) Updated packages have been patched to prevent these issues. last seen 2020-06-01 modified 2020-06-02 plugin id 25947 published 2007-08-28 reporter This script is Copyright (C) 2007-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/25947 title Mandrake Linux Security Advisory : gimp (MDKSA-2007:170) NASL family Red Hat Local Security Checks NASL id REDHAT-RHSA-2007-0513.NASL description Updated gimp packages that fix several security issues are now available for Red Hat Enterprise Linux. This update has been rated as having moderate security impact by the Red Hat Security Response Team. The GIMP (GNU Image Manipulation Program) is an image composition and editing program. Multiple integer overflow and input validation flaws were found in The GIMP last seen 2020-06-01 modified 2020-06-02 plugin id 26189 published 2007-09-26 reporter This script is Copyright (C) 2007-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/26189 title RHEL 2.1 / 3 / 4 / 5 : gimp (RHSA-2007:0513) NASL family Scientific Linux Local Security Checks NASL id SL_20070926_GIMP_ON_SL5_X.NASL description Multiple integer overflow and input validation flaws were found in The GIMP last seen 2020-06-01 modified 2020-06-02 plugin id 60256 published 2012-08-01 reporter This script is Copyright (C) 2012-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/60256 title Scientific Linux Security Update : gimp on SL5.x, SL4.x, SL3.x i386/x86_64
Oval
accepted 2013-04-29T04:12:51.227-04:00 class vulnerability contributors name Aharon Chernin organization SCAP.com, LLC name Dragos Prisaca organization G2, Inc.
definition_extensions comment The operating system installed on the system is Red Hat Enterprise Linux 3 oval oval:org.mitre.oval:def:11782 comment CentOS Linux 3.x oval oval:org.mitre.oval:def:16651 comment The operating system installed on the system is Red Hat Enterprise Linux 4 oval oval:org.mitre.oval:def:11831 comment CentOS Linux 4.x oval oval:org.mitre.oval:def:16636 comment Oracle Linux 4.x oval oval:org.mitre.oval:def:15990 comment The operating system installed on the system is Red Hat Enterprise Linux 5 oval oval:org.mitre.oval:def:11414 comment The operating system installed on the system is CentOS Linux 5.x oval oval:org.mitre.oval:def:15802 comment Oracle Linux 5.x oval oval:org.mitre.oval:def:15459
description Integer overflow in the seek_to_and_unpack_pixeldata function in the psd.c plugin in Gimp 2.2.15 allows remote attackers to execute arbitrary code via a crafted PSD file that contains a large (1) width or (2) height value. family unix id oval:org.mitre.oval:def:11276 status accepted submitted 2010-07-09T03:56:16-04:00 title Integer overflow in the seek_to_and_unpack_pixeldata function in the psd.c plugin in Gimp 2.2.15 allows remote attackers to execute arbitrary code via a crafted PSD file that contains a large (1) width or (2) height value. version 28 accepted 2008-10-20T04:00:22.365-04:00 class vulnerability contributors name Pai Peng organization Hewlett-Packard definition_extensions comment Solaris 10 (SPARC) is installed oval oval:org.mitre.oval:def:1440 comment Solaris 9 (x86) is installed oval oval:org.mitre.oval:def:1683 comment Solaris 10 (x86) is installed oval oval:org.mitre.oval:def:1926
description Integer overflow in the seek_to_and_unpack_pixeldata function in the psd.c plugin in Gimp 2.2.15 allows remote attackers to execute arbitrary code via a crafted PSD file that contains a large (1) width or (2) height value. family unix id oval:org.mitre.oval:def:5772 status accepted submitted 2008-09-11T11:37:41.000-04:00 title PSD Plugin of Gimp vulnerability version 35
Redhat
advisories |
| ||||
rpms |
|
References
- http://secunia.com/secunia_research/2007-63/advisory/
- http://svn.gnome.org/viewcvs/gimp?view=revision&revision=22798
- http://www.securityfocus.com/bid/24745
- http://secunia.com/advisories/25677
- https://issues.rpath.com/browse/RPL-1487
- http://issues.foresightlinux.org/browse/FL-457
- http://www.debian.org/security/2007/dsa-1335
- http://security.gentoo.org/glsa/glsa-200707-09.xml
- http://www.mandriva.com/security/advisories?name=MDKSA-2007:170
- http://www.redhat.com/support/errata/RHSA-2007-0513.html
- http://www.slackware.org/security/viewer.php?l=slackware-security&y=2007&m=slackware-security.360191
- http://www.novell.com/linux/security/advisories/2007_15_sr.html
- http://www.ubuntu.com/usn/usn-480-1
- http://www.kb.cert.org/vuls/id/399896
- http://secunia.com/advisories/25949
- http://secunia.com/advisories/26044
- http://secunia.com/advisories/26132
- http://secunia.com/advisories/26215
- http://secunia.com/advisories/26384
- http://secunia.com/advisories/26575
- http://secunia.com/advisories/26939
- http://sunsolve.sun.com/search/document.do?assetkey=1-26-103170-1
- http://secunia.com/advisories/28114
- http://sunsolve.sun.com/search/document.do?assetkey=1-66-201320-1
- http://www.vupen.com/english/advisories/2007/4241
- http://www.vupen.com/english/advisories/2007/2421
- http://osvdb.org/37804
- https://exchange.xforce.ibmcloud.com/vulnerabilities/35246
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A5772
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A11276