CVE-2024-52296 json
libosdp has a null pointer deref in osdp_reply_name
published 2024-03-08 2 y ago modified 2026-07-07 4 mo ago also GHSA-7945-5mcv-f2pp , PYSEC-2026-1534 , EUVD-2024-0856
- cvss
- 6.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 28%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 23 mo ago
Exploit prediction
0.35% chance of exploitation in the next 30 days, higher than 28% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.5 | CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | 3.1 | 6.5 | CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 3.1 | 6.5 | CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | libosdp | <2.4.0 |
2.4.0 |
Affected products
- goToMain libosdp
Classification
- Weakness
-
- CWE-476 NULL Pointer Dereference
References
-
github.com
/goToMain/libosdp/commit/24409e98a260176765956ec766a04cb35984fab1
web
-
github.com
/goToMain/libosdp/security/advisories/GHSA-7945-5mcv-f2pp
web
-
nvd.nist.gov
/vuln/detail/CVE-2024-52296
advisory
-
github.com
/goToMain/libosdp
package
-
pypi.org
/project/libosdp
package
-
github.com
/advisories/GHSA-7945-5mcv-f2pp
advisory
Sources
- CVE List CVE-2024-52296
- GitHub Advisory GHSA-7945-5mcv-f2pp
- NVD CVE-2024-52296
- OSV PYSEC-2026-1534
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.