CVE-2023-24805

Command injection in cups-filters

Published May 17, 2023 CVSS 3.1 · 8.8 High EPSS 2.8% KEV · Not listed
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.

Analysis

No analysis available yet

Remediation

No remediation available yet

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-3430-1 cups-filters security update
Debian DSA Debian DSA DSA-5407-1 cups-filters security update
EUVD EUVD EUVD-2023-28804 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.
Ubuntu USN Ubuntu USN USN-6083-1 cups-filters vulnerability
Ubuntu USN Ubuntu USN USN-6083-2 cups-filters vulnerability
History

No history.

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Feb 13, 2025, 4:44 PM
Reserved
Jan 30, 2023, 2:43 PM
Status
Modified
Published
May 17, 2023, 6:15 PM
Modified
Jun 17, 2026, 5:39 AM
Severity
Important
Public date
May 17, 2023, 12:00 PM