{"id":"CVE-2019-19480","aliases":["ALPINE-CVE-2019-19480","BELL-CVE-2019-19480","EUVD-2019-9100","GHSA-x65v-c8ff-h2m3","MGASA-2020-0026","SUSE-SU-2021:1168-1","openSUSE-SU-2021:0565-1","openSUSE-SU-2024:11123-1"],"status":"published","title":"An issue was discovered in OpenSC through 0.19.0 and 0.20.x through 0.20.0-rc3. libopensc/pkcs15...","description":"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.","severity":{"version":"3.1","score":4.6,"vector":"CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-10","score":0.00573,"percentile":0.47662,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-672"],"published":"2019-12-01T22:37:18Z","modified":"2026-11-03T06:31:54Z","fixes":[{"ecosystem":"Alpine:v3.11","package":"opensc","fixed_in":["0.20.0-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.12","package":"opensc","fixed_in":["0.20.0-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.13","package":"opensc","fixed_in":["0.20.0-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.14","package":"opensc","fixed_in":["0.20.0-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.15","package":"opensc","fixed_in":["0.20.0-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.16","package":"opensc","fixed_in":["0.20.0-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.17","package":"opensc","fixed_in":["0.20.0-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.18","package":"opensc","fixed_in":["0.20.0-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.19","package":"opensc","fixed_in":["0.20.0-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.20","package":"opensc","fixed_in":["0.20.0-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.21","package":"opensc","fixed_in":["0.20.0-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.22","package":"opensc","fixed_in":["0.20.0-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.23","package":"opensc","fixed_in":["0.20.0-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.24","package":"opensc","fixed_in":["0.20.0-r0"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Alpine:v3.11","package":"opensc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.20.0-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.12","package":"opensc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.20.0-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.13","package":"opensc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.20.0-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.14","package":"opensc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.20.0-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.15","package":"opensc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.20.0-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.16","package":"opensc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.20.0-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.17","package":"opensc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.20.0-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.18","package":"opensc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.20.0-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.19","package":"opensc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.20.0-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.20","package":"opensc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.20.0-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.21","package":"opensc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.20.0-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.22","package":"opensc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.20.0-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.23","package":"opensc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.20.0-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.24","package":"opensc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.20.0-r0"}]}]},{"source":"osv","ecosystem":"Mageia:7","package":"opensc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.20.0-1.mga7"}]}],"bundled":6},{"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":"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.21.0-2.2"}]}],"bundled":22}],"products":[{"vendor":"opensc_project","product":"opensc"}],"references":[{"url":"https://github.com/OpenSC/OpenSC/commit/6ce6152284c47ba9b1d4fe8ff9d2e6a3f5ee02c7","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix"]},{"url":"https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=18478","tags":["x_refsource_MISC","x_transferred","Exploit","Patch","Third Party Advisory","fix"]},{"url":"http://www.openwall.com/lists/oss-security/2019/12/29/1","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","article"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NDSQLMZZYBHO5X3BK7D6E7E6NZIMZDI5/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-19480"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NDSQLMZZYBHO5X3BK7D6E7E6NZIMZDI5/"},{"url":"https://github.com/advisories/GHSA-x65v-c8ff-h2m3"},{"url":"https://security.alpinelinux.org/vuln/CVE-2019-19480","tags":["advisory"]},{"url":"https://docs.bell-sw.com/security/cves/CVE-2019-19480","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2020-0026.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=25975","tags":["report"]},{"url":"https://github.com/OpenSC/OpenSC/releases/tag/0.20.0","tags":["web"]},{"url":"https://www.openwall.com/lists/oss-security/2019/12/29/1","tags":["web"]},{"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://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/JELZKRVEJGYE74DM3GTNHNTVZBQHK5DJ/","tags":["advisory"]},{"url":"","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2008-2235","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-16391","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-16392","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-16393","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-16418","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-16419","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-16420","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-16421","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-16422","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-16423","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-16424","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-16425","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-16426","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-16427","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2019-6502","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2019-19480","description":"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.","status":"published","published":"2019-12-01T22:37:18Z","modified":"2024-08-05T02:16:47.385Z","updated_at":"2026-11-02T14:20:20.74896Z"}],"euvd":[{"id":"EUVD-2019-9100","description":"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.","status":"published","published":"2019-12-01T22:37:18Z","modified":"2024-08-05T02:16:47Z","updated_at":"2026-11-03T02:40:25.391321Z"}],"ghsa":[{"id":"GHSA-x65v-c8ff-h2m3","title":"An issue was discovered in OpenSC through 0.19.0 and 0.20.x through 0.20.0-rc3. libopensc/pkcs15...","description":"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.","status":"published","published":"2022-05-24T17:02:29Z","modified":"2023-01-28T05:08:30Z","updated_at":"2026-11-02T14:44:37.39101Z"}],"nvd":[{"id":"CVE-2019-19480","description":"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.","status":"published","published":"2019-12-01T23:15:10.73Z","modified":"2026-06-17T02:26:44.397Z","cvss":[{"version":"3.1","score":4.6,"vector":"CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"medium","assessor":"primary"},{"version":"2.0","score":2.1,"vector":"AV:L/AC:L/Au:N/C:N/I:N/A:P","level":"low","assessor":"primary"}],"cwes":["CWE-672"],"updated_at":"2026-11-02T14:05:38.993437Z"}],"osv":[{"id":"ALPINE-CVE-2019-19480","description":"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.","status":"published","published":"2019-12-01T23:15:10.73Z","modified":"2026-11-03T06:31:54.660535752Z","cvss":[{"version":"3.1","score":4.6,"vector":"CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-03T07:18:15.355745Z"},{"id":"BELL-CVE-2019-19480","title":"CVE-2019-19480 does not affect BellSoft software","status":"withdrawn","published":"2023-08-31T12:16:10.82156Z","modified":"2026-01-26T09:49:40.952471Z","cvss":[{"version":"3.1","score":4.6,"vector":"CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:28:15.340685Z"},{"id":"CVE-2019-19480","description":"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.","status":"published","published":"2019-12-01T23:15:10.73Z","modified":"2026-04-16T04:30:14.49363007Z","cvss":[{"version":"3.1","score":4.6,"vector":"CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:44:12.010761Z"},{"id":"MGASA-2020-0026","title":"Updated opensc packages fix security vulnerability","description":"Updated opensc packages fix security vulnerabilities:\n\nsc_context_create in ctx.c in libopensc in OpenSC 0.19.0 has a memory\nleak, as demonstrated by a call from eidenv (CVE-2019-6502).\n\nOpenSC before 0.20.0-rc1 has an out-of-bounds access of an ASN.1 Bitstring\nin decode_bit_string in libopensc/asn1.c (CVE-2019-15945).\n\nOpenSC before 0.20.0-rc1 has an out-of-bounds access of an ASN.1 Octet\nstring in asn1_decode_entry in libopensc/asn1.c (CVE-2019-15946).\n\nAn issue was discovered in OpenSC through 0.19.0 and 0.20.x through\n0.20.0-rc3. libopensc/card-setcos.c has an incorrect read operation during\nparsing of a SETCOS file attribute (CVE-2019-19479).\n\nAn issue was discovered in OpenSC through 0.19.0 and 0.20.x through\n0.20.0-rc3. libopensc/pkcs15-prkey.c has an incorrect free operation in\nsc_pkcs15_decode_prkdf_entry (CVE-2019-19480).\n\nAn issue was discovered in OpenSC through 0.19.0 and 0.20.x through\n0.20.0-rc3. libopensc/card-cac1.c mishandles buffer limits for CAC\ncertificates (CVE-2019-19481).\n\nThe opensc package has been updated to version 0.20.0, which has fixes for\nthese issues and other improvements.\n","status":"published","published":"2020-01-07T21:19:56Z","modified":"2026-04-16T04:41:30.933605217Z","updated_at":"2026-11-02T15:49:41.151324Z"},{"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:11123-1","title":"opensc-0.21.0-2.2 on GA media","description":"These are all security issues fixed in the opensc-0.21.0-2.2 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T04:38:24.392177Z","updated_at":"2026-11-02T16:58:34.894275Z"},{"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"}]}}
