{"schemaVersion":3,"id":"CVE-2025-66037","aliases":["UBUNTU-CVE-2025-66037","DEBIAN-CVE-2025-66037"],"status":"published","duplicateOf":null,"title":null,"description":"OpenSC is an open source smart card tools and middleware. Prior to version 0.27.0, feeding a crafted input to the fuzz_pkcs15_reader harness causes OpenSC to perform an out-of-bounds heap read in the X.509/SPKI handling path. Specifically, sc_pkcs15_pubkey_from_spki_fields() allocates a zero-length buffer and then reads one byte past the end of that allocation. This issue has been patched in version 0.27.0.","dates":{"published":"2026-03-30T17:01:27.790Z","modified":"2026-03-30T20:14:39.203Z","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":"3.1","versionLabel":"v3.1","source":"CVE.org","score":3.9,"severity":"low","vector":"CVSS:3.1/AV:P/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","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":2.3,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","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":2.3,"impact":9.8,"computed":true},{"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.00253,"percentile":0.15778,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00253},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00253,"percentile":0.15778}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00253,"percentile":0.15778}]},"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":[{"id":"GITHUB_OPENSC_OPENSC","name":"Opensc","source":"github","url":"https://github.com/OpenSC/OpenSC/issues/1586","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-125","name":"Out-of-bounds Read","description":"The product reads data past the end, or before the beginning, of the intended buffer.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/125.html"}],"affected":[{"vendor":"debian","product":"opensc","name":"opensc","label":"opensc","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/opensc","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 0.27.1-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 0.27.1-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"opensc","name":"opensc","label":"opensc","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/opensc","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"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","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.27.0","eol":null,"hubHref":"/vendor/opensc/opensc"}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/OpenSC/OpenSC/security/advisories/GHSA-m58q-rmjm-mmfx","label":"github.com/OpenSC/OpenSC/security/advisories/GHSA-m58q-rmjm-mmfx","hostname":"github.com","tags":["X Refsource CONFIRM","Exploit","Vendor Advisory"]},{"url":"https://github.com/OpenSC/OpenSC/wiki/CVE-2025-66037","label":"github.com/OpenSC/OpenSC/wiki/CVE-2025-66037","hostname":"github.com","tags":["X Refsource MISC","Vendor Advisory"]},{"url":"https://ubuntu.com/security/CVE-2025-66037","label":"ubuntu.com/security/CVE-2025-66037","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-66037","label":"www.cve.org/CVERecord?id=CVE-2025-66037","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2025-66037","label":"security-tracker.debian.org/tracker/CVE-2025-66037","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-66037","label":"nvd.nist.gov/vuln/detail/CVE-2025-66037","hostname":"nvd.nist.gov","tags":["Oval","Advisory"]}],"lineage":{"upstream":[],"downstream":["MGASA-2026-0224","OPENSUSE-SU-2026:10475-1","OPENSUSE-SU-2026:20967-1","SUSE-SU-2026:1477-1","SUSE-SU-2026:22114-1","SUSE-SU-2026:22126-1","SUSE-SU-2026:2657-1","SUSE-SU-2026:2697-1"],"duplicates":[],"related":["OPENSUSE-SU-2026:10475-1","OPENSUSE-SU-2026:20967-1","SUSE-SU-2026:1477-1","SUSE-SU-2026:22114-1","SUSE-SU-2026:22126-1","SUSE-SU-2026:2657-1","SUSE-SU-2026:2697-1"]},"timeline":[{"kind":"published","date":"2026-03-30T17:01:27.790Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-03-30T20:14:39.203Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":37,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T03:31:58.512Z","stale":false,"partial":false}}