OS Command Injection Affecting cups-filters package, versions <1.8.3-2ubuntu3.5+esm1


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.79% (82nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about OS Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UBUNTU1604-CUPSFILTERS-5561488
  • published17 May 2023
  • disclosed17 May 2023

Introduced: 17 May 2023

CVE-2023-24805  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade Ubuntu:16.04 cups-filters to version 1.8.3-2ubuntu3.5+esm1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream cups-filters package and not the cups-filters package as distributed by Ubuntu. See How to fix? for Ubuntu:16.04 relevant fixed versions and status.

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) &gt;&gt; 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.

CVSS Scores

version 3.1