/

CVE-2026-112262

Severity:

HIGH RISK

(7.1)

Missing Authorization (CWE-862) in RisingWave Files

CVE-2026-112262

Deferred

Vulnerability type

Category:

Missing Authorization

CWE:

CWE-862

Impact:

Unauthorized Arbitrary File Read and Write

Severity:

HIGH RISK

(7.1)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

RisingWave contains a missing authorization vulnerability that may allow low-privileged SQL users to read from or write to arbitrary server-side directories through filesystem-backed sources and sinks. The issue becomes risky when a user has schema CREATE privilege and the database permits filesystem paths to be configured without adequate authorization checks.

RisingWave contains a missing authorization vulnerability that may allow low-privileged SQL users to read from or write to arbitrary server-side directories through filesystem-backed sources and sinks. The issue becomes risky when a user has schema CREATE privilege and the database permits filesystem paths to be configured without adequate authorization checks.

Affected context

This vulnerability occurs in RisingWave deployments that expose posix_fs sources or fs sinks to SQL users whose privileges are not sufficiently constrained. It is relevant when filesystem path settings can reference directories outside an explicitly approved application data area and when database authorization does not verify whether the requesting user may access those locations.

This vulnerability occurs in RisingWave deployments that expose posix_fs sources or fs sinks to SQL users whose privileges are not sufficiently constrained. It is relevant when filesystem path settings can reference directories outside an explicitly approved application data area and when database authorization does not verify whether the requesting user may access those locations.

Exploit preconditions

  • Attack surface: SQL interfaces that support filesystem-backed sources or sinks
  • Required access: A low-privileged SQL account with schema CREATE privilege
  • Trigger point: Creation or configuration of a posix_fs source or fs sink
  • Why exploitation is possible: Server-side path values may be accepted without an authorization check that limits access to approved directories
  • Attack surface: SQL interfaces that support filesystem-backed sources or sinks
  • Required access: A low-privileged SQL account with schema CREATE privilege
  • Trigger point: Creation or configuration of a posix_fs source or fs sink
  • Why exploitation is possible: Server-side path values may be accepted without an authorization check that limits access to approved directories

Why this happens

The underlying bug is an authorization failure: RisingWave permits a user with limited SQL privileges to configure filesystem operations without adequately checking whether that user is authorized to access the selected server-side path. This maps to CWE-862, Missing Authorization, because a protected operation is reachable without an effective permission decision for the target resource.

The underlying bug is an authorization failure: RisingWave permits a user with limited SQL privileges to configure filesystem operations without adequately checking whether that user is authorized to access the selected server-side path. This maps to CWE-862, Missing Authorization, because a protected operation is reachable without an effective permission decision for the target resource.

Potential impact

  • An attacker may read credentials, private keys, or other sensitive server files.
  • An attacker may write or overwrite files accessible to the database process.
  • Written content could alter application behavior or affect operational data.
  • The database host or connected services could be exposed to further compromise.
  • Confidentiality, integrity, and availability of server-managed resources may be reduced.
  • An attacker may read credentials, private keys, or other sensitive server files.
  • An attacker may write or overwrite files accessible to the database process.
  • Written content could alter application behavior or affect operational data.
  • The database host or connected services could be exposed to further compromise.
  • Confidentiality, integrity, and availability of server-managed resources may be reduced.

General mitigation guidance

Mitigation generally focuses on enforcing authorization at the point where

filesystem-backed operations are created and executed.

Common defensive patterns include:

  • Restricting filesystem sources and sinks to explicitly approved directories.
  • Applying server-side authorization checks independently of SQL object-creation privileges.
  • Using secure-by-default storage abstractions instead of exposing arbitrary host paths.
  • Reducing input trust by canonicalizing and validating paths against an allowlist.
  • Running database services with a dedicated, least-privileged operating-system account.
  • Preventing access to credentials, keys, system directories, and other sensitive locations.
  • Separating database data paths from host-level administrative and application directories.

Mitigation generally focuses on enforcing authorization at the point where

filesystem-backed operations are created and executed.

Common defensive patterns include:

  • Restricting filesystem sources and sinks to explicitly approved directories.
  • Applying server-side authorization checks independently of SQL object-creation privileges.
  • Using secure-by-default storage abstractions instead of exposing arbitrary host paths.
  • Reducing input trust by canonicalizing and validating paths against an allowlist.
  • Running database services with a dedicated, least-privileged operating-system account.
  • Preventing access to credentials, keys, system directories, and other sensitive locations.
  • Separating database data paths from host-level administrative and application directories.

How teams detect issues like this

Detection approaches may include:

  • Reviewing code and configuration paths that authorize filesystem-backed source or sink creation.
  • Using static analysis to identify file operations whose paths originate from SQL-controlled input.
  • Auditing whether path canonicalization, directory allowlists, and permission checks occur before access.
  • Monitoring database catalog changes for unexpected posix_fs sources or fs sinks.
  • Alerting on database processes reading or writing outside approved storage directories.
  • Enforcing policy checks that prohibit database-managed filesystem access to sensitive paths.

Detection approaches may include:

  • Reviewing code and configuration paths that authorize filesystem-backed source or sink creation.
  • Using static analysis to identify file operations whose paths originate from SQL-controlled input.
  • Auditing whether path canonicalization, directory allowlists, and permission checks occur before access.
  • Monitoring database catalog changes for unexpected posix_fs sources or fs sinks.
  • Alerting on database processes reading or writing outside approved storage directories.
  • Enforcing policy checks that prohibit database-managed filesystem access to sensitive paths.

Sources

SourceLink
github.comgithub.com/risingwavelabs/risingwave/blob/v3.0.5/src/connector/src/sink/file_sink/fs.rs
github.comgithub.com/risingwavelabs/risingwave/blob/v3.0.5/src/connector/src/source/filesystem/opendal_source/posix_fs_source.rs
github.comgithub.com/risingwavelabs/risingwave/blob/v3.0.5/src/frontend/src/handler/create_source.rs
github.comgithub.com/risingwavelabs/risingwave/commit/4603a7ea5cc104fa9ca0779bc459bef630e7f621
github.comgithub.com/risingwavelabs/risingwave/pull/25971
github.comgithub.com/risingwavelabs/risingwave/releases/tag/v3.1.0
vulncheck.comvulncheck.com/advisories/risingwave-before-3.1.0-missing-authorization-via-posix-fs-and-fs-connectors

Frequently asked

questions

It may be exploitable through a remotely reachable SQL interface when an attacker

can authenticate as a database user with the required schema CREATE privilege.

The practical scope depends on network exposure and database access controls.

No. The described issue affects low-privileged SQL users, although the account

must have sufficient privilege to create the relevant filesystem-backed objects.

Enforce explicit server-side authorization for every filesystem operation and

restrict paths to an allowlisted application directory rather than accepting

arbitrary host locations.

Treat SQL-configured paths as untrusted input, apply canonicalization and

allowlist validation, use least-privilege service accounts, and continuously

audit catalog changes and filesystem activity.

It may be exploitable through a remotely reachable SQL interface when an attacker

can authenticate as a database user with the required schema CREATE privilege.

The practical scope depends on network exposure and database access controls.

No. The described issue affects low-privileged SQL users, although the account

must have sufficient privilege to create the relevant filesystem-backed objects.

Enforce explicit server-side authorization for every filesystem operation and

restrict paths to an allowlisted application directory rather than accepting

arbitrary host locations.

Treat SQL-configured paths as untrusted input, apply canonicalization and

allowlist validation, use least-privilege service accounts, and continuously

audit catalog changes and filesystem activity.

Find out what's already
exploitable in your codebase.