Medium
Security advisory
A heap use after free issue was found in Opensc before version 0.22.0 in sc_file_valid.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-42779
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 11:21 UTC · Revision 1
Source evidence
A heap use after free issue was found in Opensc before version 0.22.0 in sc_file_valid.
osv:CVE-2021-42779
Complete source record
{
"id": "d2a1d0b82073d38d06f3e863b422791606202d86ed8aaf60427021ad57ae7f40",
"url": "https://osv.dev/vulnerability/CVE-2021-42779",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-42779",
"summary": "A heap use after free issue was found in Opensc before version 0.22.0 in sc_file_valid.",
"evidence": "osv:CVE-2021-42779",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2021-42779",
"aliases": [
"CVE-2021-42779"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/opensc/opensc",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "c902e1992195e00ada12d71beb1029287cd72037"
},
{
"fixed": "1db88374"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:opensc_project:opensc:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "0.22.0"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "1db88374"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"0.22.0-rc2",
"0.22.0-rc1",
"0.21.0",
"0.21.0-rc2",
"0.21.0-rc1",
"0.20.0",
"0.20.0-rc4",
"0.20.0-rc3",
"0.20.0-rc2",
"0.20.0-rc1",
"0.19.0",
"0.19.0-rc1",
"0.18.0",
"0.18.0-rc2",
"0.18.0-rc1",
"0.17.0",
"0.17.0-rc2",
"0.17.0-rc1",
"0.16.0",
"v0.16.0-pre1",
"0.15.0",
"0.14.0",
"0.14.0rtm",
"0.14.0rc2",
"0.13.0",
"0.13.0rc1",
"0.13.0pre1",
"v0.12.2",
"0.12.2",
"0.12.2-rc1"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-42779.json"
}
}
],
"modified": "2026-10-20T10:54:05.927376172Z",
"provider": "osv",
"references": [
"https://lists.debian.org/debian-lts-announce/2023/06/msg00025.html",
"https://lists.debian.org/debian-lts-announce/2024/12/msg00026.html",
"https://security.gentoo.org/glsa/202209-03",
"https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=28843",
"https://bugzilla.redhat.com/show_bug.cgi?id=2016086",
"https://github.com/OpenSC/OpenSC/commit/1db88374"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*"
],
"vendor_product": "fedoraproject:fedora",
"extracted_events": [
{
"range": [
{
"introduced": "33"
},
{
"last_affected": "33"
}
],
"source": "CPE_STRING"
}
]
},
{
"cpes": [
"cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*",
"cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*"
],
"vendor_product": "redhat:enterprise_linux",
"extracted_events": [
{
"range": [
{
"introduced": "7.0"
},
{
"last_affected": "7.0"
},
{
"introduced": "8.0"
},
{
"last_affected": "8.0"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2021-42779",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 384857,
"published_at": "2022-04-18T17:15:16.177+00:00"
}