9.8

CVE-2023-34095: openprinting cpdb-libs Stack-based Buffer Overflow

CVSS: 9.8v3.1CriticalAnalyzed
AliasesUBUNTU-CVE-2023-34095USN-6204-1DEBIAN-CVE-2023-34095
Published 14-06-2023Last modified 13-02-2025

Vulnerability summary

CVE-2023-34095 is a critical (CVSS 9.8) Stack-based Buffer Overflow vulnerability in openprinting cpdb-libs. EPSS estimates a 1.54% chance of exploitation in the next 30 days, higher than 74.5% of scored vulnerabilities. 2 public exploits are recorded.

Overall risk
70/100
0100
High · default modelHow is this calculated?
CVSS score
9.8/10
010
Critical · v3.1 (CVE.org)
EPSS score
1.54%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits2github, reference

Timeline

  1. 14-06-2023
    PublishedVulnerability first disclosed.
  2. 13-02-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

4 scores · 4 sources · 1 version

EPSS trend

Probability

1.54%

Chance of exploitation in the next 30 days

Percentile

75%

Versus all other CVEs

30-day change

0.00 pp

From 1.54% on 19-09-2026

19-09-202619-10-2026
EPSS score
1.54%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

2 found
  • githubUnverified

    Cpdb Libs

    Maturity: poc

  • referenceUnverified

    Exploit Reference (openwall.com)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Debian1 product
  • cpdb-libs< 1.2.0-2+deb12u1 | < 1.2.0-3
Openprinting1 product
  • cpdb-libs≥ 1.0, ≤ 2.0b4 | ≥ 1.0, < 2.0 | 2.0:beta1 | 2.0:beta2 | 2.0:beta3 | 2.0:beta4
Ubuntu1 product
  • cpdb-libsAll versions (No fix recorded) | < 1.2.0-0ubuntu7.1 | < 1.2.0-0ubuntu8.1.22.04.1

3 vendors · 3 products

References

11 links
Show all 11 references