{"id":"CVE-2023-34095","aliases":["DEBIAN-CVE-2023-34095","EUVD-2023-38203","GHSA-25j7-9gfc-f46x","UBUNTU-CVE-2023-34095","USN-6204-1"],"status":"published","title":"cpdb-libs vulnerable to buffer overflows via scanf","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.","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.01539,"percentile":0.75081,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-121","CWE-787"],"published":"2023-06-14T00:00:00Z","modified":"2026-10-28T10:38:54Z","fixes":[{"ecosystem":"Debian:12","package":"cpdb-libs","fixed_in":["1.2.0-2+deb12u1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"cpdb-libs","fixed_in":["1.2.0-3"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"cpdb-libs","fixed_in":["1.2.0-3"],"sources":["osv"]},{"ecosystem":"Ubuntu:20.04:LTS","package":"cpdb-libs","fixed_in":["1.2.0-0ubuntu7.1"],"sources":["osv"]},{"ecosystem":"Ubuntu:22.04:LTS","package":"cpdb-libs","fixed_in":["1.2.0-0ubuntu8.1.22.04.1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"cpdb-libs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.0-2+deb12u1"}]}],"versions":["1.2.0-2"]},{"source":"osv","ecosystem":"Debian:13","package":"cpdb-libs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.0-3"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"cpdb-libs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.0-3"}]}]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"cpdb-libs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.1.0-0ubuntu2","1.1.1-0ubuntu1"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"cpdb-libs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.0-0ubuntu7.1"}]}],"versions":["1.2.0-0ubuntu6","1.2.0-0ubuntu7"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"cpdb-libs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.0-0ubuntu8.1.22.04.1"}]}],"versions":["1.2.0-0ubuntu8"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"cpdb-libs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.0-0ubuntu7.1"}]}],"versions":["1.2.0-0ubuntu6","1.2.0-0ubuntu7"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"cpdb-libs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.0-0ubuntu8.1.22.04.1"}]}],"versions":["1.2.0-0ubuntu8"]}],"products":[{"vendor":"openprinting","product":"cpdb-libs"}],"references":[{"url":"https://github.com/OpenPrinting/cpdb-libs/security/advisories/GHSA-25j7-9gfc-f46x","tags":["x_refsource_CONFIRM","x_transferred","Exploit","Vendor Advisory","advisory","report"]},{"url":"https://github.com/OpenPrinting/cpdb-libs/commit/f181bd1f14757c2ae0f17cc76dc20421a40f30b7","tags":["x_refsource_MISC","x_transferred","Patch","fix"]},{"url":"https://github.com/OpenPrinting/cpdb-libs/blob/85555fba64d34f53a2fce099b0488904cc48ed35/cpdb/cpdb-frontend.c#L372","tags":["x_refsource_MISC","x_transferred","Product","web"]},{"url":"https://github.com/OpenPrinting/cpdb-libs/blob/85555fba64d34f53a2fce099b0488904cc48ed35/tools/cpdb-text-frontend.c#L362","tags":["x_refsource_MISC","x_transferred","Product","web"]},{"url":"https://github.com/OpenPrinting/cpdb-libs/blob/85555fba64d34f53a2fce099b0488904cc48ed35/tools/cpdb-text-frontend.c#L453","tags":["x_refsource_MISC","x_transferred","Product","web"]},{"url":"http://www.openwall.com/lists/oss-security/2023/06/14/7","tags":["x_transferred","Exploit","Mailing List","Third Party Advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/34xxx/CVE-2023-34095.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-34095","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2023-34095","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2023-34095","tags":["report"]},{"url":"https://www.openwall.com/lists/oss-security/2023/06/14/7","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-6204-1","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-34095","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2023-34095","title":"cpdb-libs vulnerable to buffer overflows via scanf","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.","status":"published","published":"2023-06-14T16:58:50.887Z","modified":"2025-02-13T16:55:16.869Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"cna"}],"cwes":["CWE-121"],"updated_at":"2026-11-02T14:35:35.912488Z"}],"euvd":[{"id":"EUVD-2023-38203","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.","status":"published","published":"2023-06-14T16:58:50Z","modified":"2025-02-13T16:55:16Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-03T00:03:50.427692Z"}],"nvd":[{"id":"CVE-2023-34095","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.","status":"published","published":"2023-06-14T17:15:09.243Z","modified":"2026-06-17T06:02:52.963Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"secondary"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"}],"cwes":["CWE-121","CWE-787"],"updated_at":"2026-11-02T14:08:06.335469Z"}],"osv":[{"id":"CVE-2023-34095","title":"cpdb-libs vulnerable to buffer overflows via scanf","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.","status":"published","published":"2023-06-14T16:58:50.887Z","modified":"2026-10-28T10:38:54.271656213Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-121"],"updated_at":"2026-11-02T15:44:32.116263Z"},{"id":"DEBIAN-CVE-2023-34095","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.","status":"published","published":"2023-06-14T17:15:09.243Z","modified":"2026-10-26T18:02:29.48686796Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:45:39.679062Z"},{"id":"UBUNTU-CVE-2023-34095","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.","status":"published","published":"2023-06-14T00:00:00Z","modified":"2026-04-22T14:08:02.921794Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T16:54:21.882004Z"},{"id":"USN-6204-1","title":"cpdb-libs vulnerability","description":"Seth Arnold discovered that CPDB incorrectly handled certain characters.\nAn attacker could possibly use this issue to cause a crash or execute\narbitrary code.\n","status":"published","published":"2023-07-05T15:23:02Z","modified":"2026-04-27T16:44:57.415023Z","updated_at":"2026-11-02T16:58:16.738762Z"}]}}
