# CVE-2024-52296: libosdp has a null pointer deref in osdp_reply_name

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.35%, higher than 30% of CVEs (2026-12-01)
- Published: 2024-03-08T17:33:46.000Z
- Modified: 2026-07-07T17:56:41.141Z
- Also known as: GHSA-7945-5mcv-f2pp, PYSEC-2026-1534
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- goToMain libosdp: < 2.4.0
- libosdp (PyPI): before 2.4.0

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/goToMain/libosdp/security/advisories/GHSA-7945-5mcv-f2pp> (web)
- <https://github.com/goToMain/libosdp/commit/24409e98a260176765956ec766a04cb35984fab1> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-52296> (advisory)
- <https://github.com/goToMain/libosdp> (package)
- <https://pypi.org/project/libosdp> (package)
- <https://github.com/advisories/GHSA-7945-5mcv-f2pp> (advisory)

## Sources

- CVE List: [CVE-2024-52296](https://www.cve.org/CVERecord?id=CVE-2024-52296), CVE Terms of Use, modified 2024-11-19
- GitHub Advisory Database: [GHSA-7945-5mcv-f2pp](https://github.com/advisories/GHSA-7945-5mcv-f2pp), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2024-52296](https://nvd.nist.gov/vuln/detail/CVE-2024-52296), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1534](https://osv.dev/vulnerability/PYSEC-2026-1534), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2024-52296 · Whole record: https://cve.day/CVE-2024-52296.json · Rebuilt by cve.day 2026-11-25T22:58:48.093Z
