Skip to content
Fencer Vulns
high 8.8

CVE-2023-24805 json

Command injection in cups-filters

published 2023-05-17 3 y ago modified 2026-06-17 4 mo ago also EUVD-2023-28804

cvss
8.8
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
3.7%
EPSS 3.7% chance of exploitation in 30 days, percentile 89%
public exploits
0
none known

Summary

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.

Patch / fix

  • linuxfoundation cups-filters 2.0
  • cups-filters Debian 14, Debian 13, Debian 12 1.28.17-3

debian advisories DEBIAN-CVE-2023-24805

  • cups-filters Ubuntu 18.04 LTS 1.20.2-0ubuntu3.3
  • cups-filters Ubuntu 20.04 LTS 1.27.4-1ubuntu0.2
  • cups-filters Ubuntu 22.04 LTS 1.28.15-0ubuntu1.2
  • cups-filters Ubuntu Pro 16.04 LTS 1.8.3-2ubuntu3.5+esm1

ubuntu advisories UBUNTU-CVE-2023-24805

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • cups-filters RHEL 8 1.20.0-29.el8_8.2
  • cups-filters-libs RHEL 8 1.20.0-29.el8_8.2
  • cups-filters RHEL 9 1.28.7-11.el9_2.1
  • cups-filters-libs RHEL 9 1.28.7-11.el9_2.1
  • cups-filters RHEL 8.2 TUS, RHEL 8.2 E4S, RHEL 8.2 AUS 1.20.0-19.el8_2.1
  • cups-filters-libs RHEL 8.2 TUS, RHEL 8.2 E4S, RHEL 8.2 AUS 1.20.0-19.el8_2.1
  • cups-filters RHEL 8.1 E4S 1.20.0-18.el8_1.1
  • cups-filters-libs RHEL 8.1 E4S 1.20.0-18.el8_1.1

red hat advisories RHSA-2023:3428RHSA-2023:3425RHSA-2023:3429RHSA-2023:3426RHSA-2023:3423RHSA-2023:3427

  • cups-filters SLE Real Time 15 SP3, SLE Module for Basesystem 15 SP5, SLE Module for Basesystem 15 SP4 +13 more 1.25.0-150200.3.6.1
  • poppler SLES for SAP 15 SP1, SLES 15 SP1-LTSS, SLE High Performance Computing 15 SP1-LTSS +1 more 0.62.0-150000.4.12.1
  • texlive SLES for SAP 15 SP1, SLES 15 SP1-LTSS, SLE High Performance Computing 15 SP1-LTSS 2017.20170520-150000.11.20.1
  • cups-filters SLES for SAP 15 SP1, SLES 15 SP1-LTSS, SLE High Performance Computing 15 SP1-LTSS 1.20.3-150000.3.10.1

suse advisories SUSE-SU-2023:2233-2SUSE-SU-2023:2287-1SUSE-SU-2023:2233-1

  • cups-filters openSUSE Tumbleweed 1.28.15-3.1

opensuse advisories openSUSE-SU-2024:12939-1

  • cups-filters AlmaLinux 9 1.28.7-11.el9_2.1
  • cups-filters-libs AlmaLinux 9 1.28.7-11.el9_2.1
  • cups-filters AlmaLinux 8 1.20.0-29.el8_8.2
  • cups-filters-libs AlmaLinux 8 1.20.0-29.el8_8.2

almalinux advisories ALSA-2023:3423ALSA-2023:3425

  • cups-filters Rocky Linux 9 1.28.7-11.el9_2.1
  • cups-filters Rocky Linux 8 1.20.0-29.el8_8.2

rocky linux advisories RLSA-2023:3423RLSA-2023:3425

  • cups-filters Alpine 3.18 1.28.17-r2
  • cups-filters Alpine 3.24, Alpine 3.23, Alpine 3.22 +3 more 1.28.17-r3

alpine advisories ALPINE-CVE-2023-24805

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2023-24805 updated cvss 8.8

cups-filters: remote code execution in cups-filters, beh CUPS backend

  • Red Hat CodeReady Linux Builder EUS (v.8.6) cups-filters-devel 1.20.0-27.el8_6.1, cups-filters-debuginfo 1.20.0-27.el8_6.1, cups-filters-debugsource 1.20.0-27.el8_6.1, cups-filters-libs-debuginfo 1.20.0-27.el8_6.1
    fixed: vendor fix RHSA-2023:3426
  • Red Hat CodeReady Linux Builder EUS (v.9.0) cups-filters-devel 1.28.7-10.el9_0.1, cups-filters-debuginfo 1.28.7-10.el9_0.1, cups-filters-debugsource 1.28.7-10.el9_0.1, cups-filters-libs-debuginfo 1.28.7-10.el9_0.1
    fixed: vendor fix RHSA-2023:3424
  • Red Hat Enterprise Linux AppStream (v. 8) cups-filters 1.20.0-29.el8_8.2, cups-filters-libs 1.20.0-29.el8_8.2
    fixed: vendor fix RHSA-2023:3425
  • Red Hat Enterprise Linux AppStream (v. 9) cups-filters 1.28.7-11.el9_2.1, cups-filters-libs 1.28.7-11.el9_2.1
    fixed: vendor fix RHSA-2023:3423
  • Red Hat Enterprise Linux AppStream AUS (v. 8.2) cups-filters 1.20.0-19.el8_2.1, cups-filters-libs 1.20.0-19.el8_2.1
    fixed: vendor fix RHSA-2023:3428
  • Red Hat Enterprise Linux AppStream E4S (v. 8.1) cups-filters 1.20.0-18.el8_1.1, cups-filters-libs 1.20.0-18.el8_1.1
    fixed: vendor fix RHSA-2023:3429
  • Red Hat Enterprise Linux AppStream E4S (v. 8.2) cups-filters 1.20.0-19.el8_2.1, cups-filters-libs 1.20.0-19.el8_2.1
    fixed: vendor fix RHSA-2023:3428
  • Red Hat Enterprise Linux AppStream EUS (v.8.4) cups-filters 1.20.0-24.el8_4.1, cups-filters-libs 1.20.0-24.el8_4.1
    fixed: vendor fix RHSA-2023:3427
show 7 more
  • Red Hat Enterprise Linux AppStream EUS (v.8.6) cups-filters 1.20.0-27.el8_6.1, cups-filters-libs 1.20.0-27.el8_6.1
    fixed: vendor fix RHSA-2023:3426
  • Red Hat Enterprise Linux AppStream EUS (v.9.0) cups-filters 1.28.7-10.el9_0.1, cups-filters-libs 1.28.7-10.el9_0.1
    fixed: vendor fix RHSA-2023:3424
  • Red Hat Enterprise Linux AppStream TUS (v. 8.2) cups-filters 1.20.0-19.el8_2.1, cups-filters-libs 1.20.0-19.el8_2.1
    fixed: vendor fix RHSA-2023:3428
  • Red Hat Enterprise Linux CRB (v. 8) cups-filters-devel 1.20.0-29.el8_8.2, cups-filters-debuginfo 1.20.0-29.el8_8.2, cups-filters-debugsource 1.20.0-29.el8_8.2, cups-filters-libs-debuginfo 1.20.0-29.el8_8.2
    fixed: vendor fix RHSA-2023:3425
  • Red Hat Enterprise Linux CRB (v. 9) cups-filters-devel 1.28.7-11.el9_2.1, cups-filters-debuginfo 1.28.7-11.el9_2.1, cups-filters-debugsource 1.28.7-11.el9_2.1, cups-filters-libs-debuginfo 1.28.7-11.el9_2.1
    fixed: vendor fix RHSA-2023:3423
  • Red Hat Enterprise Linux CRB EUS (v.8.4) cups-filters-devel 1.20.0-24.el8_4.1, cups-filters-debuginfo 1.20.0-24.el8_4.1, cups-filters-debugsource 1.20.0-24.el8_4.1, cups-filters-libs-debuginfo 1.20.0-24.el8_4.1
    fixed: vendor fix RHSA-2023:3427
  • Red Hat Enterprise Linux 7 cups-filters, cups-filters-libs
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

3.70% chance of exploitation in the next 30 days, higher than 89% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • github.com https://github.com/OpenPrinting/cups-filters/security/advisories/GHSA-gpxc-v2m8-fr3x referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 3.1 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD 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

  • OpenPrinting cups-filters

Classification

Weakness
  • CWE-78 Improper Neutralization of Special Elements used in an OS Command

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.