Advisory Details

January 31st, 2024

(Pwn2Own) Lexmark CX331adwe make42charstring Stack-based Buffer Overflow Remote Code Execution Vulnerability

ZDI-24-081
ZDI-CAN-22380

CVE ID CVE-2023-50734
CVSS SCORE 8.8, AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
AFFECTED VENDORS Lexmark
AFFECTED PRODUCTS CX331adwe
VULNERABILITY DETAILS

This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of Lexmark CX331adwe printers. Authentication is not required to exploit this vulnerability.

The specific flaw exists within the make42charstring method. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a fixed-length stack-based buffer. An attacker can leverage this vulnerability to execute code in the context of root.

ADDITIONAL DETAILS Lexmark has issued an update to correct this vulnerability. More details can be found at:
https://www.lexmark.com/en_us/solutions/security/lexmark-security-advisories.html
DISCLOSURE TIMELINE
  • 2023-11-09 - Vulnerability reported to vendor
  • 2024-01-31 - Coordinated public release of advisory
CREDIT @vcslab
BACK TO ADVISORIES