GHSA-cgfv-jrfp-2r7v: OpenRemote has Authenticated SQL Injection via Datapoint Crosstab Export
OpenRemote Manager versions prior to 1.26.0 contain an authenticated SQL injection vulnerability in the datapoint crosstab export API. An authenticated user with permissions to create or rename assets and export datapoints can inject SQL code via asset names. This injection occurs because asset names are concatenated directly into PostgreSQL crosstab export queries without proper escaping, allowing attackers to exfiltrate database data through the exported CSV response. The vulnerability is especially critical in multi-tenant deployments where data from multiple tenants may be exposed.
AI Analysis
Technical Summary
The datapoint export API in OpenRemote Manager builds PostgreSQL crosstab export queries by concatenating asset display names into raw SQL statements. Authenticated users with asset creation or renaming permissions can inject SQL via specially crafted asset names. The injection exploits incomplete escaping of double quotes and fixed dollar-quote delimiters in SQL identifiers and category queries. This allows attacker-controlled SQL appended to the COPY TO STDOUT query, streaming query results back in the CSV export. The vulnerability enables database data exfiltration through the application API without requiring direct database or filesystem access.
Potential Impact
A remote authenticated attacker with asset read/write and export permissions can execute arbitrary SQL queries within the context of the application database role. This leads to unauthorized data disclosure by exfiltrating database contents via the exported CSV file. In multi-tenant environments, this may expose data belonging to other tenants, increasing the risk of sensitive information leakage.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The recommended fix is to avoid embedding user-controlled asset names directly into executable SQL. This includes generating deterministic internal column aliases instead of using asset names as SQL identifiers, applying proper database-aware quoting for dynamic identifiers, and avoiding fixed dollar-quote delimiters around user-influenced strings. Until an official fix is available, restrict asset creation and renaming permissions to trusted users only and avoid exporting datapoints in crosstab format for assets with untrusted names.
GHSA-cgfv-jrfp-2r7v: OpenRemote has Authenticated SQL Injection via Datapoint Crosstab Export
Description
OpenRemote Manager versions prior to 1.26.0 contain an authenticated SQL injection vulnerability in the datapoint crosstab export API. An authenticated user with permissions to create or rename assets and export datapoints can inject SQL code via asset names. This injection occurs because asset names are concatenated directly into PostgreSQL crosstab export queries without proper escaping, allowing attackers to exfiltrate database data through the exported CSV response. The vulnerability is especially critical in multi-tenant deployments where data from multiple tenants may be exposed.
CVSS v4.0
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The datapoint export API in OpenRemote Manager builds PostgreSQL crosstab export queries by concatenating asset display names into raw SQL statements. Authenticated users with asset creation or renaming permissions can inject SQL via specially crafted asset names. The injection exploits incomplete escaping of double quotes and fixed dollar-quote delimiters in SQL identifiers and category queries. This allows attacker-controlled SQL appended to the COPY TO STDOUT query, streaming query results back in the CSV export. The vulnerability enables database data exfiltration through the application API without requiring direct database or filesystem access.
Potential Impact
A remote authenticated attacker with asset read/write and export permissions can execute arbitrary SQL queries within the context of the application database role. This leads to unauthorized data disclosure by exfiltrating database contents via the exported CSV file. In multi-tenant environments, this may expose data belonging to other tenants, increasing the risk of sensitive information leakage.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The recommended fix is to avoid embedding user-controlled asset names directly into executable SQL. This includes generating deterministic internal column aliases instead of using asset names as SQL identifiers, applying proper database-aware quoting for dynamic identifiers, and avoiding fixed dollar-quote delimiters around user-influenced strings. Until an official fix is available, restrict asset creation and renaming permissions to trusted users only and avoid exporting datapoints in crosstab format for assets with untrusted names.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-cgfv-jrfp-2r7v
- Osv Schema Version
- 1.4.0
- Aliases
- []
- Ecosystems
- ["Maven"]
- Database Specific Severity
- HIGH
- Cvss Version
- 4.0
Threat ID: 6a4c33f027e9c797195ec8a0
Added to database: 07/06/2026, 23:02:08 UTC
Last enriched: 07/06/2026, 23:06:04 UTC
Last updated: 07/06/2026, 23:06:04 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.