{"schemaVersion":3,"id":"CVE-2023-34095","aliases":["UBUNTU-CVE-2023-34095","USN-6204-1","DEBIAN-CVE-2023-34095"],"status":"published","duplicateOf":null,"title":null,"description":"cpdb-libs provides frontend and backend libraries for the Common Printing Dialog Backends (CPDB) project. In versions 1.0 through 2.0b4, cpdb-libs is vulnerable to buffer overflows via improper use of `scanf(3)`. cpdb-libs uses the `fscanf()` and `scanf()` functions to parse command lines and configuration files, dropping the read string components into fixed-length buffers, but does not limit the length of the strings to be read by `fscanf()` and `scanf()` causing buffer overflows when a string is longer than 1023 characters. A patch for this issue is available at commit f181bd1f14757c2ae0f17cc76dc20421a40f30b7. As all buffers have a length of 1024 characters, the patch limits the maximum string length to be read to 1023 by replacing all occurrences of `%s` with `%1023s` in all calls of the `fscanf()` and `scanf()` functions.","dates":{"published":"2023-06-14T16:58:50.887Z","modified":"2025-02-13T16:55:16.869Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/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":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01539,"percentile":0.74531,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.01539},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01539,"percentile":0.74531}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01539,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01539,"percentile":0.74531}]},"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_OPENPRINTING_CPDB-LIBS","name":"Cpdb Libs","source":"github","url":"https://github.com/OpenPrinting/cpdb-libs/security/advisories/GHSA-25j7-9gfc-f46x","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_5C2F3848429F30AA","name":"Exploit Reference (openwall.com)","source":"reference","url":"http://www.openwall.com/lists/oss-security/2023/06/14/7","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":2,"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"},{"id":"CWE-787","name":"Out-of-bounds Write","description":"The product writes data past the end, or before the beginning, of the intended buffer.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/787.html"}],"affected":[{"vendor":"debian","product":"cpdb-libs","name":"cpdb-libs","label":"cpdb-libs","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/cpdb-libs","purlType":"deb","versions":[{"text":"< 1.2.0-2+deb12u1","noFixRecorded":false,"fixedIn":null},{"text":"< 1.2.0-3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.2.0-2+deb12u1 | < 1.2.0-3","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"cpdb-libs","name":"cpdb-libs","label":"cpdb-libs","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/cpdb-libs","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 1.2.0-0ubuntu7.1","noFixRecorded":false,"fixedIn":null},{"text":"< 1.2.0-0ubuntu8.1.22.04.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 1.2.0-0ubuntu7.1 | < 1.2.0-0ubuntu8.1.22.04.1","eol":null,"hubHref":null},{"vendor":"openprinting","product":"cpdb-libs","name":"cpdb-libs","label":"cpdb-libs","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 1.0, ≤ 2.0b4","noFixRecorded":false,"fixedIn":null},{"text":"≥ 1.0, < 2.0","noFixRecorded":false,"fixedIn":null},{"text":"2.0:beta1","noFixRecorded":false,"fixedIn":null},{"text":"2.0:beta2","noFixRecorded":false,"fixedIn":null},{"text":"2.0:beta3","noFixRecorded":false,"fixedIn":null},{"text":"2.0:beta4","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 1.0, ≤ 2.0b4 | ≥ 1.0, < 2.0 | 2.0:beta1 | 2.0:beta2 | 2.0:beta3 | 2.0:beta4","eol":null,"hubHref":"/vendor/openprinting/cpdb-libs"}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/OpenPrinting/cpdb-libs/security/advisories/GHSA-25j7-9gfc-f46x","label":"github.com/OpenPrinting/cpdb-libs/security/advisories/GHSA-25j7-9gfc-f46x","hostname":"github.com","tags":["X Refsource CONFIRM","REPORT","Exploit","Vendor Advisory"]},{"url":"https://github.com/OpenPrinting/cpdb-libs/commit/f181bd1f14757c2ae0f17cc76dc20421a40f30b7","label":"github.com/OpenPrinting/cpdb-libs/commit/f181bd1f14757c2ae0f17cc76dc20421a40f30b7","hostname":"github.com","tags":["X Refsource MISC","Patch"]},{"url":"https://github.com/OpenPrinting/cpdb-libs/blob/85555fba64d34f53a2fce099b0488904cc48ed35/cpdb/cpdb-frontend.c#L372","label":"github.com/OpenPrinting/cpdb-libs/blob/85555fba64d34f53a2fce099b0488904cc48ed35/cpdb/cpdb-frontend.c","hostname":"github.com","tags":["X Refsource MISC","Product"]},{"url":"https://github.com/OpenPrinting/cpdb-libs/blob/85555fba64d34f53a2fce099b0488904cc48ed35/tools/cpdb-text-frontend.c#L362","label":"github.com/OpenPrinting/…","hostname":"github.com","tags":["X Refsource MISC","Product"]},{"url":"https://github.com/OpenPrinting/cpdb-libs/blob/85555fba64d34f53a2fce099b0488904cc48ed35/tools/cpdb-text-frontend.c#L453","label":"github.com/OpenPrinting/…","hostname":"github.com","tags":["X Refsource MISC","Product"]},{"url":"http://www.openwall.com/lists/oss-security/2023/06/14/7","label":"www.openwall.com/lists/oss-security/2023/06/14/7","hostname":"www.openwall.com","tags":["Exploit","Mailing List","Third Party Advisory"]},{"url":"https://ubuntu.com/security/CVE-2023-34095","label":"ubuntu.com/security/CVE-2023-34095","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.openwall.com/lists/oss-security/2023/06/14/7","label":"www.openwall.com/lists/oss-security/2023/06/14/7","hostname":"www.openwall.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-6204-1","label":"ubuntu.com/security/notices/USN-6204-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-34095","label":"www.cve.org/CVERecord?id=CVE-2023-34095","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2023-34095","label":"security-tracker.debian.org/tracker/CVE-2023-34095","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2023-06-14T16:58:50.887Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-02-13T16:55:16.869Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T05:34:19.483Z","stale":false,"partial":false}}