ID CVE-2007-4730
Summary Buffer overflow in the compNewPixmap function in compalloc.c in the Composite extension for the X.org X11 server before 1.4 allows local users to execute arbitrary code by copying data from a large pixel depth pixmap into a smaller pixel depth pixmap.
References
Vulnerable Configurations
  • cpe:2.3:a:x.org:xorg-server:1.01
    cpe:2.3:a:x.org:xorg-server:1.01
  • cpe:2.3:a:x.org:xorg-server:1.02
    cpe:2.3:a:x.org:xorg-server:1.02
  • cpe:2.3:a:x.org:xorg-server:1.1
    cpe:2.3:a:x.org:xorg-server:1.1
  • cpe:2.3:a:x.org:xorg-server:1.2
    cpe:2.3:a:x.org:xorg-server:1.2
  • cpe:2.3:a:x.org:xorg-server:1.3
    cpe:2.3:a:x.org:xorg-server:1.3
CVSS
Base: 4.3 (as of 12-09-2007 - 11:31)
Impact:
Exploitability:
CWE CWE-119
CAPEC
  • Buffer Overflow via Environment Variables
    This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
  • Overflow Buffers
    Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
  • Client-side Injection-induced Buffer Overflow
    This type of attack exploits a buffer overflow vulnerability in targeted client software through injection of malicious content from a custom-built hostile service.
  • Filter Failure through Buffer Overflow
    In this attack, the idea is to cause an active filter to fail by causing an oversized transaction. An attacker may try to feed overly long input strings to the program in an attempt to overwhelm the filter (by causing a buffer overflow) and hoping that the filter does not fail securely (i.e. the user input is let into the system unfiltered).
  • MIME Conversion
    An attacker exploits a weakness in the MIME conversion routine to cause a buffer overflow and gain control over the mail server machine. The MIME system is designed to allow various different information formats to be interpreted and sent via e-mail. Attack points exist when data are converted to MIME compatible format and back.
  • Overflow Binary Resource File
    An attack of this type exploits a buffer overflow vulnerability in the handling of binary resources. Binary resources may include music files like MP3, image files like JPEG files, and any other binary file. These attacks may pass unnoticed to the client machine through normal usage of files, such as a browser loading a seemingly innocent JPEG file. This can allow the attacker access to the execution stack and execute arbitrary code in the target process. This attack pattern is a variant of standard buffer overflow attacks using an unexpected vector (binary files) to wrap its attack and open up a new attack vector. The attacker is required to either directly serve the binary content to the victim, or place it in a locale like a MP3 sharing application, for the victim to download. The attacker then is notified upon the download or otherwise locates the vulnerability opened up by the buffer overflow.
  • Buffer Overflow via Symbolic Links
    This type of attack leverages the use of symbolic links to cause buffer overflows. An attacker can try to create or manipulate a symbolic link file such that its contents result in out of bounds data. When the target software processes the symbolic link file, it could potentially overflow internal buffers with insufficient bounds checking.
  • Overflow Variables and Tags
    This type of attack leverages the use of tags or variables from a formatted configuration data to cause buffer overflow. The attacker crafts a malicious HTML page or configuration file that includes oversized strings, thus causing an overflow.
  • Buffer Overflow via Parameter Expansion
    In this attack, the target software is given input that the attacker knows will be modified and expanded in size during processing. This attack relies on the target software failing to anticipate that the expanded data may exceed some internal limit, thereby creating a buffer overflow.
  • Buffer Overflow in an API Call
    This attack targets libraries or shared code modules which are vulnerable to buffer overflow attacks. An attacker who has access to an API may try to embed malicious code in the API function call and exploit a buffer overflow vulnerability in the function's implementation. All clients that make use of the code library thus become vulnerable by association. This has a very broad effect on security across a system, usually affecting more than one software process.
  • Buffer Overflow in Local Command-Line Utilities
    This attack targets command-line utilities available in a number of shells. An attacker can leverage a vulnerability found in a command-line utility to escalate privilege to root.
Access
VectorComplexityAuthentication
LOCAL LOW SINGLE_INSTANCE
Impact
ConfidentialityIntegrityAvailability
PARTIAL PARTIAL PARTIAL
nessus via4
  • NASL family Ubuntu Local Security Checks
    NASL id UBUNTU_USN-514-1.NASL
    description Aaron Plattner discovered that the Composite extension did not correctly calculate the size of buffers when copying between different bit depths. An authenticated user could exploit this to execute arbitrary code with root 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 seen 2019-02-21
    modified 2018-11-28
    plugin id 28119
    published 2007-11-10
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=28119
    title Ubuntu 6.06 LTS : xorg-server vulnerability (USN-514-1)
  • NASL family CentOS Local Security Checks
    NASL id CENTOS_RHSA-2007-0898.NASL
    description Updated X.org packages that correct a flaw in X.Org's composite extension are now available for Red Hat Enterprise Linux 4. This update has been rated as having moderate security impact by the Red Hat Security Response Team. X.org is an open source implementation of the X Window System. It provides the basic low-level functionality that full-fledged graphical user interfaces are designed upon. A flaw was found in the way X.Org's composite extension handles 32 bit color depth windows while running in 16 bit color depth mode. If an X.org server has enabled the composite extension, it may be possible for a malicious authorized client to cause a denial of service (crash) or potentially execute arbitrary code with the privileges of the X.org server. (CVE-2007-4730) Please note this flaw can only be triggered when using a compositing window manager. Red Hat Enterprise Linux 4 does not ship with a compositing window manager. Users of X.org should upgrade to these updated packages, which contain a backported patch and are not vulnerable to these issues.
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 26076
    published 2007-09-24
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=26076
    title CentOS 4 : xorg-x11 (CESA-2007:0898)
  • NASL family Scientific Linux Local Security Checks
    NASL id SL_20070919_XORG_X11_ON_SL4_X.NASL
    description A flaw was found in the way X.Org's composite extension handles 32 bit color depth windows while running in 16 bit color depth mode. If an X.org server has enabled the composite extension, it may be possible for a malicious authorized client to cause a denial of service (crash) or potentially execute arbitrary code with the privileges of the X.org server. (CVE-2007-4730) Please note this flaw can only be triggered when using a compositing window manager. Scientific Linux 4 does not ship with a compositing window manager.
    last seen 2019-02-21
    modified 2019-01-07
    plugin id 60254
    published 2012-08-01
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=60254
    title Scientific Linux Security Update : xorg-x11 on SL4.x i386/x86_64
  • NASL family Oracle Linux Local Security Checks
    NASL id ORACLELINUX_ELSA-2007-0898.NASL
    description From Red Hat Security Advisory 2007:0898 : Updated X.org packages that correct a flaw in X.Org's composite extension are now available for Red Hat Enterprise Linux 4. This update has been rated as having moderate security impact by the Red Hat Security Response Team. X.org is an open source implementation of the X Window System. It provides the basic low-level functionality that full-fledged graphical user interfaces are designed upon. A flaw was found in the way X.Org's composite extension handles 32 bit color depth windows while running in 16 bit color depth mode. If an X.org server has enabled the composite extension, it may be possible for a malicious authorized client to cause a denial of service (crash) or potentially execute arbitrary code with the privileges of the X.org server. (CVE-2007-4730) Please note this flaw can only be triggered when using a compositing window manager. Red Hat Enterprise Linux 4 does not ship with a compositing window manager. Users of X.org should upgrade to these updated packages, which contain a backported patch and are not vulnerable to these issues.
    last seen 2019-02-21
    modified 2018-07-18
    plugin id 67572
    published 2013-07-12
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=67572
    title Oracle Linux 4 : xorg-x11 (ELSA-2007-0898)
  • NASL family Red Hat Local Security Checks
    NASL id REDHAT-RHSA-2007-0898.NASL
    description Updated X.org packages that correct a flaw in X.Org's composite extension are now available for Red Hat Enterprise Linux 4. This update has been rated as having moderate security impact by the Red Hat Security Response Team. X.org is an open source implementation of the X Window System. It provides the basic low-level functionality that full-fledged graphical user interfaces are designed upon. A flaw was found in the way X.Org's composite extension handles 32 bit color depth windows while running in 16 bit color depth mode. If an X.org server has enabled the composite extension, it may be possible for a malicious authorized client to cause a denial of service (crash) or potentially execute arbitrary code with the privileges of the X.org server. (CVE-2007-4730) Please note this flaw can only be triggered when using a compositing window manager. Red Hat Enterprise Linux 4 does not ship with a compositing window manager. Users of X.org should upgrade to these updated packages, which contain a backported patch and are not vulnerable to these issues.
    last seen 2019-02-21
    modified 2018-11-16
    plugin id 26111
    published 2007-09-24
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=26111
    title RHEL 4 : xorg-x11 (RHSA-2007:0898)
  • NASL family SuSE Local Security Checks
    NASL id SUSE_XORG-X11-4485.NASL
    description This update fixes the following issues : X Font Server build_range() Integer Overflow Vulnerability [IDEF2708] (CVE-2007-4989), X Font Server swap_char2b() Heap Overflow Vulnerability [IDEF2709] (CVE-2007-4990), Composite extension buffer overflow. (CVE-2007-4730)
    last seen 2019-02-21
    modified 2016-12-22
    plugin id 29603
    published 2007-12-13
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=29603
    title SuSE 10 Security Update : X.org X11 (ZYPP Patch Number 4485)
  • NASL family Gentoo Local Security Checks
    NASL id GENTOO_GLSA-200710-16.NASL
    description The remote host is affected by the vulnerability described in GLSA-200710-16 (X.Org X server: Composite local privilege escalation) Aaron Plattner discovered a buffer overflow in the compNewPixmap() function when copying data from a large pixel depth pixmap into a smaller pixel depth pixmap. Impact : A local attacker could execute arbitrary code with the privileges of the user running the X server, typically root. Workaround : Disable the Composite extension by setting ' Option 'Composite' 'disable' ' in the Extensions section of xorg.conf. Note: This could affect the functionality of some applications.
    last seen 2019-02-21
    modified 2018-07-11
    plugin id 27051
    published 2007-10-15
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=27051
    title GLSA-200710-16 : X.Org X server: Composite local privilege escalation
  • NASL family Debian Local Security Checks
    NASL id DEBIAN_DSA-1372.NASL
    description Aaron Plattner discovered a buffer overflow in the Composite extension of the X.org X server, which can lead to local privilege escalation. The oldstable distribution (sarge) is not affected by this problem.
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 26033
    published 2007-09-14
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=26033
    title Debian DSA-1372-1 : xorg-server - buffer overflow
  • NASL family Mandriva Local Security Checks
    NASL id MANDRAKE_MDKSA-2007-178.NASL
    description Aaron Plattner discovered a buffer overflow in the Composite extension of the X.org X server, which if exploited could lead to local privilege escalation. Updated packages have been patched to prevent these issues.
    last seen 2019-02-21
    modified 2018-07-19
    plugin id 26045
    published 2007-09-14
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=26045
    title Mandrake Linux Security Advisory : x11-server (MDKSA-2007:178)
oval via4
accepted 2013-04-29T04:05:37.725-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 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
description Buffer overflow in the compNewPixmap function in compalloc.c in the Composite extension for the X.org X11 server before 1.4 allows local users to execute arbitrary code by copying data from a large pixel depth pixmap into a smaller pixel depth pixmap.
family unix
id oval:org.mitre.oval:def:10430
status accepted
submitted 2010-07-09T03:56:16-04:00
title Buffer overflow in the compNewPixmap function in compalloc.c in the Composite extension for the X.org X11 server before 1.4 allows local users to execute arbitrary code by copying data from a large pixel depth pixmap into a smaller pixel depth pixmap.
version 23
redhat via4
advisories
bugzilla
id 285991
title CVE-2007-4730 X.org composite extension buffer overflow
oval
AND
  • comment Red Hat Enterprise Linux 4 is installed
    oval oval:com.redhat.rhsa:tst:20060016001
  • OR
    • AND
      • comment xorg-x11 is earlier than 0:6.8.2-1.EL.31
        oval oval:com.redhat.rhsa:tst:20070898002
      • comment xorg-x11 is signed with Red Hat master key
        oval oval:com.redhat.rhsa:tst:20070003003
    • AND
      • comment xorg-x11-Mesa-libGL is earlier than 0:6.8.2-1.EL.31
        oval oval:com.redhat.rhsa:tst:20070898012
      • comment xorg-x11-Mesa-libGL is signed with Red Hat master key
        oval oval:com.redhat.rhsa:tst:20070003021
    • AND
      • comment xorg-x11-Mesa-libGLU is earlier than 0:6.8.2-1.EL.31
        oval oval:com.redhat.rhsa:tst:20070898016
      • comment xorg-x11-Mesa-libGLU is signed with Red Hat master key
        oval oval:com.redhat.rhsa:tst:20070003019
    • AND
      • comment xorg-x11-Xdmx is earlier than 0:6.8.2-1.EL.31
        oval oval:com.redhat.rhsa:tst:20070898008
      • comment xorg-x11-Xdmx is signed with Red Hat master key
        oval oval:com.redhat.rhsa:tst:20070003013
    • AND
      • comment xorg-x11-Xnest is earlier than 0:6.8.2-1.EL.31
        oval oval:com.redhat.rhsa:tst:20070898032
      • comment xorg-x11-Xnest is signed with Red Hat master key
        oval oval:com.redhat.rhsa:tst:20070003037
    • AND
      • comment xorg-x11-Xvfb is earlier than 0:6.8.2-1.EL.31
        oval oval:com.redhat.rhsa:tst:20070898028
      • comment xorg-x11-Xvfb is signed with Red Hat master key
        oval oval:com.redhat.rhsa:tst:20070003033
    • AND
      • comment xorg-x11-deprecated-libs is earlier than 0:6.8.2-1.EL.31
        oval oval:com.redhat.rhsa:tst:20070898004
      • comment xorg-x11-deprecated-libs is signed with Red Hat master key
        oval oval:com.redhat.rhsa:tst:20070003029
    • AND
      • comment xorg-x11-deprecated-libs-devel is earlier than 0:6.8.2-1.EL.31
        oval oval:com.redhat.rhsa:tst:20070898024
      • comment xorg-x11-deprecated-libs-devel is signed with Red Hat master key
        oval oval:com.redhat.rhsa:tst:20070003027
    • AND
      • comment xorg-x11-devel is earlier than 0:6.8.2-1.EL.31
        oval oval:com.redhat.rhsa:tst:20070898010
      • comment xorg-x11-devel is signed with Red Hat master key
        oval oval:com.redhat.rhsa:tst:20070003011
    • AND
      • comment xorg-x11-doc is earlier than 0:6.8.2-1.EL.31
        oval oval:com.redhat.rhsa:tst:20070898022
      • comment xorg-x11-doc is signed with Red Hat master key
        oval oval:com.redhat.rhsa:tst:20070003015
    • AND
      • comment xorg-x11-font-utils is earlier than 0:6.8.2-1.EL.31
        oval oval:com.redhat.rhsa:tst:20070898018
      • comment xorg-x11-font-utils is signed with Red Hat master key
        oval oval:com.redhat.rhsa:tst:20070003025
    • AND
      • comment xorg-x11-libs is earlier than 0:6.8.2-1.EL.31
        oval oval:com.redhat.rhsa:tst:20070898026
      • comment xorg-x11-libs is signed with Red Hat master key
        oval oval:com.redhat.rhsa:tst:20070003009
    • AND
      • comment xorg-x11-sdk is earlier than 0:6.8.2-1.EL.31
        oval oval:com.redhat.rhsa:tst:20070898036
      • comment xorg-x11-sdk is signed with Red Hat master key
        oval oval:com.redhat.rhsa:tst:20070003007
    • AND
      • comment xorg-x11-tools is earlier than 0:6.8.2-1.EL.31
        oval oval:com.redhat.rhsa:tst:20070898006
      • comment xorg-x11-tools is signed with Red Hat master key
        oval oval:com.redhat.rhsa:tst:20070003031
    • AND
      • comment xorg-x11-twm is earlier than 0:6.8.2-1.EL.31
        oval oval:com.redhat.rhsa:tst:20070898030
      • comment xorg-x11-twm is signed with Red Hat master key
        oval oval:com.redhat.rhsa:tst:20070003035
    • AND
      • comment xorg-x11-xauth is earlier than 0:6.8.2-1.EL.31
        oval oval:com.redhat.rhsa:tst:20070898014
      • comment xorg-x11-xauth is signed with Red Hat master key
        oval oval:com.redhat.rhsa:tst:20070003017
    • AND
      • comment xorg-x11-xdm is earlier than 0:6.8.2-1.EL.31
        oval oval:com.redhat.rhsa:tst:20070898034
      • comment xorg-x11-xdm is signed with Red Hat master key
        oval oval:com.redhat.rhsa:tst:20070003023
    • AND
      • comment xorg-x11-xfs is earlier than 0:6.8.2-1.EL.31
        oval oval:com.redhat.rhsa:tst:20070898020
      • comment xorg-x11-xfs is signed with Red Hat master key
        oval oval:com.redhat.rhsa:tst:20070003005
rhsa
id RHSA-2007:0898
released 2007-09-19
severity Moderate
title RHSA-2007:0898: xorg-x11 security update (Moderate)
rpms
  • xorg-x11-0:6.8.2-1.EL.31
  • xorg-x11-Mesa-libGL-0:6.8.2-1.EL.31
  • xorg-x11-Mesa-libGLU-0:6.8.2-1.EL.31
  • xorg-x11-Xdmx-0:6.8.2-1.EL.31
  • xorg-x11-Xnest-0:6.8.2-1.EL.31
  • xorg-x11-Xvfb-0:6.8.2-1.EL.31
  • xorg-x11-deprecated-libs-0:6.8.2-1.EL.31
  • xorg-x11-deprecated-libs-devel-0:6.8.2-1.EL.31
  • xorg-x11-devel-0:6.8.2-1.EL.31
  • xorg-x11-doc-0:6.8.2-1.EL.31
  • xorg-x11-font-utils-0:6.8.2-1.EL.31
  • xorg-x11-libs-0:6.8.2-1.EL.31
  • xorg-x11-sdk-0:6.8.2-1.EL.31
  • xorg-x11-tools-0:6.8.2-1.EL.31
  • xorg-x11-twm-0:6.8.2-1.EL.31
  • xorg-x11-xauth-0:6.8.2-1.EL.31
  • xorg-x11-xdm-0:6.8.2-1.EL.31
  • xorg-x11-xfs-0:6.8.2-1.EL.31
refmap via4
bid 25606
confirm
debian DSA-1372
gentoo
  • GLSA-200710-16
  • GLSA-200805-07
mandriva
  • MDKSA-2007:178
  • MDVSA-2008:022
mlist [xorg-announce] 20070906 xorg-server 1.4
osvdb 37726
sectrack 1018665
secunia
  • 26743
  • 26755
  • 26763
  • 26823
  • 26859
  • 26897
  • 27147
  • 27179
  • 27228
  • 30161
suse SUSE-SA:2007:054
ubuntu USN-514-1
vupen ADV-2007-3098
xf xorg-composite-bo(36535)
statements via4
contributor Joshua Bressers
lastmodified 2007-09-26
organization Red Hat
statement This flaw was fixed for Red Hat Enterprise Linux 4 in RHSA-2007-0898: https://rhn.redhat.com/errata/RHSA-2007-0898.html Red Hat Enterprise Linux 5 is not affected by this flaw. More information can be found here: https://bugzilla.redhat.com/show_bug.cgi?id=285991 Red Hat Enterprise Linux 2.1 and 3 do not support the composite extension and are not vulnerable to this flaw.
Last major update 07-03-2011 - 21:59
Published 11-09-2007 - 15:17
Last modified 28-09-2017 - 21:29
Back to Top