Vulnerabilities / CVE-2023-34095

critical

CVE-2023-34095

cpdb-libs provides frontend and backend libraries for the Common Print ...

Published Modified CWE 121, 787
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Ubuntu (medium).

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.

Affected packages and fixed versions

SourcePackageFixed in
debian 12cpdb-libs1.2.0-2+deb12u1
debian 13cpdb-libs1.2.0-3
debian 14cpdb-libs1.2.0-3
echocpdb-libs1.2.0-2+deb12u1
ubuntu 18.04-ESMcpdb-libsno fix listed
ubuntu 20.04cpdb-libs1.2.0-0ubuntu7.1
ubuntu 20.04-ESMcpdb-libs1.2.0-0ubuntu7.1
ubuntu 22.04cpdb-libs1.2.0-0ubuntu8.1.22.04.1
ubuntu 22.10cpdb-libs1.2.0-0ubuntu8.1.22.10.1
ubuntu 23.04cpdb-libs2.0~b4-0ubuntu2.1
ubuntu 23.10cpdb-libs2.0~b4-0ubuntu4
ubuntu 24.04cpdb-libs2.0~b4-0ubuntu4
Show all 17 entries from 17 sources
SourcePackageFixed in
debian 12cpdb-libs1.2.0-2+deb12u1
debian 13cpdb-libs1.2.0-3
debian 14cpdb-libs1.2.0-3
echocpdb-libs1.2.0-2+deb12u1
ubuntu 18.04-ESMcpdb-libsno fix listed
ubuntu 20.04cpdb-libs1.2.0-0ubuntu7.1
ubuntu 20.04-ESMcpdb-libs1.2.0-0ubuntu7.1
ubuntu 22.04cpdb-libs1.2.0-0ubuntu8.1.22.04.1
ubuntu 22.10cpdb-libs1.2.0-0ubuntu8.1.22.10.1
ubuntu 23.04cpdb-libs2.0~b4-0ubuntu2.1
ubuntu 23.10cpdb-libs2.0~b4-0ubuntu4
ubuntu 24.04cpdb-libs2.0~b4-0ubuntu4
ubuntu 24.10cpdb-libs2.0~b4-0ubuntu4
ubuntu 25.04cpdb-libs2.0~b4-0ubuntu4
ubuntu 25.10cpdb-libs2.0~b4-0ubuntu4
ubuntu 26.04cpdb-libs2.0~b4-0ubuntu4
ubuntu 26.10cpdb-libs2.0~b4-0ubuntu4

References

All 9 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.