Skip to main content

NocoDB EUVDEUVD-2026-38628

| CVE-2026-47375 MEDIUM
SQL Injection (CWE-89)
2026-06-05 https://github.com/nocodb/nocodb GHSA-cxv7-gmmp-228p
6.0
CVSS 3.1 · Vendor: https://github.com/nocodb/nocodb
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Authenticate as NocoDB creator/owner
  2. Delivery
    Select Postgres-backed base
  3. Exploit
    Create formula column with malicious ARRAYSORT direction payload
  4. Install
    Payload bypasses sanitize() and embeds in knex.raw ORDER BY clause
  5. C2
    Injected SQL executes on column creation
  6. Execute
    Injected SQL re-executes on every formula column read
  7. Impact
    Database DoS or data access achieved

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Persistence

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires an authenticated NocoDB session with columnAdd permission - a creator or owner-level role, not the default viewer or editor. The CVSS vector PR:H confirms high-privilege authentication is a hard prerequisite. The target base must use a Postgres backend; the vulnerability does not exist in NocoDB's MySQL or SQLite formula mappings. Beyond DoS, achieving confidentiality or integrity impact depends on the Postgres database user's privilege level and deployment hardening (e.g., whether the NocoDB DB user has read access to sensitive tables or can execute arbitrary functions). There is no unauthenticated or low-privilege attack path. Exploitation is further limited to NocoDB versions below 2026.04.1.

Impact

The CVSS 6.0 score with vector AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:H reflects the key tension in this vulnerability: it is network-reachable with low complexity, but gated behind high-privilege authentication (PR:H), requiring a creator or owner-level role with explicit columnAdd permission. The A:H (Availability: High) rating is well-supported by the demonstrated payload using generate_series(1,30000000) to produce multi-second query stalls that persist and re-trigger on every formula column read - a force-multiplier that amplifies a single injection event. C:L and I:L indicate that confidentiality and integrity impact are possible but bounded by the Postgres user's database permissions and deployment hardening, not guaranteed. No EPSS score was provided in the input data. The vulnerability is not in CISA KEV and no public exploit code was identified, indicating no confirmed active exploitation at time of analysis. Real-world priority is moderate: the PR:H requirement substantially reduces the attack surface to insider threats, compromised creator accounts, or self-hosted deployments with lax role governance. The persistent, read-triggered nature of the injected payload is the most operationally significant risk amplifier once initial access is achieved.

Exploit ScenarioDerived

An authenticated NocoDB creator on a Postgres-backed base adds a formula column using ARRAYSORT(SomeField, "desc, (SELECT COUNT(*) FROM generate_series(1,30000000))"). The injected SQL is silently accepted and stored during column creation, then re-executes on every read of the formula column by any user of that base, producing multi-second query stalls that degrade or deny service to the entire base. If the Postgres database user has broader permissions, the attacker could extend the injection beyond DoS to exfiltrate data or manipulate records via stacked or time-based blind SQL injection techniques.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 05, 2026

SQL injection in NocoDB's Postgres formula engine exposes authenticated creators to arbitrary SQL execution via the unvalidated direction argument of the ARRAYSORT(...) formula function. All NocoDB instances on npm/nocodb versions prior to 2026.04.1 using Postgres-backed bases are affected; MySQL and SQLite backends are not. An attacker holding creator/owner-level columnAdd permission can inject persistent SQL that executes during column creation and re-executes on every subsequent read of the formula column, enabling confirmed denial-of-service and potentially broader data access depending on database-level permissions. No public exploit identified at time of analysis; this vulnerability is not listed in CISA KEV.

RemediationAI

Upgrade NocoDB to version 2026.04.1 or later - vendor-released patch confirmed via GitHub release https://github.com/nocodb/nocodb/releases/tag/2026.04.1 and advisory GHSA-cxv7-gmmp-228p at https://github.com/nocodb/nocodb/security/advisories/GHSA-cxv7-gmmp-228p. If immediate upgrade is not feasible, restrict columnAdd permission exclusively to highly trusted administrators, reducing the accounts that can reach the vulnerable code path; this does not eliminate the injection vector but limits exposure. As an additional compensating control, reduce the NocoDB database user's Postgres permissions - for example, revoke access to resource-intensive functions like generate_series - to bound the DoS impact and constrain potential data access from broader SQL injection. Note that permission restrictions are not a substitute for patching, as the root injection vector remains present. Self-hosted operators should also audit existing formula columns for suspicious ARRAYSORT usage with unusual direction values to detect prior exploitation.

Affected VersionsENISA

nocodb < 2026.04.1

Affected Packages

npm nocodb fix: 2026.04.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

NocoDB is an open-source no-code database platform (npm package: nocodb) that maps spreadsheet-style formula functions to database-specific SQL via a pluggable function mapping layer. The vulnerable code resides in packages/nocodb/src/db/functionMappings/pg.ts, the Postgres-specific formula mapper built on the knex query builder. The root cause is CWE-89 (Improper Neutralization of Special Elements in an SQL Command), arising from two compounding flaws: first, ARRAYSORT is defined with only an argument count constraint and no validation.args.type declaration, so the formula validator in validate-extract-tree.ts skips allowlist enforcement on the second (direction) argument; second, the Postgres mapper passes the raw user-supplied value through sanitize(knex.raw(...)) where sanitize() in sqlSanitize.ts only escapes ? placeholder characters and performs no SQL syntax validation, allowing the unfiltered value to be embedded directly into a knex.raw ORDER BY clause. The affected CPE is pkg:npm/nocodb.

Know when PostgreSQL gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/nocodb/nocodb) PRIMARY 6.0 MEDIUM
AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:H

Primary rating from Vendor (https://github.com/nocodb/nocodb) · only source for this CVE.

CVSS VectorVendor: https://github.com/nocodb/nocodb

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
High

DescriptionCVE.org

Summary

An authenticated user with columnAdd permission on a Postgres-backed base can inject arbitrary SQL into the formula engine via the optional direction argument of ARRAYSORT(...). The value is unrestricted by formula validation and embedded into a knex.raw ORDER BY clause, executing during column creation and on every subsequent record read of the formula column.

Details

The vulnerability is specific to the Postgres mapping for ARRAYSORT in packages/nocodb/src/db/functionMappings/pg.ts. Two factors combine:

  1. ARRAYSORT declares only argument count, not validation.args.type, so validate-extract-tree.ts does not enforce an allowlist on the second argument.
  2. The Postgres mapping then passes the attacker-controlled value through sanitize(knex.raw(...)) into a raw SQL fragment:
ts
const direction = pt.arguments[1]
  ? sanitize(
      knex.raw(pt.arguments[1]?.value ?? (await fn(pt.arguments[1])).builder),
    )
  : knex.raw('asc');

return {
  builder: knex.raw(`ARRAY(SELECT UNNEST(??) ORDER BY 1 ??)`, [source, direction]),
};

sanitize() in sqlSanitize.ts only escapes ? placeholder characters; it does not validate SQL syntax. A payload such as "desc, (SELECT COUNT(*) FROM generate_series(1,30000000))" is accepted, persisted, and re-executed on every read of the formula column.

Impact

  • Authenticated SQL injection against Postgres-backed bases.
  • Requires columnAdd permission (creator/owner-level).
  • Proven impact: attacker-controlled heavy SQL causing multi-second query stalls (DoS).
  • Potentially extendable to broader SQL injection outcomes depending on database permissions and deployment hardening.
  • Limited to Postgres backends.

Credit

This issue was reported by @leduckhuong.

Threat Intelligence Overview

EPSS Score
0.0%
Top 92% exploitable
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

CVE-2025-1094 HIGH POC
8.1 Feb 13

PostgreSQL libpq functions PQescapeLiteral(), PQescapeIdentifier(), PQescapeString(), and PQescapeStringConn() improperl

CVE-2024-55964 CRITICAL POC
9.8 Mar 26

An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl

CVE-2013-1899 MEDIUM POC
6.5 Apr 04

Argument injection vulnerability in PostgreSQL 9.2.x before 9.2.4, 9.1.x before 9.1.9, and 9.0.x before 9.0.13 allows re

CVE-2026-20253 CRITICAL POC
9.8 Jun 10

Unauthenticated arbitrary file write in Splunk Enterprise (below 10.2.4 and 10.0.7) and Splunk Cloud Platform (below 10.

CVE-2026-9586 CRITICAL POC
9.3 Jul 17

Unauthenticated SQL injection in Sangoma Switchvox SMB Edition 8.3 (build 104997) lets remote attackers execute arbitrar

CVE-2017-7546 CRITICAL
9.8 Aug 16

PostgreSQL versions before 9.2.22, 9.3.18, 9.4.13, 9.5.8 and 9.6.4 are vulnerable to incorrect authentication flaw allow

CVE-2015-1352 MEDIUM POC
5.0 Mar 30

The build_tablename function in pgsql.c in the PostgreSQL (aka pgsql) extension in PHP through 5.6.7 does not validate t

CVE-2024-10553 CRITICAL POC
9.8 Mar 20

A vulnerability in the h2oai/h2o-3 REST API versions 3.46.0.4 allows unauthenticated remote attackers to execute arbitra

CVE-2019-9193 HIGH POC
7.2 Apr 01

In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and users in the 'pg_execute_serve

CVE-2026-40887 CRITICAL POC
9.1 Apr 14

Unauthenticated SQL injection in Vendure Shop API allows remote attackers to execute arbitrary SQL commands against the

CVE-2022-24760 CRITICAL POC
10.0 Mar 12

Parse Server is an open source http web server backend. Rated critical severity (CVSS 10.0), this vulnerability is remot

CVE-2025-56157 CRITICAL POC
9.8 Dec 18

Hard-coded default PostgreSQL credentials shipped in the docker-compose.yaml of langgenius Dify through version 1.5.1 al

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy