CVE-2023-24805Command injection in cups-filters
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 22.04 | cups-filters | Fixed | 1.28.15-0ubuntu1.2 | UBUNTU-CVE-2023-24805 |
| Ubuntu 20.04 | cups-filters | Fixed | 1.27.4-1ubuntu0.2 | UBUNTU-CVE-2023-24805 |
| Ubuntu 18.04 | cups-filters | Fixed | 1.20.2-0ubuntu3.3 | UBUNTU-CVE-2023-24805 |
| Ubuntu 16.04 | cups-filters | Fix pending | 1.8.3-2ubuntu3.5+esm1 (Ubuntu Pro) | UBUNTU-CVE-2023-24805 |
| Ubuntu 14.04 | cups-filters | Fix pending | ||
| Debian 14 | cups-filters | Fixed | 1.28.17-3 | DEBIAN-CVE-2023-24805 |
| Debian 13 | cups-filters | Fixed | 1.28.17-3 | DEBIAN-CVE-2023-24805 |
| Debian 12 | cups-filters | Fixed | 1.28.17-3 | DEBIAN-CVE-2023-24805 |
| Red Hat Enterprise Linux 9 | cups-filters | Fixed | 0:1.28.7-11.el9_2.1 | RHSA-2023:3423 |
| Red Hat Enterprise Linux 9 | cups-filters-devel | Fixed | 0:1.28.7-11.el9_2.1 | RHSA-2023:3423 |
| Red Hat Enterprise Linux 9 | cups-filters-libs | Fixed | 0:1.28.7-11.el9_2.1 | RHSA-2023:3423 |
| Red Hat Enterprise Linux 8 | cups-filters | Fixed | 0:1.20.0-29.el8_8.2 | RHSA-2023:3425 |
| Red Hat Enterprise Linux 8 | cups-filters-devel | Fixed | 0:1.20.0-29.el8_8.2 | RHSA-2023:3425 |
| Red Hat Enterprise Linux 8 | cups-filters-libs | Fixed | 0:1.20.0-29.el8_8.2 | RHSA-2023:3425 |
| Red Hat Enterprise Linux 7 | cups-filters | Not affected | ||
| Red Hat Enterprise Linux 7 | cups-filters-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | cups-filters-libs | Not affected | ||
| AlmaLinux 9 | cups-filters | Fixed | 1.28.7-11.el9_2.1 | ALSA-2023:3423 |
| AlmaLinux 9 | cups-filters-devel | Fixed | 1.28.7-11.el9_2.1 | ALSA-2023:3423 |
| AlmaLinux 9 | cups-filters-libs | Fixed | 1.28.7-11.el9_2.1 | ALSA-2023:3423 |
| AlmaLinux 8 | cups-filters | Fixed | 1.20.0-29.el8_8.2 | ALSA-2023:3425 |
| AlmaLinux 8 | cups-filters-devel | Fixed | 1.20.0-29.el8_8.2 | ALSA-2023:3425 |
| AlmaLinux 8 | cups-filters-libs | Fixed | 1.20.0-29.el8_8.2 | ALSA-2023:3425 |
| Rocky Linux 9 | cups-filters | Fixed | 0:1.28.7-11.el9_2.1 | RLSA-2023:3423 |
| Rocky Linux 8 | cups-filters | Fixed | 0:1.20.0-29.el8_8.2 | RLSA-2023:3425 |
| Alpine Linux 3.24 | cups-filters | Fixed | 1.28.17-r3 | ALPINE-CVE-2023-24805 |
| Alpine Linux 3.23 | cups-filters | Fixed | 1.28.17-r3 | ALPINE-CVE-2023-24805 |
| Alpine Linux 3.22 | cups-filters | Fixed | 1.28.17-r3 | ALPINE-CVE-2023-24805 |
| Alpine Linux 3.21 | cups-filters | Fixed | 1.28.17-r3 | ALPINE-CVE-2023-24805 |
| Alpine Linux 3.20 | cups-filters | Fixed | 1.28.17-r3 | ALPINE-CVE-2023-24805 |
| Alpine Linux 3.19 | cups-filters | Fixed | 1.28.17-r3 | ALPINE-CVE-2023-24805 |
| Alpine Linux 3.18 | cups-filters | Fixed | 1.28.17-r2 | ALPINE-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.
- OpenPrinting cups-filters: affected: <= 2.0rc1
References
- https://github.com/OpenPrinting/cups-filters/security/advisories/GHSA-gpxc-v2m8-fr3x
- https://github.com/OpenPrinting/cups-filters/commit/8f274035756c04efeb77eb654e9d4c4447287d65
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/YNCGL2ZTAS2GFF23QFT55UFWIDMI4ZJK/
- https://lists.debian.org/debian-lts-announce/2023/05/msg00021.html
- https://www.debian.org/security/2023/dsa-5407
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KL2SJMZQ5T5JIH3PMQ2CGCY5TUUE255Y/
- https://security.gentoo.org/glsa/202401-06
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.