VYPR
Medium severity5.3NVD Advisory· Published Jun 5, 2026· Updated Jun 5, 2026

NocoDB: Path Traversal via SQLite Source Filename

CVE-2026-47385

Description

Summary

An authenticated user with base-create permission can attach a SQLite source pointing at an arbitrary file on the NocoDB host, including NocoDB's own internal databases.

Details

The SQLite client and the base/integration create services accepted a caller-supplied filename and passed it to fs.exists and fs.open('w') without restricting the location. A user could point a source at noco.db, at a tenant database under nc_minimal_dbs/, or at any writable path the NocoDB process can reach, and then read or overwrite its contents through the regular table APIs.

Impact

Disclosure and modification of NocoDB internal state, of other tenants' databases, and of any file the NocoDB process can read or write. Authentication and base-create permission are required.

Credit

This issue was reported by @Mouhebbenelwafi.

Affected products

1

Patches

0

No patches discovered yet.

Vulnerability mechanics

Root cause

"The SQLite client and base/integration create services accept caller-supplied filenames without restricting the location."

Attack vector

An authenticated user with base-create permission can attach a SQLite source pointing to an arbitrary file on the NocoDB host. The services accept a caller-supplied filename and pass it to `fs.exists` and `fs.open('w')` without restricting the location. This allows an attacker to point a source at internal NocoDB databases or any other writable path. The attacker can then read or overwrite the file's contents through the regular table APIs.

Affected code

The vulnerability lies within the SQLite client and the base/integration create services. Specifically, these services accept a caller-supplied filename and pass it to `fs.exists` and `fs.open('w')` without proper location restriction.

What the fix does

The patch restricts the location where SQLite databases can be attached. It ensures that only files within designated directories are permitted, preventing the attachment of arbitrary files on the host system. This mitigates the risk of unauthorized access to or modification of sensitive NocoDB internal state or other tenant databases.

Preconditions

  • authAuthenticated user with base-create permission.

Generated on Jun 5, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

3

News mentions

1