Rapid7 Vulnerability & Exploit Database

Lexmark Device Embedded Web Server RCE

Back to Search

Lexmark Device Embedded Web Server RCE



A unauthenticated Remote Code Execution vulnerability exists in the embedded webserver in certain Lexmark devices through 2023-02-19. The vulnerability is only exposed if, when setting up the printer or device, the user selects "Set up Later" when asked if they would like to add an Admin user. If no Admin user is created the endpoint `/cgi-bin/fax_change_faxtrace_settings` is accessible without authentication. The endpoint allows the user to configure a number of different fax settings. A number of the configurable parameters on the page (ex. `FT_Custom_lbtrace`) fail to be sanitized properly before being used in an bash eval statement: `eval "$cmd" > /dev/null`, allowing for an unauthenticated user to run arbitrary commands.


  • James Horseman
  • Zach Hanley
  • jheysel-r7






Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use exploit/linux/http/lexmark_faxtrace_settings
msf exploit(lexmark_faxtrace_settings) > show targets
msf exploit(lexmark_faxtrace_settings) > set TARGET < target-id >
msf exploit(lexmark_faxtrace_settings) > show options
    ...show and set options...
msf exploit(lexmark_faxtrace_settings) > exploit

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security