# CVE-2024-52288: RMAC revert to the beginning of the session in libosdp

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.1
- **CVSS:** 5.1 (v3.1, CNA) `CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.17% (percentile 4, 2026-11-26)
- **CWE:** CWE-924
- **Aliases:** GHSA-xhjw-7vh5-qxqm, PYSEC-2026-1535
- **Published:** 2024-03-08T17:33:51.000Z
- **Modified:** 2026-07-07T17:56:55.480Z

## Who should check

- Projects that depend on PyPI package libosdp (\< 3.0.0)
- Anyone running goToMain libosdp \< 3.0.0

## 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. In affected versions an unexpected \`REPLY\_CCRYPT\` or \`REPLY\_RMAC\_I\` may be introduced into an active stream when they should not be. Once RMAC\_I message can be sent during a session, attacker with MITM access to the communication may intercept the original RMAC\_I reply and save it. While the session continues, the attacker will record all of the replies and save them, till capturing the message to be replied (can be detected by ID, length or time based on inspection of visual activity next to the reader) Once attacker captures a session with the message to be replayed, he stops resetting the connection and waits for signal to perform the replay to of the PD to CP message (ex: by signaling remotely to the MIMT device or setting a specific timing). In order to replay, the attacker will craft a specific RMAC\_I message in the proper seq of the execution, which will result in reverting the RMAC to the beginning of the session. At that phase - attacker can replay all the messages from the beginning of the session. This issue has been addressed in commit \`298576d9\` which is included in release version 3.0.0. Users are advised to upgrade. There are no known workarounds for this vulnerability.

## Affected and fixed versions

- PyPI `libosdp`: affected \< 3.0.0; fixed 3.0.0 (osv)
- goToMain libosdp: \< 3.0.0 (cvelist)

## Mitigation

- Upgrade libosdp to 3.0.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-52288. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-52288.md
Affected: libosdp < 3.0.0
Fixed in: 3.0.0

Steps:
1. Search this machine and project for libosdp (PyPI), goToMain libosdp: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-52288 being exploited?

There is no confirmed exploitation: CVE-2024-52288 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.17% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-52288?

Medium: CVSS 5.1 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2024-52288?

libosdp \< 3.0.0.

### Is there a fix for CVE-2024-52288?

Yes. Fixed in 3.0.0. Upgrade libosdp to 3.0.0 or later.

### How do I check if I'm affected by CVE-2024-52288?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/goToMain/libosdp/security/advisories/GHSA-xhjw-7vh5-qxqm>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2024-52288>
- vendor: <https://github.com/advisories/GHSA-xhjw-7vh5-qxqm>
- patch: <https://github.com/goToMain/libosdp/commit/298576d9214b48214092eebdd892ec77be085e5a>
- other: <https://github.com/goToMain/libosdp>
- other: <https://pypi.org/project/libosdp>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-52288>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-xhjw-7vh5-qxqm> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2026-1535> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2024-52288> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-52288>
