Opensc: side-channel leaks while stripping encryption pkcs#1 padding
Description
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
OpenSC's PKCS#1 v1.5 decryption padding is not constant-time, enabling side-channel leaks of RSA private data via timing. Patched in 0.25.0.
Vulnerability
In OpenSC versions before 0.25.0, the PKCS#1 v1.5 encryption padding removal is not implemented in a side-channel resistant (constant-time) manner [4]. When a smart card provides only raw RSA decryption, OpenSC performs the padding removal in software. This timing-dependency applies to the common code path handling RSA decryption operations [1][4].
Exploitation
An attacker must have network access to a system using an affected OpenSC version and be able to measure the time taken by RSA decryption operations (e.g., over a local or remote connection with high-resolution timing). By capturing multiple RSA ciphertexts and observing the decryption timing, the attacker can extract information about the plaintext [2][4]. No authentication or user interaction beyond normal smart card use is required, but the attack requires high precision timing measurements classified as complex [4].
Impact
Successful exploitation allows recovery of the plaintext of previously captured RSA ciphertexts (confidentiality breach) and, potentially, forgery of RSA signatures (integrity breach) [4]. The CVSS v3.0 base score for this vulnerability is 5.6 (AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L) [4].
Mitigation
A fix is available in OpenSC version 0.25.0, released with constant-time PKCS#1 v1.5 depadding [4]. Red Hat Enterprise Linux 9 shipped updated opensc-0.23.0-4.el9_3 packages via RHSA-2024:0966 and RHSA-2024:0967 [1][3]. Users should upgrade to the patched version or apply vendor-supplied updates. No workarounds are documented for unpatched installations.
AI Insight generated on May 25, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
21cpe:/o:redhat:enterprise_linux:7+ 2 more
- cpe:/o:redhat:enterprise_linux:7
- cpe:/o:redhat:enterprise_linux:8::baseosrange: 0:0.20.0-8.el8_9
- cpe:/o:redhat:enterprise_linux:9::baseosrange: 0:0.23.0-4.el9_3
- osv-coords17 versionspkg:rpm/almalinux/openscpkg:rpm/opensuse/opensc&distro=openSUSE%20Leap%2015.5pkg:rpm/opensuse/opensc&distro=openSUSE%20Leap%2015.6pkg:rpm/opensuse/opensc&distro=openSUSE%20Leap%20Micro%205.3pkg:rpm/opensuse/opensc&distro=openSUSE%20Leap%20Micro%205.4pkg:rpm/suse/opensc&distro=SUSE%20Linux%20Enterprise%20Micro%205.1pkg:rpm/suse/opensc&distro=SUSE%20Linux%20Enterprise%20Micro%205.2pkg:rpm/suse/opensc&distro=SUSE%20Linux%20Enterprise%20Micro%205.3pkg:rpm/suse/opensc&distro=SUSE%20Linux%20Enterprise%20Micro%205.4pkg:rpm/suse/opensc&distro=SUSE%20Linux%20Enterprise%20Micro%205.5pkg:rpm/suse/opensc&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP5pkg:rpm/suse/opensc&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP6pkg:rpm/suse/opensc&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP7pkg:rpm/suse/opensc&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5pkg:rpm/suse/opensc&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5pkg:rpm/suse/opensc&distro=SUSE%20Linux%20Micro%206.0pkg:rpm/suse/opensc&distro=SUSE%20Linux%20Micro%206.1
< 0.23.0-4.el9_3+ 16 more
- (no CPE)range: < 0.23.0-4.el9_3
- (no CPE)range: < 0.22.0-150400.3.9.1
- (no CPE)range: < 0.22.0-150600.11.6.1
- (no CPE)range: < 0.22.0-150400.3.9.1
- (no CPE)range: < 0.22.0-150400.3.9.1
- (no CPE)range: < 0.19.0-150100.3.28.1
- (no CPE)range: < 0.19.0-150100.3.28.1
- (no CPE)range: < 0.22.0-150400.3.9.1
- (no CPE)range: < 0.22.0-150400.3.9.1
- (no CPE)range: < 0.22.0-150400.3.9.1
- (no CPE)range: < 0.22.0-150400.3.9.1
- (no CPE)range: < 0.22.0-150600.11.6.1
- (no CPE)range: < 0.22.0-150600.11.6.1
- (no CPE)range: < 0.13.0-3.28.1
- (no CPE)range: < 0.13.0-3.28.1
- (no CPE)range: < 0.24.0-4.1
- (no CPE)range: < 0.24.0-slfo.1.1_2.1
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
5- access.redhat.com/errata/RHSA-2024:0966mitrevendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2024:0967mitrevendor-advisoryx_refsource_REDHAT
- access.redhat.com/security/cve/CVE-2023-5992mitrevdb-entryx_refsource_REDHAT
- bugzilla.redhat.com/show_bug.cgimitreissue-trackingx_refsource_REDHAT
- www.usenix.org/system/files/usenixsecurity24-shagam.pdfmitre
News mentions
0No linked articles in our index yet.