SecurityContext

CVE-2023-40661: OpenSC - Memory Corruption

  • Cve: CVE-2023-40661
  • Name: OpenSC - Memory Corruption
  • Description: Several memory vulnerabilities were identified within the OpenSC packages, particularly in the card enrollment process using pkcs15-init when a user or administrator enrolls cards. To take advantage of these flaws, an attacker must have physical access to the computer system and employ a custom-crafted USB device or smart card to manipulate responses to APDUs. This manipulation can potentially allow compromise key generation, certificate loading, and other card management operations during enrollment.
  • Impact: Attackers with physical access can potentially compromise cryptographic keys and manipulate card management operations, risking system security.
  • Remediation: Update to the latest version of OpenSC packages that address these memory vulnerabilities.
  • Vulnerability type: buffer_overflow
  • Vulnerability impact: information_disclosure, data_tampering
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.4
  • Cvss vector: CVSS:3.1/AV:P/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
  • Epss score: 0.01318
  • Epss percentile: 0.71429
  • Assignee: [email protected]
  • Published at: 2023-11-06T17:15:11Z
  • Age in days: 1114
  • Modified at: 2026-11-06T21:17:01Z
  • References total: 12
  • Products total: 2
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2023-40661
  • Nvd status: modified
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-119Improper Restriction of Operations within the Bounds of a Memory Buffer

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/OpenSC/OpenSC/wiki/OpenSC-security-advisoriesVendor Advisory
https://access.redhat.com/security/cve/CVE-2023-40661Third Party Advisory
https://bugzilla.redhat.com/show_bug.cgi?id=2240913Issue Tracking
https://github.com/OpenSC/OpenSC/issues/2792#issuecomment-1674806651VDB Entry
https://github.com/OpenSC/OpenSC/releases/tag/0.24.0-rc1Release Notes
https://access.redhat.com/errata/RHSA-2023:7876
https://access.redhat.com/errata/RHSA-2023:7879
http://www.openwall.com/lists/oss-security/2023/12/13/3
https://lists.debian.org/debian-lts-announce/2023/11/msg00024.html
https://lists.debian.org/debian-lts-announce/2024/12/msg00026.html

Products

ProductAffectedPlatform boundSourcesUrl
opensc_project:opensc<= 0.23.0nonvd/v1/products/opensc_project/opensc
redhat:enterprise_linux= 9.0, = 8.0nonvd/v1/products/redhat/enterprise_linux

Projects

RepositoryLink kindsIndexedUrl
OpenSC/OpenSCissues, releasesyes/v1/repositories/OpenSC/OpenSC

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts