CVE-2023-24805
Command injection in cups-filters
Check your servers for CVE-2023-24805
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2023-24805 affects cups-filters, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 3.73%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 90.0% of all scored CVEs. Scores of 1 Dec 2026.
Weakness
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| cups-filters |
affected <= 2.0rc1
|
Is my server affected?
Find the installed version of cups-filters and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i cups-filters
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2023-24805 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2023-24805RHEL, Rocky, Alma, Fedora
rpm -q cups-filters
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2023-24805Alpine
apk list --installed | grep -i cups-filtersWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2023-24805
trivy image --scanners vuln IMAGE | grep CVE-2023-24805
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
Other references
- https://github.com/OpenPrinting/cups-filters/commit/8f274035756c04efeb77eb654e9d4c4447287d65 github.com
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/YNCGL2ZTAS2GFF23QFT55UFWIDMI4ZJK/ lists.fedoraproject.org
- https://lists.debian.org/debian-lts-announce/2023/05/msg00021.html lists.debian.org
- https://www.debian.org/security/2023/dsa-5407 debian.org
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KL2SJMZQ5T5JIH3PMQ2CGCY5TUUE255Y/ lists.fedoraproject.org
- https://security.gentoo.org/glsa/202401-06 security.gentoo.org
Source: the record CVE-2023-24805 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse