Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
exploit-CVE-2018-15139 — OpenEMR < 5.0.1.4 - (Authenticated) File upload - Remote command execution | Kitploit
Tools/GitHubGitHub/sec-it/exploit-cve-2018-15139
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration Testing
GitHubsec-it/exploit-cve-2018-15139

exploit-CVE-2018-15139

OpenEMR < 5.0.1.4 - (Authenticated) File upload - Remote command execution

View Repository
225 years agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

OpenEMR CVE-2018-15139 exploit

OpenEMR < 5.0.1.4 - (Authenticated) File upload - Remote command execution

Exploit for CVE-2018-15139.

Usage

root@kitploit:~
$ ruby exploit.rb -h
OpenEMR < 5.0.1.4 - (Authenticated) File upload - Remote command execution

Source: https://github.com/sec-it/exploit-CVE-2019-14530

Usage:
  exploit.rb exploit <url> <filename> <username> <password> [--debug]
  exploit.rb -h | --help

Options:
  <url>       Root URL (base path) including HTTP scheme, port and root folder
  <filename>  Filename of the shell to be uploaded
  <username>  Username of the admin
  <password>  Password of the admin
  --debug     Display arguments
  -h, --help  Show this screen

Examples:
  exploit.rb exploit http://example.org/openemr shell.php admin pass
  exploit.rb exploit https://example.org:5000/ shell.php admin pass

Example

root@kitploit:~
$ ruby exploit.rb exploit http://172.24.0.3 agent.php admin pass
[+] File uploaded:
http://172.24.0.3/sites/default/images/agent.php

Requirements

  • httpx
  • docopt.rb

Example using gem:

root@kitploit:~
bundle install
# or
gem install httpx docopt

Docker deployment of the vulnerable software

Warning: of course this setup is not suited for production usage!

root@kitploit:~
$ sudo docker-compose up

The upload folder permissions are broken in the official OpenEMR docker image, so it is required to connect to the container and fix the permissions, eg.:

root@kitploit:~
$ sudo docker exec -ti exploit-cve-2018-15139_openemr_1 /bin/sh
$ chmod u+w /var/www/localhost/htdocs/openemr/sites/default/images/

References

  • Target software: OpenEMR
    • Homepage: https://www.open-emr.org/
    • Source: https://github.com/openemr/openemr
    • Docker: see docker-compose.yml
    • Vulnerable version: < 5.0.1.4 (it means up to 5.0.1.3)
    • Patch: https://github.com/openemr/openemr/pull/1757/commits/c2808a0493243f618bbbb3459af23c7da3dc5485

This is a better re-write EDB-49998.

The vulnerability was found by Project Insecurity.

Analysis of the original exploit and vulnerability:

  • OpenEMR patches serious vulnerabilities uncovered by Project Insecurity
Download Tool