{"id":"CVE-2024-52296","state":"PUBLISHED","title":"libosdp has a null pointer deref in osdp_reply_name","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.","publishedAt":"2024-11-12T15:58:28.434Z","updatedAt":"2024-11-19T17:01:59.287Z","severity":{"score":6.5,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["goToMain libosdp"],"affected":[{"vendor":"goToMain","product":"libosdp","versions":[{"version":"< 2.4.0","status":"affected"}]}],"references":["https://github.com/goToMain/libosdp/security/advisories/GHSA-7945-5mcv-f2pp","https://github.com/goToMain/libosdp/commit/24409e98a260176765956ec766a04cb35984fab1"],"weaknesses":["CWE-476"],"ingestedAt":"2026-10-29T20:08:04.920Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/52xxx/CVE-2024-52296.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-52296","state":"PUBLISHED","datePublished":"2024-11-12T15:58:28.434Z","dateUpdated":"2024-11-19T17:01:59.287Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2024-11-06T19:00:26.395Z"},"containers":{"cna":{"title":"libosdp has a null pointer deref in osdp_reply_name","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"goToMain","product":"libosdp","versions":[{"version":"< 2.4.0","status":"affected"}]}],"references":[{"url":"https://github.com/goToMain/libosdp/security/advisories/GHSA-7945-5mcv-f2pp","name":"https://github.com/goToMain/libosdp/security/advisories/GHSA-7945-5mcv-f2pp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/goToMain/libosdp/commit/24409e98a260176765956ec766a04cb35984fab1","name":"https://github.com/goToMain/libosdp/commit/24409e98a260176765956ec766a04cb35984fab1","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"ADJACENT_NETWORK","availabilityImpact":"HIGH","baseScore":6.5,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-476","lang":"en","description":"CWE-476: NULL Pointer Dereference","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2024-11-12T15:58:28.434Z"},"source":{"advisory":"GHSA-7945-5mcv-f2pp","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-11-19T17:01:45.739953Z","id":"CVE-2024-52296","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-11-19T17:01:59.287Z"}}]}}}