{"id":"CVE-2024-52296","aliases":["CVE-2024-52296","GHSA-7945-5mcv-f2pp","PYSEC-2026-1534"],"related":[],"kind":"vulnerability","state":"published","title":"libosdp has a null pointer deref in osdp_reply_name","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Issue:\nAt 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.\n\n### Attack:\nAs this logic is not limited to a secure connection, attacker may trigger this vulnerability without any prior knowledge.\n\n### Impact\nDenial of Service\n\n### Patch\nThe issue has been patched in 24409e98a260176765956ec766a04cb35984fab1","format":"markdown","source":"ghsa"},{"lang":"es","text":"libosdp es una implementación de IEC 60839-11-5 OSDP (Open Supervised Device Protocol) y proporciona una librería C con soporte para C++, Rust y Python3. En ospd_common.c, en la función osdp_reply_name, cualquier id de respuesta entre REPLY_ACK y REPLY_XRD es válido, pero la matriz de nombres no declara todo el rango. En el caso de un id de respuesta indefinido dentro del rango, el nombre será nulo (nombre = nombres[id_de_respuesta - REPLY_ACK];). Un nombre nulo provocará un bloqueo en la siguiente línea: si (nombre[0] == '\\0') ya que null[0] no es válido. Como esta lógica no se limita a una conexión segura, el atacante puede activar esta vulnerabilidad sin ningún conocimiento previo. Este problema se solucionó en 2.4.0.","source":"nvd"}],"published":"2024-03-08T17:33:46.000Z","modified":"2026-07-07T17:56:41.141Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"version":"< 2.4.0","status":"affected"}],"vendor":"goToMain","product":"libosdp","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.4.0"}],"ecosystem":"PyPI","package":"libosdp","purl":"pkg:pypi/libosdp","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.4.0"}],"ecosystem":"PyPI","package":"libosdp","purl":"pkg:pypi/libosdp","source":"pysec"}],"references":[{"url":"https://github.com/goToMain/libosdp/security/advisories/GHSA-7945-5mcv-f2pp","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/goToMain/libosdp/commit/24409e98a260176765956ec766a04cb35984fab1","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-52296","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/goToMain/libosdp","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/libosdp","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-7945-5mcv-f2pp","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-11-19T17:01:45.739Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-52296","url":"https://www.cve.org/CVERecord?id=CVE-2024-52296","licence":"CVE Terms of Use","modified":"2024-11-19T17:01:59.287Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-7945-5mcv-f2pp","url":"https://github.com/advisories/GHSA-7945-5mcv-f2pp","licence":"CC-BY-4.0","modified":"2026-07-07T17:56:41.141Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-52296","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-52296","licence":"Public domain","modified":"2026-06-17T08:06:57.680Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1534","url":"https://osv.dev/vulnerability/PYSEC-2026-1534","licence":"CC-BY-4.0","modified":"2026-07-07T17:46:51.294Z"}],"updatedAt":"2026-11-25T22:58:48.093Z","epss":{"score":0.00347,"percentile":0.30342,"date":"2026-12-01T12:00:22.000Z"}}