UBUNTU-CVE-2024-35235

Source
https://ubuntu.com/security/CVE-2024-35235
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-35235.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2024-35235
Related
Published
2024-06-11T14:00:00Z
Modified
2024-06-11T14:00:00Z
Severity
  • 4.4 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
Summary
[none]
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.

References

Affected packages

Ubuntu:Pro:16.04:LTS / cups

Package

Name
cups
Purl
pkg:deb/ubuntu/cups?arch=src?distro=esm-infra/xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.1.3-4ubuntu0.11+esm6

Affected versions

2.*

2.1.0-4ubuntu3
2.1.0-5
2.1.0-6
2.1.0-6ubuntu1
2.1.0-7
2.1.2-1
2.1.2-2
2.1.3-1
2.1.3-1build1
2.1.3-3
2.1.3-4
2.1.3-4ubuntu0.2
2.1.3-4ubuntu0.3
2.1.3-4ubuntu0.4
2.1.3-4ubuntu0.5
2.1.3-4ubuntu0.6
2.1.3-4ubuntu0.7
2.1.3-4ubuntu0.8
2.1.3-4ubuntu0.9
2.1.3-4ubuntu0.10
2.1.3-4ubuntu0.11
2.1.3-4ubuntu0.11+esm1
2.1.3-4ubuntu0.11+esm2
2.1.3-4ubuntu0.11+esm3
2.1.3-4ubuntu0.11+esm4
2.1.3-4ubuntu0.11+esm5

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "2.1.3-4ubuntu0.11+esm6",
            "binary_name": "cups"
        },
        {
            "binary_version": "2.1.3-4ubuntu0.11+esm6",
            "binary_name": "cups-bsd"
        },
        {
            "binary_version": "2.1.3-4ubuntu0.11+esm6",
            "binary_name": "cups-bsd-dbgsym"
        },
        {
            "binary_version": "2.1.3-4ubuntu0.11+esm6",
            "binary_name": "cups-client"
        },
        {
            "binary_version": "2.1.3-4ubuntu0.11+esm6",
            "binary_name": "cups-client-dbgsym"
        },
        {
            "binary_version": "2.1.3-4ubuntu0.11+esm6",
            "binary_name": "cups-common"
        },
        {
            "binary_version": "2.1.3-4ubuntu0.11+esm6",
            "binary_name": "cups-core-drivers"
        },
        {
            "binary_version": "2.1.3-4ubuntu0.11+esm6",
            "binary_name": "cups-core-drivers-dbgsym"
        },
        {
            "binary_version": "2.1.3-4ubuntu0.11+esm6",
            "binary_name": "cups-daemon"
        },
        {
            "binary_version": "2.1.3-4ubuntu0.11+esm6",
            "binary_name": "cups-daemon-dbgsym"
        },
        {
            "binary_version": "2.1.3-4ubuntu0.11+esm6",
            "binary_name": "cups-dbg"
        },
        {
            "binary_version": "2.1.3-4ubuntu0.11+esm6",
            "binary_name": "cups-dbgsym"
        },
        {
            "binary_version": "2.1.3-4ubuntu0.11+esm6",
            "binary_name": "cups-ipp-utils"
        },
        {
            "binary_version": "2.1.3-4ubuntu0.11+esm6",
            "binary_name": "cups-ipp-utils-dbgsym"
        },
        {
            "binary_version": "2.1.3-4ubuntu0.11+esm6",
            "binary_name": "cups-ppdc"
        },
        {
            "binary_version": "2.1.3-4ubuntu0.11+esm6",
            "binary_name": "cups-ppdc-dbgsym"
        },
        {
            "binary_version": "2.1.3-4ubuntu0.11+esm6",
            "binary_name": "cups-server-common"
        },
        {
            "binary_version": "2.1.3-4ubuntu0.11+esm6",
            "binary_name": "libcups2"
        },
        {
            "binary_version": "2.1.3-4ubuntu0.11+esm6",
            "binary_name": "libcups2-dbgsym"
        },
        {
            "binary_version": "2.1.3-4ubuntu0.11+esm6",
            "binary_name": "libcups2-dev"
        },
        {
            "binary_version": "2.1.3-4ubuntu0.11+esm6",
            "binary_name": "libcups2-dev-dbgsym"
        },
        {
            "binary_version": "2.1.3-4ubuntu0.11+esm6",
            "binary_name": "libcupscgi1"
        },
        {
            "binary_version": "2.1.3-4ubuntu0.11+esm6",
            "binary_name": "libcupscgi1-dbgsym"
        },
        {
            "binary_version": "2.1.3-4ubuntu0.11+esm6",
            "binary_name": "libcupscgi1-dev"
        },
        {
            "binary_version": "2.1.3-4ubuntu0.11+esm6",
            "binary_name": "libcupscgi1-dev-dbgsym"
        },
        {
            "binary_version": "2.1.3-4ubuntu0.11+esm6",
            "binary_name": "libcupsimage2"
        },
        {
            "binary_version": "2.1.3-4ubuntu0.11+esm6",
            "binary_name": "libcupsimage2-dbgsym"
        },
        {
            "binary_version": "2.1.3-4ubuntu0.11+esm6",
            "binary_name": "libcupsimage2-dev"
        },
        {
            "binary_version": "2.1.3-4ubuntu0.11+esm6",
            "binary_name": "libcupsimage2-dev-dbgsym"
        },
        {
            "binary_version": "2.1.3-4ubuntu0.11+esm6",
            "binary_name": "libcupsmime1"
        },
        {
            "binary_version": "2.1.3-4ubuntu0.11+esm6",
            "binary_name": "libcupsmime1-dbgsym"
        },
        {
            "binary_version": "2.1.3-4ubuntu0.11+esm6",
            "binary_name": "libcupsmime1-dev"
        },
        {
            "binary_version": "2.1.3-4ubuntu0.11+esm6",
            "binary_name": "libcupsmime1-dev-dbgsym"
        },
        {
            "binary_version": "2.1.3-4ubuntu0.11+esm6",
            "binary_name": "libcupsppdc1"
        },
        {
            "binary_version": "2.1.3-4ubuntu0.11+esm6",
            "binary_name": "libcupsppdc1-dbgsym"
        },
        {
            "binary_version": "2.1.3-4ubuntu0.11+esm6",
            "binary_name": "libcupsppdc1-dev"
        },
        {
            "binary_version": "2.1.3-4ubuntu0.11+esm6",
            "binary_name": "libcupsppdc1-dev-dbgsym"
        }
    ]
}

Ubuntu:Pro:18.04:LTS / cups

Package

Name
cups
Purl
pkg:deb/ubuntu/cups?arch=src?distro=esm-infra/bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.2.7-1ubuntu2.10+esm4

Affected versions

2.*

2.2.4-7ubuntu2
2.2.5-2
2.2.6-2
2.2.6-3
2.2.6-4
2.2.6-5
2.2.7-1ubuntu1
2.2.7-1ubuntu2
2.2.7-1ubuntu2.1
2.2.7-1ubuntu2.2
2.2.7-1ubuntu2.3
2.2.7-1ubuntu2.4
2.2.7-1ubuntu2.5
2.2.7-1ubuntu2.6
2.2.7-1ubuntu2.7
2.2.7-1ubuntu2.8
2.2.7-1ubuntu2.9
2.2.7-1ubuntu2.10
2.2.7-1ubuntu2.10+esm1
2.2.7-1ubuntu2.10+esm2
2.2.7-1ubuntu2.10+esm3

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "2.2.7-1ubuntu2.10+esm4",
            "binary_name": "cups"
        },
        {
            "binary_version": "2.2.7-1ubuntu2.10+esm4",
            "binary_name": "cups-bsd"
        },
        {
            "binary_version": "2.2.7-1ubuntu2.10+esm4",
            "binary_name": "cups-bsd-dbgsym"
        },
        {
            "binary_version": "2.2.7-1ubuntu2.10+esm4",
            "binary_name": "cups-client"
        },
        {
            "binary_version": "2.2.7-1ubuntu2.10+esm4",
            "binary_name": "cups-client-dbgsym"
        },
        {
            "binary_version": "2.2.7-1ubuntu2.10+esm4",
            "binary_name": "cups-common"
        },
        {
            "binary_version": "2.2.7-1ubuntu2.10+esm4",
            "binary_name": "cups-core-drivers"
        },
        {
            "binary_version": "2.2.7-1ubuntu2.10+esm4",
            "binary_name": "cups-core-drivers-dbgsym"
        },
        {
            "binary_version": "2.2.7-1ubuntu2.10+esm4",
            "binary_name": "cups-daemon"
        },
        {
            "binary_version": "2.2.7-1ubuntu2.10+esm4",
            "binary_name": "cups-daemon-dbgsym"
        },
        {
            "binary_version": "2.2.7-1ubuntu2.10+esm4",
            "binary_name": "cups-dbgsym"
        },
        {
            "binary_version": "2.2.7-1ubuntu2.10+esm4",
            "binary_name": "cups-ipp-utils"
        },
        {
            "binary_version": "2.2.7-1ubuntu2.10+esm4",
            "binary_name": "cups-ipp-utils-dbgsym"
        },
        {
            "binary_version": "2.2.7-1ubuntu2.10+esm4",
            "binary_name": "cups-ppdc"
        },
        {
            "binary_version": "2.2.7-1ubuntu2.10+esm4",
            "binary_name": "cups-ppdc-dbgsym"
        },
        {
            "binary_version": "2.2.7-1ubuntu2.10+esm4",
            "binary_name": "cups-server-common"
        },
        {
            "binary_version": "2.2.7-1ubuntu2.10+esm4",
            "binary_name": "libcups2"
        },
        {
            "binary_version": "2.2.7-1ubuntu2.10+esm4",
            "binary_name": "libcups2-dbgsym"
        },
        {
            "binary_version": "2.2.7-1ubuntu2.10+esm4",
            "binary_name": "libcups2-dev"
        },
        {
            "binary_version": "2.2.7-1ubuntu2.10+esm4",
            "binary_name": "libcupscgi1"
        },
        {
            "binary_version": "2.2.7-1ubuntu2.10+esm4",
            "binary_name": "libcupscgi1-dbgsym"
        },
        {
            "binary_version": "2.2.7-1ubuntu2.10+esm4",
            "binary_name": "libcupsimage2"
        },
        {
            "binary_version": "2.2.7-1ubuntu2.10+esm4",
            "binary_name": "libcupsimage2-dbgsym"
        },
        {
            "binary_version": "2.2.7-1ubuntu2.10+esm4",
            "binary_name": "libcupsimage2-dev"
        },
        {
            "binary_version": "2.2.7-1ubuntu2.10+esm4",
            "binary_name": "libcupsmime1"
        },
        {
            "binary_version": "2.2.7-1ubuntu2.10+esm4",
            "binary_name": "libcupsmime1-dbgsym"
        },
        {
            "binary_version": "2.2.7-1ubuntu2.10+esm4",
            "binary_name": "libcupsppdc1"
        },
        {
            "binary_version": "2.2.7-1ubuntu2.10+esm4",
            "binary_name": "libcupsppdc1-dbgsym"
        }
    ]
}

Ubuntu:20.04:LTS / cups

Package

Name
cups
Purl
pkg:deb/ubuntu/cups?arch=src?distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.3.1-9ubuntu1.7

Affected versions

2.*

2.2.12-2ubuntu1
2.3.0-6
2.3.0-7
2.3.0-7ubuntu1
2.3.1-1ubuntu1
2.3.1-2
2.3.1-4
2.3.1-7
2.3.1-9ubuntu1
2.3.1-9ubuntu1.1
2.3.1-9ubuntu1.2
2.3.1-9ubuntu1.3
2.3.1-9ubuntu1.4
2.3.1-9ubuntu1.5
2.3.1-9ubuntu1.6

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "2.3.1-9ubuntu1.7",
            "binary_name": "cups"
        },
        {
            "binary_version": "2.3.1-9ubuntu1.7",
            "binary_name": "cups-bsd"
        },
        {
            "binary_version": "2.3.1-9ubuntu1.7",
            "binary_name": "cups-bsd-dbgsym"
        },
        {
            "binary_version": "2.3.1-9ubuntu1.7",
            "binary_name": "cups-client"
        },
        {
            "binary_version": "2.3.1-9ubuntu1.7",
            "binary_name": "cups-client-dbgsym"
        },
        {
            "binary_version": "2.3.1-9ubuntu1.7",
            "binary_name": "cups-common"
        },
        {
            "binary_version": "2.3.1-9ubuntu1.7",
            "binary_name": "cups-core-drivers"
        },
        {
            "binary_version": "2.3.1-9ubuntu1.7",
            "binary_name": "cups-core-drivers-dbgsym"
        },
        {
            "binary_version": "2.3.1-9ubuntu1.7",
            "binary_name": "cups-daemon"
        },
        {
            "binary_version": "2.3.1-9ubuntu1.7",
            "binary_name": "cups-daemon-dbgsym"
        },
        {
            "binary_version": "2.3.1-9ubuntu1.7",
            "binary_name": "cups-dbgsym"
        },
        {
            "binary_version": "2.3.1-9ubuntu1.7",
            "binary_name": "cups-ipp-utils"
        },
        {
            "binary_version": "2.3.1-9ubuntu1.7",
            "binary_name": "cups-ipp-utils-dbgsym"
        },
        {
            "binary_version": "2.3.1-9ubuntu1.7",
            "binary_name": "cups-ppdc"
        },
        {
            "binary_version": "2.3.1-9ubuntu1.7",
            "binary_name": "cups-ppdc-dbgsym"
        },
        {
            "binary_version": "2.3.1-9ubuntu1.7",
            "binary_name": "cups-server-common"
        },
        {
            "binary_version": "2.3.1-9ubuntu1.7",
            "binary_name": "libcups2"
        },
        {
            "binary_version": "2.3.1-9ubuntu1.7",
            "binary_name": "libcups2-dbgsym"
        },
        {
            "binary_version": "2.3.1-9ubuntu1.7",
            "binary_name": "libcups2-dev"
        },
        {
            "binary_version": "2.3.1-9ubuntu1.7",
            "binary_name": "libcupsimage2"
        },
        {
            "binary_version": "2.3.1-9ubuntu1.7",
            "binary_name": "libcupsimage2-dbgsym"
        },
        {
            "binary_version": "2.3.1-9ubuntu1.7",
            "binary_name": "libcupsimage2-dev"
        }
    ]
}

Ubuntu:22.04:LTS / cups

Package

Name
cups
Purl
pkg:deb/ubuntu/cups?arch=src?distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.4.1op1-1ubuntu4.9

Affected versions

2.*

2.3.3op2-7ubuntu2
2.4.1op1-1ubuntu1
2.4.1op1-1ubuntu2
2.4.1op1-1ubuntu3
2.4.1op1-1ubuntu4
2.4.1op1-1ubuntu4.1
2.4.1op1-1ubuntu4.2
2.4.1op1-1ubuntu4.4
2.4.1op1-1ubuntu4.6
2.4.1op1-1ubuntu4.7
2.4.1op1-1ubuntu4.8

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "2.4.1op1-1ubuntu4.9",
            "binary_name": "cups"
        },
        {
            "binary_version": "2.4.1op1-1ubuntu4.9",
            "binary_name": "cups-bsd"
        },
        {
            "binary_version": "2.4.1op1-1ubuntu4.9",
            "binary_name": "cups-bsd-dbgsym"
        },
        {
            "binary_version": "2.4.1op1-1ubuntu4.9",
            "binary_name": "cups-client"
        },
        {
            "binary_version": "2.4.1op1-1ubuntu4.9",
            "binary_name": "cups-client-dbgsym"
        },
        {
            "binary_version": "2.4.1op1-1ubuntu4.9",
            "binary_name": "cups-common"
        },
        {
            "binary_version": "2.4.1op1-1ubuntu4.9",
            "binary_name": "cups-core-drivers"
        },
        {
            "binary_version": "2.4.1op1-1ubuntu4.9",
            "binary_name": "cups-core-drivers-dbgsym"
        },
        {
            "binary_version": "2.4.1op1-1ubuntu4.9",
            "binary_name": "cups-daemon"
        },
        {
            "binary_version": "2.4.1op1-1ubuntu4.9",
            "binary_name": "cups-daemon-dbgsym"
        },
        {
            "binary_version": "2.4.1op1-1ubuntu4.9",
            "binary_name": "cups-dbgsym"
        },
        {
            "binary_version": "2.4.1op1-1ubuntu4.9",
            "binary_name": "cups-ipp-utils"
        },
        {
            "binary_version": "2.4.1op1-1ubuntu4.9",
            "binary_name": "cups-ipp-utils-dbgsym"
        },
        {
            "binary_version": "2.4.1op1-1ubuntu4.9",
            "binary_name": "cups-ppdc"
        },
        {
            "binary_version": "2.4.1op1-1ubuntu4.9",
            "binary_name": "cups-ppdc-dbgsym"
        },
        {
            "binary_version": "2.4.1op1-1ubuntu4.9",
            "binary_name": "cups-server-common"
        },
        {
            "binary_version": "2.4.1op1-1ubuntu4.9",
            "binary_name": "libcups2"
        },
        {
            "binary_version": "2.4.1op1-1ubuntu4.9",
            "binary_name": "libcups2-dbgsym"
        },
        {
            "binary_version": "2.4.1op1-1ubuntu4.9",
            "binary_name": "libcups2-dev"
        },
        {
            "binary_version": "2.4.1op1-1ubuntu4.9",
            "binary_name": "libcupsimage2"
        },
        {
            "binary_version": "2.4.1op1-1ubuntu4.9",
            "binary_name": "libcupsimage2-dbgsym"
        },
        {
            "binary_version": "2.4.1op1-1ubuntu4.9",
            "binary_name": "libcupsimage2-dev"
        }
    ]
}

Ubuntu:24.04:LTS / cups

Package

Name
cups
Purl
pkg:deb/ubuntu/cups?arch=src?distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.4.7-1.2ubuntu7.1

Affected versions

2.*

2.4.6-0ubuntu3
2.4.7-1.2ubuntu2
2.4.7-1.2ubuntu3
2.4.7-1.2ubuntu7

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "2.4.7-1.2ubuntu7.1",
            "binary_name": "cups"
        },
        {
            "binary_version": "2.4.7-1.2ubuntu7.1",
            "binary_name": "cups-bsd"
        },
        {
            "binary_version": "2.4.7-1.2ubuntu7.1",
            "binary_name": "cups-bsd-dbgsym"
        },
        {
            "binary_version": "2.4.7-1.2ubuntu7.1",
            "binary_name": "cups-client"
        },
        {
            "binary_version": "2.4.7-1.2ubuntu7.1",
            "binary_name": "cups-client-dbgsym"
        },
        {
            "binary_version": "2.4.7-1.2ubuntu7.1",
            "binary_name": "cups-common"
        },
        {
            "binary_version": "2.4.7-1.2ubuntu7.1",
            "binary_name": "cups-core-drivers"
        },
        {
            "binary_version": "2.4.7-1.2ubuntu7.1",
            "binary_name": "cups-core-drivers-dbgsym"
        },
        {
            "binary_version": "2.4.7-1.2ubuntu7.1",
            "binary_name": "cups-daemon"
        },
        {
            "binary_version": "2.4.7-1.2ubuntu7.1",
            "binary_name": "cups-daemon-dbgsym"
        },
        {
            "binary_version": "2.4.7-1.2ubuntu7.1",
            "binary_name": "cups-dbgsym"
        },
        {
            "binary_version": "2.4.7-1.2ubuntu7.1",
            "binary_name": "cups-ipp-utils"
        },
        {
            "binary_version": "2.4.7-1.2ubuntu7.1",
            "binary_name": "cups-ipp-utils-dbgsym"
        },
        {
            "binary_version": "2.4.7-1.2ubuntu7.1",
            "binary_name": "cups-ppdc"
        },
        {
            "binary_version": "2.4.7-1.2ubuntu7.1",
            "binary_name": "cups-ppdc-dbgsym"
        },
        {
            "binary_version": "2.4.7-1.2ubuntu7.1",
            "binary_name": "cups-server-common"
        },
        {
            "binary_version": "2.4.7-1.2ubuntu7.1",
            "binary_name": "libcups2-dev"
        },
        {
            "binary_version": "2.4.7-1.2ubuntu7.1",
            "binary_name": "libcups2t64"
        },
        {
            "binary_version": "2.4.7-1.2ubuntu7.1",
            "binary_name": "libcups2t64-dbgsym"
        },
        {
            "binary_version": "2.4.7-1.2ubuntu7.1",
            "binary_name": "libcupsimage2-dev"
        },
        {
            "binary_version": "2.4.7-1.2ubuntu7.1",
            "binary_name": "libcupsimage2t64"
        },
        {
            "binary_version": "2.4.7-1.2ubuntu7.1",
            "binary_name": "libcupsimage2t64-dbgsym"
        }
    ]
}