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



CVE-2026-52888

CVE-2026-52888: Sensitive Data Exposure and Blacklist Bypass in NocoBase SQL Collection Plugin

Alon Barad
Alon Barad
Software Engineer

Jul 28, 2026·6 min read·29 visits

Executive Summary (TL;DR)

NocoBase versions prior to 2.1.0-alpha.46 used an incomplete blacklist in checkSQL() validator, enabling privileged users to read system databases, query schema metadata, and extract PostgreSQL MD5/SCRAM password hashes.

NocoBase, an extensible low-code platform, was found to contain an information exposure vulnerability in its SQL Collection plugin. The validator designed to inspect SQL queries used an incomplete keyword-based blacklist, allowing users with administrative or collection creation privileges to bypass restrictions and execute arbitrary SELECT queries against PostgreSQL system catalogs. This flaw permits unauthenticated or privilege-escalated access to critical system files, active connection listings, and system user password hashes.

Vulnerability Overview

NocoBase features a core extension named @nocobase/plugin-collection-sql that permits authorized users to define SQL collections. These collections act as virtual database tables constructed from raw SQL queries. To prevent administrative users from executing destructive write operations or querying restricted database configurations, NocoBase implements a string-based validation function called checkSQL().

This validator functions on a blacklist methodology, seeking to catch and reject queries containing specific keywords or functions associated with administration, service interruption, or local file access. The attack surface resides in the REST API endpoints associated with the SQL Collection engine, which process these custom queries on behalf of the application service.

Because the underlying engine permits raw SQL execution, the checkSQL() filter represents the primary line of defense protecting the PostgreSQL database backend. Failure to isolate metadata schemas and credential stores means that any user capable of creating or editing an SQL collection can access system resources far beyond the logical sandbox of the NocoBase application layer.

Root Cause Analysis

The root cause of CVE-2026-52888 is an incomplete list of disallowed inputs, classified under CWE-184. The function checkSQL() in packages/plugins/@nocobase/plugin-collection-sql/src/server/utils.ts validated user-supplied SQL strings against a static array named dangerKeywords. This list blocked commands such as pg_sleep, pg_reload_conf, and generate_series, but entirely omitted critical PostgreSQL system tables.

In PostgreSQL, vital administrative metadata is kept in system catalog tables. These tables include pg_shadow (storing database user password hashes), pg_roles (storing role properties), and pg_stat_activity (storing real-time queries and sessions). Because the blacklist did not restrict queries referencing these catalogs, a standard SELECT query targeting them successfully passed the validator.

Additionally, the validation architecture parses statements using a primitive string-splitting approach. The validator evaluates only the first query segment isolated by a semicolon. This implementation assumes that the database driver prevents multi-statement execution, creating a technical gap that attackers can exploit to bypass the validation wrapper entirely.

Code Analysis and Patch Review

The following code block highlights the vulnerable validator state in @nocobase/plugin-collection-sql compared to the official patch applied in commit 87c548969ce9258dd7f0d9571c9453ae10bc3fc4:

File: packages/plugins/@nocobase/plugin-collection-sql/src/server/utils.ts
@@ -22,6 +22,13 @@ export const checkSQL = (sql: string) => {
     'pg_reload_conf',
     'pg_sleep',
     'generate_series',
+    'pg_catalog',
+    'pg_shadow',
+    'pg_authid',
+    'pg_auth_members',
+    'pg_roles',
+    'pg_stat_activity',
+    'information_schema',
 
     // MySQL
     'LOAD_FILE',
@@ -33,7 +40,7 @@ export const checkSQL = (sql: string) => {
     'sqlite3_load_extension',
     'load_extension',
   ];
-  sql = sql.trim().split(';').shift();
+  sql = sql.trim().split(';').shift() || '';
   if (!/^select/i.test(sql) && !/^with([\s\S]+)select([\s\S]+)/i.test(sql)) {
     throw new Error('Only supports SELECT statements or WITH clauses');
   }

The patch expands the blacklist array to block keywords linked to PostgreSQL system catalog schemas. The update also appends a fallback nullish string assignment (|| '') to prevent runtime crashes if the shift() output on split arrays returns an undefined reference.

Below is a flow diagram representing the validation process in the vulnerable application versions:

While this fix prevents simple queries against the specified system catalogs, the validation strategy remains fragile. The implementation does not evaluate structural query characteristics using a full SQL parser, which leaves the system open to alternative bypass strategies.

Exploitation and Bypass Techniques

Exploitation of this vulnerability requires access to the SQL Collection execution endpoints, typically restricted to authenticated admin-role users. An attacker targets the /api/sqlCollection:execute resource with a crafted payload containing a query directed at a sensitive system view.

An example exploitation HTTP request to fetch user credential hashes from pg_shadow is structured as follows:

POST /api/sqlCollection:execute HTTP/1.1
Host: target-nocobase.local
Authorization: Bearer <JWT_ADMIN_TOKEN>
Content-Type: application/json
 
{
  "values": {
    "sql": "SELECT usename, passwd FROM pg_shadow"
  }
}

Because pg_shadow is not contained in the blacklist of unpatched versions, the backend process forwards this query to the database instance. The database replies with the admin usernames and their corresponding password hashes, which are returned to the attacker's console.

Furthermore, even in patched versions, the split-by-semicolon parser allows potential stacked queries if the database driver is configured to process multiple statements. A query such as SELECT 1; SELECT usename, passwd FROM pg_shadow; extracts SELECT 1 for validation, bypassing the keyword list while sending both queries to the engine. Additionally, standard application databases storing bcrypt user credentials (such as the users table) remain unblocked since they do not match PostgreSQL system catalogs.

Impact Assessment

The impact of CVE-2026-52888 is categorized as high for confidentiality, while integrity and availability are unaffected because the engine restricts execution to SELECT and WITH query forms. In a default configuration, NocoBase communicates with its database utilizing a high-privilege account. Consequently, administrative users can read password hashes of the underlying database instance, which may lead to systemic infrastructure compromise if passwords are reused.

Exposing the database schema via metadata exploration allows attackers to trace database relationships, identify sensitive client directories, and locate system integration tokens. If the system backend uses external databases, database user credential theft can lead to horizontal movement inside the target enterprise network.

This vulnerability showcases a scope change (S:C) under CVSS metrics. While the vulnerability occurs in the NocoBase software layer, its exploitation results in direct exposure of the underlying PostgreSQL management environment.

Remediation and Structural Mitigations

Organizations should transition away from blacklist-based filters for user-controlled raw SQL execution. The most immediate remediation action is updating the NocoBase platform installation to version 2.1.0-alpha.46, 2.0.62, or later. These versions contain the expanded keyword list and input checking routines.

To limit the scope of administrative queries, engineers must enforce the principle of least privilege at the database layer. The NocoBase application database user should be restricted from reading system catalogs. System administrators can execute the following SQL policies on PostgreSQL to restrict user catalog access:

-- Revoke read access to system catalogs from the application user
REVOKE SELECT ON pg_shadow FROM public;
REVOKE SELECT ON pg_authid FROM public;

Furthermore, ensure that the application's PostgreSQL connection user is not configured with superuser status. Restricting connection accounts ensures that database engine permissions block read attempts on system-level tables, regardless of any application-level blacklist bypasses.

Official Patches

NocoBaseOfficial pull request containing security changes to the SQL Collection check utility.

Fix Analysis (2)

Technical Appendix

CVSS Score
6.8/ 10
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N
EPSS Probability
0.27%
Top 81% most exploited

Affected Systems

NocoBase low-code/no-code platformNocoBase SQL Collection Plugin (@nocobase/plugin-collection-sql)

Affected Versions Detail

Product
Affected Versions
Fixed Version
@nocobase/plugin-collection-sql
NocoBase
<= 2.0.592.1.0-alpha.46
AttributeDetail
CWE IDCWE-184
Attack VectorNetwork (AV:N)
CVSS Base Score6.8
EPSS Score0.00269
Exploit MaturityProof-of-Concept (PoC)
CISA KEV StatusNot Listed

MITRE ATT&CK Mapping

T1005Data from Local System
Collection
T1552Unsecured Credentials
Credential Access
CWE-184
Incomplete List of Disallowed Inputs

The application filters or validates inputs using an incomplete blocklist, leaving dangerous entities open to bypasses.

Known Exploits & Detection

GitHub Security AdvisoryOfficial advisory outlining the SQL keyword-based bypass vulnerability and remediation parameters.

Vulnerability Timeline

Fix commit submitted to the NocoBase repository.
2026-06-04
GHSA-v8vm-cqh8-q87q Security Advisory published.
2026-07-15
CVE-2026-52888 assigned and published.
2026-07-15

References & Sources

  • [1]NocoBase Security Advisory GHSA-v8vm-cqh8-q87q
  • [2]NocoBase Patch Commit 87c5489

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

•17 minutes ago•CVE-2026-62683
3.1

CVE-2026-62683: Incorrect Authorization via Stale Public Shares in File Browser

File Browser versions prior to 2.63.17 contain an authorization and state-management flaw in the BoltDB storage backend. When an authenticated user deletes a shared directory via an HTTP request with a trailing slash (e.g., DELETE /api/resources/a/), the share cleanup routine queries the database index using the unnormalized path before stripping the trailing slash. Because canonical share paths are stored without trailing slashes (e.g., /a), the database prefix query fails to match the parent directory share record. If a directory with the same name is later recreated, the dormant public share hash automatically reactivates and exposes the new directory contents to unauthenticated users.

Alon Barad
Alon Barad
1 views•10 min read
•about 1 hour ago•CVE-2026-62297
7.5

CVE-2026-62297: Uncontrolled Memory Allocation and Denial of Service in ag-psd

An uncontrolled memory allocation vulnerability exists in ag-psd versions prior to 31.0.0. When parsing Adobe Photoshop Document (PSD) files, the readPsd() function reads image dimensions and color depth directly from the file header and allocates off-heap typed arrays without validating whether the requested memory size is proportional to the input stream or bounded by operational thresholds. An unauthenticated attacker can supply a crafted 52-byte PSD payload that triggers an immediate 3.35 GB memory allocation, resulting in process termination via the operating system Out-Of-Memory (OOM) killer.

Amit Schendel
Amit Schendel
3 views•10 min read
•about 2 hours ago•CVE-2026-126297
7.5

CVE-2026-126297: Algorithmic Complexity Denial of Service in NLTK ConllCorpusReader

CVE-2026-126297 (GHSA-v8f3-6phw-6mh9) is an uncontrolled resource consumption and algorithmic complexity vulnerability in the Natural Language Toolkit (NLTK) prior to version 3.10.4. Located in the Semantic Role Labeling (SRL) parser within `nltk/corpus/reader/conll.py`, the flaw allows an attacker to trigger quadratic O(N^2) CPU processing overhead by providing crafted CoNLL-formatted corpus inputs containing decoy span columns or nested full-width verb spans. Applications parsing untrusted linguistic corpora can experience prolonged CPU exhaustion and application-level Denial of Service (DoS).

Amit Schendel
Amit Schendel
3 views•12 min read
•about 3 hours ago•CVE-2026-126298
7.5

CVE-2026-126298: Quadratic Algorithmic Complexity Denial of Service in NLTK Tree.chomsky_normal_form

CVE-2026-126298 (also tracked as GHSA-r53h-rw34-8h97) is an algorithmic complexity Denial of Service (DoS) vulnerability in the Natural Language Toolkit (NLTK) Python library affecting all versions prior to 3.10.4. The vulnerability resides in the nltk.tree.transforms.chomsky_normal_form function and its corresponding public method Tree.chomsky_normal_form(). When transforming a parse tree into Chomsky Normal Form using the default right-factoring strategy, the function repeatedly invokes list.pop(0) inside a loop iterating over all children of a node. In CPython, removing the initial element of a standard list requires an O(N) memory shift operation, causing the overall binarization algorithm to degrade to O(N^2) quadratic time complexity relative to the width of a node. Furthermore, converting horizontal node width into vertical tree depth bypasses initial parsing depth bounds, triggering subsequent stack exhaustion (RecursionError) when recursive methods traverse the mutated structure. Unauthenticated remote attackers who can submit bracketed tree strings to applications invoking this transformation can exhaust single-threaded CPU resources or induce unhandled application exceptions.

Alon Barad
Alon Barad
6 views•12 min read
•about 4 hours ago•CVE-2026-126299
7.5

CVE-2026-126299: Quadratic Algorithmic Complexity Denial of Service in NLTK CCG Lexicon Parser

An algorithmic complexity vulnerability (CWE-407) in the Natural Language Toolkit (NLTK) before version 3.10.4 allows remote unauthenticated attackers to cause a denial of service via crafted Combinatory Categorial Grammar (CCG) lexicon strings. The parser in nltk.ccg.lexicon.fromstring performs repeated immutable string slicing, concatenation, and regex tail capturing, resulting in O(n^2) CPU consumption when processing wide, flat category definitions.

Alon Barad
Alon Barad
5 views•10 min read
•about 5 hours ago•CVE-2026-126295
7.1

CVE-2026-126295: Path Traversal and Unconfined File Access in NLTK BllipParser

CVE-2026-126295 (also tracked as GHSA-fg9w-wfp5-j933) is a path confinement bypass vulnerability in the Natural Language Toolkit (NLTK) affecting versions 3.10.0 prior to 3.10.4. The flaw resides in nltk/parse/bllip.py within the BllipParser class and its factory method BllipParser.from_unified_model_dir(). Unlike sibling tool wrappers in NLTK that enforce data-root confinement via the nltk.pathsec module, BllipParser passes caller-supplied filesystem paths directly into the third-party bllipparser native C extension without validation. When an application passes untrusted input as model paths or directories to BllipParser, an attacker can force the native extension to open arbitrary files on the local filesystem. This leads to information disclosure through parser diagnostic oracles, local model tampering via shared directories, and denial of service by hanging worker threads on blocking special files (such as FIFOs or device nodes) or exhausting memory via oversized files.

Amit Schendel
Amit Schendel
2 views•11 min read