CVEfocus › CVE database › CVE-2023-24805

CVE-2023-24805Command injection in cups-filters

CVSS 8.8 HighEPSS 2.8% (higher than 87% of CVEs)Published 2023-05-17Updated 2025-02-13Assigner: GitHub_M

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.

CWE-78

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

27Fixed
2Fix pending
3Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04cups-filtersFixed1.28.15-0ubuntu1.2UBUNTU-CVE-2023-24805
Ubuntu 20.04cups-filtersFixed1.27.4-1ubuntu0.2UBUNTU-CVE-2023-24805
Ubuntu 18.04cups-filtersFixed1.20.2-0ubuntu3.3UBUNTU-CVE-2023-24805
Ubuntu 16.04cups-filtersFix pending1.8.3-2ubuntu3.5+esm1 (Ubuntu Pro)UBUNTU-CVE-2023-24805
Ubuntu 14.04cups-filtersFix pending
Debian 14cups-filtersFixed1.28.17-3DEBIAN-CVE-2023-24805
Debian 13cups-filtersFixed1.28.17-3DEBIAN-CVE-2023-24805
Debian 12cups-filtersFixed1.28.17-3DEBIAN-CVE-2023-24805
Red Hat Enterprise Linux 9cups-filtersFixed0:1.28.7-11.el9_2.1RHSA-2023:3423
Red Hat Enterprise Linux 9cups-filters-develFixed0:1.28.7-11.el9_2.1RHSA-2023:3423
Red Hat Enterprise Linux 9cups-filters-libsFixed0:1.28.7-11.el9_2.1RHSA-2023:3423
Red Hat Enterprise Linux 8cups-filtersFixed0:1.20.0-29.el8_8.2RHSA-2023:3425
Red Hat Enterprise Linux 8cups-filters-develFixed0:1.20.0-29.el8_8.2RHSA-2023:3425
Red Hat Enterprise Linux 8cups-filters-libsFixed0:1.20.0-29.el8_8.2RHSA-2023:3425
Red Hat Enterprise Linux 7cups-filtersNot affected
Red Hat Enterprise Linux 7cups-filters-develNot affected
Red Hat Enterprise Linux 7cups-filters-libsNot affected
AlmaLinux 9cups-filtersFixed1.28.7-11.el9_2.1ALSA-2023:3423
AlmaLinux 9cups-filters-develFixed1.28.7-11.el9_2.1ALSA-2023:3423
AlmaLinux 9cups-filters-libsFixed1.28.7-11.el9_2.1ALSA-2023:3423
AlmaLinux 8cups-filtersFixed1.20.0-29.el8_8.2ALSA-2023:3425
AlmaLinux 8cups-filters-develFixed1.20.0-29.el8_8.2ALSA-2023:3425
AlmaLinux 8cups-filters-libsFixed1.20.0-29.el8_8.2ALSA-2023:3425
Rocky Linux 9cups-filtersFixed0:1.28.7-11.el9_2.1RLSA-2023:3423
Rocky Linux 8cups-filtersFixed0:1.20.0-29.el8_8.2RLSA-2023:3425
Alpine Linux 3.24cups-filtersFixed1.28.17-r3ALPINE-CVE-2023-24805
Alpine Linux 3.23cups-filtersFixed1.28.17-r3ALPINE-CVE-2023-24805
Alpine Linux 3.22cups-filtersFixed1.28.17-r3ALPINE-CVE-2023-24805
Alpine Linux 3.21cups-filtersFixed1.28.17-r3ALPINE-CVE-2023-24805
Alpine Linux 3.20cups-filtersFixed1.28.17-r3ALPINE-CVE-2023-24805
Alpine Linux 3.19cups-filtersFixed1.28.17-r3ALPINE-CVE-2023-24805
Alpine Linux 3.18cups-filtersFixed1.28.17-r2ALPINE-CVE-2023-24805

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.