{"id":"CVE-2019-20792","aliases":["DEBIAN-CVE-2019-20792","EUVD-2019-11329","GHSA-m2w8-wqfw-qchx","RHSA-2020:4483","SUSE-SU-2021:1168-1","SUSE-SU-2022:1041-1","UBUNTU-CVE-2019-20792","openSUSE-SU-2021:0565-1","openSUSE-SU-2024:11643-1"],"status":"published","title":"OpenSC before 0.20.0 has a double free in coolkey_free_private_data because coolkey_add_object in...","description":"OpenSC before 0.20.0 has a double free in coolkey_free_private_data because coolkey_add_object in libopensc/card-coolkey.c lacks a uniqueness check.","severity":{"version":"3.1","score":6.8,"vector":"CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-10","score":0.00657,"percentile":0.51771,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-415"],"published":"2020-04-29T03:53:57Z","modified":"2026-10-20T13:43:01Z","fixes":[{"ecosystem":"Debian:12","package":"opensc","fixed_in":["0.20.0-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"opensc","fixed_in":["0.20.0-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"opensc","fixed_in":["0.20.0-1"],"sources":["osv"]},{"ecosystem":"openSUSE:Tumbleweed","package":"opensc","fixed_in":["0.22.0-3.1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"opensc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.20.0-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"opensc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.20.0-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"opensc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.20.0-1"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:8::baseos","package":"opensc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:0.20.0-2.el8"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:8::baseos","package":"opensc-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:0.20.0-2.el8"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:8::baseos","package":"opensc-debugsource","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:0.20.0-2.el8"}]}],"bundled":5},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP2","package":"opensc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.19.0-3.7.1"}]}],"bundled":8},{"source":"osv","ecosystem":"SUSE:Linux Enterprise High Performance Computing 15-ESPOS","package":"opensc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.18.0-150000.3.23.1"}]}],"bundled":13},{"source":"osv","ecosystem":"SUSE:Linux Enterprise High Performance Computing 15-LTSS","package":"opensc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.18.0-150000.3.23.1"}]}],"bundled":13},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 15-LTSS","package":"opensc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.18.0-150000.3.23.1"}]}],"bundled":13},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15","package":"opensc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.18.0-150000.3.23.1"}]}],"bundled":13},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"opensc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.17.0-1","0.17.0-2","0.17.0-2build1","0.17.0-3","0.17.0-3ubuntu0.1~esm1","0.17.0-3ubuntu0.1~esm2","0.17.0-3ubuntu0.1~esm3"]},{"source":"osv","ecosystem":"openSUSE:Leap 15.2","package":"opensc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.19.0-lp152.3.3.1"}]}],"bundled":8},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"opensc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.22.0-3.1"}]}]}],"products":[{"vendor":"opensc_project","product":"opensc"}],"references":[{"url":"https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=19208","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence","report"]},{"url":"https://github.com/OpenSC/OpenSC/commit/c246f6f69a749d4f68626b40795a4f69168008f4","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","report"]},{"url":"https://github.com/OpenSC/OpenSC/compare/0.19.0...0.20.0","tags":["x_refsource_MISC","x_transferred","Release Notes","Third Party Advisory","advisory","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-20792","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-m2w8-wqfw-qchx"},{"url":"https://security-tracker.debian.org/tracker/CVE-2019-20792","tags":["advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2020:4483","tags":["advisory"]},{"url":"https://access.redhat.com/security/updates/classification/#moderate","tags":["article"]},{"url":"https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/8.3_release_notes/index","tags":["article"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1765222","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1765229","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1782519","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1782955","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1810660","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1830856","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1837946","tags":["report"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2020/rhsa-2020_4483.json","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2019-15945","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2019-15945","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-15945","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2019-15946","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2019-15946","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-15946","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2019-19479","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2019-19479","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-19479","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2019-19481","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2019-19481","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-19481","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2019-20792","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2019-20792","tags":["advisory","report"]},{"url":"https://www.suse.com/support/update/announcement/2021/suse-su-20211168-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1149746","tags":["report"]},{"url":"https://bugzilla.suse.com/1149747","tags":["report"]},{"url":"https://bugzilla.suse.com/1158256","tags":["report"]},{"url":"https://bugzilla.suse.com/1158307","tags":["report"]},{"url":"https://bugzilla.suse.com/1170809","tags":["report"]},{"url":"https://bugzilla.suse.com/1177364","tags":["report"]},{"url":"https://bugzilla.suse.com/1177378","tags":["report"]},{"url":"https://bugzilla.suse.com/1177380","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2019-15945","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2019-15946","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2019-19479","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2019-19480","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2019-20792","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2020-26570","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2020-26571","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2020-26572","tags":["web"]},{"url":"https://www.suse.com/support/update/announcement/2022/suse-su-20221041-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1114649","tags":["report"]},{"url":"https://bugzilla.suse.com/1122756","tags":["report"]},{"url":"https://bugzilla.suse.com/1158305","tags":["report"]},{"url":"https://bugzilla.suse.com/1191957","tags":["report"]},{"url":"https://bugzilla.suse.com/1191992","tags":["report"]},{"url":"https://bugzilla.suse.com/1192000","tags":["report"]},{"url":"https://bugzilla.suse.com/1192005","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2019-19481","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2019-6502","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2021-42779","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2021-42780","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2021-42781","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2021-42782","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2019-20792","tags":["report"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/JELZKRVEJGYE74DM3GTNHNTVZBQHK5DJ/","tags":["advisory"]},{"url":"","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2019-20792","description":"OpenSC before 0.20.0 has a double free in coolkey_free_private_data because coolkey_add_object in libopensc/card-coolkey.c lacks a uniqueness check.","status":"published","published":"2020-04-29T03:53:57Z","modified":"2024-08-05T02:53:09.161Z","updated_at":"2026-11-02T14:20:17.431882Z"}],"euvd":[{"id":"EUVD-2019-11329","description":"OpenSC before 0.20.0 has a double free in coolkey_free_private_data because coolkey_add_object in libopensc/card-coolkey.c lacks a uniqueness check.","status":"published","published":"2020-04-29T03:53:57Z","modified":"2024-08-05T02:53:09Z","updated_at":"2026-11-03T02:40:20.727542Z"}],"ghsa":[{"id":"GHSA-m2w8-wqfw-qchx","title":"OpenSC before 0.20.0 has a double free in coolkey_free_private_data because coolkey_add_object in...","description":"OpenSC before 0.20.0 has a double free in coolkey_free_private_data because coolkey_add_object in libopensc/card-coolkey.c lacks a uniqueness check.","status":"published","published":"2022-05-24T17:16:50Z","modified":"2023-01-29T05:02:23Z","updated_at":"2026-11-02T14:45:04.348172Z"}],"nvd":[{"id":"CVE-2019-20792","description":"OpenSC before 0.20.0 has a double free in coolkey_free_private_data because coolkey_add_object in libopensc/card-coolkey.c lacks a uniqueness check.","status":"published","published":"2020-04-29T04:15:17.17Z","modified":"2026-06-17T02:31:12.297Z","cvss":[{"version":"3.1","score":6.8,"vector":"CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"medium","assessor":"primary"},{"version":"2.0","score":4.6,"vector":"AV:L/AC:L/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-415"],"updated_at":"2026-11-02T14:05:46.451008Z"}],"osv":[{"id":"CVE-2019-20792","description":"OpenSC before 0.20.0 has a double free in coolkey_free_private_data because coolkey_add_object in libopensc/card-coolkey.c lacks a uniqueness check.","status":"published","published":"2020-04-29T04:15:17.17Z","modified":"2026-10-20T13:43:01.78885756Z","cvss":[{"version":"3.1","score":6.8,"vector":"CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"medium"}],"updated_at":"2026-11-02T15:44:12.010761Z"},{"id":"DEBIAN-CVE-2019-20792","description":"OpenSC before 0.20.0 has a double free in coolkey_free_private_data because coolkey_add_object in libopensc/card-coolkey.c lacks a uniqueness check.","status":"published","published":"2020-04-29T04:15:17.17Z","modified":"2026-09-21T07:03:17.687091374Z","cvss":[{"version":"3.1","score":6.8,"vector":"CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"medium"}],"updated_at":"2026-11-02T15:45:32.221385Z"},{"id":"RHSA-2020:4483","title":"Red Hat Security Advisory: opensc security, bug fix, and enhancement update","status":"published","published":"2024-09-16T04:06:26Z","modified":"2025-11-22T12:11:09Z","cvss":[{"version":"3.1","score":6.4,"vector":"CVSS:3.1/AV:P/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"medium"}],"updated_at":"2026-11-02T15:53:07.57369Z"},{"id":"UBUNTU-CVE-2019-20792","description":"OpenSC before 0.20.0 has a double free in coolkey_free_private_data because coolkey_add_object in libopensc/card-coolkey.c lacks a uniqueness check.","status":"published","published":"2020-04-29T04:15:00Z","modified":"2025-09-08T16:45:49Z","cvss":[{"version":"3.1","score":6.8,"vector":"CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"medium"}],"updated_at":"2026-11-02T15:54:21.213407Z"},{"id":"openSUSE-SU-2021:0565-1","title":"Security update for opensc","description":"This update for opensc fixes the following issues:\n\t  \n- CVE-2019-15945: Fixed an out-of-bounds access of an ASN.1 Bitstring in decode_bit_string (bsc#1149746).\n- CVE-2019-15946: Fixed an out-of-bounds access of an ASN.1 Octet string in asn1_decode_entry (bsc#1149747)\n- CVE-2019-19479: Fixed an incorrect read operation during parsing of a SETCOS file attribute (bsc#1158256)\n- CVE-2019-19480: Fixed an improper free operation in sc_pkcs15_decode_prkdf_entry (bsc#1158307).\n- CVE-2019-20792: Fixed a double free in coolkey_free_private_data (bsc#1170809). \n- CVE-2020-26570: Fixed a buffer overflow in sc_oberthur_read_file (bsc#1177364).\n- CVE-2020-26571: Fixed a stack-based buffer overflow in gemsafe GPK smart card software driver (bsc#1177380)\n- CVE-2020-26572: Fixed a stack-based buffer overflow in tcos_decipher (bsc#1177378).\n\nThis update was imported from the SUSE:SLE-15-SP1:Update update project.","status":"published","published":"2021-04-16T18:05:41Z","modified":"2026-02-04T03:08:59.279184Z","updated_at":"2026-11-02T16:58:31.879684Z"},{"id":"openSUSE-SU-2024:11643-1","title":"opensc-0.22.0-3.1 on GA media","description":"These are all security issues fixed in the opensc-0.22.0-3.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T04:04:28.258331Z","updated_at":"2026-11-02T16:58:35.195147Z"},{"id":"SUSE-SU-2021:1168-1","title":"Security update for opensc","description":"This update for opensc fixes the following issues:\n\t  \n- CVE-2019-15945: Fixed an out-of-bounds access of an ASN.1 Bitstring in decode_bit_string (bsc#1149746).\n- CVE-2019-15946: Fixed an out-of-bounds access of an ASN.1 Octet string in asn1_decode_entry (bsc#1149747)\n- CVE-2019-19479: Fixed an incorrect read operation during parsing of a SETCOS file attribute (bsc#1158256)\n- CVE-2019-19480: Fixed an improper free operation in sc_pkcs15_decode_prkdf_entry (bsc#1158307).\n- CVE-2019-20792: Fixed a double free in coolkey_free_private_data (bsc#1170809). \n- CVE-2020-26570: Fixed a buffer overflow in sc_oberthur_read_file (bsc#1177364).\n- CVE-2020-26571: Fixed a stack-based buffer overflow in gemsafe GPK smart card software driver (bsc#1177380)\n- CVE-2020-26572: Fixed a stack-based buffer overflow in tcos_decipher (bsc#1177378).\n","status":"published","published":"2021-04-13T12:04:36Z","modified":"2026-02-04T04:12:26.867373Z","updated_at":"2026-11-02T15:53:49.138643Z"},{"id":"SUSE-SU-2022:1041-1","title":"Security update for opensc","description":"This update for opensc fixes the following issues:\n\nSecurity issues fixed:\n\n- CVE-2021-42780: Fixed use after return in insert_pin() (bsc#1192005).\n- CVE-2021-42779: Fixed use after free in sc_file_valid() (bsc#1191992).\n- CVE-2021-42781: Fixed multiple heap buffer overflows in pkcs15-oberthur.c (bsc#1192000).\n- CVE-2021-42782: Stack buffer overflow issues in various places (bsc#1191957).\n- CVE-2019-6502: Fixed a memory leak in sc_context_create() (bsc#1122756).\n- CVE-2020-26570: Fixed a heap based buffer overflow in sc_oberthur_read_file (bsc#1177364).\n- CVE-2020-26572: Prevent out of bounds write (bsc#1177378)\n- CVE-2020-26571: gemsafe GPK smart card software driver stack-based buffer overflow (bsc#1177380)\n- CVE-2019-15946: out-of-bounds access of an ASN.1 Octet string in asn1_decode_entry (bsc#1149747)\n- CVE-2019-19479: incorrect read operation during parsing of a SETCOS file attribute (bsc#1158256)\n- CVE-2019-15945: Fixed an out-of-bounds access of an ASN.1 Bitstring in decode_bit_string (bsc#1149746).\n- CVE-2019-19481: Fixed an improper handling of buffer limits for CAC certificates (bsc#1158305).\n- CVE-2019-20792: Fixed a double free in coolkey_free_private_data (bsc#1170809). \n\nNon-security issues fixed:\n\n- Fixes segmentation fault in 'pkcs11-tool.c'. (bsc#1114649)\n","status":"published","published":"2022-03-30T13:25:11Z","modified":"2026-02-04T03:02:40.711283Z","updated_at":"2026-11-02T15:53:50.066806Z"}]}}
