CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



GHSA-JFWG-RXF3-P7R9

GHSA-JFWG-RXF3-P7R9: CQL/N1QL Injection in Authorizer via String Interpolation

Alon Barad
Alon Barad
Software Engineer

Apr 7, 2026·7 min read·36 visits

Executive Summary (TL;DR)

A critical injection vulnerability (CWE-943) in Authorizer's Cassandra and Couchbase backends allows unauthenticated attackers to bypass authentication and read/modify database contents via crafted payloads targeting unparameterized SQL-like queries.

Authorizer versions prior to 2.0.1 contain a critical injection vulnerability in the Cassandra and Couchbase database backends. The software constructs queries using unsafe string interpolation, allowing unauthenticated attackers to execute arbitrary database commands, bypass authentication mechanisms, and access sensitive data.

Vulnerability Overview

Authorizer provides authentication and authorization infrastructure for web applications. It supports multiple database backends for storage and session management. The Cassandra and Couchbase storage adapters in versions prior to 2.0.1 contain a critical injection vulnerability. The flaw exists because the software uses unsafe string interpolation to construct database queries.

The vulnerability maps to CWE-943 (Improper Neutralization of Special Elements in Data Query Logic). The application dynamically interpolates unvalidated user input directly into query strings using Go's fmt.Sprintf function. This allows attackers to manipulate the logic of Cassandra Query Language (CQL) and Couchbase N1QL queries.

The impact spans authentication bypass, unauthorized data modification, and sensitive information disclosure. Attackers can leverage this vulnerability to gain administrative access or extract underlying credential data. The vulnerability resides exclusively in the Cassandra and Couchbase backends; instances utilizing other storage mechanisms remain unaffected by this specific implementation flaw.

Root Cause Analysis

The root cause of GHSA-JFWG-RXF3-P7R9 is the reliance on manual string formatting for query construction rather than parameterized database operations. In Go applications, fmt.Sprintf performs simple string substitution without contextual awareness of the target data format. The Authorizer codebase applied this pattern extensively across its internal/storage/db/cassandradb/ package.

Analysis of the affected repository indicates over 66 distinct queries within the Cassandra backend and 3 queries within the Couchbase backend utilized this vulnerable pattern. Variables representing user-controlled data, such as email addresses, user identifiers, authentication tokens, and session keys, were passed directly to fmt.Sprintf format specifiers (%s). The resulting string was subsequently executed by the database driver.

Cassandra (CQL) and Couchbase (N1QL) utilize syntax structures similar to traditional SQL. When a query string encapsulates user input within single quotes, an attacker supplying a malicious payload containing a single quote character can prematurely terminate the string literal. The remaining payload is then parsed as executable query syntax by the respective database engine, fundamentally altering the intended execution logic.

The absence of input sanitization compounds the vulnerability. The application did not attempt to escape single quotes or validate the structural integrity of the parameters before execution. Consequently, the query engines executed the structurally modified queries under the application's assigned privilege level.

Code Analysis

The pre-patch implementation within the GetAuthenticatorDetailsByUserId function demonstrates the structural flaw. The code dynamically constructed a SELECT statement by concatenating the keyspace, collection name, and user-provided variables.

// Vulnerable snippet from GetAuthenticatorDetailsByUserId
query := fmt.Sprintf("SELECT id, user_id, method, secret, recovery_codes, verified_at, created_at, updated_at FROM %s WHERE user_id = '%s' AND method = '%s' LIMIT 1 ALLOW FILTERING", KeySpace+"."+schemas.Collections.Authenticators, userId, authenticatorType)
err := p.db.Query(query).Consistency(gocql.One).Scan(...)

The mitigation implemented in Pull Request #500 (Commit 73679fa) replaces string interpolation with parameterized queries. For the Cassandra backend, the gocql library processes ? placeholders. The variables are passed as explicit arguments to the Query() method, delegating the escaping and type safety responsibilities to the database driver.

// Patched snippet from GetAuthenticatorDetailsByUserId
query := fmt.Sprintf("SELECT id, user_id, method, secret, recovery_codes, verified_at, created_at, updated_at FROM %s WHERE user_id = ? AND method = ? LIMIT 1 ALLOW FILTERING", KeySpace+"."+schemas.Collections.Authenticators)
err := p.db.Query(query, userId, authenticatorType).Consistency(gocql.One).Scan(...)

The Couchbase backend required a similar refactoring strategy utilizing named parameters. The developers updated the query execution logic to bind values securely. Additionally, the patch introduced a convertMapValues helper function to process json.Number types produced by the Go JSON decoder. This ensures compatibility with Cassandra's bigint and double column definitions during parameterized binding operations.

Exploitation Methodology

Exploitation requires the attacker to send a maliciously crafted HTTP request targeting endpoints that process user identifiers, authentication tokens, or webhook configurations. The objective is to manipulate the syntax of the underlying CQL or N1QL query. The attacker identifies a vulnerable parameter and injects a payload containing a single quote followed by conditional operators.

A standard injection payload for the userId parameter takes the form test' OR '1'='1. When processed by the vulnerable fmt.Sprintf implementation, the generated query becomes SELECT ... WHERE user_id = 'test' OR '1'='1' AND method = '...'. The database evaluates the injected logical OR condition as true for all records, overriding the intended filtering criteria.

In the context of the Cassandra backend, the ALLOW FILTERING directive appended to many queries facilitates the execution of these modified statements. While Cassandra strictly enforces indexing rules on queries, ALLOW FILTERING permits the database to scan the entire table and filter the results post-retrieval. This configuration inadvertently ensures the attacker's payload executes without triggering index-related syntax errors.

Depending on the targeted query structure, the execution yields distinct security failures. For authentication checks, the query returns the first user record encountered, effectively logging the attacker into an arbitrary account. For data retrieval operations, the attacker extracts session keys or recovery codes by forcing the application to dump the collection contents.

Impact Assessment

The primary consequence of this vulnerability is the complete subversion of the authentication mechanism. Attackers can bypass credential verification phases by forcing the storage layer to return valid user objects regardless of the provided password or token. This grants unauthenticated adversaries administrative or user-level access to the protected application.

Secondary impacts involve unauthorized data access and modification. The Couchbase update query vulnerabilities allow attackers to overwrite arbitrary fields within the target documents. By manipulating the WHERE _id='%s' clause, an attacker forces the application to alter configuration settings, webhook destinations, or security policies stored within the database.

The vulnerability also introduces an information disclosure vector mapped to CWE-209 (Generation of Error Message Containing Sensitive Information). Malformed injection attempts that trigger syntax errors within the database layer cause the application to return verbose error messages. These messages expose internal database schemas, column definitions, and structural metadata to the external attacker.

The operational impact extends beyond the authentication layer. Centralized identity providers control access to downstream services. Compromising the Authorizer instance breaks the security boundaries of all dependent applications relying on the provider for OAuth/OIDC validation.

Remediation and Mitigation

The authoritative remediation strategy requires upgrading the Authorizer deployment to version 2.0.1 or later. This release incorporates the comprehensive migration to parameterized queries across both the Cassandra and Couchbase storage interfaces. Administrators must verify the version deployment across all environment tiers.

For environments utilizing the Cassandra backend where immediate patching is strictly impossible, operators must implement intermediate mitigation strategies. Deploying a Web Application Firewall (WAF) configured to inspect and drop payloads containing single quotes or SQL-like logical operators within JSON request bodies provides a temporary defense mechanism. This approach is brittle and susceptible to evasion techniques, but reduces the immediate attack surface.

Organizations must rotate sensitive cryptographic material if they detect prior exploitation. Reviewing database query logs for anomalous OR clauses or syntax errors originating from the application tier aids in identifying historical compromise. All session keys, recovery codes, and integration tokens stored within the vulnerable database clusters must be considered potentially compromised.

Code auditing teams responsible for reviewing custom extensions or forks of the Authorizer project should proactively grep the codebase for fmt.Sprintf usages adjacent to database query execution methods. This identifies incomplete merges or divergent code paths that reintroduce the vulnerability.

Official Patches

AuthorizerPull Request addressing the vulnerability

Fix Analysis (1)

Technical Appendix

CVSS Score
9.8/ 10
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected Systems

Authorizer (Go Application) < 2.0.1Cassandra Database Backend AdapterCouchbase Database Backend Adapter

Affected Versions Detail

Product
Affected Versions
Fixed Version
Authorizer
AuthorizerDev
< 2.0.12.0.1
AttributeDetail
Vulnerability TypeCQL/N1QL Injection
CWE IDCWE-943
Attack VectorNetwork
Authentication RequiredNone
CVSS Score9.8
Affected ComponentsCassandra / Couchbase Storage Adapters

MITRE ATT&CK Mapping

T1190Exploit Public-Facing Application
Initial Access
T1606Steal or Forge Authentication Certificates
Credential Access
CWE-943
Improper Neutralization of Special Elements in Data Query Logic

Improper Neutralization of Special Elements in Data Query Logic

Vulnerability Timeline

Patch Committed to repository
2024-12-16
Advisory published on GitHub
2024-12-16
Version 2.0.1 released
2024-12-16

References & Sources

  • [1]GitHub Advisory: GHSA-JFWG-RXF3-P7R9
  • [2]Fix Pull Request #500
  • [3]Fix Commit 73679faa
  • [4]CWE-943 Definition

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•2 days ago•CVE-2026-16454
4.3

CVE-2026-16454: Object-Level Authorization Bypass in Eclipse hawkBit Direct Device Integration Controller

CVE-2026-16454 is an object-level authorization bypass vulnerability (CWE-284, CWE-862) in Eclipse hawkBit versions 1.0.3 and prior. The flaw exists within the Direct Device Integration (DDI) REST controller (hawkbit-ddi-resource), where endpoints responsible for enumerating software module metadata and serving firmware binaries fail to verify whether the requested software module is assigned to the authenticated device. Consequently, any device with valid credentials (such as a TargetToken or GatewayToken) can enumerate software module identifiers and download arbitrary firmware artifacts across the entire tenant namespace.

Amit Schendel
Amit Schendel
11 views•9 min read
•2 days ago•CVE-2026-62284
8.6

CVE-2026-62284: Remote Code Execution and SSRF via Unsanitized Kubeconfig in OSAC Operator

CVE-2026-62284 (GHSA-5w5g-j6hw-6p8f) is a code injection and server-side request forgery vulnerability in the console-proxy component of the OSAC Operator. The RemoteConfigResolver parses Kubernetes Secrets containing kubeconfig files via clientcmd.RESTConfigFromKubeConfig without sanitizing execution-related fields. An attacker with RBAC permissions to create or modify labeled Secrets in monitored namespaces can supply a malicious exec credential plugin, resulting in arbitrary command execution within the console-proxy pod.

Amit Schendel
Amit Schendel
8 views•8 min read
•2 days ago•CVE-2026-62361
5.5

CVE-2026-62361: Authenticated SQL Injection and Table Access Control Bypass in Listmonk Subscriber Export

CVE-2026-62361 (GHSA-xgjr-7j9q-2h4r) is an authenticated SQL injection and authorization bypass vulnerability in listmonk, an open-source, self-hosted newsletter and mailing list manager written in Go. In versions prior to 6.2.0, the subscriber export endpoint (GET /api/subscribers/export) directly interpolates user-supplied SQL filter expressions into a PostgreSQL query without invoking the table allowlist validation function (validateQueryTables). Consequently, authenticated users possessing the subscribers:sql_query and subscribers:get_all permissions can bypass relational access controls, execute arbitrary subqueries against restricted tables such as users and settings, and modify database state via writable Common Table Expressions (CTEs).

Alon Barad
Alon Barad
10 views•11 min read
•2 days ago•CVE-2026-28385
5.0

CVE-2026-28385: Server-Side Request Forgery in Canonical LXD Image Import

CVE-2026-28385 (GHSA-3gq2-x4qg-p4g6) is a Server-Side Request Forgery (SSRF) vulnerability in Canonical LXD versions 4.12 through 6.9. An authenticated user possessing the can_create_images entitlement can force the LXD daemon to execute arbitrary outbound HTTP and HTTPS requests via the /1.0/images API endpoint. Due to the absence of egress destination validation, an attacker can probe host loopback services, RFC 1918 private network segments, and cloud Instance Metadata Services (IMDS) from the network position of the privileged LXD daemon.

Amit Schendel
Amit Schendel
10 views•9 min read
•2 days ago•GHSA-9J25-MM2H-2F76
9.9

CVE-2026-48750: Arbitrary File Write on Host via exec-output Symlink in Canonical LXD and Incus

Canonical LXD and LXC Incus contain an arbitrary file write vulnerability (CWE-73 / CWE-59) in the `/1.0/instances/<name>/exec` REST API endpoint. When an instance is unpacked from an image archive, top-level symbolic links are extracted directly onto the host filesystem within the instance storage directory. If a crafted image includes a symbolic link named `exec-output` pointing to an arbitrary host path, invoking the execution endpoint with `record-output: true` causes the privileged host daemon to follow the symlink and write command output files directly to the target host directory. An authenticated attacker with permissions to import images and execute commands can exploit this flaw to write controlled content to sensitive host directories such as `/etc/cron.d`, resulting in arbitrary code execution on the host as `root`.

Alon Barad
Alon Barad
8 views•12 min read
•2 days ago•GHSA-VGHH-5RFX-XHQ8
9.9

CVE-2026-48749: Arbitrary Host File Read and Write via Malicious Image Symlink in Canonical LXD and Incus

CVE-2026-48749 (tracked as GHSA-vghh-5rfx-xhq8 for LXD and GHSA-2q3f-q5pq-g8wv for Incus) is a critical container escape vulnerability in the Canonical LXD and Linux Containers Incus system container managers. By importing a specially crafted container image archive containing duplicate tar member headers, an authenticated attacker can replace the instance rootfs directory with a symbolic link pointing to the underlying host root filesystem. When performing file operations on a stopped container, the privileged forkfile helper binary resolves the symbolic link without confinement and chroots directly into the host filesystem, granting arbitrary root-level file read and write access.

Amit Schendel
Amit Schendel
8 views•9 min read