{"api_version":"1","generated_at":"2026-04-23T06:20:04+00:00","cve":"CVE-2021-42782","urls":{"html":"https://cve.report/CVE-2021-42782","api":"https://cve.report/api/cve/CVE-2021-42782.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-42782","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-42782"},"summary":{"title":"CVE-2021-42782","description":"Stack buffer overflow issues were found in Opensc before version 0.22.0 in various places that could potentially crash programs using the library.","state":"PUBLIC","assigner":"secalert@redhat.com","published_at":"2022-04-18 17:15:00","updated_at":"2023-06-21 02:15:00"},"problem_types":["CWE-787"],"metrics":[],"references":[{"url":"https://lists.debian.org/debian-lts-announce/2023/06/msg00025.html","name":"[debian-lts-announce] 20230621 [SECURITY] [DLA 3463-1] opensc security update","refsource":"MLIST","tags":[],"title":"[SECURITY] [DLA 3463-1] opensc security update","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2016448","name":"https://bugzilla.redhat.com/show_bug.cgi?id=2016448","refsource":"MISC","tags":[],"title":"2016448 – (CVE-2021-42782) CVE-2021-42782 opensc: Stack buffer overflow issues in various places","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/OpenSC/OpenSC/commit/78cdab94","name":"https://github.com/OpenSC/OpenSC/commit/78cdab94","refsource":"MISC","tags":[],"title":"tcos: prevent out of bounds read · OpenSC/OpenSC@78cdab9 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/OpenSC/OpenSC/commit/ae1cf0be","name":"https://github.com/OpenSC/OpenSC/commit/ae1cf0be","refsource":"MISC","tags":[],"title":"iasecc: Prevent stack buffer overflow when empty ACL is returned · OpenSC/OpenSC@ae1cf0b · GitHub","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://github.com/OpenSC/OpenSC/commit/456ac566","name":"https://github.com/OpenSC/OpenSC/commit/456ac566","refsource":"MISC","tags":[],"title":"PIV Improved parsing of data from the card · OpenSC/OpenSC@456ac56 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/OpenSC/OpenSC/commit/1252aca9","name":"https://github.com/OpenSC/OpenSC/commit/1252aca9","refsource":"MISC","tags":[],"title":"cardos: Correctly calculate the left bytes to avoid buffer overrun · OpenSC/OpenSC@1252aca · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/OpenSC/OpenSC/commit/7114fb71","name":"https://github.com/OpenSC/OpenSC/commit/7114fb71","refsource":"MISC","tags":[],"title":"coolkey: Initialize potentially uninitialized memory · OpenSC/OpenSC@7114fb7 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-42782","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-42782","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"42782","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":"42782","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"opensc_project","cpe5":"opensc","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-42782","qid":"182321","title":"Debian Security Update for opensc (CVE-2021-42782)"},{"cve":"CVE-2021-42782","qid":"355552","title":"Amazon Linux Security Advisory for opensc : ALAS2-2023-2102"},{"cve":"CVE-2021-42782","qid":"6000071","title":"Debian Security Update for opensc (DLA 3463-1)"},{"cve":"CVE-2021-42782","qid":"710618","title":"Gentoo Linux OpenSC Multiple Vulnerabilities (GLSA 202209-03)"},{"cve":"CVE-2021-42782","qid":"751293","title":"SUSE Enterprise Linux Security Update for opensc (SUSE-SU-2021:3582-1)"},{"cve":"CVE-2021-42782","qid":"751951","title":"SUSE Enterprise Linux Security Update for opensc (SUSE-SU-2022:1041-1)"},{"cve":"CVE-2021-42782","qid":"752023","title":"SUSE Enterprise Linux Security Update for opensc (SUSE-SU-2022:1156-1)"},{"cve":"CVE-2021-42782","qid":"755078","title":"SUSE Enterprise Linux Security Update for opensc (SUSE-SU-2023:4065-1)"},{"cve":"CVE-2021-42782","qid":"901758","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for opensc (9485)"},{"cve":"CVE-2021-42782","qid":"902311","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for opensc (9485-1)"}]},"source_records":{"cve_program":{"data_type":"CVE","data_format":"MITRE","data_version":"4.0","CVE_data_meta":{"ID":"CVE-2021-42782","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-119"}]}]},"references":{"reference_data":[{"refsource":"MISC","name":"https://bugzilla.redhat.com/show_bug.cgi?id=2016448","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2016448"},{"refsource":"MISC","name":"https://github.com/OpenSC/OpenSC/commit/78cdab94","url":"https://github.com/OpenSC/OpenSC/commit/78cdab94"},{"refsource":"MISC","name":"https://github.com/OpenSC/OpenSC/commit/7114fb71","url":"https://github.com/OpenSC/OpenSC/commit/7114fb71"},{"refsource":"MISC","name":"https://github.com/OpenSC/OpenSC/commit/1252aca9","url":"https://github.com/OpenSC/OpenSC/commit/1252aca9"},{"refsource":"MISC","name":"https://github.com/OpenSC/OpenSC/commit/ae1cf0be","url":"https://github.com/OpenSC/OpenSC/commit/ae1cf0be"},{"refsource":"MISC","name":"https://github.com/OpenSC/OpenSC/commit/456ac566","url":"https://github.com/OpenSC/OpenSC/commit/456ac566"},{"refsource":"GENTOO","name":"GLSA-202209-03","url":"https://security.gentoo.org/glsa/202209-03"},{"refsource":"MLIST","name":"[debian-lts-announce] 20230621 [SECURITY] [DLA 3463-1] opensc security update","url":"https://lists.debian.org/debian-lts-announce/2023/06/msg00025.html"}]},"description":{"description_data":[{"lang":"eng","value":"Stack buffer overflow issues were found in Opensc before version 0.22.0 in various places that could potentially crash programs using the library."}]}},"nvd":{"publishedDate":"2022-04-18 17:15:00","lastModifiedDate":"2023-06-21 02:15:00","problem_types":["CWE-787"],"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":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"42782","Ordinal":"219285","Title":"CVE-2021-42782","CVE":"CVE-2021-42782","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"42782","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}]}}}