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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | cups-filters | 1.20.0-29.el8_8.2 | ALSA-2023:3425 |
| AlmaLinux:9 | cups-filters | 1.28.7-11.el9_2.1 | ALSA-2023:3423 |
| AlmaLinux:8 | cups-filters-devel | 1.20.0-29.el8_8.2 | ALSA-2023:3425 |
| AlmaLinux:9 | cups-filters-devel | 1.28.7-11.el9_2.1 | ALSA-2023:3423 |
| AlmaLinux:8 | cups-filters-libs | 1.20.0-29.el8_8.2 | ALSA-2023:3425 |
| AlmaLinux:9 | cups-filters-libs | 1.28.7-11.el9_2.1 | ALSA-2023:3423 |
| Alpine:v3.20 | cups-filters | 1.28.17-r3 | ALPINE-CVE-2023-24805 |
| Alpine:v3.21 | cups-filters | 1.28.17-r3 | ALPINE-CVE-2023-24805 |
| Alpine:v3.22 | cups-filters | 1.28.17-r3 | ALPINE-CVE-2023-24805 |
| Alpine:v3.23 | cups-filters | 1.28.17-r3 | ALPINE-CVE-2023-24805 |
| Alpine:v3.24 | cups-filters | 1.28.17-r3 | ALPINE-CVE-2023-24805 |
| Debian:12 | cups-filters | 1.28.17-3 | DEBIAN-CVE-2023-24805 |
| Debian:13 | cups-filters | 1.28.17-3 | DEBIAN-CVE-2023-24805 |
| Debian:14 | cups-filters | 1.28.17-3 | DEBIAN-CVE-2023-24805 |
| Rocky Linux:8 | cups-filters | 0:1.20.0-29.el8_8.2 | RLSA-2023:3425 |
| Rocky Linux:9 | cups-filters | 0:1.28.7-11.el9_2.1 | RLSA-2023:3423 |
| Ubuntu:22.04:LTS | cups-filters | 1.28.15-0ubuntu1.2 | USN-6083-1 |
| Ubuntu:22.04:LTS | cups-filters | 1.28.15-0ubuntu1.2 | UBUNTU-CVE-2023-24805 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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
- https://github.com/OpenPrinting/cups-filters/security/advisories/GHSA-gpxc-v2m8-fr3x x_refsource_CONFIRM
- https://github.com/OpenPrinting/cups-filters/commit/8f274035756c04efeb77eb654e9d4c4447287d65 x_refsource_MISC
- 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