Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-33350 Overview
CVE-2026-33350 is a SQL injection vulnerability in LORIS (Longitudinal Online Research and Imaging System), a self-hosted web application for neuroimaging research data and project management. The flaw exists in code paths serving the MRI feedback popup window of the imaging browser. Attackers can inject SQL statements to read or alter data stored in the backend database. The vulnerability affects LORIS versions prior to 27.0.3 and 28.0.1. The maintainers have released fixed versions 27.0.3 and 28.0.1. The issue is classified under CWE-89 (Improper Neutralization of Special Elements used in an SQL Command).
Critical Impact
Unauthenticated network-based attackers can read or modify sensitive research data, including imaging metadata and participant records.
Affected Products
- LORIS versions prior to 27.0.3
- LORIS versions prior to 28.0.1 (28.0.0 confirmed vulnerable)
- McGill LORIS neuroimaging platform deployments
Discovery Timeline
- 2026-04-08 - CVE-2026-33350 published to NVD
- 2026-04-17 - Last updated in NVD database
Technical Details for CVE-2026-33350
Vulnerability Analysis
The vulnerability resides in server-side code that backs the MRI feedback popup window inside the LORIS imaging browser. User-supplied input reaches SQL query construction without proper parameterization or escaping. An attacker can craft request parameters that break out of the intended query context and append arbitrary SQL clauses. Successful exploitation allows reading data across tables the database user can access, and modifying records depending on query type.
LORIS stores neuroimaging study data, candidate identifiers, MRI scan metadata, and project configuration. A SQL injection in this surface therefore exposes research data integrity and confidentiality.
Root Cause
The root cause is concatenation or interpolation of untrusted input into SQL statements in the MRI feedback popup handlers. The affected code did not use prepared statements with bound parameters for all query branches. This pattern is the canonical CWE-89 weakness.
Attack Vector
The attack vector is network-based and requires no authentication or user interaction in the scoring model. An attacker sends HTTP requests to the imaging browser endpoints associated with the MRI feedback popup. Malicious SQL is delivered through request parameters that the vulnerable code path passes into query construction.
The vulnerability mechanism is described in the LORIS GitHub Security Advisory GHSA-9r29-6jgc-3ggh. No verified public proof-of-concept code is available at the time of writing.
Detection Methods for CVE-2026-33350
Indicators of Compromise
- HTTP requests to imaging browser endpoints containing SQL meta-characters such as single quotes, UNION SELECT, --, or /* in parameter values
- Web server access logs showing unusually long query strings or encoded payloads targeting MRI feedback popup routes
- Database error messages logged from the LORIS PHP backend referencing syntax errors near user-controlled values
- Unexpected SELECT, UPDATE, or INSERT statements in MySQL general or audit logs originating from the LORIS application user
Detection Strategies
- Inspect web access logs for requests to imaging browser URLs that include SQL keywords or tautology patterns such as OR 1=1
- Enable MySQL general query logging temporarily to correlate suspicious application requests with executed queries
- Deploy a web application firewall ruleset tuned for SQL injection signatures in front of LORIS
- Compare row counts and checksums on sensitive tables against known-good baselines to detect tampering
Monitoring Recommendations
- Forward LORIS Apache or nginx logs and MySQL logs to a centralized logging platform for correlation
- Alert on HTTP 500 responses from imaging browser endpoints, which often accompany failed injection attempts
- Monitor outbound database query rates per session for spikes consistent with data exfiltration via injection
How to Mitigate CVE-2026-33350
Immediate Actions Required
- Upgrade LORIS to version 27.0.3 or 28.0.1, depending on your current release branch
- Restrict network exposure of LORIS instances to authenticated VPN or trusted networks until patching is complete
- Review web server and database logs for evidence of prior exploitation attempts against the imaging browser
- Rotate database credentials and any secrets accessible to the LORIS application user after confirming a clean state
Patch Information
The LORIS maintainers fixed the SQL injection in versions 27.0.3 and 28.0.1. Patch details are published in the GitHub Security Advisory GHSA-9r29-6jgc-3ggh. Operators on the 27.x branch should upgrade to 27.0.3, and operators on the 28.x branch should upgrade to 28.0.1.
Workarounds
- Block access to the MRI feedback popup endpoints at the reverse proxy until the patch is applied
- Apply a WAF rule that drops requests containing SQL meta-characters in parameters targeting the imaging browser
- Limit the LORIS database account to least-privilege permissions, removing DROP, ALTER, and cross-database access where feasible
# Example nginx rule to block requests with common SQL injection patterns
# targeting the imaging browser until upgrade is complete
location /imaging_browser/ {
if ($args ~* "(union.*select|select.*from|insert.*into|--|/\*|;)") {
return 403;
}
proxy_pass http://loris_backend;
}
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

