Vulnerability · Published May 17, 2023 · Assigned by GitHub_M

CVE-2023-24805Command injection in cups-filters

High 8.8

In plain English

A high-severity OS command injection in cups-filters from OpenPrinting. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 3.7% (higher than 90% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.8High
Exploit odds (30 days)3.7%top 10.2% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

cups-filters contains backends, filters, and other software required to get the cups printing service working on operating systems other than macos. If you use the Backend Error Handler (beh) to create an accessible network printer, this security vulnerability can cause remote code execution. `beh.c` contains the line `retval = system(cmdline) >> 8;` which calls the `system` command with the operand `cmdline`. `cmdline` contains multiple user controlled, unsanitized values. As a result an attacker with network access to the hosted print server can exploit this vulnerability to inject system commands which are executed in the context of the running server. This issue has been addressed in commit `8f2740357` and is expected to be bundled in the next release. Users are advised to upgrade when possible and to restrict access to network printers in the meantime.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8cups-filters1.20.0-29.el8_8.2ALSA-2023:3425
AlmaLinux:9cups-filters1.28.7-11.el9_2.1ALSA-2023:3423
AlmaLinux:8cups-filters-devel1.20.0-29.el8_8.2ALSA-2023:3425
AlmaLinux:9cups-filters-devel1.28.7-11.el9_2.1ALSA-2023:3423
AlmaLinux:8cups-filters-libs1.20.0-29.el8_8.2ALSA-2023:3425
AlmaLinux:9cups-filters-libs1.28.7-11.el9_2.1ALSA-2023:3423
Alpine:v3.20cups-filters1.28.17-r3ALPINE-CVE-2023-24805
Alpine:v3.21cups-filters1.28.17-r3ALPINE-CVE-2023-24805
Alpine:v3.22cups-filters1.28.17-r3ALPINE-CVE-2023-24805
Alpine:v3.23cups-filters1.28.17-r3ALPINE-CVE-2023-24805
Alpine:v3.24cups-filters1.28.17-r3ALPINE-CVE-2023-24805
Debian:12cups-filters1.28.17-3DEBIAN-CVE-2023-24805
Debian:13cups-filters1.28.17-3DEBIAN-CVE-2023-24805
Debian:14cups-filters1.28.17-3DEBIAN-CVE-2023-24805
Rocky Linux:8cups-filters0:1.20.0-29.el8_8.2RLSA-2023:3425
Rocky Linux:9cups-filters0:1.28.7-11.el9_2.1RLSA-2023:3423
Ubuntu:22.04:LTScups-filters1.28.15-0ubuntu1.2USN-6083-1
Ubuntu:22.04:LTScups-filters1.28.15-0ubuntu1.2UBUNTU-CVE-2023-24805

Affected products (as reported)

VendorProductVersions
OpenPrinting cups-filters <= 2.0rc1

Weakness: CWE-78 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

References