CVE-2023-24805
Command injection in cups-filters
Reported by github_m · Published May 17, 2023
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| cups-filters | Alpine | 1.28.17-r3, 1.28.17-r2 |
| cups-filters-libs | Amazon Linux | 1.28.16-3.amzn2023.0.1 |
| cups-filters | linuxfoundation | 2.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| OpenPrinting | cups-filters | <= 2.0rc1 |
| alpine | cups-filters | 0, 0 |
| amazon:2023 | cups-filters-libs | 0 |
| OpenPrinting | cups-filters | 0 |
| amazon:2023 | cups-filters-devel | 0 |
| amazon:2023 | cups-filters | 0 |
Timeline
- May 17, 2023 CVE Published
- May 18, 2023 EPSS Score (30 in total, the first dated here)
- Feb 13, 2025 CVE Updated
- Feb 20, 2026 Distribution Patch (10 in total, the first dated here)
- Feb 20, 2026 Security Advisory (13 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-24805
vulnetix vdb fixes CVE-2023-24805
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-24805/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart