Ubuntu 20.04 LTS / 22.04 LTS / 23.04 : CPDB vulnerability (USN-6204-1)

critical Nessus Plugin ID 178001

Synopsis

The remote Ubuntu host is missing a security update.

Description

The remote Ubuntu 22.04 LTS host has packages installed that are affected by a vulnerability as referenced in the USN-6204-1 advisory.

- 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.
(CVE-2023-34095)

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Update the affected packages.

See Also

https://ubuntu.com/security/notices/USN-6204-1

Plugin Details

Severity: Critical

ID: 178001

File Name: ubuntu_USN-6204-1.nasl

Version: 1.2

Type: local

Agent: unix

Published: 7/5/2023

Updated: 10/20/2023

Supported Sensors: Frictionless Assessment AWS, Frictionless Assessment Azure, Frictionless Assessment Agent, Nessus Agent, Agentless Assessment, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: Critical

Base Score: 10

Temporal Score: 7.8

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C

CVSS Score Source: CVE-2023-34095

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.8

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

CPE: cpe:/o:canonical:ubuntu_linux:20.04:-:lts, cpe:/o:canonical:ubuntu_linux:22.04:-:lts, cpe:/o:canonical:ubuntu_linux:23.04, p-cpe:/a:canonical:ubuntu_linux:cpdb-libs-tools, p-cpe:/a:canonical:ubuntu_linux:libcpdb-backend-dev, p-cpe:/a:canonical:ubuntu_linux:libcpdb-dev, p-cpe:/a:canonical:ubuntu_linux:libcpdb-frontend-dev, p-cpe:/a:canonical:ubuntu_linux:libcpdb-frontend2, p-cpe:/a:canonical:ubuntu_linux:libcpdb-libs-backend-dev, p-cpe:/a:canonical:ubuntu_linux:libcpdb-libs-common-dev, p-cpe:/a:canonical:ubuntu_linux:libcpdb-libs-common1, p-cpe:/a:canonical:ubuntu_linux:libcpdb-libs-frontend-dev, p-cpe:/a:canonical:ubuntu_linux:libcpdb-libs-frontend1, p-cpe:/a:canonical:ubuntu_linux:libcpdb-libs-tools, p-cpe:/a:canonical:ubuntu_linux:libcpdb2

Required KB Items: Host/cpu, Host/Debian/dpkg-l, Host/Ubuntu, Host/Ubuntu/release

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 7/5/2023

Vulnerability Publication Date: 6/14/2023

Reference Information

CVE: CVE-2023-34095

USN: 6204-1