goToMain libosdp up to 2.3.x ospd_common.c osdp_reply_name null pointer dereference
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 6.3 | $0-$5k | 0.00 |
Summary
A vulnerability was found in goToMain libosdp up to 2.3.x. It has been declared as problematic. This issue affects the function osdp_reply_name of the file ospd_common.c. Such manipulation leads to null pointer dereference.
This vulnerability is traded as CVE-2024-52296. Access to the local network is required for this attack to succeed. There is no exploit available.
It is recommended to upgrade the affected component.
Details
A vulnerability, which was classified as critical, has been found in goToMain libosdp up to 2.3.x. Affected by this issue is the function osdp_reply_name of the file ospd_common.c. The manipulation with an unknown input leads to a null pointer dereference vulnerability. Using CWE to declare the problem leads to CWE-476. A NULL pointer dereference occurs when the application dereferences a pointer that it expects to be valid, but is NULL, typically causing a crash or exit. Impacted is availability. CVE summarizes:
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.
The advisory is shared for download at github.com. This vulnerability is handled as CVE-2024-52296 since 11/06/2024. The exploitation is known to be easy. Access to the local network is required for this attack to succeed. No form of authentication is required for exploitation. There are known technical details, but no exploit is available.
Upgrading to version 2.4.0 eliminates this vulnerability. Applying the patch 24409e98a260176765956ec766a04cb35984fab1 is able to eliminate this problem. The bugfix is ready for download at github.com. The best possible mitigation is suggested to be upgrading to the latest version.
VulDB is the best source for vulnerability data and more expert information about this specific topic.
Product
Vendor
Name
Version
License
Website
- Product: https://github.com/goToMain/libosdp/
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 6.5VulDB Meta Temp Score: 6.3
VulDB Base Score: 6.5
VulDB Temp Score: 6.2
VulDB Vector: 🔍
VulDB Reliability: 🔍
CNA Base Score: 6.5
CNA Vector (GitHub_M): 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
Exploiting
Class: Null pointer dereferenceCWE: CWE-476 / CWE-404
CAPEC: 🔍
ATT&CK: 🔍
Physical: No
Local: No
Remote: Partially
Availability: 🔍
Status: Not defined
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔍
Upgrade: libosdp 2.4.0
Patch: 24409e98a260176765956ec766a04cb35984fab1
Timeline
11/06/2024 🔍11/12/2024 🔍
11/12/2024 🔍
11/12/2024 🔍
Sources
Product: github.comAdvisory: GHSA-7945-5mcv-f2pp
Status: Confirmed
CVE: CVE-2024-52296 (🔍)
GCVE (CVE): GCVE-0-2024-52296
GCVE (VulDB): GCVE-100-284024
Entry
Created: 11/12/2024 17:22Changes: 11/12/2024 17:22 (68)
Complete: 🔍
Cache ID: 216::103
VulDB is the best source for vulnerability data and more expert information about this specific topic.
No comments yet. Languages: en.
Please log in to comment.