Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-112262 Overview
CVE-2026-112262 is a missing authorization vulnerability [CWE-862] in RisingWave versions prior to 3.1.0. The flaw allows low-privileged SQL users to read and write arbitrary files on the frontend host. Attackers holding schema CREATE privilege can abuse the posix_fs source and fs sink connectors by setting posix_fs.root or fs.path to any directory on the server. This enables theft of credentials, private keys, and configuration data, as well as writing attacker-controlled content with the privileges of the RisingWave process.
Critical Impact
Any SQL user with schema CREATE privilege can read sensitive server files such as /etc/shadow or SSH keys and write files as the RisingWave process user, bypassing database-level isolation.
Affected Products
- RisingWave versions before 3.1.0
- Deployments exposing the posix_fs source connector
- Deployments exposing the fs sink connector
Discovery Timeline
- 2026-10-19 - CVE CVE-2026-112262 published to NVD
- 2026-10-19 - Last updated in NVD database
Technical Details for CVE-2026-112262
Vulnerability Analysis
RisingWave is a distributed SQL streaming database. It supports a posix_fs source connector that reads from the local filesystem and an fs sink connector that writes to the local filesystem. Both connectors accept a path parameter (posix_fs.root or fs.path) that is honored without checking whether the SQL user is authorized to access host paths.
Any SQL role granted schema CREATE privilege can issue CREATE SOURCE or CREATE SINK statements that point these connectors at arbitrary directories. The frontend process reads or writes those paths with its own operating system privileges, which commonly include access to secrets managed outside the database. The result is confidentiality loss for sensitive files and integrity loss where the process can write.
Root Cause
The root cause is a missing authorization check [CWE-862] on connector path parameters. The create_source handler and the fs sink implementation accept user-supplied paths without validating them against a privileged allowlist or restricting access to superusers. There is no sandboxing or chroot applied to local filesystem connectors.
Attack Vector
An authenticated attacker with schema CREATE privilege connects to the RisingWave frontend over the network. They create a posix_fs source pointing at a sensitive directory such as /etc or /root/.ssh and then SELECT from it to exfiltrate contents. They can also create an fs sink pointing at a writable path to drop files such as authorized_keys or cron jobs owned by the RisingWave process user.
// Security patch introducing a frontend guard for local filesystem connectors
// src/common/src/config/frontend.rs
/// Maximum allowed clock skew in milliseconds for `WebSocket` ingest init authentication.
#[serde(default = "default::frontend::webhook_auth_max_clock_skew_ms")]
pub webhook_auth_max_clock_skew_ms: u64,
/// Whether to allow local filesystem connectors such as `posix_fs` and `fs`.
/// Disabled by default in release builds because these connectors can access files on the
/// frontend host. Enabled by default in debug builds for local development.
#[serde(default = "default::frontend::unsafe_enable_local_fs_connector")]
pub unsafe_enable_local_fs_connector: bool,
}
// Source: https://github.com/risingwavelabs/risingwave/commit/4603a7ea5cc104fa9ca0779bc459bef630e7f621
The fix introduces an unsafe_enable_local_fs_connector configuration flag that is disabled by default in release builds, blocking creation of posix_fs sources and fs sinks unless an operator explicitly opts in.
Detection Methods for CVE-2026-112262
Indicators of Compromise
- CREATE SOURCE statements referencing connector = 'posix_fs' with a posix_fs.root path outside the expected data directory.
- CREATE SINK statements referencing connector = 'fs' with an fs.path targeting system directories such as /etc, /root, /home, or /var/spool/cron.
- Unexpected read access to sensitive files by the RisingWave process user, observed via auditd or filesystem telemetry.
- New or modified files owned by the RisingWave service account outside its data directory.
Detection Strategies
- Audit RisingWave query logs for CREATE SOURCE and CREATE SINK statements issued by non-administrative roles.
- Monitor the RisingWave frontend process for file reads or writes outside its designated working directory.
- Enumerate existing sources and sinks in each schema and flag any using posix_fs or fs connectors.
Monitoring Recommendations
- Enable Linux auditd rules on sensitive paths (/etc/shadow, /root/.ssh, /etc/ssh) and alert on access by the RisingWave service account.
- Forward RisingWave frontend logs to a centralized SIEM for correlation with role assignments and privilege grants.
- Review grants of schema CREATE privilege to identify over-privileged SQL users.
How to Mitigate CVE-2026-112262
Immediate Actions Required
- Upgrade RisingWave to version 3.1.0 or later, where local filesystem connectors are disabled by default.
- Revoke schema CREATE privilege from untrusted SQL roles until the upgrade is complete.
- Drop any existing sources or sinks that use the posix_fs or fs connectors unless they were created by an administrator.
- Rotate any credentials, API keys, or SSH keys stored on the RisingWave frontend host that may have been exposed.
Patch Information
The fix is delivered in RisingWave release v3.1.0 via commit 4603a7e and pull request #25971. The patch adds the unsafe_enable_local_fs_connector configuration setting, which defaults to false in release builds. Additional context is available in the VulnCheck advisory for RisingWave.
Workarounds
- Restrict schema CREATE privilege to trusted administrative roles only.
- Run the RisingWave frontend under a dedicated low-privilege user account with minimal filesystem access.
- Deploy the frontend inside a container or chroot that does not expose host secrets to the process.
- Audit all CREATE SOURCE and CREATE SINK statements and drop any that reference posix_fs or fs.
# After upgrading to v3.1.0, verify the local FS connector guard is disabled
# in the RisingWave frontend configuration (default in release builds).
[frontend]
unsafe_enable_local_fs_connector = false
# Revoke CREATE privilege from a non-admin role as a defense-in-depth measure
REVOKE CREATE ON SCHEMA public FROM app_user;
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

