ID CVE-2007-5794
Summary Race condition in nss_ldap, when used in applications that are linked against the pthread library and fork after a call to nss_ldap, might send user data to the wrong process because of improper handling of the LDAP connection. NOTE: this issue was originally reported for Dovecot with the wrong mailboxes being returned, but other applications might also be affected.
References
Vulnerable Configurations
  • cpe:2.3:a:nss_ldap:nss_ldap:*:*:*:*:*:*:*:*
    cpe:2.3:a:nss_ldap:nss_ldap:*:*:*:*:*:*:*:*
CVSS
Base: 4.3 (as of 15-10-2018 - 21:46)
Impact:
Exploitability:
CWE CWE-362
CAPEC
  • Leveraging Race Conditions
    The adversary targets a race condition occurring when multiple processes access and manipulate the same resource concurrently, and the outcome of the execution depends on the particular order in which the access takes place. The adversary can leverage a race condition by "running the race", modifying the resource and modifying the normal execution flow. For instance, a race condition can occur while accessing a file: the adversary can trick the system by replacing the original file with his version and cause the system to read the malicious file.
  • Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions
    This attack targets a race condition occurring between the time of check (state) for a resource and the time of use of a resource. A typical example is file access. The adversary can leverage a file access race condition by "running the race", meaning that they would modify the resource between the first time the target program accesses the file and the time the target program uses the file. During that period of time, the adversary could replace or modify the file, causing the application to behave unexpectedly.
Access
VectorComplexityAuthentication
NETWORK MEDIUM NONE
Impact
ConfidentialityIntegrityAvailability
PARTIAL NONE NONE
cvss-vector via4 AV:N/AC:M/Au:N/C:P/I:N/A:N
oval via4
accepted 2013-04-29T04:07:11.908-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
  • 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 Race condition in nss_ldap, when used in applications that are linked against the pthread library and fork after a call to nss_ldap, might send user data to the wrong process because of improper handling of the LDAP connection. NOTE: this issue was originally reported for Dovecot with the wrong mailboxes being returned, but other applications might also be affected.
family unix
id oval:org.mitre.oval:def:10625
status accepted
submitted 2010-07-09T03:56:16-04:00
title Race condition in nss_ldap, when used in applications that are linked against the pthread library and fork after a call to nss_ldap, might send user data to the wrong process because of improper handling of the LDAP connection. NOTE: this issue was originally reported for Dovecot with the wrong mailboxes being returned, but other applications might also be affected.
version 30
redhat via4
advisories
  • bugzilla
    id 427370
    title RHEL 5.1 nss_ldap does not build with RHEL 5.1 krb5 packages
    oval
    OR
    • comment Red Hat Enterprise Linux must be installed
      oval oval:com.redhat.rhba:tst:20070304026
    • AND
      • comment Red Hat Enterprise Linux 5 is installed
        oval oval:com.redhat.rhba:tst:20070331005
      • comment nss_ldap is earlier than 0:253-12.el5
        oval oval:com.redhat.rhsa:tst:20080389001
      • comment nss_ldap is signed with Red Hat redhatrelease key
        oval oval:com.redhat.rhsa:tst:20080389002
    rhsa
    id RHSA-2008:0389
    released 2008-05-20
    severity Low
    title RHSA-2008:0389: nss_ldap security and bug fix update (Low)
  • bugzilla
    id 429101
    title dbus-daemon-1 hangs when using the option nss_initgroups_ignoreusers in /etc/ldap.conf with the user root
    oval
    OR
    • comment Red Hat Enterprise Linux must be installed
      oval oval:com.redhat.rhba:tst:20070304026
    • AND
      • comment Red Hat Enterprise Linux 4 is installed
        oval oval:com.redhat.rhba:tst:20070304025
      • comment nss_ldap is earlier than 0:253-5.el4
        oval oval:com.redhat.rhsa:tst:20080715001
      • comment nss_ldap is signed with Red Hat master key
        oval oval:com.redhat.rhsa:tst:20060719002
    rhsa
    id RHSA-2008:0715
    released 2008-07-24
    severity Low
    title RHSA-2008:0715: nss_ldap security and bug fix update (Low)
rpms
  • nss_ldap-0:253-12.el5
  • nss_ldap-debuginfo-0:253-12.el5
  • nss_ldap-0:253-5.el4
  • nss_ldap-debuginfo-0:253-5.el4
refmap via4
bid 26452
bugtraq 20080212 FLEA-2008-0003-1 nss_ldap
confirm
debian DSA-1430
gentoo GLSA-200711-33
mandriva MDVSA-2008:049
mlist
  • [Dovecot] 20050303 hanging imap... and users getting other users' emails!
  • [Dovecot] 20050409 Authentication and the wrong mailbox?
sectrack 1020088
secunia
  • 27670
  • 27768
  • 27839
  • 28061
  • 28838
  • 29083
  • 30352
  • 31227
  • 31524
suse SUSE-SR:2008:003
xf nssldap-ldap-race-condition(38505)
Last major update 15-10-2018 - 21:46
Published 13-11-2007 - 23:46
Last modified 15-10-2018 - 21:46
Back to Top