### [CVE-2023-4504](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-4504) ![](https://img.shields.io/static/v1?label=Product&message=CUPS&color=blue) ![](https://img.shields.io/static/v1?label=Product&message=libppd&color=blue) ![](https://img.shields.io/static/v1?label=Version&message=0%3C%202.4.6%20&color=brighgreen) ![](https://img.shields.io/static/v1?label=Version&message=0%3C%20d09348b%20&color=brighgreen) ![](https://img.shields.io/static/v1?label=Vulnerability&message=%20CWE-122%20Heap-based%20Buffer%20Overflow&color=brighgreen) ### Description Due to failure in validating the length provided by an attacker-crafted PPD PostScript document, CUPS and libppd are susceptible to a heap-based buffer overflow and possibly code execution. This issue has been fixed in CUPS version 2.4.7, released in September of 2023. ### POC #### Reference - https://github.com/OpenPrinting/cups/security/advisories/GHSA-pf5r-86w9-678h - https://github.com/OpenPrinting/libppd/security/advisories/GHSA-4f65-6ph5-qwh6 - https://takeonme.org/cves/CVE-2023-4504.html #### Github - https://github.com/seal-community/patches