CVE-2023-22974 is a path traversal vulnerability in the setup.php script of OpenEMR versions prior to 7.0.0. The vulnerability allows remote, unauthenticated attackers to read arbitrary files on the server by manipulating the database connection process to point to an attacker-controlled MySQL server. This enables the attacker to influence file paths used by the application, leading to unauthorized file disclosure.
Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
If you can’t patch tonight, do this now.
Patch, then assume compromise.
1 valid exploit after Mallory filtered fakes, detection scripts, and README-only repos.
This repository contains a Python exploit for CVE-2023-22974, targeting OpenEMR versions less than 7.0.0. The exploit abuses a vulnerability in the setup.php script, allowing an attacker to read arbitrary files from the server. The exploit works by running a fake MySQL server (default port 3306) and tricking the target OpenEMR instance into connecting to it. The attacker can specify which file to read (default: /etc/passwd). The repository consists of two files: a README.md describing the exploit and exploit.py, which contains the full exploit logic. The script checks if the target is vulnerable, starts the fake MySQL server, and sends a crafted POST request to setup.php to trigger the file read. The exploit is operational and provides a practical method for attackers to exfiltrate files from vulnerable OpenEMR installations.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.