openldap CVE Vulnerabilities & Metrics

Focus on openldap vulnerabilities and metrics.

Last updated: 08 Mar 2025, 23:25 UTC

About openldap Security Exposure

This page consolidates all known Common Vulnerabilities and Exposures (CVEs) associated with openldap. We track both calendar-based metrics (using fixed periods) and rolling metrics (using gliding windows) to give you a comprehensive view of security trends and risk evolution. Use these insights to assess risk and plan your patching strategy.

For a broader perspective on cybersecurity threats, explore the comprehensive list of CVEs by vendor and product. Stay updated on critical vulnerabilities affecting major software and hardware providers.

Global CVE Overview

Total openldap CVEs: 30
Earliest CVE date: 21 Apr 2000, 04:00 UTC
Latest CVE date: 30 May 2023, 22:15 UTC

Latest CVE reference: CVE-2023-2953

Rolling Stats

30-day Count (Rolling): 0
365-day Count (Rolling): 0

Calendar-based Variation

Calendar-based Variation compares a fixed calendar period (e.g., this month versus the same month last year), while Rolling Growth Rate uses a continuous window (e.g., last 30 days versus the previous 30 days) to capture trends independent of calendar boundaries.

Variations & Growth

Month Variation (Calendar): 0%
Year Variation (Calendar): -100.0%

Month Growth Rate (30-day Rolling): 0.0%
Year Growth Rate (365-day Rolling): -100.0%

Monthly CVE Trends (current vs previous Year)

Annual CVE Trends (Last 20 Years)

Critical openldap CVEs (CVSS ≥ 9) Over 20 Years

CVSS Stats

Average CVSS: 4.78

Max CVSS: 7.5

Critical CVEs (≥9): 0

CVSS Range vs. Count

Range Count
0.0-3.9 8
4.0-6.9 44
7.0-8.9 8
9.0-10.0 0

CVSS Distribution Chart

Top 5 Highest CVSS openldap CVEs

These are the five CVEs with the highest CVSS scores for openldap, sorted by severity first and recency.

All CVEs for openldap

CVE-2023-2953 openldap vulnerability CVSS: 0 30 May 2023, 22:15 UTC

A vulnerability was found in openldap. This security flaw causes a null pointer dereference in ber_memalloc_x() function.

CVE-2022-29155 openldap vulnerability CVSS: 7.5 04 May 2022, 20:15 UTC

In OpenLDAP 2.x before 2.5.12 and 2.6.x before 2.6.2, a SQL injection vulnerability exists in the experimental back-sql backend to slapd, via a SQL statement within an LDAP query. This can occur during an LDAP search operation when the search filter is processed, due to a lack of proper escaping.

CVE-2020-25710 openldap vulnerability CVSS: 5.0 28 May 2021, 11:15 UTC

A flaw was found in OpenLDAP in versions before 2.4.56. This flaw allows an attacker who sends a malicious packet processed by OpenLDAP to force a failed assertion in csnNormalize23(). The highest threat from this vulnerability is to system availability.

CVE-2020-25709 openldap vulnerability CVSS: 5.0 18 May 2021, 12:15 UTC

A flaw was found in OpenLDAP. This flaw allows an attacker who can send a malicious packet to be processed by OpenLDAP’s slapd server, to trigger an assertion failure. The highest threat from this vulnerability is to system availability.

CVE-2021-27212 openldap vulnerability CVSS: 5.0 14 Feb 2021, 03:15 UTC

In OpenLDAP through 2.4.57 and 2.5.x through 2.5.1alpha, an assertion failure in slapd can occur in the issuerAndThisUpdateCheck function via a crafted packet, resulting in a denial of service (daemon exit) via a short timestamp. This is related to schema_init.c and checkTime.

CVE-2020-36230 openldap vulnerability CVSS: 5.0 26 Jan 2021, 18:15 UTC

A flaw was discovered in OpenLDAP before 2.4.57 leading in an assertion failure in slapd in the X.509 DN parsing in decode.c ber_next_element, resulting in denial of service.

CVE-2020-36229 openldap vulnerability CVSS: 5.0 26 Jan 2021, 18:15 UTC

A flaw was discovered in ldap_X509dn2bv in OpenLDAP before 2.4.57 leading to a slapd crash in the X.509 DN parsing in ad_keystring, resulting in denial of service.

CVE-2020-36228 openldap vulnerability CVSS: 5.0 26 Jan 2021, 18:15 UTC

An integer underflow was discovered in OpenLDAP before 2.4.57 leading to a slapd crash in the Certificate List Exact Assertion processing, resulting in denial of service.

CVE-2020-36227 openldap vulnerability CVSS: 5.0 26 Jan 2021, 18:15 UTC

A flaw was discovered in OpenLDAP before 2.4.57 leading to an infinite loop in slapd with the cancel_extop Cancel operation, resulting in denial of service.

CVE-2020-36226 openldap vulnerability CVSS: 5.0 26 Jan 2021, 18:15 UTC

A flaw was discovered in OpenLDAP before 2.4.57 leading to a memch->bv_len miscalculation and slapd crash in the saslAuthzTo processing, resulting in denial of service.

CVE-2020-36225 openldap vulnerability CVSS: 5.0 26 Jan 2021, 18:15 UTC

A flaw was discovered in OpenLDAP before 2.4.57 leading to a double free and slapd crash in the saslAuthzTo processing, resulting in denial of service.

CVE-2020-36224 openldap vulnerability CVSS: 5.0 26 Jan 2021, 18:15 UTC

A flaw was discovered in OpenLDAP before 2.4.57 leading to an invalid pointer free and slapd crash in the saslAuthzTo processing, resulting in denial of service.

CVE-2020-36223 openldap vulnerability CVSS: 5.0 26 Jan 2021, 18:15 UTC

A flaw was discovered in OpenLDAP before 2.4.57 leading to a slapd crash in the Values Return Filter control handling, resulting in denial of service (double free and out-of-bounds read).

CVE-2020-36222 openldap vulnerability CVSS: 5.0 26 Jan 2021, 18:15 UTC

A flaw was discovered in OpenLDAP before 2.4.57 leading to an assertion failure in slapd in the saslAuthzTo validation, resulting in denial of service.

CVE-2020-36221 openldap vulnerability CVSS: 5.0 26 Jan 2021, 18:15 UTC

An integer underflow was discovered in OpenLDAP before 2.4.57 leading to slapd crashes in the Certificate Exact Assertion processing, resulting in denial of service (schema_init.c serialNumberAndIssuerCheck).

CVE-2020-25692 openldap vulnerability CVSS: 5.0 08 Dec 2020, 01:15 UTC

A NULL pointer dereference was found in OpenLDAP server and was fixed in openldap 2.4.55, during a request for renaming RDNs. An unauthenticated attacker could remotely crash the slapd process by sending a specially crafted request, causing a Denial of Service.

CVE-2020-15719 openldap vulnerability CVSS: 4.0 14 Jul 2020, 14:15 UTC

libldap in certain third-party OpenLDAP packages has a certificate-validation flaw when the third-party package is asserting RFC6125 support. It considers CN even when there is a non-matching subjectAltName (SAN). This is fixed in, for example, openldap-2.4.46-10.el8 in Red Hat Enterprise Linux.

CVE-2020-12243 openldap vulnerability CVSS: 5.0 28 Apr 2020, 19:15 UTC

In filter.c in slapd in OpenLDAP before 2.4.50, LDAP search filters with nested boolean expressions can result in denial of service (daemon crash).

CVE-2014-8182 openldap vulnerability CVSS: 4.3 02 Jan 2020, 23:15 UTC

An off-by-one error leading to a crash was discovered in openldap 2.4 when processing DNS SRV messages. If slapd was configured to use the dnssrv backend, an attacker could crash the service with crafted DNS responses.

CVE-2019-13565 openldap vulnerability CVSS: 5.0 26 Jul 2019, 13:15 UTC

An issue was discovered in OpenLDAP 2.x before 2.4.48. When using SASL authentication and session encryption, and relying on the SASL security layers in slapd access controls, it is possible to obtain access that would otherwise be denied via a simple bind for any identity covered in those ACLs. After the first SASL bind is completed, the sasl_ssf value is retained for all new non-SASL connections. Depending on the ACL configuration, this can affect different types of operations (searches, modifications, etc.). In other words, a successful authorization step completed by one user affects the authorization requirement for a different user.

CVE-2019-13057 openldap vulnerability CVSS: 3.5 26 Jul 2019, 13:15 UTC

An issue was discovered in the server in OpenLDAP before 2.4.48. When the server administrator delegates rootDN (database admin) privileges for certain databases but wants to maintain isolation (e.g., for multi-tenant deployments), slapd does not properly stop a rootDN from requesting authorization as an identity from another database during a SASL bind or with a proxyAuthz (RFC 4370) control. (It is not a common configuration to deploy a system where the server administrator and a DB administrator enjoy different levels of trust.)

CVE-2017-17740 openldap vulnerability CVSS: 5.0 18 Dec 2017, 06:29 UTC

contrib/slapd-modules/nops/nops.c in OpenLDAP through 2.4.45, when both the nops module and the memberof overlay are enabled, attempts to free a buffer that was allocated on the stack, which allows remote attackers to cause a denial of service (slapd crash) via a member MODDN operation.

CVE-2017-14159 openldap vulnerability CVSS: 1.9 05 Sep 2017, 18:29 UTC

slapd in OpenLDAP 2.4.45 and earlier creates a PID file after dropping privileges to a non-root account, which might allow local users to kill arbitrary processes by leveraging access to this non-root account for PID file modification before a root script executes a "kill `cat /pathname`" command, as demonstrated by openldap-initscript.

CVE-2016-4984 openldap vulnerability CVSS: 1.9 17 Jul 2017, 13:18 UTC

/usr/libexec/openldap/generate-server-cert.sh in openldap-servers sets weak permissions for the TLS certificate, which allows local users to obtain the TLS certificate by leveraging a race condition between the creation of the certificate, and the chmod to protect it.

CVE-2017-9287 openldap vulnerability CVSS: 4.0 29 May 2017, 16:29 UTC

servers/slapd/back-mdb/search.c in OpenLDAP through 2.4.44 is prone to a double free vulnerability. A user with access to search the directory can crash slapd by issuing a search including the Paged Results control with a page size of 0.

CVE-2015-3276 openldap vulnerability CVSS: 5.0 07 Dec 2015, 20:59 UTC

The nss_parse_ciphers function in libraries/libldap/tls_m.c in OpenLDAP does not properly parse OpenSSL-style multi-keyword mode cipher strings, which might cause a weaker than intended cipher to be used and allow remote attackers to have unspecified impact via unknown vectors.

CVE-2015-6908 openldap vulnerability CVSS: 5.0 11 Sep 2015, 16:59 UTC

The ber_get_next function in libraries/liblber/io.c in OpenLDAP 2.4.42 and earlier allows remote attackers to cause a denial of service (reachable assertion and application crash) via crafted BER data, as demonstrated by an attack against slapd.

CVE-2014-9713 openldap vulnerability CVSS: 4.0 01 Apr 2015, 14:59 UTC

The default slapd configuration in the Debian openldap package 2.4.23-3 through 2.4.39-1.1 allows remote authenticated users to modify the user's permissions and other user attributes via unspecified vectors.

CVE-2015-1546 openldap vulnerability CVSS: 5.0 12 Feb 2015, 16:59 UTC

Double free vulnerability in the get_vrFilter function in servers/slapd/filter.c in OpenLDAP 2.4.40 allows remote attackers to cause a denial of service (crash) via a crafted search query with a matched values control.

CVE-2015-1545 openldap vulnerability CVSS: 5.0 12 Feb 2015, 16:59 UTC

The deref_parseCtrl function in servers/slapd/overlays/deref.c in OpenLDAP 2.4.13 through 2.4.40 allows remote attackers to cause a denial of service (NULL pointer dereference and crash) via an empty attribute list in a deref control in a search request.

CVE-2013-4449 openldap vulnerability CVSS: 4.3 05 Feb 2014, 18:55 UTC

The rwm overlay in OpenLDAP 2.4.23, 2.4.36, and earlier does not properly count references, which allows remote attackers to cause a denial of service (slapd crash) by unbinding immediately after a search request, which triggers rwm_conn_destroy to free the session context while it is being used by rwm_op_search.

CVE-2012-1164 openldap vulnerability CVSS: 2.6 29 Jun 2012, 19:55 UTC

slapd in OpenLDAP before 2.4.30 allows remote attackers to cause a denial of service (assertion failure and daemon exit) via an LDAP search query with attrsOnly set to true, which causes empty attributes to be returned.

CVE-2012-2668 openldap vulnerability CVSS: 4.3 17 Jun 2012, 03:41 UTC

libraries/libldap/tls_m.c in OpenLDAP, possibly 2.4.31 and earlier, when using the Mozilla NSS backend, always uses the default cipher suite even when TLSCipherSuite is set, which might cause OpenLDAP to use weaker ciphers than intended and make it easier for remote attackers to obtain sensitive information.

CVE-2011-4079 openldap vulnerability CVSS: 4.0 27 Oct 2011, 20:55 UTC

Off-by-one error in the UTF8StringNormalize function in OpenLDAP 2.4.26 and earlier allows remote attackers to cause a denial of service (slapd crash) via a zero-length string that triggers a heap-based buffer overflow, as demonstrated using an empty postalAddressAttribute value in an LDIF entry.

CVE-2011-1081 openldap vulnerability CVSS: 5.0 20 Mar 2011, 02:00 UTC

modrdn.c in slapd in OpenLDAP 2.4.x before 2.4.24 allows remote attackers to cause a denial of service (daemon crash) via a relative Distinguished Name (DN) modification request (aka MODRDN operation) that contains an empty value for the OldDN field.

CVE-2011-1025 openldap vulnerability CVSS: 6.8 20 Mar 2011, 02:00 UTC

bind.cpp in back-ndb in OpenLDAP 2.4.x before 2.4.24 does not require authentication for the root Distinguished Name (DN), which allows remote attackers to bypass intended access restrictions via an arbitrary password.

CVE-2011-1024 openldap vulnerability CVSS: 4.6 20 Mar 2011, 02:00 UTC

chain.c in back-ldap in OpenLDAP 2.4.x before 2.4.24, when a master-slave configuration with a chain overlay and ppolicy_forward_updates (aka authentication-failure forwarding) is used, allows remote authenticated users to bypass external-program authentication by sending an invalid password to a slave server.

CVE-2010-0212 openldap vulnerability CVSS: 5.0 28 Jul 2010, 12:48 UTC

OpenLDAP 2.4.22 allows remote attackers to cause a denial of service (crash) via a modrdn call with a zero-length RDN destination string, which is not properly handled by the smr_normalize function and triggers a NULL pointer dereference in the IA5StringNormalize function in schema_init.c, as demonstrated using the Codenomicon LDAPv3 test suite.

CVE-2010-0211 openldap vulnerability CVSS: 5.0 28 Jul 2010, 12:48 UTC

The slap_modrdn2mods function in modrdn.c in OpenLDAP 2.4.22 does not check the return value of a call to the smr_normalize function, which allows remote attackers to cause a denial of service (segmentation fault) and possibly execute arbitrary code via a modrdn call with an RDN string containing invalid UTF-8 sequences, which triggers a free of an invalid, uninitialized pointer in the slap_mods_free function, as demonstrated using the Codenomicon LDAPv3 test suite.

CVE-2009-3767 openldap vulnerability CVSS: 4.3 23 Oct 2009, 19:30 UTC

libraries/libldap/tls_o.c in OpenLDAP 2.2 and 2.4, and possibly other versions, when OpenSSL is used, does not properly handle a '\0' character in a domain name in the subject's Common Name (CN) field of an X.509 certificate, which allows man-in-the-middle attackers to spoof arbitrary SSL servers via a crafted certificate issued by a legitimate Certification Authority, a related issue to CVE-2009-2408.

CVE-2008-2952 openldap vulnerability CVSS: 5.0 01 Jul 2008, 21:41 UTC

liblber/io.c in OpenLDAP 2.2.4 to 2.4.10 allows remote attackers to cause a denial of service (program termination) via crafted ASN.1 BER datagrams that trigger an assertion error.

CVE-2008-0658 openldap vulnerability CVSS: 4.0 13 Feb 2008, 21:00 UTC

slapd/back-bdb/modrdn.c in the BDB backend for slapd in OpenLDAP 2.3.39 allows remote authenticated users to cause a denial of service (daemon crash) via a modrdn operation with a NOOP (LDAP_X_NO_OPERATION) control, a related issue to CVE-2007-6698.

CVE-2007-6698 openldap vulnerability CVSS: 4.0 01 Feb 2008, 22:00 UTC

The BDB backend for slapd in OpenLDAP before 2.3.36 allows remote authenticated users to cause a denial of service (crash) via a potentially-successful modify operation with the NOOP control set to critical, possibly due to a double free vulnerability.

CVE-2007-5707 openldap vulnerability CVSS: 7.1 30 Oct 2007, 19:46 UTC

OpenLDAP before 2.3.39 allows remote attackers to cause a denial of service (slapd crash) via an LDAP request with a malformed objectClasses attribute. NOTE: this has been reported as a double free, but the reports are inconsistent.

CVE-2007-5708 openldap vulnerability CVSS: 7.1 30 Oct 2007, 19:46 UTC

slapo-pcache (overlays/pcache.c) in slapd in OpenLDAP before 2.3.39, when running as a proxy-caching server, allocates memory using a malloc variant instead of calloc, which prevents an array from being initialized properly and might allow attackers to cause a denial of service (segmentation fault) via unknown vectors that prevent the array from being null terminated.

CVE-2006-6493 openldap vulnerability CVSS: 5.1 13 Dec 2006, 00:28 UTC

Buffer overflow in the krbv4_ldap_auth function in servers/slapd/kerberos.c in OpenLDAP 2.4.3 and earlier, when OpenLDAP is compiled with the --enable-kbind (Kerberos KBIND) option, allows remote attackers to execute arbitrary code via an LDAP bind request using the LDAP_AUTH_KRBV41 authentication method and long credential data.

CVE-2006-5779 openldap vulnerability CVSS: 5.0 07 Nov 2006, 18:07 UTC

OpenLDAP before 2.3.29 allows remote attackers to cause a denial of service (daemon crash) via LDAP BIND requests with long authcid names, which triggers an assertion failure.

CVE-2006-4600 openldap vulnerability CVSS: 2.3 07 Sep 2006, 00:04 UTC

slapd in OpenLDAP before 2.3.25 allows remote authenticated users with selfwrite Access Control List (ACL) privileges to modify arbitrary Distinguished Names (DN).

CVE-2006-2754 openldap vulnerability CVSS: 5.0 01 Jun 2006, 17:02 UTC

Stack-based buffer overflow in st.c in slurpd for OpenLDAP before 2.3.22 might allow attackers to execute arbitrary code via a long hostname.

CVE-2005-4442 openldap vulnerability CVSS: 7.2 21 Dec 2005, 02:03 UTC

Untrusted search path vulnerability in OpenLDAP before 2.2.28-r3 on Gentoo Linux allows local users in the portage group to gain privileges via a malicious shared object in the Portage temporary build directory, which is part of the RUNPATH.

CVE-2004-1880 openldap vulnerability CVSS: 5.0 31 Dec 2004, 05:00 UTC

Memory leak in the back-bdb backend for OpenLDAP 2.1.12 and earlier allows remote attackers to cause a denial of service (memory consumption).

CVE-2004-0823 openldap vulnerability CVSS: 7.5 07 Sep 2004, 04:00 UTC

OpenLDAP 1.0 through 2.1.19, as used in Apple Mac OS 10.3.4 and 10.3.5 and possibly other operating systems, may allow certain authentication schemes to use hashed (crypt) passwords in the userPassword attribute as if they were plaintext passwords, which allows remote attackers to re-use hashed passwords without decrypting them.

CVE-2003-1201 openldap vulnerability CVSS: 5.0 20 Mar 2003, 05:00 UTC

ldbm_back_exop_passwd in the back-ldbm backend in passwd.c for OpenLDAP 2.1.12 and earlier, when the slap_passwd_parse function does not return LDAP_SUCCESS, attempts to free an uninitialized pointer, which allows remote attackers to cause a denial of service (segmentation fault).

CVE-2002-1508 openldap vulnerability CVSS: 1.2 19 Feb 2003, 05:00 UTC

slapd in OpenLDAP2 (OpenLDAP 2) 2.2.0 and earlier allows local users to overwrite arbitrary files via a race condition during the creation of a log file for rejected replication requests.

CVE-2002-1378 openldap vulnerability CVSS: 7.5 02 Jan 2003, 05:00 UTC

Multiple buffer overflows in OpenLDAP2 (OpenLDAP 2) 2.2.0 and earlier allow remote attackers to execute arbitrary code via (1) long -t or -r parameters to slurpd, (2) a malicious ldapfilter.conf file that is not properly handled by getfilter functions, (3) a malicious ldaptemplates.conf that causes an overflow in libldap, (4) a certain access control list that causes an overflow in slapd, or (5) a long generated filename for logging rejected replication requests.

CVE-2002-1379 openldap vulnerability CVSS: 7.5 02 Jan 2003, 05:00 UTC

OpenLDAP2 (OpenLDAP 2) 2.2.0 and earlier allows remote or local attackers to execute arbitrary code when libldap reads the .ldaprc file within applications that are running with extra privileges.

CVE-2002-0045 openldap vulnerability CVSS: 7.5 31 Jan 2002, 05:00 UTC

slapd in OpenLDAP 2.0 through 2.0.19 allows local users, and anonymous users before 2.0.8, to conduct a "replace" action on access controls without any values, which causes OpenLDAP to delete non-mandatory attributes that would otherwise be protected by ACLs.

CVE-2001-0977 openldap vulnerability CVSS: 5.0 16 Jul 2001, 04:00 UTC

slapd in OpenLDAP 1.x before 1.2.12, and 2.x before 2.0.8, allows remote attackers to cause a denial of service (crash) via an invalid Basic Encoding Rules (BER) length field.

CVE-2000-0748 openldap vulnerability CVSS: 4.6 20 Oct 2000, 04:00 UTC

OpenLDAP 1.2.11 and earlier improperly installs the ud binary with group write permissions, which could allow any user in that group to replace the binary with a Trojan horse.

CVE-2000-0336 openldap vulnerability CVSS: 2.1 21 Apr 2000, 04:00 UTC

Linux OpenLDAP server allows local users to modify arbitrary files via a symlink attack.