ID CVE-2013-0288
Summary nss-pam-ldapd before 0.7.18 and 0.8.x before 0.8.11 allows context-dependent attackers to cause a denial of service (application crash) and possibly execute arbitrary code by performing a name lookup on an application with a large number of open file descriptors, which triggers a stack-based buffer overflow related to incorrect use of the FD_SET macro.
References
Vulnerable Configurations
  • Arthur de Jong nss-pam-ldapd 0.8.10 PAM module
    cpe:2.3:a:arthurdejong:nss-pam-ldapd:0.8.10
  • Arthur de Jong nss-pam-ldapd 0.8.9 PAM module
    cpe:2.3:a:arthurdejong:nss-pam-ldapd:0.8.9
  • Arthur de Jong nss-pam-ldapd 0.8.8 PAM module
    cpe:2.3:a:arthurdejong:nss-pam-ldapd:0.8.8
  • Arthur de Jong nss-pam-ldapd 0.8.7 PAM module
    cpe:2.3:a:arthurdejong:nss-pam-ldapd:0.8.7
  • Arthur de Jong nss-pam-ldapd 0.8.6 PAM module
    cpe:2.3:a:arthurdejong:nss-pam-ldapd:0.8.6
  • Arthur de Jong nss-pam-ldapd 0.8.5 PAM module
    cpe:2.3:a:arthurdejong:nss-pam-ldapd:0.8.5
  • Arthur de Jong nss-pam-ldapd 0.8.4 PAM module
    cpe:2.3:a:arthurdejong:nss-pam-ldapd:0.8.4
  • Arthur de Jong nss-pam-ldapd 0.8.3 PAM module
    cpe:2.3:a:arthurdejong:nss-pam-ldapd:0.8.3
  • Arthur de Jong nss-pam-ldapd 0.8.2 PAM module
    cpe:2.3:a:arthurdejong:nss-pam-ldapd:0.8.2
  • Arthur de Jong nss-pam-ldapd 0.8.1 PAM module
    cpe:2.3:a:arthurdejong:nss-pam-ldapd:0.8.1
  • Arthur de Jong nss-pam-ldapd 0.8.0 PAM module
    cpe:2.3:a:arthurdejong:nss-pam-ldapd:0.8.0
  • Arthur de Jong nss-pam-ldapd 0.7.17 PAM module
    cpe:2.3:a:arthurdejong:nss-pam-ldapd:0.7.17
  • Arthur de Jong nss-pam-ldapd 0.7.16 PAM module
    cpe:2.3:a:arthurdejong:nss-pam-ldapd:0.7.16
  • Arthur de Jong nss-pam-ldapd 0.7.15 PAM module
    cpe:2.3:a:arthurdejong:nss-pam-ldapd:0.7.15
  • Arthur de Jong nss-pam-ldapd 0.7.14 PAM module
    cpe:2.3:a:arthurdejong:nss-pam-ldapd:0.7.14
  • Arthur de Jong nss-pam-ldapd 0.7.13 PAM module
    cpe:2.3:a:arthurdejong:nss-pam-ldapd:0.7.13
  • Arthur de Jong nss-pam-ldapd 0.7.12 PAM module
    cpe:2.3:a:arthurdejong:nss-pam-ldapd:0.7.12
  • Arthur de Jong nss-pam-ldapd 0.7.11 PAM module
    cpe:2.3:a:arthurdejong:nss-pam-ldapd:0.7.11
  • Arthur de Jong nss-pam-ldapd 0.7.10 PAM module
    cpe:2.3:a:arthurdejong:nss-pam-ldapd:0.7.10
  • Arthur de Jong nss-pam-ldapd 0.7.9 PAM module
    cpe:2.3:a:arthurdejong:nss-pam-ldapd:0.7.9
  • Arthur de Jong nss-pam-ldapd 0.7.8 PAM module
    cpe:2.3:a:arthurdejong:nss-pam-ldapd:0.7.8
  • Arthur de Jong nss-pam-ldapd 0.7.7 PAM module
    cpe:2.3:a:arthurdejong:nss-pam-ldapd:0.7.7
  • Arthur de Jong nss-pam-ldapd 0.7.6 PAM module
    cpe:2.3:a:arthurdejong:nss-pam-ldapd:0.7.6
  • Arthur de Jong nss-pam-ldapd 0.7.5 PAM module
    cpe:2.3:a:arthurdejong:nss-pam-ldapd:0.7.5
  • Arthur de Jong nss-pam-ldapd 0.7.4 PAM module
    cpe:2.3:a:arthurdejong:nss-pam-ldapd:0.7.4
  • Arthur de Jong nss-pam-ldapd 0.7.3 PAM module
    cpe:2.3:a:arthurdejong:nss-pam-ldapd:0.7.3
  • Arthur de Jong nss-pam-ldapd 0.7.2 PAM module
    cpe:2.3:a:arthurdejong:nss-pam-ldapd:0.7.2
  • Arthur de Jong nss-pam-ldapd 0.7.1 PAM module
    cpe:2.3:a:arthurdejong:nss-pam-ldapd:0.7.1
  • Arthur de Jong nss-pam-ldapd 0.7.0 PAM module
    cpe:2.3:a:arthurdejong:nss-pam-ldapd:0.7.0
  • Arthur de Jong nss-pam-ldapd 0.6.7.2 PAM module
    cpe:2.3:a:arthurdejong:nss-pam-ldapd:0.6.7.2
  • Arthur de Jong nss-pam-ldapd 0.6.7.1 PAM module
    cpe:2.3:a:arthurdejong:nss-pam-ldapd:0.6.7.1
  • Arthur de Jong nss-pam-ldapd 0.6.12 PAM module
    cpe:2.3:a:arthurdejong:nss-pam-ldapd:0.6.12
  • Arthur de Jong nss-pam-ldapd 0.6.11 PAM module
    cpe:2.3:a:arthurdejong:nss-pam-ldapd:0.6.11
  • Arthur de Jong nss-pam-ldapd 0.6.10 PAM module
    cpe:2.3:a:arthurdejong:nss-pam-ldapd:0.6.10
  • Arthur de Jong nss-pam-ldapd 0.6.9 PAM module
    cpe:2.3:a:arthurdejong:nss-pam-ldapd:0.6.9
  • Arthur de Jong nss-pam-ldapd 0.6.8 PAM module
    cpe:2.3:a:arthurdejong:nss-pam-ldapd:0.6.8
  • Arthur de Jong nss-pam-ldapd 0.6.7 PAM module
    cpe:2.3:a:arthurdejong:nss-pam-ldapd:0.6.7
  • Arthur de Jong nss-pam-ldapd 0.6.6 PAM module
    cpe:2.3:a:arthurdejong:nss-pam-ldapd:0.6.6
  • Arthur de Jong nss-pam-ldapd 0.6.5 PAM module
    cpe:2.3:a:arthurdejong:nss-pam-ldapd:0.6.5
  • Arthur de Jong nss-pam-ldapd 0.6.4 PAM module
    cpe:2.3:a:arthurdejong:nss-pam-ldapd:0.6.4
  • Arthur de Jong nss-pam-ldapd 0.6.3 PAM module
    cpe:2.3:a:arthurdejong:nss-pam-ldapd:0.6.3
  • Arthur de Jong nss-pam-ldapd 0.6.2 PAM module
    cpe:2.3:a:arthurdejong:nss-pam-ldapd:0.6.2
  • Arthur de Jong nss-pam-ldapd 0.6.1 PAM module
    cpe:2.3:a:arthurdejong:nss-pam-ldapd:0.6.1
  • Arthur de Jong nss-pam-ldapd 0.6.0 PAM module
    cpe:2.3:a:arthurdejong:nss-pam-ldapd:0.6.0
  • Arthur de Jong nss-pam-ldapd 0.6 PAM module
    cpe:2.3:a:arthurdejong:nss-pam-ldapd:0.6
  • Arthur de Jong nss-pam-ldapd 0.5 PAM module
    cpe:2.3:a:arthurdejong:nss-pam-ldapd:0.5
  • Arthur de Jong nss-pam-ldapd 0.4.1 PAM module
    cpe:2.3:a:arthurdejong:nss-pam-ldapd:0.4.1
  • Arthur de Jong nss-pam-ldapd 0.4 PAM module
    cpe:2.3:a:arthurdejong:nss-pam-ldapd:0.4
  • Arthur de Jong nss-pam-ldapd 0.3 PAM module
    cpe:2.3:a:arthurdejong:nss-pam-ldapd:0.3
  • Arthur de Jong nss-pam-ldapd 0.2.1 PAM module
    cpe:2.3:a:arthurdejong:nss-pam-ldapd:0.2.1
  • Arthur de Jong nss-pam-ldapd 0.2 PAM module
    cpe:2.3:a:arthurdejong:nss-pam-ldapd:0.2
  • Arthur de Jong nss-pam-ldapd 0.1 PAM module
    cpe:2.3:a:arthurdejong:nss-pam-ldapd:0.1
CVSS
Base: 6.8 (as of 06-03-2013 - 09:08)
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
NETWORK MEDIUM NONE
Impact
ConfidentialityIntegrityAvailability
PARTIAL PARTIAL PARTIAL
nessus via4
  • NASL family Oracle Linux Local Security Checks
    NASL id ORACLELINUX_ELSA-2013-0590.NASL
    description From Red Hat Security Advisory 2013:0590 : Updated nss-pam-ldapd packages that fix one security issue are now available for Red Hat Enterprise Linux 6. The Red Hat Security Response Team has rated this update as having important security impact. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available from the CVE link in the References section. The nss-pam-ldapd packages provide the nss-pam-ldapd daemon (nslcd), which uses a directory server to lookup name service information on behalf of a lightweight nsswitch module. An array index error, leading to a stack-based buffer overflow flaw, was found in the way nss-pam-ldapd managed open file descriptors. An attacker able to make a process have a large number of open file descriptors and perform name lookups could use this flaw to cause the process to crash or, potentially, execute arbitrary code with the privileges of the user running the process. (CVE-2013-0288) Red Hat would like to thank Garth Mollett for reporting this issue. All users of nss-pam-ldapd are advised to upgrade to these updated packages, which contain a backported patch to fix this issue.
    last seen 2019-02-21
    modified 2018-07-18
    plugin id 68771
    published 2013-07-12
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=68771
    title Oracle Linux 6 : nss-pam-ldapd (ELSA-2013-0590)
  • NASL family FreeBSD Local Security Checks
    NASL id FREEBSD_PKG_58C152927B6111E295DA001E8C1A8A0E.NASL
    description Garth Mollett reports : A file descriptor overflow issue in the use of FD_SET() in nss-pam-ldapd can lead to a stack-based buffer overflow. An attacker could, under some circumstances, use this flaw to cause a process that has the NSS or PAM module loaded to crash or potentially execute arbitrary code.
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 64743
    published 2013-02-21
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=64743
    title FreeBSD : nss-pam-ldapd -- file descriptor buffer overflow (58c15292-7b61-11e2-95da-001e8c1a8a0e)
  • NASL family Scientific Linux Local Security Checks
    NASL id SL_20130304_NSS_PAM_LDAPD_ON_SL6_X.NASL
    description An array index error, leading to a stack-based buffer overflow flaw, was found in the way nss-pam-ldapd managed open file descriptors. An attacker able to make a process have a large number of open file descriptors and perform name lookups could use this flaw to cause the process to crash or, potentially, execute arbitrary code with the privileges of the user running the process. (CVE-2013-0288)
    last seen 2019-02-21
    modified 2018-12-31
    plugin id 65020
    published 2013-03-05
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=65020
    title Scientific Linux Security Update : nss-pam-ldapd on SL6.x i386/x86_64
  • NASL family CentOS Local Security Checks
    NASL id CENTOS_RHSA-2013-0590.NASL
    description Updated nss-pam-ldapd packages that fix one security issue are now available for Red Hat Enterprise Linux 6. The Red Hat Security Response Team has rated this update as having important security impact. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available from the CVE link in the References section. The nss-pam-ldapd packages provide the nss-pam-ldapd daemon (nslcd), which uses a directory server to lookup name service information on behalf of a lightweight nsswitch module. An array index error, leading to a stack-based buffer overflow flaw, was found in the way nss-pam-ldapd managed open file descriptors. An attacker able to make a process have a large number of open file descriptors and perform name lookups could use this flaw to cause the process to crash or, potentially, execute arbitrary code with the privileges of the user running the process. (CVE-2013-0288) Red Hat would like to thank Garth Mollett for reporting this issue. All users of nss-pam-ldapd are advised to upgrade to these updated packages, which contain a backported patch to fix this issue.
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 65161
    published 2013-03-10
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=65161
    title CentOS 6 : nss-pam-ldapd (CESA-2013:0590)
  • NASL family SuSE Local Security Checks
    NASL id OPENSUSE-2013-240.NASL
    description nss-pam-ldap was updated to fix a FD_SET overflow, happening when more than 1024 filedescriptors are opened. (CVE-2013-0288)
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 74939
    published 2014-06-13
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=74939
    title openSUSE Security Update : nss-pam-ldapd (openSUSE-SU-2013:0522-2)
  • NASL family Debian Local Security Checks
    NASL id DEBIAN_DSA-2628.NASL
    description Garth Mollett discovered that a file descriptor overflow issue in the use of FD_SET() in nss-pam-ldapd, which provides NSS and PAM modules for using LDAP as a naming service, can lead to a stack-based buffer overflow. An attacker could, under some circumstances, use this flaw to cause a process that has the NSS or PAM module loaded to crash or potentially execute arbitrary code.
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 64671
    published 2013-02-19
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=64671
    title Debian DSA-2628-1 : nss-pam-ldapd - buffer overflow
  • NASL family Red Hat Local Security Checks
    NASL id REDHAT-RHSA-2013-0590.NASL
    description Updated nss-pam-ldapd packages that fix one security issue are now available for Red Hat Enterprise Linux 6. The Red Hat Security Response Team has rated this update as having important security impact. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available from the CVE link in the References section. The nss-pam-ldapd packages provide the nss-pam-ldapd daemon (nslcd), which uses a directory server to lookup name service information on behalf of a lightweight nsswitch module. An array index error, leading to a stack-based buffer overflow flaw, was found in the way nss-pam-ldapd managed open file descriptors. An attacker able to make a process have a large number of open file descriptors and perform name lookups could use this flaw to cause the process to crash or, potentially, execute arbitrary code with the privileges of the user running the process. (CVE-2013-0288) Red Hat would like to thank Garth Mollett for reporting this issue. All users of nss-pam-ldapd are advised to upgrade to these updated packages, which contain a backported patch to fix this issue.
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 65007
    published 2013-03-05
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=65007
    title RHEL 6 : nss-pam-ldapd (RHSA-2013:0590)
  • NASL family Mandriva Local Security Checks
    NASL id MANDRIVA_MDVSA-2013-106.NASL
    description Updated nss-pam-ldapd packages fixes the following security vulnerability : Garth Mollett discovered that a file descriptor overflow issue in the use of FD_SET() in nss-pam-ldapd can lead to a stack-based buffer overflow. An attacker could, under some circumstances, use this flaw to cause a process that has the NSS or PAM module loaded to crash or potentially execute arbitrary code. The issue can be triggered in a network daemon by opening a large number of connections and forcing a name lookup. This would result in a crash and possibly remote code execution. This issue may also allow local privilege escalation if a suid program does name lookups and doesn't close file descriptors inherited from the parent process (CVE-2013-0288).
    last seen 2019-02-21
    modified 2018-07-19
    plugin id 66118
    published 2013-04-20
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=66118
    title Mandriva Linux Security Advisory : nss-pam-ldapd (MDVSA-2013:106)
  • NASL family Fedora Local Security Checks
    NASL id FEDORA_2013-2754.NASL
    description Fixes: CVE-2013-0288 nss-pam-ldapd: FD_SET array index error, leading to stack-based buffer overflow Note that Tenable Network Security has extracted the preceding description block directly from the Fedora 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 2016-05-09
    plugin id 64940
    published 2013-03-01
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=64940
    title Fedora 17 : nss-pam-ldapd-0.7.16-3.fc17 (2013-2754)
redhat via4
advisories
bugzilla
id 909119
title CVE-2013-0288 nss-pam-ldapd: FD_SET array index error, leading to stack-based buffer overflow
oval
AND
  • comment nss-pam-ldapd is earlier than 0:0.7.5-18.1.el6_4
    oval oval:com.redhat.rhsa:tst:20130590005
  • comment nss-pam-ldapd is signed with Red Hat redhatrelease2 key
    oval oval:com.redhat.rhsa:tst:20130590006
  • OR
    • comment Red Hat Enterprise Linux 6 Client is installed
      oval oval:com.redhat.rhba:tst:20111656001
    • comment Red Hat Enterprise Linux 6 Server is installed
      oval oval:com.redhat.rhba:tst:20111656002
    • comment Red Hat Enterprise Linux 6 Workstation is installed
      oval oval:com.redhat.rhba:tst:20111656003
    • comment Red Hat Enterprise Linux 6 ComputeNode is installed
      oval oval:com.redhat.rhba:tst:20111656004
rhsa
id RHSA-2013:0590
released 2013-03-04
severity Important
title RHSA-2013:0590: nss-pam-ldapd security update (Important)
rpms nss-pam-ldapd-0:0.7.5-18.1.el6_4
refmap via4
bid 58007
confirm
debian DSA-2628
fedora FEDORA-2013-2754
mandriva MDVSA-2013:106
misc
mlist
  • [nss-pam-ldapd-announce] 20130218 nss-pam-ldapd security advisory (CVE-2013-0288)
  • [oss-security] 20130218 CVE-2013-0288 nss-pam-ldapd: FD_SET array index error, leading to stack-based buffer overflow
secunia
  • 52212
  • 52242
suse
  • openSUSE-SU-2013:0522
  • openSUSE-SU-2013:0524
xf nsspamldapd-fdsetsize-bo(82175)
Last major update 06-02-2014 - 23:44
Published 05-03-2013 - 16:38
Last modified 28-08-2017 - 21:33
Back to Top