CVE catalog

CVE-2023-34095

cpdb-libs: CVE-2023-34095

[CVE catalog]

Severity
Medium
Published
Source
[NVD] · [CVE record]
EPSS
1.54% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiancpdb-libssid2.0~b5-2fixed
Debiancpdb-libsforky2.0~b5-2fixed
Debiancpdb-libstrixie2.0~b5-1.2fixed
Debiancpdb-libsbookworm1.2.0-2+deb12u1fixed
Ubuntucpdb-libs20.041.2.0-0ubuntu6vulnerable
Ubuntucpdb-libs20.041.2.0-0ubuntu7vulnerable
Ubuntucpdb-libs20.041.2.0-0ubuntu7.1fixed
Ubuntucpdb-libs22.041.2.0-0ubuntu8vulnerable
Ubuntucpdb-libs22.041.2.0-0ubuntu8.1.22.04.1fixed
Ubuntucpdb-libs18.041.1.0-0ubuntu2vulnerable
Ubuntucpdb-libs18.041.1.1-0ubuntu1vulnerable
Ubuntucpdb-libs20.041.2.0-0ubuntu6vulnerable
Ubuntucpdb-libs20.041.2.0-0ubuntu7vulnerable
Ubuntucpdb-libs20.041.2.0-0ubuntu7.1fixed
Ubuntucpdb-libs22.041.2.0-0ubuntu8vulnerable
Ubuntucpdb-libs22.041.2.0-0ubuntu8.1.22.04.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiancpdb-libssourcesid1.2.0-3not yet assignedNot reported[1038253]
Debiancpdb-libssourceforky1.2.0-3not yet assignedNot reported[1038253]
Debiancpdb-libssourcetrixie1.2.0-3not yet assignedNot reported[1038253]
Debiancpdb-libssourcebookworm1.2.0-2+deb12u1not yet assignedNot reported[1038253]
Ubuntucpdb-libsdeb20.041.2.0-0ubuntu7.1Not reportedUSN-6204-1Not reported
Ubuntucpdb-libsdeb22.041.2.0-0ubuntu8.1.22.04.1Not reportedUSN-6204-1Not reported
Ubuntucpdb-libsdeb20.041.2.0-0ubuntu7.1Not reportedUBUNTU-CVE-2023-34095Not reported
Ubuntucpdb-libsdeb22.041.2.0-0ubuntu8.1.22.04.1Not reportedUBUNTU-CVE-2023-34095Not reported

[Debian bug #1038253]

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

References