Home / Opensc Project / Opensc / CVE-2018-16421
CVE-2018-16421: is it exploited, and which versions of Opensc Project Opensc are affected and fixed?
CVE-2018-16421 is a memory corruption (buffer overflow) vulnerability in Opensc Project Opensc. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 11:38 UTC). Affected: opensc through 0.18.0 (NVD). No fixed version is listed in the sources yet; check the vendor advisory. Severity: Medium (6.6, CVSS 3.0, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 11:38 UTC, CVE record November 19, 2026, 07:17 UTC and NVD November 19, 2026, 08:29 UTC.
What is CVE-2018-16421?
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.
From the CVE record by mitre, last updated August 5, 2024, 10:24 UTC.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| opensc project | opensc | through 0.18.0 | application |
NVD analysis (status Modified), last modified June 17, 2026, 01:44 UTC.
How severe is CVE-2018-16421?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 6.6 | CVSS 3.0 | CVSS:3.0/AV:P/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | NVD |
| Medium 4.6 | CVSS 2.0 | AV:L/AC:L/Au:N/C:P/I:P/A:P | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2018-16421 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 0.69% probability of exploitation activity in the next 30 days, percentile 54.2 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
Where are the vendor advisories and references?
- https://github.com/OpenSC/OpenSC/commit/360e95d45ac4123255a4c796db96337f332160ad#diff-848b13147a344ba2c6361d91ca77feb1 x_refsource_MISC
- https://github.com/OpenSC/OpenSC/releases/tag/0.19.0-rc1 x_refsource_MISC
- https://www.x41-dsec.de/lab/advisories/x41-2018-002-OpenSC/ x_refsource_MISC
- RHSA-2019:2154 vendor-advisory, x_refsource_REDHAT
- [debian-lts-announce] 20190911 [SECURITY] [DLA 1916-1] opensc security update mailing-list, x_refsource_MLIST
When was it published, and where is the official record?
- Reserved
- September 3, 2018
- Published
- September 4, 2018, 00:00 UTC
- CVE record updated
- August 5, 2024, 10:24 UTC by mitre
- NVD
- Modified, last modified June 17, 2026, 01:44 UTC
- Last checked
- CVE list November 19, 2026, 07:17 UTC; NVD November 19, 2026, 08:29 UTC; KEV December 3, 2026, 11:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Opensc?
- Aug 22, 2023CVE-2021-34193 Opensc Project Opensc: out-of-bounds write (memory corruption)
- Oct 6, 2020CVE-2020-26570 Opensc Project Opensc: out-of-bounds write (memory corruption)
- Oct 6, 2020CVE-2020-26571 Opensc Project Opensc: out-of-bounds write (memory corruption)
- Oct 6, 2020CVE-2020-26572 Opensc Project Opensc: out-of-bounds write (memory corruption)
- Apr 29, 2020CVE-2019-20792 Opensc Project Opensc: double free
- Dec 1, 2019CVE-2019-19479 Opensc Project Opensc: out-of-bounds read
- Dec 1, 2019CVE-2019-19481 Opensc Project Opensc: memory corruption (buffer overflow)
- Dec 1, 2019CVE-2019-19480 Opensc Project Opensc: operation on a Resource after Expiration or Release
Questions about CVE-2018-16421
Is CVE-2018-16421 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 11:38 UTC. FIRST's EPSS gives it a 0.69% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Opensc Project Opensc are affected by CVE-2018-16421?
opensc through 0.18.0, per the NVD. The tables above give every range the sources list.
Which version fixes CVE-2018-16421?
None of the sources (the CVE record, the NVD and GitHub's reviewed advisories) lists a fixed version yet. Check the vendor's advisory in the references.
How severe is CVE-2018-16421?
Medium (6.6, CVSS 3.0, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2018-16421?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.