CVE-2018-16393
published 2018-09-03CVE-2018-16393: Several buffer overflows when handling responses from a Gemsafe V1 Smartcard in gemsafe_get_cert_len in libopensc/pkcs15-gemsafeV1.c in OpenSC before…
PriorityP421medium6.8CVSS 3.0
AVPACLPRNUINSUCHIHAH
EPSS
0.65%
47.2th percentile
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.
Affected
6 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | opensc | < opensc 0.19.0~rc1-1 (bookworm) | opensc 0.19.0~rc1-1 (bookworm) |
| opensc_project | opensc | <= 0.18.0 | — |
| opensc_project | opensc | >= 0 < 0.19.0~rc1-1 | 0.19.0~rc1-1 |
| opensc_project | opensc | >= 0 < 0.19.0~rc1-1 | 0.19.0~rc1-1 |
| opensc_project | opensc | >= 0 < 0.19.0~rc1-1 | 0.19.0~rc1-1 |
| opensc_project | opensc | >= 0 < 0.19.0~rc1-1 | 0.19.0~rc1-1 |
CVSS provenance
nvdv3.06.8MEDIUMCVSS:3.0/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.04.6MEDIUMAV:L/AC:L/Au:N/C:P/I:P/A:P
osv6.8MEDIUM
vendor_debian6.8LOW
vendor_redhat6.8MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-5v2c-mrj8-6f2m: Several buffer overflows when handling responses from a Gemsafe V1 Smartcard in gemsafe_get_cert_len in libopensc/pkcs15-gemsafeV1
ghsa_unreviewed·2022-05-14
CVE-2018-16393 [MEDIUM] CWE-119 GHSA-5v2c-mrj8-6f2m: Several buffer overflows when handling responses from a Gemsafe V1 Smartcard in gemsafe_get_cert_len in libopensc/pkcs15-gemsafeV1
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.
OSV
CVE-2018-16393: Several buffer overflows when handling responses from a Gemsafe V1 Smartcard in gemsafe_get_cert_len in libopensc/pkcs15-gemsafeV1
osv·2018-09-03·CVSS 6.8
CVE-2018-16393 [MEDIUM] CVE-2018-16393: Several buffer overflows when handling responses from a Gemsafe V1 Smartcard in gemsafe_get_cert_len in libopensc/pkcs15-gemsafeV1
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.
Red Hat
opensc: Buffer overflows handling responses from Gemsafe V1 Smartcards in pkcs15-gemsafeV1.c:gemsafe_get_cert_len()
vendor_redhat·2018-09-12·CVSS 6.8
CVE-2018-16393 [MEDIUM] CWE-120 opensc: Buffer overflows handling responses from Gemsafe V1 Smartcards in pkcs15-gemsafeV1.c:gemsafe_get_cert_len()
opensc: Buffer overflows handling responses from Gemsafe V1 Smartcards in pkcs15-gemsafeV1.c:gemsafe_get_cert_len()
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.
Package: opensc (Red Hat Enterprise Linux 8) - Not affected
Debian
CVE-2018-16393: opensc - Several buffer overflows when handling responses from a Gemsafe V1 Smartcard in ...
vendor_debian·2018·CVSS 6.8
CVE-2018-16393 [MEDIUM] CVE-2018-16393: opensc - Several buffer overflows when handling responses from a Gemsafe V1 Smartcard in ...
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.
Scope: local
bookworm: resolved (fixed in 0.19.0~rc1-1)
bullseye: resolved (fixed in 0.19.0~rc1-1)
forky: resolved (fixed in 0.19.0~rc1-1)
sid: resolved (fixed in 0.19.0~rc1-1)
trixie: resolved (fixed in 0.19.0~rc1-1)
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2018-16393 opensc: Buffer overflows handling responses from Gemsafe V1 Smartcards in pkcs15-gemsafeV1.c:gemsafe_get_cert_len() [fedora-all]
bugzilla·2018-09-12·CVSS 6.8
CVE-2018-16393 [MEDIUM] CVE-2018-16393 opensc: Buffer overflows handling responses from Gemsafe V1 Smartcards in pkcs15-gemsafeV1.c:gemsafe_get_cert_len() [fedora-all]
CVE-2018-16393 opensc: Buffer overflows handling responses from Gemsafe V1 Smartcards in pkcs15-gemsafeV1.c:gemsafe_get_cert_len() [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg com
Bugzilla
CVE-2018-16393 opensc: Buffer overflows handling responses from Gemsafe V1 Smartcards in pkcs15-gemsafeV1.c:gemsafe_get_cert_len()
bugzilla·2018-09-12·CVSS 6.8
CVE-2018-16393 [MEDIUM] CVE-2018-16393 opensc: Buffer overflows handling responses from Gemsafe V1 Smartcards in pkcs15-gemsafeV1.c:gemsafe_get_cert_len()
CVE-2018-16393 opensc: Buffer overflows handling responses from Gemsafe V1 Smartcards in pkcs15-gemsafeV1.c:gemsafe_get_cert_len()
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.
External References:
https://www.x41-dsec.de/lab/advisories/x41-2018-002-OpenSC/
Upstream Patch:
https://github.com/OpenSC/OpenSC/commit/360e95d45ac4123255a4c796db96337f332160ad
Discussion:
Created opensc tracking bugs for this issue:
Affects: fedora-all [bug 1628007]
---
This issue has been addressed in the following products:
Red Hat Ente
https://access.redhat.com/errata/RHSA-2019:2154https://github.com/OpenSC/OpenSC/commit/360e95d45ac4123255a4c796db96337f332160adhttps://github.com/OpenSC/OpenSC/releases/tag/0.19.0-rc1https://lists.debian.org/debian-lts-announce/2019/09/msg00009.htmlhttps://www.x41-dsec.de/lab/advisories/x41-2018-002-OpenSC/https://access.redhat.com/errata/RHSA-2019:2154https://github.com/OpenSC/OpenSC/commit/360e95d45ac4123255a4c796db96337f332160adhttps://github.com/OpenSC/OpenSC/releases/tag/0.19.0-rc1https://lists.debian.org/debian-lts-announce/2019/09/msg00009.htmlhttps://www.x41-dsec.de/lab/advisories/x41-2018-002-OpenSC/
2018-09-03
Published