Arbitrary Code Injection Affecting cups-filters-debugsource package, versions <0:1.28.16-3.amzn2023.0.1


Severity

Recommended
0.0
high
0
10

Based on Amazon Linux 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 Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-AMZN2023-CUPSFILTERSDEBUGSOURCE-5741557
  • published28 Jun 2023
  • disclosed17 May 2023

Introduced: 17 May 2023

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

How to fix?

Upgrade Amazon-Linux:2023 cups-filters-debugsource to version 0:1.28.16-3.amzn2023.0.1 or higher.
This issue was patched in ALAS2023-2023-223.

NVD Description

Note: Versions mentioned in the description apply only to the upstream cups-filters-debugsource package and not the cups-filters-debugsource package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2023 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