{"api_version":"1","generated_at":"2026-04-23T04:34:26+00:00","cve":"CVE-2021-42778","urls":{"html":"https://cve.report/CVE-2021-42778","api":"https://cve.report/api/cve/CVE-2021-42778.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-42778","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-42778"},"summary":{"title":"CVE-2021-42778","description":"A heap double free issue was found in Opensc before version 0.22.0 in sc_pkcs15_free_tokeninfo.","state":"PUBLIC","assigner":"secalert@redhat.com","published_at":"2022-04-18 17:15:00","updated_at":"2022-09-29 15:59:00"},"problem_types":["CWE-415"],"metrics":[],"references":[{"url":"https://github.com/OpenSC/OpenSC/commit/f015746d","name":"https://github.com/OpenSC/OpenSC/commit/f015746d","refsource":"MISC","tags":[],"title":"idprime: Use temporary variable instead of messing up the passed one · OpenSC/OpenSC@f015746 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=28185","name":"https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=28185","refsource":"MISC","tags":[],"title":"28185 - \n \n \n oss-fuzz -\n \n \n OSS-Fuzz: Fuzzing the planet - \n \n Monorail","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2016083","name":"https://bugzilla.redhat.com/show_bug.cgi?id=2016083","refsource":"MISC","tags":[],"title":"2016083 – (CVE-2021-42778) CVE-2021-42778 opensc: Heap double free in sc_pkcs15_free_tokeninfo","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://security.gentoo.org/glsa/202209-03","name":"GLSA-202209-03","refsource":"GENTOO","tags":[],"title":"OpenSC: Multiple Vulnerabilities (GLSA 202209-03) — Gentoo security","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-42778","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-42778","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"42778","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"33","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"42778","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"opensc_project","cpe5":"opensc","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"42778","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"redhat","cpe5":"enterprise_linux","cpe6":"7.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"42778","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"redhat","cpe5":"enterprise_linux","cpe6":"8.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-42778","qid":"184578","title":"Debian Security Update for opensc (CVE-2021-42778)"},{"cve":"CVE-2021-42778","qid":"710618","title":"Gentoo Linux OpenSC Multiple Vulnerabilities (GLSA 202209-03)"},{"cve":"CVE-2021-42778","qid":"901234","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for opensc (9481)"},{"cve":"CVE-2021-42778","qid":"902294","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for opensc (9481-1)"}]},"source_records":{"cve_program":{"data_type":"CVE","data_format":"MITRE","data_version":"4.0","CVE_data_meta":{"ID":"CVE-2021-42778","ASSIGNER":"secalert@redhat.com","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"vendor_name":"n/a","product":{"product_data":[{"product_name":"opensc","version":{"version_data":[{"version_value":"opensc 0.22.0"}]}}]}}]}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-672"}]}]},"references":{"reference_data":[{"refsource":"MISC","name":"https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=28185","url":"https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=28185"},{"refsource":"MISC","name":"https://bugzilla.redhat.com/show_bug.cgi?id=2016083","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2016083"},{"refsource":"MISC","name":"https://github.com/OpenSC/OpenSC/commit/f015746d","url":"https://github.com/OpenSC/OpenSC/commit/f015746d"},{"refsource":"GENTOO","name":"GLSA-202209-03","url":"https://security.gentoo.org/glsa/202209-03"}]},"description":{"description_data":[{"lang":"eng","value":"A heap double free issue was found in Opensc before version 0.22.0 in sc_pkcs15_free_tokeninfo."}]}},"nvd":{"publishedDate":"2022-04-18 17:15:00","lastModifiedDate":"2022-09-29 15:59:00","problem_types":["CWE-415"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"LOW","baseScore":5.3,"baseSeverity":"MEDIUM"},"exploitabilityScore":3.9,"impactScore":1.4},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:N/I:N/A:P","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"PARTIAL","baseScore":5},"severity":"MEDIUM","exploitabilityScore":10,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:opensc_project:opensc:*:*:*:*:*:*:*:*","versionEndExcluding":"0.22.0","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"42778","Ordinal":"219288","Title":"CVE-2021-42778","CVE":"CVE-2021-42778","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"42778","Ordinal":"1","NoteData":"** RESERVED ** This candidate has been reserved by an organization or individual that will use it when announcing a new security problem. When the candidate has been publicized, the details for this candidate will be provided.","Type":"Description","Title":null}]}}}