CVE-2026-49142
OpenEMR before 8.5.0 contains an authenticated SQL injection vulnerability in the Syndromic Surveillance module that allows users with Clinician-level privileges to read and modify arbitrary database contents by submitting crafted values in the form_icd_codes[] POST parameter to the syndromicsurveillance/index endpoint. Attackers can inject an unquoted numeric IN() clause and UNION DISTINCT SELECT statement using hex-encoded literals to abuse MySQL extractvalue() for error-based exfiltration of bcrypt password hashes and execute stacked queries that reset passwords, resulting in full administrative account takeover.
- Score
- 8.7 high
- Published
- 2026-10-29
- Links
- NVD · cve.org · Report wrong data
Matched ports (4)
| Port | Package | Version | Status | Maintainer |
|---|---|---|---|---|
| www/openemr | openemr-php82 | 8.0.0 | unaddressed | wen@FreeBSD.org |
| www/openemr | openemr-php83 | 8.0.0 | unaddressed | wen@FreeBSD.org |
| www/openemr | openemr-php84 | 8.0.0 | unaddressed | wen@FreeBSD.org |
| www/openemr | openemr-php85 | 8.0.0 | unaddressed | wen@FreeBSD.org |
Template for a VuXML entry
Check the version numbers before you commit this entry. Some ports share an entry in the CVE database with another port, such as sqlite2 and sqlite3. The version shown here may then be one that never existed for this port.
Ranges per package from the CVE rows that match this port, in pkg notation with the port's epoch and revision, every bound checked with pkg; one range per epoch the port actually had. make newentry in security/vuxml creates the vid.
<vuln vid="FIXME (make newentry)">
<topic>openemr-php82 -- FIXME</topic>
<affects>
<package>
<name>openemr-php82</name>
<name>openemr-php83</name>
<name>openemr-php84</name>
<name>openemr-php85</name>
<range><lt>8.5.0</lt></range>
</package>
</affects>
<description>
<body xmlns="http://www.w3.org/1999/xhtml">
<p>CVE-2026-49142: OpenEMR before 8.5.0 contains an authenticated SQL
injection vulnerability in the Syndromic Surveillance module that
allows users with Clinician-level privileges to read and modify
arbitrary database contents by submitting crafted values in the
form_icd_codes[] POST parameter to the syndromicsurveillance/index
endpoint. Attackers can inject an unquoted numeric IN() clause and
UNION DISTINCT SELECT statement using hex-encoded literals to abuse
MySQL extractvalue() for error-based exfiltration of bcrypt
password hashes and execute stacked queries that reset passwords,
resulting in full administrative account takeover.</p>
</body>
</description>
<references>
<cvename>CVE-2026-49142</cvename>
<url>https://nvd.nist.gov/vuln/detail/CVE-2026-49142</url>
</references>
<dates>
<discovery>2026-10-29</discovery>
<entry>2026-10-29</entry>
</dates>
</vuln>