CVE-2023-34095 | cpdb-libs vulnerable to buffer overflows via scanf

Exp

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.

Published: 2023-06-14 Last update: 2025-04-10 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2023-34095 is rated High Exploit Risk (74.6/100): CVSS Critical severity, with medium exploitation likelihood (EPSS 0.37%). Core evidence: 2 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Public exploit references (Exploit-DB) for CVE-2023-34095

EDB-ID Source Kind Published Link
nvd_ref exploit_tag Exploit-DB ↗
nvd_ref exploit_tag Exploit-DB ↗

Exploit prediction scoring system (EPSS) score for CVE-2023-34095

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-03-24 0.48% 0.37% -0.11%
2 2026-03-09 0.39% 0.48% +0.10%
3 2025-11-21 0.39%

Full EPSS history (18 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2023-34095

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
9.8 3.1 CRITICAL
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
3.9 5.9 [email protected]
9.8 3.1 CRITICAL
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
3.9 5.9 [email protected]

Weakness enumeration for CVE-2023-34095

OS Trackers for CVE-2023-34095

vendor priority summary link
debian not yet assigned CVE-2023-34095 not yet assigned priority: Debian including 1 source packages (cpdb-libs), 4 status rows across 4 suites (bookworm, forky, sid, trixie): resolved 4. https://security-tracker.debian.org/tracker/CVE-2023-34095
ubuntu medium CVE-2023-34095 medium priority: Ubuntu including 1 source packages (cpdb-libs), 13 status rows across 13 suites (bionic, focal, jammy, kinetic, lunar, mantic, noble, oracular, plucky, questing, trusty, upstream, xenial): released 9, DNE 2, needed 1, needs-triage 1. https://ubuntu.com/security/CVE-2023-34095

Affected software / configurations for CVE-2023-34095

Vendor Product Version Raw CPE
openprinting cpdb-libs >= 1.0, < 2.0 cpe:2.3:a:openprinting:cpdb-libs:*:*:*:*:*:*:*:*
openprinting cpdb-libs 2.0 cpe:2.3:a:openprinting:cpdb-libs:2.0:beta1:*:*:*:*:*:*
openprinting cpdb-libs 2.0 cpe:2.3:a:openprinting:cpdb-libs:2.0:beta2:*:*:*:*:*:*
openprinting cpdb-libs 2.0 cpe:2.3:a:openprinting:cpdb-libs:2.0:beta3:*:*:*:*:*:*
openprinting cpdb-libs 2.0 cpe:2.3:a:openprinting:cpdb-libs:2.0:beta4:*:*:*:*:*:*

References for CVE-2023-34095

cvelogic Threat Intelligence