cve.bz

CVE-2023-34095 openprinting cpdb-libs: Out-of-bounds Write

9.8 criticalExploit referenceEPSS 1.5%Fix available

Critical (9.8) in openprinting cpdb-libs. EPSS 1.5% estimated probability of exploitation activity in the next 30 days.

On this page
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

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
1.5% (unchanged from 1.5% a week ago; 1.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 76th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: total, assessed 2024-12-30. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-787 Out-of-bounds Write
CWE-121 Stack-based Buffer Overflow
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-34095 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-34095?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-34095?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-34095 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
openprinting:cpdb-libsfrom 1.0 before 2.0
openprinting:cpdb-libs2.0:beta1
openprinting:cpdb-libs2.0:beta2
openprinting:cpdb-libs2.0:beta3
openprinting:cpdb-libs2.0:beta4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12cpdb-libs1.2.0-2+deb12u1DEBIAN-CVE-2023-34095
Debian13, 14cpdb-libs1.2.0-3DEBIAN-CVE-2023-34095
Ubuntu18.04:LTScpdb-libsno fix listedUBUNTU-CVE-2023-34095
Ubuntu20.04:LTScpdb-libs1.2.0-0ubuntu7.1UBUNTU-CVE-2023-34095 USN-6204-1
Ubuntu22.04:LTScpdb-libs1.2.0-0ubuntu8.1.22.04.1UBUNTU-CVE-2023-34095 USN-6204-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

References

Check your stackJSON