CVE-2023-24805 Command injection in cups-filters
Remote attackers can execute arbitrary system commands on print servers using the Backend Error Handler feature in cups-filters.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-24805?
CVE-2023-24805 is a high-severity command injection vulnerability in Debian Debian Linux, published on 17 May 2023. Any signed-in user can exploit it over the network, with no action from the victim.
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.
Weakness: CWE-78
Which versions are affected by CVE-2023-24805?
It affects 3 products.
Linux distribution packages (40)
cups-filters AlmaLinux:8 | All versions | 1.20.0-29.el8_8.2 |
cups-filters-devel AlmaLinux:8 | All versions | 1.20.0-29.el8_8.2 |
cups-filters-libs AlmaLinux:8 | All versions | 1.20.0-29.el8_8.2 |
cups-filters AlmaLinux:9 | All versions | 1.28.7-11.el9_2.1 |
cups-filters-devel AlmaLinux:9 | All versions | 1.28.7-11.el9_2.1 |
cups-filters-libs AlmaLinux:9 | All versions | 1.28.7-11.el9_2.1 |
cups-filters Red Hat:enterprise_linux:8::appstream | All versions | 0:1.20.0-29.el8_8.2 |
cups-filters-debuginfo Red Hat:enterprise_linux:8::appstream | All versions | 0:1.20.0-29.el8_8.2 |
cups-filters-debugsource Red Hat:enterprise_linux:8::appstream | All versions | 0:1.20.0-29.el8_8.2 |
cups-filters-libs Red Hat:enterprise_linux:8::appstream | All versions | 0:1.20.0-29.el8_8.2 |
cups-filters-libs-debuginfo Red Hat:enterprise_linux:8::appstream | All versions | 0:1.20.0-29.el8_8.2 |
cups-filters-debuginfo Red Hat:enterprise_linux:8::crb | All versions | 0:1.20.0-29.el8_8.2 |
cups-filters-debugsource Red Hat:enterprise_linux:8::crb | All versions | 0:1.20.0-29.el8_8.2 |
cups-filters-devel Red Hat:enterprise_linux:8::crb | All versions | 0:1.20.0-29.el8_8.2 |
cups-filters-libs-debuginfo Red Hat:enterprise_linux:8::crb | All versions | 0:1.20.0-29.el8_8.2 |
cups-filters Red Hat:enterprise_linux:9::appstream | All versions | 0:1.28.7-11.el9_2.1 |
cups-filters-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:1.28.7-11.el9_2.1 |
cups-filters-debugsource Red Hat:enterprise_linux:9::appstream | All versions | 0:1.28.7-11.el9_2.1 |
cups-filters-libs Red Hat:enterprise_linux:9::appstream | All versions | 0:1.28.7-11.el9_2.1 |
cups-filters-libs-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:1.28.7-11.el9_2.1 |
cups-filters-debuginfo Red Hat:enterprise_linux:9::crb | All versions | 0:1.28.7-11.el9_2.1 |
cups-filters-debugsource Red Hat:enterprise_linux:9::crb | All versions | 0:1.28.7-11.el9_2.1 |
cups-filters-devel Red Hat:enterprise_linux:9::crb | All versions | 0:1.28.7-11.el9_2.1 |
cups-filters-libs-debuginfo Red Hat:enterprise_linux:9::crb | All versions | 0:1.28.7-11.el9_2.1 |
cups-filters Red Hat:rhel_aus:8.2::appstream | All versions | 0:1.20.0-19.el8_2.1 |
cups-filters-debuginfo Red Hat:rhel_aus:8.2::appstream | All versions | 0:1.20.0-19.el8_2.1 |
cups-filters-debugsource Red Hat:rhel_aus:8.2::appstream | All versions | 0:1.20.0-19.el8_2.1 |
cups-filters-libs Red Hat:rhel_aus:8.2::appstream | All versions | 0:1.20.0-19.el8_2.1 |
cups-filters-libs-debuginfo Red Hat:rhel_aus:8.2::appstream | All versions | 0:1.20.0-19.el8_2.1 |
cups-filters Red Hat:rhel_e4s:8.1::appstream | All versions | 0:1.20.0-18.el8_1.1 |
cups-filters-debuginfo Red Hat:rhel_e4s:8.1::appstream | All versions | 0:1.20.0-18.el8_1.1 |
cups-filters-debugsource Red Hat:rhel_e4s:8.1::appstream | All versions | 0:1.20.0-18.el8_1.1 |
cups-filters-libs Red Hat:rhel_e4s:8.1::appstream | All versions | 0:1.20.0-18.el8_1.1 |
cups-filters-libs-debuginfo Red Hat:rhel_e4s:8.1::appstream | All versions | 0:1.20.0-18.el8_1.1 |
cups-filters Red Hat:rhel_e4s:8.2::appstream | All versions | 0:1.20.0-19.el8_2.1 |
cups-filters-debuginfo Red Hat:rhel_e4s:8.2::appstream | All versions | 0:1.20.0-19.el8_2.1 |
cups-filters-debugsource Red Hat:rhel_e4s:8.2::appstream | All versions | 0:1.20.0-19.el8_2.1 |
cups-filters-libs Red Hat:rhel_e4s:8.2::appstream | All versions | 0:1.20.0-19.el8_2.1 |
cups-filters-libs-debuginfo Red Hat:rhel_e4s:8.2::appstream | All versions | 0:1.20.0-19.el8_2.1 |
cups-filters Red Hat:rhel_eus:8.4::appstream | All versions | 0:1.20.0-24.el8_4.1 |
Products include Debian Debian Linux, Fedoraproject Fedora, Linuxfoundation Cups-Filters.
How do I fix CVE-2023-24805?
Upgrade to a fixed version.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2023-24805 being exploited?
There is no known exploitation of CVE-2023-24805 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as ALSA-2023:3423, ALSA-2023:3425, CLEANSTART-2024-CB04039, DEBIAN-CVE-2023-24805, DLA-3430-1, DSA-5407-1 and 18 more.