9.8

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

Analyzed
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 75.7% of scored vulnerabilities. 2 public exploits are recorded.

Priority
Prioritisepublic exploit

Public exploit (GitHub, Date unknown)

Source freshness unavailable

How is this decided?
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 listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware 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

76%

Versus all other CVEs

30-day change

No change 0.00 pp

From 1.54% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

2 found
  • githubUnverified

    Cpdb Libs

    Maturity: poc

  • referenceUnverified

    Exploit Reference (openwall.com)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

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