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
Debian Bugs1036224

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
cups-filters (PTS)bullseye1.28.7-1+deb11u2fixed
bullseye (security)1.28.7-1+deb11u3fixed
bookworm1.28.17-3fixed
bookworm (security)1.28.17-3+deb12u1fixed
sid, trixie1.28.17-5fixed

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
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)

Search for package or bug name: Reporting problems