Skip to content
OpenAdvisories
High · 8.8 CVE-2023-24805 EUVD-2023-28804

Command injection in cups-filters

Published May 17, 2023 · Updated Feb 13, 2025 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
OpenPrinting cups-filters <= 2.0rc1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 cups-filters 1.28.17-3 —
Debian 13 cups-filters 1.28.17-3 —
Debian 12 cups-filters 1.28.17-3 —
Debian 11 cups-filters 1.28.7-1+deb11u2 DSA-5407-1
Debian 10 cups-filters 1.21.6-5+deb10u1 DLA-3430-1
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS cups-filters 1.28.15-0ubuntu1.2 USN-6083-1
Ubuntu 20.04 LTS cups-filters 1.27.4-1ubuntu0.2 USN-6083-1
Ubuntu 18.04 LTS cups-filters 1.20.2-0ubuntu3.3 USN-6083-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS cups-filters 1.8.3-2ubuntu3.5+esm1 USN-6083-2
ReleasePackageFixed inAdvisory
RHEL 9 cups-filters +2 1.28.7-11.el9_2.1 RHSA-2023:3423
RHEL 8 cups-filters +2 1.20.0-29.el8_8.2 RHSA-2023:3425
Show 7 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 9.0 EUS cups-filters +2 1.28.7-10.el9_0.1 RHSA-2023:3424
RHEL 8.6 EUS cups-filters +2 1.20.0-27.el8_6.1 RHSA-2023:3426
RHEL 8.4 EUS cups-filters +2 1.20.0-24.el8_4.1 RHSA-2023:3427
RHEL 8.2 TUS cups-filters +1 1.20.0-19.el8_2.1 RHSA-2023:3428
RHEL 8.2 E4S cups-filters +1 1.20.0-19.el8_2.1 RHSA-2023:3428
RHEL 8.2 AUS cups-filters +1 1.20.0-19.el8_2.1 RHSA-2023:3428
RHEL 8.1 E4S cups-filters +1 1.20.0-18.el8_1.1 RHSA-2023:3429

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 cups-filters +2 1.28.7-11.el9_2.1 ALSA-2023:3423
AlmaLinux 8 cups-filters +2 1.20.0-29.el8_8.2 ALSA-2023:3425

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 9 cups-filters 1.28.7-11.el9_2.1 RLSA-2023:3423
Rocky Linux 8 cups-filters 1.20.0-29.el8_8.2 RLSA-2023:3425
ReleasePackageFixed inAdvisory
SLES 15 SP5 cups-filters 1.25.0-150200.3.6.1 SUSE-SU-2023:2233-1
SLES 15 SP4 cups-filters 1.25.0-150200.3.6.1 SUSE-SU-2023:2233-1
SLES 15 SP3 cups-filters 1.25.0-150200.3.6.1 SUSE-SU-2023:2233-1
SLES 15 SP2 cups-filters 1.25.0-150200.3.6.1 SUSE-SU-2023:2233-1
SLES 15 SP1 cups-filters 1.20.3-150000.3.10.1 SUSE-SU-2023:2287-1
SLES 15 SP1 poppler 0.62.0-150000.4.12.1 SUSE-SU-2023:2287-1
SLES 15 SP1 texlive 2017.20170520-150000.11.20.1 SUSE-SU-2023:2287-1
Show 11 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP3 cups-filters 1.25.0-150200.3.6.1 SUSE-SU-2023:2233-1
SLES for SAP 15 SP2 cups-filters 1.25.0-150200.3.6.1 SUSE-SU-2023:2233-1
SLES for SAP 15 SP1 cups-filters 1.20.3-150000.3.10.1 SUSE-SU-2023:2287-1
SLES for SAP 15 SP1 poppler 0.62.0-150000.4.12.1 SUSE-SU-2023:2287-1
SLES for SAP 15 SP1 texlive 2017.20170520-150000.11.20.1 SUSE-SU-2023:2287-1
SLE Real Time 15 SP3 cups-filters 1.25.0-150200.3.6.1 SUSE-SU-2023:2233-1
SLE HPC 15 SP3 cups-filters 1.25.0-150200.3.6.1 SUSE-SU-2023:2233-1
SLE HPC 15 SP2 cups-filters 1.25.0-150200.3.6.1 SUSE-SU-2023:2233-1
SLE HPC 15 SP1 cups-filters 1.20.3-150000.3.10.1 SUSE-SU-2023:2287-1
SLE HPC 15 SP1 poppler 0.62.0-150000.4.12.1 SUSE-SU-2023:2287-1
SLE HPC 15 SP1 texlive 2017.20170520-150000.11.20.1 SUSE-SU-2023:2287-1
SUSE Manager Server 4.2 cups-filters 1.25.0-150200.3.6.1 SUSE-SU-2023:2233-1
SUSE Manager Proxy 4.2 cups-filters 1.25.0-150200.3.6.1 SUSE-SU-2023:2233-1
SUSE Enterprise Storage 7.1 cups-filters 1.25.0-150200.3.6.1 SUSE-SU-2023:2233-1
SUSE Enterprise Storage 7 cups-filters 1.25.0-150200.3.6.1 SUSE-SU-2023:2233-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed cups-filters 1.28.15-3.1 openSUSE-SU-2024:12939-1
openSUSE Leap 15.5 cups-filters 1.25.0-150200.3.6.1 SUSE-SU-2023:2233-2
openSUSE Leap 15.4 cups-filters 1.25.0-150200.3.6.1 SUSE-SU-2023:2233-1
openSUSE Leap 15.4 poppler 0.62.0-150000.4.12.1 SUSE-SU-2023:2287-1
ReleasePackageFixed inAdvisory
Alpine v3.24 cups-filters 1.28.17-r3 —
Alpine v3.23 cups-filters 1.28.17-r3 —
Alpine v3.22 cups-filters 1.28.17-r3 —
Alpine v3.21 cups-filters 1.28.17-r3 —
Alpine v3.20 cups-filters 1.28.17-r3 —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 cups-filters 1.28.17-r3 —
Alpine v3.18 cups-filters 1.28.17-r2 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 cups-filters +2 1.28.16-3.amzn2023.0.1 ALAS2023-2023-223

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 cups-filters +2 1.28.7-11.0.1.el9_2.1 ELSA-2023-3423
Oracle Linux 8 cups-filters +2 1.20.0-29.0.1.el8_8.2 ELSA-2023-3425

Advisories 24

References