{"schemaVersion":3,"id":"CVE-2026-40510","aliases":["SUSE-SU-2026:23478-1","SUSE-SU-2026:23527-1","SUSE-SU-2026:23543-1","SUSE-SU-2026:23697-1","SUSE-SU-2026:23717-1","SUSE-SU-2026:4108-1","SUSE-SU-2026:4122-1","SUSE-SU-2026:4123-1","openSUSE-SU-2026:21820-1"],"status":"published","duplicateOf":null,"title":null,"description":"OpenSC before 0.27.0-rc1, fixed in commit 3f24f0b, contains a stack buffer overflow vulnerability in piv_process_history() in src/libopensc/card-piv.c that allows physically present attackers to trigger memory corruption by presenting a crafted PIV smart card or USB device returning a URL field longer than 118 bytes in the Key History Object ASN.1 response.","dates":{"published":"2026-05-29T13:26:40.459Z","modified":"2026-07-14T20:00:28.402Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.8,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":1,"severity":"low","vector":"CVSS:4.0/AV:P/AC:H/AT:N/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":3.8,"severity":"low","vector":"CVSS:3.1/AV:P/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":1,"severity":"low","vector":"CVSS:4.0/AV:P/AC:H/AT:N/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.8,"severity":"medium","vector":"CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00254,"percentile":0.15962,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":-0.03999999999999997,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00294},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00294,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00294,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00294,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00294,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00294,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00294,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00294,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00294,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00294,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00294,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00254,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00254,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00254,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00254,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00254,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00254,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00254,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00254,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00254,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00254,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00254,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00254,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00254,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00254,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00254,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00254,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00254,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00254,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00254,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00254,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00254,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00254,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00254,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00254,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00254,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00254,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00254,"percentile":0.15962}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00294,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00294,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00294,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00294,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00254,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00254,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00254,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00254,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00254,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00254,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00254,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00254,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00254,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00254,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00254,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00254,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00254,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00254,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00254,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00254,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00254,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00254,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00254,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00254,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00254,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00254,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00254,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00254,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00254,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00254,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00254,"percentile":0.15962}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-121","name":"Stack-based Buffer Overflow","description":"A stack-based buffer overflow condition is a condition where the buffer being overwritten is allocated on the stack (i.e., is a local variable or, rarely, a parameter to a function).","type":"weakness","status":"Draft","abstraction":"Variant","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/121.html"}],"affected":[{"vendor":"opensc_project","product":"opensc","name":"opensc","label":"opensc","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 0.27.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.27.0","eol":null,"hubHref":"/vendor/opensc_project/opensc"},{"vendor":"opensc","product":"opensc","name":"OpenSC","label":"opensc","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 0.27.0-rc1","noFixRecorded":false,"fixedIn":null},{"text":"< 3f24f0b48a481a8cf2e46059d8238a283ddc1c13","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.27.0-rc1 | < 3f24f0b48a481a8cf2e46059d8238a283ddc1c13","eol":null,"hubHref":"/vendor/opensc/opensc"},{"vendor":"opensuse","product":"opensc&distro=openSUSE Leap 16.0","name":"opensc","label":"opensc&distro=openSUSE Leap 16.0","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/opensc&distro=openSUSE Leap 16.0","purlType":"rpm","versions":[{"text":"< 0.26.1-160000.4.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.26.1-160000.4.1","eol":null,"hubHref":null},{"vendor":"suse","product":"opensc&distro=SUSE Linux Enterprise Micro 5.3","name":"opensc","label":"opensc&distro=SUSE Linux Enterprise Micro 5.3","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/opensc&distro=SUSE Linux Enterprise Micro 5.3","purlType":"rpm","versions":[{"text":"< 0.22.0-150400.3.20.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.22.0-150400.3.20.1","eol":null,"hubHref":null},{"vendor":"suse","product":"opensc&distro=SUSE Linux Enterprise Micro 5.4","name":"opensc","label":"opensc&distro=SUSE Linux Enterprise Micro 5.4","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/opensc&distro=SUSE Linux Enterprise Micro 5.4","purlType":"rpm","versions":[{"text":"< 0.22.0-150400.3.20.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.22.0-150400.3.20.1","eol":null,"hubHref":null},{"vendor":"suse","product":"opensc&distro=SUSE Linux Enterprise Micro 5.5","name":"opensc","label":"opensc&distro=SUSE Linux Enterprise Micro 5.5","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/opensc&distro=SUSE Linux Enterprise Micro 5.5","purlType":"rpm","versions":[{"text":"< 0.22.0-150400.3.20.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.22.0-150400.3.20.1","eol":null,"hubHref":null},{"vendor":"suse","product":"opensc&distro=SUSE Linux Enterprise Module for Basesystem 15 SP7","name":"opensc","label":"opensc&distro=SUSE Linux Enterprise Module for Basesystem 15 SP7","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/opensc&distro=SUSE Linux Enterprise Module for Basesystem 15 SP7","purlType":"rpm","versions":[{"text":"< 0.22.0-150600.11.14.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.22.0-150600.11.14.1","eol":null,"hubHref":null},{"vendor":"suse","product":"opensc&distro=SUSE Linux Enterprise Server 16.0","name":"opensc","label":"opensc&distro=SUSE Linux Enterprise Server 16.0","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/opensc&distro=SUSE Linux Enterprise Server 16.0","purlType":"rpm","versions":[{"text":"< 0.26.1-160000.4.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.26.1-160000.4.1","eol":null,"hubHref":null},{"vendor":"suse","product":"opensc&distro=SUSE Linux Enterprise Server for SAP applications 16.0","name":"opensc","label":"opensc&distro=SUSE Linux Enterprise Server for SAP applications 16.0","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/opensc&distro=SUSE Linux Enterprise Server for SAP applications 16.0","purlType":"rpm","versions":[{"text":"< 0.26.1-160000.4.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.26.1-160000.4.1","eol":null,"hubHref":null},{"vendor":"suse","product":"opensc&distro=SUSE Linux Enterprise Server LTSS Extended Security 12 SP5","name":"opensc","label":"opensc&distro=SUSE Linux Enterprise Server LTSS Extended Security 12 SP5","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/opensc&distro=SUSE Linux Enterprise Server LTSS Extended Security 12 SP5","purlType":"rpm","versions":[{"text":"< 0.13.0-3.39.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.13.0-3.39.1","eol":null,"hubHref":null},{"vendor":"suse","product":"opensc&distro=SUSE Linux Micro 6.0","name":"opensc","label":"opensc&distro=SUSE Linux Micro 6.0","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/opensc&distro=SUSE Linux Micro 6.0","purlType":"rpm","versions":[{"text":"< 0.24.0-7.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.24.0-7.1","eol":null,"hubHref":null},{"vendor":"suse","product":"opensc&distro=SUSE Linux Micro 6.1","name":"opensc","label":"opensc&distro=SUSE Linux Micro 6.1","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/opensc&distro=SUSE Linux Micro 6.1","purlType":"rpm","versions":[{"text":"< 0.24.0-slfo.1.1_5.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.24.0-slfo.1.1_5.1","eol":null,"hubHref":null},{"vendor":"suse","product":"opensc&distro=SUSE Linux Micro 6.2","name":"opensc","label":"opensc&distro=SUSE Linux Micro 6.2","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/opensc&distro=SUSE Linux Micro 6.2","purlType":"rpm","versions":[{"text":"< 0.26.1-160000.4.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.26.1-160000.4.1","eol":null,"hubHref":null}],"affectedCount":13,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/OpenSC/OpenSC/pull/3558","label":"github.com/OpenSC/OpenSC/pull/3558","hostname":"github.com","tags":["Issue Tracking","Patch"]},{"url":"https://github.com/OpenSC/OpenSC/commit/3f24f0b48a481a8cf2e46059d8238a283ddc1c13","label":"github.com/OpenSC/OpenSC/commit/3f24f0b48a481a8cf2e46059d8238a283ddc1c13","hostname":"github.com","tags":["Patch"]},{"url":"https://www.vulncheck.com/advisories/opensc-stack-buffer-overflow-via-piv-process-history-in-card-piv-c","label":"www.vulncheck.com/advisories/opensc-stack-buffer-overflow-via-piv-process-history-in-card-piv-c","hostname":"www.vulncheck.com","tags":["Third Party Advisory"]},{"url":"https://www.suse.com/support/update/announcement/2026/suse-su-202623478-1/","label":"www.suse.com/support/update/announcement/2026/suse-su-202623478-1/","hostname":"www.suse.com","tags":["Advisory"]},{"url":"https://bugzilla.suse.com/1266964","label":"bugzilla.suse.com/1266964","hostname":"bugzilla.suse.com","tags":["REPORT"]},{"url":"https://www.suse.com/security/cve/CVE-2026-40510","label":"www.suse.com/security/cve/CVE-2026-40510","hostname":"www.suse.com","tags":["WEB"]},{"url":"https://www.suse.com/support/update/announcement/2026/suse-su-202623527-1/","label":"www.suse.com/support/update/announcement/2026/suse-su-202623527-1/","hostname":"www.suse.com","tags":["Advisory"]},{"url":"https://www.suse.com/support/update/announcement/2026/suse-su-202623543-1/","label":"www.suse.com/support/update/announcement/2026/suse-su-202623543-1/","hostname":"www.suse.com","tags":["Advisory"]},{"url":"https://www.suse.com/support/update/announcement/2026/suse-su-202623697-1/","label":"www.suse.com/support/update/announcement/2026/suse-su-202623697-1/","hostname":"www.suse.com","tags":["Advisory"]},{"url":"https://www.suse.com/support/update/announcement/2026/suse-su-202623717-1/","label":"www.suse.com/support/update/announcement/2026/suse-su-202623717-1/","hostname":"www.suse.com","tags":["Advisory"]},{"url":"https://www.suse.com/support/update/announcement/2026/suse-su-20264108-1/","label":"www.suse.com/support/update/announcement/2026/suse-su-20264108-1/","hostname":"www.suse.com","tags":["Advisory"]},{"url":"https://www.suse.com/support/update/announcement/2026/suse-su-20264122-1/","label":"www.suse.com/support/update/announcement/2026/suse-su-20264122-1/","hostname":"www.suse.com","tags":["Advisory"]},{"url":"https://www.suse.com/support/update/announcement/2026/suse-su-20264123-1/","label":"www.suse.com/support/update/announcement/2026/suse-su-20264123-1/","hostname":"www.suse.com","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40510","label":"nvd.nist.gov/vuln/detail/CVE-2026-40510","hostname":"nvd.nist.gov","tags":["Oval","Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-05-29T13:26:40.459Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-07-14T20:00:28.402Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":27,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T17:02:57.249Z","stale":false,"partial":false}}