Denial of Service Vulnerability in OpenLDAP - CVE-2021-27212

openldap Updated 02 Oct 2025

Summary

14/02/2021
N/A
Yes i
High
7.5

ALPINE-CVE-2021-27212: 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 t... Affects openldap versions < 2.4.50-r2. Fixed in 2.4.50-r2. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

OpenLDAP is an open-source implementation of the Lightweight Directory Access Protocol (LDAP), which is used for accessing and maintaining distributed directory information services over an Internet Protocol (IP) network. It is widely utilized for user authentication and directory services in various applications. The vulnerability in question affects multiple versions of OpenLDAP, making it critical for users to be aware of its implications.

Vulnerability Detail

In OpenLDAP versions up to 2.4.57 and 2.5.x through 2.5.1alpha, an assertion failure can occur in the slapd daemon due to a crafted packet sent to the issuerAndThisUpdateCheck function. This vulnerability can lead to a denial of service, causing the daemon to exit unexpectedly when a short timestamp is processed. The issue is related to the schema initialization process and can be exploited by attackers to disrupt service availability.

How To Fix

Minimum fixed version

2.4.50-r2

This is the first release that contains the fix.

sudo apk add --upgrade openldap

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary measure, consider implementing network-level protections such as firewalls to filter out potentially malicious packets that could exploit this vulnerability. Additionally, monitor your OpenLDAP logs for unusual activity that may indicate an attempted exploit.

Conclusion

CVE-2021-27212 represents a significant vulnerability in OpenLDAP that can lead to service disruptions. Users are strongly advised to update their installations to the patched versions to mitigate the risk. Additionally, employing temporary workarounds can help protect against potential exploits until an update can be applied.

See every vulnerability recorded for openldap →

Share this vulnerability

FAQ

CVE-2021-27212 is a vulnerability in OpenLDAP that can lead to a denial of service due to an assertion failure in the slapd daemon.

OpenLDAP versions up to 2.4.57 and 2.5.x through 2.5.1alpha are affected by this vulnerability.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

The CVSS score of CVE-2021-27212 is 7.5, indicating a high severity level.

If immediate updates are not possible, consider implementing network-level protections and monitoring logs for unusual activities.

Related vulnerabilities

Recent vulnerabilities recorded for openldap.

How To Fix

Minimum fixed version

2.4.50-r2

This is the first release that contains the fix.

sudo apk add --upgrade openldap

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback