CVE-2026-40528
highpriority · track · 31EPSS 0.002 · 8 %ileDEEUUSEPSS · scored 2026-10-27
OpenSC before 0.27.0, fixed in commit 0358817, contains a stack and heap buffer overrun vulnerability in the do_key_value() function in src/pkcs15init/profile.c that allows attackers to corrupt memory by supplying a crafted profile configuration file. During pkcs15-init invocation, a key value entry beginning with '=' followed by more than sizeof(keybuf) characters is copied into keybuf via memcpy without a length check, causing both stack and heap buffer overruns.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · low–high · 0.1–7.8
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (7)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2026-1755OpenSC: Mehrere Schwachstellen ermöglichen nicht spezifizierten AngriffDeutsch2026-05-31csaf · cert_bundDE
Ein Angreifer mit physischem Zugriff kann mehrere Schwachstellen in OpenSC ausnutzen, um einen nicht näher spezifizierten Angriff durchzuführen.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (7)
External citations — patches, advisories, analysis.
- https://github.com/OpenSC/OpenSCPatchcnnvd
- https://github.com/OpenSC/OpenSC/commit/0358817ec74aeca654f83e7709c7720b14c5db59cnnvd
- https://www.vulncheck.com/advisories/opensc-buffer-overrun-in-do-key-value-via-profile-ccnnvd
- https://github.com/OpenSC/OpenSC/commit/0358817ec74aeca654f83e7709c7720b14c5db59enisa_euvd
- https://www.vulncheck.com/advisories/opensc-buffer-overrun-in-do-key-value-via-profile-cenisa_euvd
- https://github.com/OpenSC/OpenSC/commit/0358817ec74aeca654f83e7709c7720b14c5db59Patchnvd
- https://www.vulncheck.com/advisories/opensc-buffer-overrun-in-do-key-value-via-profile-cThird Party Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan