# CVE-2018-16421: Several buffer overflows when handling responses from a CAC Card in cacgetserialnrfromCUID in libopensc/card-cac.c in OpenSC before 0.19.0-…

- Severity: Medium 6.6 (CVSS:3.0, scored by NVD) `CVSS:3.0/AV:P/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- 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.69%, higher than 54% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2018-09-04T00:00:00.000Z
- Modified: 2026-06-17T01:44:15.490Z
- Weaknesses: CWE-119
- Assigned by: mitre

## Description

Several buffer overflows when handling responses from a CAC Card in cac_get_serial_nr_from_CUID in libopensc/card-cac.c in OpenSC before 0.19.0-rc1 could be used by attackers able to supply crafted smartcards to cause a denial of service (application crash) or possibly have unspecified other impact.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- opensc_project opensc: up to 0.18.0

## Every score

- NVD: CVSS:3.0 6.6 Medium `CVSS:3.0/AV:P/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 4.6 Medium `AV:L/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://www.x41-dsec.de/lab/advisories/x41-2018-002-OpenSC/> (exploit, third-party-advisory)
- <https://github.com/OpenSC/OpenSC/commit/360e95d45ac4123255a4c796db96337f332160ad#diff-848b13147a344ba2c6361d91ca77feb1> (patch, third-party-advisory)
- <https://github.com/OpenSC/OpenSC/releases/tag/0.19.0-rc1> (patch, release-notes, third-party-advisory)
- <https://access.redhat.com/errata/RHSA-2019:2154> (vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2019/09/msg00009.html> (mailing-list)

## Sources

- CVE List: [CVE-2018-16421](https://www.cve.org/CVERecord?id=CVE-2018-16421), CVE Terms of Use, modified 2024-08-05
- NVD: [CVE-2018-16421](https://nvd.nist.gov/vuln/detail/CVE-2018-16421), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2018-16421 · Whole record: https://cve.day/CVE-2018-16421.json · Rebuilt by cve.day 2026-11-25T22:57:39.474Z
