cve.bz

CVE-2021-42781 Out-of-bounds Write

5.3 mediumEPSS 2.9%Fix available

Medium (5.3). EPSS 2.9% estimated probability of exploitation activity in the next 30 days.

On this page
Heap buffer overflow issues were found in Opensc before version 0.22.0 in pkcs15-oberthur.c that could potentially crash programs using the library.

Severity

CVSS 3.1

5.3 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
EPSS
2.9% (unchanged from 2.9% a week ago; 2.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 87th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-787 Out-of-bounds Write
CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-42781 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-42781?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-42781?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-42781 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
opensc_project:openscbefore 0.22.0
fedoraproject:fedora33
redhat:enterprise_linux7.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10opensc0.19.0-1+deb10u2DLA-3463-1
Debian11opensc0.21.0-1+deb11u1DLA-4004-1
Debian12, 13, 14opensc0.22.0-1DEBIAN-CVE-2021-42781
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 6 moreopensc0.19.0-150100.3.16.1SUSE-SU-2022:1156-1
SUSEHPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP3-BCL and 10 moreopensc0.13.0-3.19.1SUSE-SU-2021:3582-1
SUSELinux Enterprise High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS, Linux Enterprise Server 15-LTSS and 1 moreopensc0.18.0-150000.3.23.1SUSE-SU-2022:1041-1
openSUSELeap 15.3opensc0.19.0-150100.3.16.1SUSE-SU-2022:1156-1
openSUSETumbleweedopensc0.22.0-1.1openSUSE-SU-2024:11613-1
Azure Linux2opensc0.22.0-1AZL-9484

From the distributions' data via OSV.dev: the Debian Security Tracker; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · SUSE · openSUSE.

Red Hat

Red Hat rates this Low.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7openscOut of support scope
Red Hat Enterprise Linux 8openscFix deferred
Red Hat Enterprise Linux 9openscNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-42781.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-119 (12).

References

Check your stackJSON