# CVE-2024-45620: Libopensc: incorrect handling of the length of buffers or files in pkcs15init

- Severity: Low 3.9 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:P/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 26% of CVEs (2026-12-01)
- Published: 2024-09-03T21:21:57.892Z
- Modified: 2026-11-25T15:17:35.417Z
- Weaknesses: CWE-120
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: redhat

## Description

A vulnerability was found in the pkcs15-init tool in OpenSC. An attacker could use a crafted USB Device or Smart Card, which would present the system with a specially crafted response to APDUs. When buffers are partially filled with data, initialized parts of the buffer can be incorrectly accessed.

(As written by CVE List.)

## Affected

- libopensc: no versions given
- opensc: no versions given
- redhat enterprise_linux: 7.0; 8.0; 9.0
- opensc_project opensc: before 0.26.0

## Every score

- redhat: CVSS:3.1 3.9 Low `CVSS:3.1/AV:P/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L`
- NVD: CVSS:3.1 3.9 Low `CVSS:3.1/AV:P/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L`

## References

- <https://access.redhat.com/security/cve/CVE-2024-45620> (vdb-entry, vendor-advisory)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2309289> (issue-tracking, vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2024/12/msg00026.html>

## Sources

- CVE List: [CVE-2024-45620](https://www.cve.org/CVERecord?id=CVE-2024-45620), CVE Terms of Use, modified 2026-11-25
- NVD: [CVE-2024-45620](https://nvd.nist.gov/vuln/detail/CVE-2024-45620), Public domain, modified 2026-11-25

---

Page: https://cve.day/CVE-2024-45620 · Whole record: https://cve.day/CVE-2024-45620.json · Rebuilt by cve.day 2026-11-25T23:18:04.444Z
