OpenLDAP Denial of Service Vulnerability (CVE-2020-36226)

openldap Updated 02 Oct 2025

Summary

26/01/2021
N/A
Yes i
High
7.5

CVE-2020-36226: 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. Affects openldap across 2 version ranges.

< 2.4.57-r0 < 3b03d6bea27f29b7f7f91b3d5488fbd6e69b6c29

Fixed in 2.4.57-r0. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

OpenLDAP is an open-source implementation of the Lightweight Directory Access Protocol (LDAP) that provides a directory service for managing user accounts and authentication. It is widely used in various applications and systems for centralized user management. However, a vulnerability has been discovered in OpenLDAP before version 2.4.57 that can lead to a denial of service (DoS) attack. This vulnerability affects the saslAuthzTo processing and can result in a crash of the slapd service, rendering it unavailable.

Vulnerability Detail

The vulnerability (CVE-2020-36226) in OpenLDAP arises from a miscalculation in the memch->bv_len parameter during the saslAuthzTo processing. This flaw can be exploited by an attacker to cause a crash in the slapd service, leading to a denial of service condition. The impact of this vulnerability is the unavailability of the LDAP service, which can disrupt user authentication and access control mechanisms relying on OpenLDAP.

How To Fix

Minimum fixed version

2.4.57-r0

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

No workaround has been identified for this vulnerability. It is essential to apply the recommended fix by upgrading to the patched version of OpenLDAP.

Conclusion

The OpenLDAP Denial of Service vulnerability (CVE-2020-36226) can result in a crash of the slapd service, causing a denial of service condition. To mitigate this vulnerability, it is crucial to upgrade OpenLDAP to version 2.4.57 or later. No workaround is available, and it is recommended to follow the official documentation for the upgrade process. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for openldap →

Share this vulnerability

FAQ

OpenLDAP is an open-source implementation of the Lightweight Directory Access Protocol (LDAP) that provides a directory service for managing user accounts and authentication.

The vulnerability can lead to a denial of service (DoS) condition, rendering the OpenLDAP service unavailable and disrupting user authentication and access control mechanisms.

To fix this vulnerability, it is recommended to upgrade OpenLDAP to version 2.4.57 or later, which includes the necessary fixes.

No workaround has been identified for this vulnerability. Upgrading to the patched version is the recommended solution.

You can find more information about this vulnerability in the official CVE-2020-36226 advisory and the OpenLDAP project documentation.

Related vulnerabilities

Recent vulnerabilities recorded for openldap.

How To Fix

Minimum fixed version

2.4.57-r0

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