cve.bz

CVE-2021-42782 Out-of-bounds Write

5.3 mediumEPSS 2.8%Fix available

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

On this page
Stack buffer overflow issues were found in Opensc before version 0.22.0 in various places 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.8% (unchanged from 2.8% a week ago; 2.8% 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-42782 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-42782?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-42782?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-42782 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

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-42782
UbuntuPro:16.04:LTS, Pro:18.04:LTSopenscno fix listedUBUNTU-CVE-2021-42782 USN-7346-1
UbuntuPro:20.04:LTSopensc0.20.0-3ubuntu0.1~esm4UBUNTU-CVE-2021-42782 USN-7346-1 USN-7346-3
UbuntuPro:22.04:LTSopensc0.22.0-1ubuntu2+esm1USN-7346-1
UbuntuPro:24.04:LTSopensc0.25.0~rc1-1ubuntu0.1~esm1USN-7346-1
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
SUSELinux Enterprise Point of Sale 11 SP3, Linux Enterprise Server 11 SP4-LTSSopensc0.11.6-5.27.14.1SUSE-SU-2021:14835-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5opensc0.13.0-3.25.1SUSE-SU-2023:4065-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-9485

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; 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 · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Low.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

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-42782.

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