Описание
CUPS is a standards-based, open-source printing system, and libppd
can be used for legacy PPD file support. The libppd
function ppdCreatePPDFromIPP2
does not sanitize IPP attributes when creating the PPD buffer. When used in combination with other functions such as cfGetPrinterAttributes5
, can result in user controlled input and ultimately code execution via Foomatic. This vulnerability can be part of an exploit chain leading to remote code execution (RCE), as described in CVE-2024-47176.
A security issue was found in OpenPrinting CUPS.
The function ppdCreatePPDFromIPP2 in the libppd library is responsible for generating a PostScript Printer Description (PPD) file based on attributes retrieved from an Internet Printing Protocol (IPP) response. Essentially, it takes printer information, usually obtained via IPP, and creates a corresponding PPD file that describes the printer's capabilities (such as supported media sizes, resolutions, color modes, etc.).
PPD files are used by printing systems like CUPS (Common Unix Printing System) to communicate with and configure printers. They provide a standardized format that allows different printers to work with the printing system in a consistent way.
The ppdCreatePPDFromIPP2 function in libppd doesn't properly check or clean IPP attributes before writing them to a temporary PPD file. This means that a remote attacker, who has control of or has hijacked an exposed printer (through UPD or mDNS), could send a harmful IPP attribute and potentially insert malicious commands into the PPD file.
Отчет
RHCOS and RHEL include libs-cups as a build-time dependency. However, the vulnerability is not exploitable with just the client libraries unless a print server based on OpenPrinting is actively running. RHEL and RHCOS does not have cups-browsed enabled by default so the impact for those are set to 'Low'
Меры по смягчению последствий
See the security bulletin for a detailed mitigation procedure.
Затронутые пакеты
Платформа | Пакет | Состояние | Рекомендация | Релиз |
---|---|---|---|---|
Red Hat Enterprise Linux 7 | cups | Fix deferred | ||
Red Hat OpenShift Container Platform 4 | rhcos | Not affected | ||
Red Hat Enterprise Linux 7.7 Advanced Update Support | cups-filters | Fixed | RHSA-2024:7551 | 02.10.2024 |
Red Hat Enterprise Linux 7 Extended Lifecycle Support | cups-filters | Fixed | RHSA-2024:7553 | 02.10.2024 |
Red Hat Enterprise Linux 8 | cups-filters | Fixed | RHSA-2024:7463 | 01.10.2024 |
Red Hat Enterprise Linux 8 | cups | Fixed | RHSA-2025:0083 | 08.01.2025 |
Red Hat Enterprise Linux 8 | cups | Fixed | RHSA-2025:0083 | 08.01.2025 |
Red Hat Enterprise Linux 8.2 Advanced Update Support | cups-filters | Fixed | RHSA-2024:7461 | 01.10.2024 |
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support | cups-filters | Fixed | RHSA-2024:7504 | 02.10.2024 |
Red Hat Enterprise Linux 8.4 Telecommunications Update Service | cups-filters | Fixed | RHSA-2024:7504 | 02.10.2024 |
Показывать по
Дополнительная информация
Статус:
EPSS
7.7 High
CVSS3
Связанные уязвимости
CUPS is a standards-based, open-source printing system, and `libppd` can be used for legacy PPD file support. The `libppd` function `ppdCreatePPDFromIPP2` does not sanitize IPP attributes when creating the PPD buffer. When used in combination with other functions such as `cfGetPrinterAttributes5`, can result in user controlled input and ultimately code execution via Foomatic. This vulnerability can be part of an exploit chain leading to remote code execution (RCE), as described in CVE-2024-47176.
CUPS is a standards-based, open-source printing system, and `libppd` can be used for legacy PPD file support. The `libppd` function `ppdCreatePPDFromIPP2` does not sanitize IPP attributes when creating the PPD buffer. When used in combination with other functions such as `cfGetPrinterAttributes5`, can result in user controlled input and ultimately code execution via Foomatic. This vulnerability can be part of an exploit chain leading to remote code execution (RCE), as described in CVE-2024-47176.
CUPS is a standards-based, open-source printing system, and `libppd` c ...
EPSS
7.7 High
CVSS3