# CVE-2023-2953: Null dereference in openldap

> A null pointer dereference in OpenLDAP's memory allocation function can cause a denial of service.

- **Severity:** High 7.5 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 30 May 2023
- **Updated:** 14 Oct 2026
- **Also known as:** ALSA-2024:4264, AZL-27011, BELL-CVE-2023-2953, BIT-openldap-2023-2953, CLSA-2023-1688678407, CLSA-2023-1689257597, CLSA-2023-1689257904, CLSA-2023-1689700365, CLSA-2023-1689702307, CLSA-2023-1689702499, CLSA-2023-1701444589, CLSA-2024-1722003515, DEBIAN-CVE-2023-2953, ECHO-a4d9-067f-6e00, GHSA-26fx-c7cw-5jh4, MGASA-2023-0252, OESA-2023-1334, RHSA-2024:4264, RHSA-2024:6033, RHSA-2025:8176, RHSA-2025:8181, RLSA-2024:4264, ROOT-OS-DEBIAN-11-CVE-2023-2953, ROOT-OS-DEBIAN-12-CVE-2023-2953, SUSE-SU-2023:2483-1, SUSE-SU-2023:2484-1, SUSE-SU-2023:2503-1, UBUNTU-CVE-2023-2953, USN-6197-1, USN-6616-1, openSUSE-SU-2024:13012-1

## What is CVE-2023-2953?

CVE-2023-2953 is a high-severity vulnerability in Apple Macos, published on 30 May 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

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

Weakness: CWE-476 (NULL Pointer Dereference)

## Which versions are affected by CVE-2023-2953?

1 open source package ship an affected version, including openldap. It affects 11 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `openldap` | Bitnami | From 2.4.0 | 2.4.1 |
| `openldap` | AlmaLinux:8 | All versions | 2.4.46-19.el8_10 |
| `openldap-clients` | AlmaLinux:8 | All versions | 2.4.46-19.el8_10 |
| `openldap-devel` | AlmaLinux:8 | All versions | 2.4.46-19.el8_10 |
| `openldap-servers` | AlmaLinux:8 | All versions | 2.4.46-19.el8_10 |
| `openldap` | Red Hat:enterprise_linux:8::baseos | All versions | 0:2.4.46-19.el8_10 |
| `openldap-clients` | Red Hat:enterprise_linux:8::baseos | All versions | 0:2.4.46-19.el8_10 |
| `openldap-clients-debuginfo` | Red Hat:enterprise_linux:8::baseos | All versions | 0:2.4.46-19.el8_10 |
| `openldap-debuginfo` | Red Hat:enterprise_linux:8::baseos | All versions | 0:2.4.46-19.el8_10 |
| `openldap-debugsource` | Red Hat:enterprise_linux:8::baseos | All versions | 0:2.4.46-19.el8_10 |
| `openldap-devel` | Red Hat:enterprise_linux:8::baseos | All versions | 0:2.4.46-19.el8_10 |
| `openldap-servers-debuginfo` | Red Hat:enterprise_linux:8::baseos | All versions | 0:2.4.46-19.el8_10 |
| `openldap-clients-debuginfo` | Red Hat:enterprise_linux:8::crb | All versions | 0:2.4.46-19.el8_10 |
| `openldap-debuginfo` | Red Hat:enterprise_linux:8::crb | All versions | 0:2.4.46-19.el8_10 |
| `openldap-debugsource` | Red Hat:enterprise_linux:8::crb | All versions | 0:2.4.46-19.el8_10 |
| `openldap-servers` | Red Hat:enterprise_linux:8::crb | All versions | 0:2.4.46-19.el8_10 |
| `openldap-servers-debuginfo` | Red Hat:enterprise_linux:8::crb | All versions | 0:2.4.46-19.el8_10 |
| `openldap-clients-debuginfo` | Red Hat:rhel_e4s:9.0::appstream | All versions | 0:2.6.2-1.el9_0.1 |
| `openldap-compat-debuginfo` | Red Hat:rhel_e4s:9.0::appstream | All versions | 0:2.6.2-1.el9_0.1 |
| `openldap-debuginfo` | Red Hat:rhel_e4s:9.0::appstream | All versions | 0:2.6.2-1.el9_0.1 |
| `openldap-debugsource` | Red Hat:rhel_e4s:9.0::appstream | All versions | 0:2.6.2-1.el9_0.1 |
| `openldap-devel` | Red Hat:rhel_e4s:9.0::appstream | All versions | 0:2.6.2-1.el9_0.1 |
| `openldap` | Red Hat:rhel_e4s:9.0::baseos | All versions | 0:2.6.2-1.el9_0.1 |
| `openldap-clients` | Red Hat:rhel_e4s:9.0::baseos | All versions | 0:2.6.2-1.el9_0.1 |
| `openldap-clients-debuginfo` | Red Hat:rhel_e4s:9.0::baseos | All versions | 0:2.6.2-1.el9_0.1 |
| `openldap-compat` | Red Hat:rhel_e4s:9.0::baseos | All versions | 0:2.6.2-1.el9_0.1 |
| `openldap-compat-debuginfo` | Red Hat:rhel_e4s:9.0::baseos | All versions | 0:2.6.2-1.el9_0.1 |
| `openldap-debuginfo` | Red Hat:rhel_e4s:9.0::baseos | All versions | 0:2.6.2-1.el9_0.1 |
| `openldap-debugsource` | Red Hat:rhel_e4s:9.0::baseos | All versions | 0:2.6.2-1.el9_0.1 |
| `openldap` | Red Hat:rhel_eus:8.8::baseos | All versions | 0:2.4.46-20.el8_8 |
| `openldap-clients` | Red Hat:rhel_eus:8.8::baseos | All versions | 0:2.4.46-20.el8_8 |
| `openldap-clients-debuginfo` | Red Hat:rhel_eus:8.8::baseos | All versions | 0:2.4.46-20.el8_8 |
| `openldap-debuginfo` | Red Hat:rhel_eus:8.8::baseos | All versions | 0:2.4.46-20.el8_8 |
| `openldap-debugsource` | Red Hat:rhel_eus:8.8::baseos | All versions | 0:2.4.46-20.el8_8 |
| `openldap-devel` | Red Hat:rhel_eus:8.8::baseos | All versions | 0:2.4.46-20.el8_8 |
| `openldap-servers-debuginfo` | Red Hat:rhel_eus:8.8::baseos | All versions | 0:2.4.46-20.el8_8 |
| `openldap-clients-debuginfo` | Red Hat:rhel_eus:8.8::crb | All versions | 0:2.4.46-20.el8_8 |
| `openldap-debuginfo` | Red Hat:rhel_eus:8.8::crb | All versions | 0:2.4.46-20.el8_8 |
| `openldap-debugsource` | Red Hat:rhel_eus:8.8::crb | All versions | 0:2.4.46-20.el8_8 |
| `openldap-servers` | Red Hat:rhel_eus:8.8::crb | All versions | 0:2.4.46-20.el8_8 |

Products: Apple Macos, Netapp Active Iq Unified Manager, Netapp Clustered Data Ontap, Netapp H300s Firmware, Netapp H410c Firmware, Netapp H410s Firmware, Netapp H500s Firmware, Netapp H700s Firmware, Netapp Ontap Tools, Openldap Openldap, Redhat Enterprise Linux.

## How do I fix CVE-2023-2953?

Upgrade openldap to 2.4.1 or later.

## Is CVE-2023-2953 being exploited?

There is no known exploitation of CVE-2023-2953 in the wild and no public exploit code.

## Other vulnerabilities in Apple Macos

- [CVE-2026-65400](https://insights.sbomify.com/CVE-2026-65400/): Apple macOS Improper Authentication (critical 9.8, exploited in the wild)
- [CVE-2024-44146](https://insights.sbomify.com/CVE-2024-44146/): Security feature bypass in macOS (critical 10.0)
- [CVE-2024-44148](https://insights.sbomify.com/CVE-2024-44148/): Security feature bypass in macOS (critical 10.0)
- [CVE-2023-38586](https://insights.sbomify.com/CVE-2023-38586/): Security feature bypass in macOS (critical 10.0)
- [CVE-2023-40455](https://insights.sbomify.com/CVE-2023-40455/): Security feature bypass in macOS (critical 10.0)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2023-2953 and fix it if it is affected.

What it is: CVE-2023-2953 is a high-severity vulnerability in Apple Macos, published on 30 May 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2023-2953 in the wild and no public exploit code.

Affected packages and fixed versions:
- openldap (Bitnami): affected from 2.4.0; fixed in 2.4.1

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2023-2953/ (Markdown: https://insights.sbomify.com/CVE-2023-2953/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2023-2953
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2023-2953
- OSV: https://osv.dev/vulnerability/CVE-2023-2953

---
From sbomify Insights: https://insights.sbomify.com/CVE-2023-2953/
Summaries are generated and may contain mistakes; the official description above is the record.
