Advisory

UBUNTU-CVE-2024-35235

Also known as: CVE-2024-35235

Summary

The record has no summary.

Details

OpenPrinting CUPS is an open source printing system for Linux and other Unix-like operating systems. In versions 2.4.8 and earlier, when starting the cupsd server with a Listen configuration item pointing to a symbolic link, the cupsd process can be caused to perform an arbitrary chmod of the provided argument, providing world-writable access to the target. Given that cupsd is often running as root, this can result in the change of permission of any user or system files to be world writable. Given the aforementioned Ubuntu AppArmor context, on such systems this vulnerability is limited to those files modifiable by the cupsd process. In that specific case it was found to be possible to turn the configuration of the Listen argument into full control over the cupsd.conf and cups-files.conf configuration files. By later setting the User and Group arguments in cups-files.conf, and printing with a printer configured by PPD with a FoomaticRIPCommandLine argument, arbitrary user and group (not root) command execution could be achieved, which can further be used on Ubuntu systems to achieve full root command execution. Commit ff1f8a623e090dee8a8aadf12a6a4b25efac143d contains a patch for the issue.

Severity

Medium Basis: CVSS v3 score 4.4, vector CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N

Dates

Published
2024-06-11 14:00 UTC
Modified
2026-04-22 14:50 UTC

Affected packages and fixes

cups

Debian packages (deb) · Ubuntu 20.04

Affected

  • introduced 0, fixed 2.3.1-9ubuntu1.7 (ecosystem)

Fixed versions

2.3.1-9ubuntu1.7

Fix

  • Fixed version 2.3.1-9ubuntu1.7
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

cups

Debian packages (deb) · Ubuntu 22.04

Affected

  • introduced 0, fixed 2.4.1op1-1ubuntu4.9 (ecosystem)

Fixed versions

2.4.1op1-1ubuntu4.9

Fix

  • Fixed version 2.4.1op1-1ubuntu4.9
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

cups

Debian packages (deb) · Ubuntu 24.04

Affected

  • introduced 0, fixed 2.4.7-1.2ubuntu7.1 (ecosystem)

Fixed versions

2.4.7-1.2ubuntu7.1

Fix

  • Fixed version 2.4.7-1.2ubuntu7.1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences