Every CVE Search/ Get API key

CVE-2019-6502

sc_context_create in ctx.c in libopensc in OpenSC 0.19.0 has a memory leak, as demonstrated by a...

7.5 HighFix available

CVE-2019-6502 is a high vulnerability (CVSS 7.5) in Opensc Project Opensc, published January 22, 2019. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.20%, the 82nd percentile. Fixed in opensc 0.20.0-r0.

sc_context_create in ctx.c in libopensc in OpenSC 0.19.0 has a memory leak, as demonstrated by a call from eidenv.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
None
Integrity
None
Availability
High

Exploit likelihood

2.20%Up 1.6 points since Apr 14, 2021
90%50%10%1%

What each source reports

NVD Score used 7.5

sc_context_create in ctx.c in libopensc in OpenSC 0.19.0 has a memory leak, as demonstrated by a call from eidenv.

Record
CVE-2019-6502
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.0
5.0 MediumAV:N/AC:L/Au:N/C:N/I:N/A:P
Weakness
CWE-401
Updated
2026-11-02
CVE List No score

sc_context_create in ctx.c in libopensc in OpenSC 0.19.0 has a memory leak, as demonstrated by a call from eidenv.

Record
CVE-2019-6502
Updated
2026-11-02
EUVDEUVD-2019-16061 No score

sc_context_create in ctx.c in libopensc in OpenSC 0.19.0 has a memory leak, as demonstrated by a call from eidenv.

Record
EUVD-2019-16061
Updated
2026-11-03
GitHub AdvisoriesGHSA-wfg8-cwx5-w8xc 7.5

sc_context_create in ctx.c in libopensc in OpenSC 0.19.0 has a memory leak, as demonstrated by a...

sc_context_create in ctx.c in libopensc in OpenSC 0.19.0 has a memory leak, as demonstrated by a call from eidenv.

Record
GHSA-wfg8-cwx5-w8xc
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-401
Updated
2026-11-02
OSVALPINE-CVE-2019-6502 7.5

sc_context_create in ctx.c in libopensc in OpenSC 0.19.0 has a memory leak, as demonstrated by a call from eidenv.

Record
ALPINE-CVE-2019-6502
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-03
OSVBELL-CVE-2019-6502 7.5

CVE-2019-6502 does not affect BellSoft software

Record
BELL-CVE-2019-6502
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
Show 8 moreShow less
OSV 7.5

sc_context_create in ctx.c in libopensc in OpenSC 0.19.0 has a memory leak, as demonstrated by a call from eidenv.

Record
CVE-2019-6502
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVDEBIAN-CVE-2019-6502 7.5

sc_context_create in ctx.c in libopensc in OpenSC 0.19.0 has a memory leak, as demonstrated by a call from eidenv.

Record
DEBIAN-CVE-2019-6502
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2019-6502 7.5

sc_context_create in ctx.c in libopensc in OpenSC 0.19.0 has a memory leak, as demonstrated by a call from eidenv.

Record
UBUNTU-CVE-2019-6502
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVMGASA-2020-0026 No score

Updated opensc packages fix security vulnerability

Updated opensc packages fix security vulnerabilities:

sc_context_create in ctx.c in libopensc in OpenSC 0.19.0 has a memory leak, as demonstrated by a call from eidenv (CVE-2019-6502).

OpenSC before 0.20.0-rc1 has an out-of-bounds access of an ASN.1 Bitstring in decode_bit_string in libopensc/asn1.c (CVE-2019-15945).

OpenSC before 0.20.0-rc1 has an out-of-bounds access of an ASN.1 Octet string in asn1_decode_entry in libopensc/asn1.c (CVE-2019-15946).

An issue was discovered in OpenSC through 0.19.0 and 0.20.x through 0.20.0-rc3. libopensc/card-setcos.c has an incorrect read operation during parsing of a SETCOS file attribute (CVE-2019-19479).

An issue was discovered in OpenSC through 0.19.0 and 0.20.x through 0.20.0-rc3. libopensc/pkcs15-prkey.c has an incorrect free operation in sc_pkcs15_decode_prkdf_entry (CVE-2019-19480).

An issue was discovered in OpenSC through 0.19.0 and 0.20.x through 0.20.0-rc3. libopensc/card-cac1.c mishandles buffer limits for CAC certificates (CVE-2019-19481).

The opensc package has been updated to version 0.20.0, which has fixes for these issues and other improvements.

Record
MGASA-2020-0026
Updated
2026-11-02
OSVopenSUSE-SU-2024:11123-1 No score

opensc-0.21.0-2.2 on GA media

These are all security issues fixed in the opensc-0.21.0-2.2 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:11123-1
Updated
2026-11-02
OSVSUSE-SU-2020:3133-1 No score

Security update for opensc

This update for opensc fixes the following issues:

Security issue fixed:

  • CVE-2019-6502: Fixed a memory leak in sc_context_create() (bsc#1122756).
Record
SUSE-SU-2020:3133-1
Updated
2026-11-02
OSVSUSE-SU-2022:1041-1 No score

Security update for opensc

This update for opensc fixes the following issues:

Security issues fixed:

  • CVE-2021-42780: Fixed use after return in insert_pin() (bsc#1192005).
  • CVE-2021-42779: Fixed use after free in sc_file_valid() (bsc#1191992).
  • CVE-2021-42781: Fixed multiple heap buffer overflows in pkcs15-oberthur.c (bsc#1192000).
  • CVE-2021-42782: Stack buffer overflow issues in various places (bsc#1191957).
  • CVE-2019-6502: Fixed a memory leak in sc_context_create() (bsc#1122756).
  • CVE-2020-26570: Fixed a heap based buffer overflow in sc_oberthur_read_file (bsc#1177364).
  • CVE-2020-26572: Prevent out of bounds write (bsc#1177378)
  • CVE-2020-26571: gemsafe GPK smart card software driver stack-based buffer overflow (bsc#1177380)
  • CVE-2019-15946: out-of-bounds access of an ASN.1 Octet string in asn1_decode_entry (bsc#1149747)
  • CVE-2019-19479: incorrect read operation during parsing of a SETCOS file attribute (bsc#1158256)
  • CVE-2019-15945: Fixed an out-of-bounds access of an ASN.1 Bitstring in decode_bit_string (bsc#1149746).
  • CVE-2019-19481: Fixed an improper handling of buffer limits for CAC certificates (bsc#1158305).
  • CVE-2019-20792: Fixed a double free in coolkey_free_private_data (bsc#1170809).

Non-security issues fixed:

  • Fixes segmentation fault in 'pkcs11-tool.c'. (bsc#1114649)
Record
SUSE-SU-2022:1041-1
Updated
2026-11-02
OSVSUSE-SU-2022:4196-1 No score

Security update for opensc

This update for opensc fixes the following issues:

  • CVE-2019-6502: Fixed memory leak in sc_context_create in ctx.c (bsc#1122756).
Record
SUSE-SU-2022:4196-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
opensc
Alpine:v3.11
before 0.20.0-r0
0.20.0-r0
opensc
Alpine:v3.12
before 0.20.0-r0
0.20.0-r0
opensc
Alpine:v3.13
before 0.20.0-r0
0.20.0-r0
opensc
Alpine:v3.14
before 0.20.0-r0
0.20.0-r0
opensc
Alpine:v3.15
before 0.20.0-r0
0.20.0-r0
opensc
Alpine:v3.16
before 0.20.0-r0
0.20.0-r0
opensc
Alpine:v3.17
before 0.20.0-r0
0.20.0-r0
opensc
Alpine:v3.18
before 0.20.0-r0
0.20.0-r0
opensc
Alpine:v3.19
before 0.20.0-r0
0.20.0-r0
opensc
Alpine:v3.20
before 0.20.0-r0
0.20.0-r0
Show 23 moreShow less
Affected packages
PackageAffectedFixed
opensc
Alpine:v3.21
before 0.20.0-r0
0.20.0-r0
opensc
Alpine:v3.22
before 0.20.0-r0
0.20.0-r0
opensc
Alpine:v3.23
before 0.20.0-r0
0.20.0-r0
opensc
Alpine:v3.24
before 0.20.0-r0
0.20.0-r0
opensc
Debian:12
before 0.20.0-1
0.20.0-1
opensc
Debian:13
before 0.20.0-1
0.20.0-1
opensc
Debian:14
before 0.20.0-1
0.20.0-1
opensc
Debian:10
before 0.19.0-1+deb10u2, plus listed versions
0.19.0-10.19.0-1+deb10u1
0.19.0-1+deb10u2
opensc
Mageia:7
before 0.20.0-1.mga7
0.20.0-1.mga7
opensc
SUSE:Linux Enterprise Server 12 SP5
before 0.13.0-3.6.27
0.13.0-3.6.27
opensc
SUSE:Linux Enterprise Server for SAP Applications 12 SP5
before 0.13.0-3.6.27
0.13.0-3.6.27
opensc
SUSE:Linux Enterprise High Performance Computing 15-ESPOS
before 0.18.0-150000.3.23.1
0.18.0-150000.3.23.1
opensc
SUSE:Linux Enterprise High Performance Computing 15-LTSS
before 0.18.0-150000.3.23.1
0.18.0-150000.3.23.1
opensc
SUSE:Linux Enterprise Server 15-LTSS
before 0.18.0-150000.3.23.1
0.18.0-150000.3.23.1
opensc
SUSE:Linux Enterprise Server for SAP Applications 15
before 0.18.0-150000.3.23.1
0.18.0-150000.3.23.1
opensc
SUSE:Linux Enterprise Module for Basesystem 15 SP3
before 0.19.0-150100.3.19.1
0.19.0-150100.3.19.1
opensc
SUSE:Linux Enterprise Micro 5.1
before 0.19.0-150100.3.19.1
0.19.0-150100.3.19.1
opensc
SUSE:Linux Enterprise Micro 5.2
before 0.19.0-150100.3.19.1
0.19.0-150100.3.19.1
opensc
openSUSE:Leap Micro 5.2
before 0.19.0-150100.3.19.1
0.19.0-150100.3.19.1
opensc
openSUSE:Leap 15.3
before 0.19.0-150100.3.19.1
0.19.0-150100.3.19.1
opensc
Ubuntu:Pro:16.04:LTS
All versions, plus listed versions
0.15.0-1ubuntu10.15.0-1ubuntu1+esm10.15.0-1ubuntu1+esm20.15.0-1ubuntu1+esm3
None known
opensc
Ubuntu:Pro:18.04:LTS
All versions, plus listed versions
0.17.0-10.17.0-20.17.0-2build10.17.0-30.17.0-3ubuntu0.1~esm10.17.0-3ubuntu0.1~esm20.17.0-3ubuntu0.1~esm3
None known
opensc
openSUSE:Tumbleweed
before 0.21.0-2.2
0.21.0-2.2

History

History
WhenChangedSources
2026-11-03affected, aliases, referencesOSV
2026-11-03aliasesEUVD
2026-11-02createdCVE List, GitHub Advisories, NVD, OSV

References

Show 52 moreShow less
MoveEnter Open