Skip to content
Noroxi
CVE-2023-5992· NVD / CVE Program· CNA redhat

Opensc: side-channel leaks while stripping encryption pkcs#1 padding

A vulnerability was found in OpenSC where PKCS#1 encryption padding removal is not implemented as side-channel resistant. This issue may result in the potential leak of private data.

MediumCVSS 5.9 · v3.1—No exploit Fix available
Published
Jan 31, 2024
Updated
Jun 17, 2026
EPSS
1.2% · 66th percentile
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

Action score

23

Monitor

Low priority for now.

CVSS
23 / 40 · 5.9 / 10
CISA KEV
0 / 30 · Not listed
EPSS
0 / 30 · 1.2%

CISA SSVC decision

Exploitation
none
Automatable
no
Technical impact
partial

Vulnrichment: CISA's decision-tree inputs.

CNA vs NVD score

NVD
5.9
CNA · redhat
5.6
0.3 point gap

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L

The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.

Affected systems

VendorProduct
opensc projectopensc
redhatenterprise linux
redhatenterprise linux eus
redhatenterprise linux for arm 64
redhatenterprise linux for arm 64 eus
redhatenterprise linux for ibm z systems
redhatenterprise linux for ibm z systems eus
redhatenterprise linux for power little endian
redhatenterprise linux for power little endian eus
redhatenterprise linux server aus
redhatenterprise linux server for power little endian update services for sap solutions

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • opensc project openscbefore 0.25.0
  • redhat enterprise linux7.0
  • redhat enterprise linux8.0
  • redhat enterprise linux9.0
  • redhat enterprise linux eus9.4
  • redhat enterprise linux for arm 648.0_aarch64
  • redhat enterprise linux for arm 649.0_aarch64
  • redhat enterprise linux for arm 64 eus9.4_aarch64
  • redhat enterprise linux for ibm z systems8.0_s390x
  • redhat enterprise linux for ibm z systems9.0_s390x
  • redhat enterprise linux for ibm z systems eus9.4_s390x
  • redhat enterprise linux for power little endian9.0_ppc64le
  • redhat enterprise linux for power little endian eus9.4_ppc64le
  • redhat enterprise linux server aus9.4
  • redhat enterprise linux server for power little endian update services for sap solutions9.2
  • redhat enterprise linux server for power little endian update services for sap solutions9.4_ppc64le

Versions reported by the vendor

Affected version ranges reported by the assigning authority (redhat). Independent of NVD's CPE analysis and usually ahead of it.

  • Red Hat Red Hat Enterprise Linux 7

    • all versionsaffected
  • Red Hat Red Hat Enterprise Linux 8

    • 0:0.20.0-8.el8_9 and laternot affected · rpm
  • Red Hat Red Hat Enterprise Linux 9

    • 0:0.23.0-4.el9_3 and laternot affected · rpm

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
AlmaLinux:8openscbefore 0.20.0-8.el8_90.20.0-8.el8_9
AlmaLinux:9openscbefore 0.23.0-4.el9_30.23.0-4.el9_3
Debian:11openscbefore 0.21.0-1+deb11u10.21.0-1+deb11u1
Debian:12openscbefore 0.23.0-0.3+deb12u20.23.0-0.3+deb12u2
Debian:13openscbefore 0.25.0~rc1-10.25.0~rc1-1
Red Hat:enterprise_linux:8::baseosopenscbefore 0:0.20.0-8.el8_90:0.20.0-8.el8_9
Red Hat:enterprise_linux:8::baseosopensc-debuginfobefore 0:0.20.0-8.el8_90:0.20.0-8.el8_9
Red Hat:enterprise_linux:8::baseosopensc-debugsourcebefore 0:0.20.0-8.el8_90:0.20.0-8.el8_9
Red Hat:enterprise_linux:9::baseosopenscbefore 0:0.23.0-4.el9_30:0.23.0-4.el9_3
Red Hat:enterprise_linux:9::baseosopensc-debuginfobefore 0:0.23.0-4.el9_30:0.23.0-4.el9_3
Red Hat:enterprise_linux:9::baseosopensc-debugsourcebefore 0:0.23.0-4.el9_30:0.23.0-4.el9_3
Rocky Linux:8openscbefore 0:0.20.0-8.el8_90:0.20.0-8.el8_9
Rocky Linux:9openscbefore 0:0.23.0-4.el9_30:0.23.0-4.el9_3
SUSE:Linux Enterprise Micro 5.1openscbefore 0.19.0-150100.3.28.10.19.0-150100.3.28.1
SUSE:Linux Enterprise Micro 5.3openscbefore 0.22.0-150400.3.9.10.22.0-150400.3.9.1
SUSE:Linux Enterprise Micro 5.3openscbefore 0.22.0-150400.3.9.10.22.0-150400.3.9.1
SUSE:Linux Enterprise Module for Basesystem 15 SP6openscbefore 0.22.0-150600.11.6.10.22.0-150600.11.6.1
SUSE:Linux Enterprise Module for Basesystem 15 SP6openscbefore 0.22.0-150600.11.6.10.22.0-150600.11.6.1
SUSE:Linux Enterprise Server 12 SP5openscbefore 0.13.0-3.28.10.13.0-3.28.1
SUSE:Linux Micro 6.0openscbefore 0.24.0-4.10.24.0-4.1
SUSE:Linux Micro 6.1openscbefore 0.24.0-slfo.1.1_2.10.24.0-slfo.1.1_2.1

Other highest-scoring records for the same primary product.

  • CVE-2019-6502sc_context_create in ctx.c in libopensc in OpenSC 0.19.0 has a memory leak, as demonstrated by a call from eidenv.
    31Monitor
  • CVE-2021-34193Stack overflow vulnerability in OpenSC smart card middleware before 0.23 via crafted responses to APDUs.
    30Monitor
  • CVE-2019-16058An issue was discovered in the pam_p11 component 0.2.0 and 0.3.0 for OpenSC.
    30Monitor
  • CVE-2023-2977A vulnerbility was found in OpenSC.
    28Monitor
  • CVE-2025-66215OpenSC: Stack-buffer-overflow WRITE in card-oberthur
    27Monitor
  • CVE-2025-66038OpenSC: `sc_compacttlv_find_tag` can return out-of-bounds pointers
    27Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
almalinux:opensc0.23.0-4.el9_3 · AlmaLinux:9Package registry (OSV)
debian:opensc0.23.0-0.3+deb12u2 · Debian:12Package registry (OSV)
opensuse:opensc0.22.0-150400.3.9.1 · openSUSE:Leap Micro 5.3Package registry (OSV)
red hat:opensc0:0.23.0-4.el9_3 · Red Hat:enterprise_linux:9::baseosPackage registry (OSV)
red hat:opensc-debuginfo0:0.23.0-4.el9_3 · Red Hat:enterprise_linux:9::baseosPackage registry (OSV)
red hat:opensc-debugsource0:0.23.0-4.el9_3 · Red Hat:enterprise_linux:9::baseosPackage registry (OSV)
rocky linux:opensc0:0.23.0-4.el9_3 · Rocky Linux:9Package registry (OSV)
suse:opensc0.22.0-150400.3.9.1 · SUSE:Linux Enterprise Micro 5.3Package registry (OSV)

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

No commit or PR link among the references.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

No nightly-computed relations.

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

No known public program.

Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).

Technical details

Attack conditions

  • Anyone who can reach it over the internet can trigger it.
  • No account or password is required.
  • No user action is required.
  • Special conditions such as timing or configuration are required.

If successful

Confidentiality
high · data can be read
Integrity
none
Availability
none
Attack vector
Network
Attack complexity
High
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality impact
High
Integrity impact
None
Availability impact
None

CVSS vector

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

nvd-primary

Attack context

MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.

ATT&CK techniques

—

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records