Skip to content
Noroxi
CVE-2018-16393· NVD / CVE Program· CNA mitre

Several buffer overflows when handling responses from a Gemsafe V1 Smartcard in gemsafe_get_cert_len in libopensc/pkcs15-gemsafeV1.c in Open

Several buffer overflows when handling responses from a Gemsafe V1 Smartcard in gemsafe_get_cert_len in libopensc/pkcs15-gemsafeV1.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.

MediumCVSS 6.8 · v3.0—No exploit Fix available
Published
Sep 3, 2018
Updated
Jun 16, 2026
EPSS
0.6% · 49th percentile
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

Action score

27

Monitor

Low priority for now.

CVSS
27 / 40 · 6.8 / 10
CISA KEV
0 / 30 · Not listed
EPSS
0 / 30 · 0.6%

Affected systems

VendorProduct
opensc projectopensc

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • opensc project openscup to 0.18.0 inclusive

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Debian:12openscbefore 0.19.0~rc1-10.19.0~rc1-1
Debian:8openscbefore 0.16.0-3+deb8u10.16.0-3+deb8u1
openSUSE:Tumbleweedopenscbefore 0.21.0-2.20.21.0-2.2
Red Hat:enterprise_linux:7::clientopenscbefore 0:0.19.0-3.el70:0.19.0-3.el7
Red Hat:enterprise_linux:7::clientopensc-debuginfobefore 0:0.19.0-3.el70:0.19.0-3.el7
SUSE:Linux Enterprise Desktop 12 SP3openscbefore 0.13.0-3.3.20.13.0-3.3.2
SUSE:Linux Enterprise Module for Basesystem 15openscbefore 0.18.0-3.8.10.18.0-3.8.1
SUSE:Linux Enterprise Software Development Kit 11 SP4openscbefore 0.11.6-5.27.3.10.11.6-5.27.3.1

Other highest-scoring records for the same primary product.

  • CVE-2019-6502sc_context_create in ctx.c in libopensc in OpenSC 0.19.0 has a memory leak, as demonstrated by a call from eidenv.
    31Monitor
  • CVE-2021-34193Stack overflow vulnerability in OpenSC smart card middleware before 0.23 via crafted responses to APDUs.
    30Monitor
  • CVE-2019-16058An issue was discovered in the pam_p11 component 0.2.0 and 0.3.0 for OpenSC.
    30Monitor
  • CVE-2023-2977A vulnerbility was found in OpenSC.
    28Monitor
  • CVE-2025-66215OpenSC: Stack-buffer-overflow WRITE in card-oberthur
    27Monitor
  • CVE-2025-66038OpenSC: `sc_compacttlv_find_tag` can return out-of-bounds pointers
    27Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
debian:opensc0.19.0~rc1-1 · Debian:12Package registry (OSV)
opensuse:opensc0.21.0-2.2 · openSUSE:TumbleweedPackage registry (OSV)
red hat:opensc0:0.19.0-3.el7 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:opensc-debuginfo0:0.19.0-3.el7 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
suse:opensc0.11.6-5.27.3.1 · SUSE:Linux Enterprise Software Development Kit 11 SP4Package registry (OSV)

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

No nightly-computed relations.

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

No known public program.

Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).

Technical details

Attack conditions

  • Physical access to the device is required.
  • No account or password is required.
  • No user action is required.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
high · data can be read
Integrity
high · data or configuration can be modified
Availability
high · the service can be disrupted
Attack vector
Physical
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality impact
High
Integrity impact
High
Availability impact
High

CVSS vector

CVSS:3.0/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

nvd-primary

Noroxi analysis

No Noroxi analysis for this record yet

We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.

We use this product, ask for help

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records