CVE-2021-42782: Buffer Overflow

Published Oct 21, 2021
·
Updated

Last updated 10 April 2025

Other sources

Stack buffer overflow issues were found in Opensc before version 0.22.0 in various places that could potentially crash programs using the library.

— MITRE

Affected Software

4 affected componentsFixes available
redhat/opensc<0.22.0
0.22.0
Opensc Project Opensc<0.22.0
Fedoraproject Fedora=33
debian/opensc<=0.21.0-1
0.21.0-1+deb11u10.23.0-0.3+deb12u20.26.1-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/opensc to a version that resolves this vulnerability.

    Fixed in 0.22.0
  2. Upgrade

    Upgrade debian/opensc to a version that resolves this vulnerability.

    Fixed in 0.21.0-1+deb11u1Fixed in 0.23.0-0.3+deb12u2Fixed in 0.26.1-1
  3. Upgrade

    Upgrade OpenSC to a version that resolves this vulnerability.

    Fixed in 0.22.0

Event History

Apr 18, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
Data Sourced
via NVD·05:15 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is CVE-2021-42782?

CVE-2021-42782 is a vulnerability found in Opensc before version 0.22.0 that can cause stack buffer overflow issues.

2

How severe is CVE-2021-42782?

The severity of CVE-2021-42782 is 5.3, which is considered medium.

3

Which software versions are affected by CVE-2021-42782?

Opensc versions before 0.22.0, Fedora version 33, and Red Hat Opensc package version before 0.22.0 are affected by CVE-2021-42782.

4

How can CVE-2021-42782 potentially impact programs using Opensc?

CVE-2021-42782 can potentially crash programs using the Opensc library due to stack buffer overflow issues.

5

Where can I find more information about CVE-2021-42782?

You can find more information about CVE-2021-42782 on the Red Hat Bugzilla and the corresponding GitHub commits.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203