Technical impact
The vulnerability is an SQL injection flaw in the NocoBase @nocobase/plugin-collection-sql module, where privileged users can store unvalidated SQL by bypassing the checkSQL() function via the sqlCollection:setFields action. Attackers holding the collection‑sql snippet can replace a benign collection query with dangerous statements executed on reload, enabling them to read sensitive system tables such as pg_shadow or call functions like pg_read_file.
Affected Systems
This flaw affects NocoBase’s plugin‑collection‑sql through version 2.2.46. Any deployment of NocoBase using this plugin package and running that version is susceptible.
Risk and Exploitability
The CVSS score of 8.6 indicates high severity, and the EPSS score of 0.00311 (~<1%) indicates a very low but nonzero likelihood of exploitation, while the lack of listing in the CISA KEV catalog does not reduce the inherent risk. The attack requires a privileged user with access to the plugin’s snippet editor, enabling the attacker to inject harmful SQL that runs with the application’s database privileges, allowing data exfiltration. Given the potential for credential theft and the likely ease of exploitation for an insider or a compromised account, the risk to affected systems is significant and warrants urgent remediation.