CVE-2024-47175
JSON

8.6high

libppd's ppdCreatePPDFromIPP2 function does not sanitize IPP attributes when creating the PPD buffer

Severity
8.6high CVSS:3.1 by GitHub_M
Exploit likelihood
11.9% (higher than 97% of CVEs)
Published
Last changed
Assigned by
GitHub_M

Description

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.

Affected

Product or packageVersionsReported by
OpenPrinting libppd<= 2.1b1, up to 2.1b1, up to 2.0.0, 2.1CVE List, NVD
debian debian_linux11.0NVD

All scores

GitHub_M8.6high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-20

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

CUPS es un sistema de impresión de código abierto basado en estándares, y `libppd` se puede utilizar para la compatibilidad con archivos PPD heredados. La función `libppd` `ppdCreatePPDFromIPP2` no desinfecta los atributos IPP al crear el búfer PPD. Cuando se utiliza en combinación con otras funciones como `cfGetPrinterAttributes5`, puede dar lugar a una entrada controlada por el usuario y, en última instancia, a la ejecución de código a través de Foomatic. Esta vulnerabilidad puede ser parte de una cadena de explotación que conduce a la ejecución remota de código (RCE), como se describe en CVE-2024-47176.

References

https://github.com/OpenPrinting/libppd/security/advisories/GHSA-7xfx-47qg-grp6exploit, vendor-advisory
https://github.com/OpenPrinting/cups-browsed/security/advisories/GHSA-rj88-6mr5-rcw8not-applicable
https://github.com/OpenPrinting/cups-filters/security/advisories/GHSA-p9rh-jxmq-gq47not-applicable
https://github.com/OpenPrinting/libcupsfilters/security/advisories/GHSA-w63j-6g73-wmg5not-applicable
https://www.cups.orgproduct
https://www.evilsocket.net/2024/09/26/Attacking-UNIX-systems-via-CUPS-Part-Iexploit, third-party-advisory
http://www.openwall.com/lists/oss-security/2024/09/27/3mailing-list
https://github.com/OpenPrinting/libppd/commit/d681747ebf12602cb426725eb8ce2753211e2477patch
https://lists.debian.org/debian-lts-announce/2024/09/msg00047.htmlmailing-list
https://security.netapp.com/advisory/ntap-20241011-0001/
https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2024-0016

Sources

SourceRecordLicence
CVE ListCVE-2024-47175 changed 2025-11-03CVE Terms of Use
NVDCVE-2024-47175 changed 2026-06-17Public domain