Skip to content

ppdCreatePPDFromIPP2 does not sanitize IPP attributes when creating the PPD buffer

Moderate
zdohnal published GHSA-7xfx-47qg-grp6 Sep 26, 2024

Package

libppd

Affected versions

<= 2.1b1

Patched versions

None

Description

Summary

ppdCreatePPDFromIPP2 does not sanitize IPP attributes when creating the PPD buffer

Details

ppdCreatePPDFromIPP2 does not sanitize IPP attributes when creating the PPD buffer, when used in combination with other functions such as cfGetPrinterAttributes5 this results to user controlled input and ultimately code execution via Foomatic.

PoC

This bug is part of an exploit chain leading to RCE described here.

Impact

Code execution.

Severity

Moderate

CVE ID

CVE-2024-47175

Weaknesses

No CWEs

Credits