<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>OpenEMR (&lt;= 8.2.0) - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/openemr--8.2.0/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Mon, 03 Aug 2026 18:05:37 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/openemr--8.2.0/feed.xml" rel="self" type="application/rss+xml"/><item><title>Remote Code Execution in OpenEMR Document Category Tree</title><link>https://feed.craftedsignal.io/briefs/2026-08-openemr-rce/</link><pubDate>Mon, 03 Aug 2026 18:05:37 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-08-openemr-rce/</guid><description>OpenEMR versions 8.2.0 and earlier are vulnerable to authenticated remote code execution via SQL injection and unsafe eval() calls in the document category tree component.</description><content:encoded><![CDATA[<p>OpenEMR versions up to and including 8.2.0 contain a critical remote code execution vulnerability located within the document category tree component, specifically in the library/classes/Tree.class.php file. The vulnerability stems from an insecure implementation that allows an authenticated administrator to inject arbitrary PHP payloads into the categories database table. By leveraging SQL injection to alter the id column type to VARCHAR, an attacker can insert a malicious payload. This payload is subsequently executed via an unsanitized eval() function call whenever the CategoryTree component is instantiated. Because this component is used across various parts of the application, including pages accessible to unauthenticated users or those with low privileges, a successful exploit results in arbitrary command execution under the context of the web server user. This vulnerability requires administrative access to initiate, but the impact extends to full system compromise from the web server's privilege level.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>Attacker authenticates to the OpenEMR instance with administrative privileges.</li>
<li>Attacker interacts with the document category tree management interface.</li>
<li>Attacker executes a crafted SQL injection payload to alter the schema of the categories database table, changing the id column type to VARCHAR.</li>
<li>Attacker inserts a malicious PHP code snippet as a record into the categories table.</li>
<li>Attacker triggers the vulnerability by navigating to a page (including unauthenticated endpoints) that invokes the CategoryTree class.</li>
<li>The application performs an unsanitized eval() call on the injected database content.</li>
<li>The web server process executes the attacker-supplied PHP payload.</li>
<li>Attacker achieves remote code execution as the web server user for further post-exploitation activity.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation allows for full remote command execution on the host running the OpenEMR instance. This compromises the integrity and confidentiality of the electronic medical records data stored within the application and grants the attacker a foothold on the internal network segment hosting the web server.</p>
<h2 id="recommendation">Recommendation</h2>
<ol>
<li>Upgrade all OpenEMR instances to the latest secure version addressing this vulnerability.</li>
<li>Implement strict administrative access controls to limit the number of users capable of modifying database-driven configurations.</li>
<li>Monitor web server logs for suspicious database query patterns, specifically those attempting to alter schema definitions or modify core application tables.</li>
<li>Perform code review or implement file integrity monitoring on library/classes/Tree.class.php to detect unauthorized modifications.</li>
</ol>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>web-application-vulnerability</category><category>remote-code-execution</category><category>healthcare</category><category>cve-2026-39931</category><category>sql-injection</category><category>web-application</category><category>vulnerability</category><category>authentication-bypass</category><category>fhir</category></item></channel></rss>