CVE-2023-24805

NameCVE-2023-24805
Descriptioncups-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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-3430-1, DSA-5407-1, ELA-852-1
Debian Bugs1036224

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
cups-filters (PTS)jessie, jessie (lts)1.0.61-5+deb8u4fixed
stretch (security)1.11.6-3+deb9u1vulnerable
stretch (lts), stretch1.11.6-3+deb9u2fixed
buster1.21.6-5vulnerable
buster (security)1.21.6-5+deb10u1fixed
bullseye1.28.7-1+deb11u1vulnerable
bullseye (security)1.28.7-1+deb11u2fixed
sid, trixie, bookworm1.28.17-3fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
cups-filterssourcejessie(not affected)
cups-filterssourcestretch1.11.6-3+deb9u2ELA-852-1
cups-filterssourcebuster1.21.6-5+deb10u1DLA-3430-1
cups-filterssourcebullseye1.28.7-1+deb11u2DSA-5407-1
cups-filterssource(unstable)1.28.17-31036224

Notes

https://www.openwall.com/lists/oss-security/2023/05/17/5
https://github.com/OpenPrinting/cups-filters/security/advisories/GHSA-gpxc-v2m8-fr3x
Fixed by: https://github.com/OpenPrinting/cups-filters/commit/8f274035756c04efeb77eb654e9d4c4447287d65 (master)
Fixed by: https://github.com/OpenPrinting/cups-filters/commit/93e60d3df358c0ae6f3dba79e1c9684657683d89 (1.x)
[jessie] - cups-filters <not-affected> (Vulnerable code introduced later)

Search for package or bug name: Reporting problems