Skip to main content
VulnerabilityPublished Updated

CVE-2025-66038: Opensc · Prior to version 0.27.0, sc_compacttlv_find_tag searches a compact-TLV buffer for a given tag

Affects openscSource GCVE Database

0
Compare

Not known to be exploited · CVSS 6.8 Medium · fixed in 0.27.0 : update opensc when convenient.

Data as of 24 Nov 2026, 21:15 UTC

CVSS 3.1 base score
6.8Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.2% chance of exploitation in 30 days – higher than 22% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 0.27.0
CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 30 Mar 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.

What to do

Affected software

ProductAffectedFixed in
Ubuntu 26.10openscpkg:deb/ubuntu/opensc?arch=source&distro=stonkingOther threatsAffected
  • 0.27.0~rc1-1 – 0.27.1-2ubuntu2
4 affected builds
Fixed in–
Ubuntu 26.04 LTSopenscpkg:deb/ubuntu/opensc?arch=source&distro=resoluteOther threatsAffected
  • =0.26.1-3
  • =0.26.1-3ubuntu1
  • =0.27.0~rc1-1
Fixed in–
Ubuntu 25.10openscpkg:deb/ubuntu/opensc?arch=source&distro=questingOther threatsAffected
  • =0.26.1-1
  • =0.26.1-2
  • =0.26.1-3
Fixed in–
Ubuntu Pro 24.04 LTSopenscpkg:deb/ubuntu/opensc?arch=source&distro=esm-apps/nobleOther threatsAffected
  • 0.23.0-1ubuntu4 – 0.25.0~rc1-1ubuntu0.2+esm1
9 affected builds
Fixed in–
Ubuntu Pro 22.04 LTSopenscpkg:deb/ubuntu/opensc?arch=source&distro=esm-apps/jammyOther threatsAffected
  • 0.21.0-1ubuntu1 – 0.22.0-1ubuntu2+esm1
5 affected builds
Fixed in–
Ubuntu Pro 20.04 LTSopenscpkg:deb/ubuntu/opensc?arch=source&distro=esm-apps/focalOther threatsAffected
  • 0.19.0-2 – 0.20.0-3ubuntu0.1~esm4
8 affected builds
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

OpenSC is an open source smart card tools and middleware. Prior to version 0.27.0, sc_compacttlv_find_tag searches a compact-TLV buffer for a given tag. In compact-TLV, a single byte encodes the tag (high nibble) and value length (low nibble). With a 1-byte buffer {0x0A}, the encoded element claims tag=0 and length=10 but no value bytes follow. Calling sc_compacttlv_find_tag with search tag 0x00 returns a pointer equal to buf+1 and outlen=10 without verifying that the claimed value length fits within the remaining buffer. In cases where the sc_compacttlv_find_tag is provided untrusted data (such as being read from cards/files), attackers may be able to influence it to return out-of-bounds pointers leading to downstream memory corruption when subsequent code tries to dereference the pointer. This issue has been patched in version 0.27.0.

References

Community reviews

Loading reviews…