VDB

CVE-2023-24805

CVE-2023-24805 PUBLISHED CVSS 8.8 HIGH

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.

PackageEcosystemFixed in
cups-filtersAlpine1.28.17-r3, 1.28.17-r2
cups-filters-libsAmazon Linux1.28.16-3.amzn2023.0.1
cups-filterslinuxfoundation2.0

Risk scores

CVSS 3.1
8.8
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
OpenPrintingcups-filters<= 2.0rc1
alpinecups-filters0, 0
amazon:2023cups-filters-libs0
OpenPrintingcups-filters0
amazon:2023cups-filters-devel0
amazon:2023cups-filters0

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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›