Description
RisingWave before 3.1.0 contains a missing authorization vulnerability that allows low-privileged SQL users to read and write arbitrary server files by creating posix_fs sources and fs sinks. Attackers holding schema CREATE privilege can set posix_fs.root or fs.path to any directory to read credentials and keys or write files as root.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| risingwavelabs | risingwave | < 3.1.0 | 3.1.0 |
References
- https://github.com/risingwavelabs/risingwave/pull/25971 patch issue-tracking
- https://github.com/risingwavelabs/risingwave/commit/4603a7ea5cc104fa9ca0779bc459bef630e7f621 patch
- RisingWave v3.1.0 Release Notes release-notes
- https://github.com/risingwavelabs/risingwave/blob/v3.0.5/src/connector/src/source/filesystem/opendal_source/posix_fs_source.rs technical-description
- https://github.com/risingwavelabs/risingwave/blob/v3.0.5/src/connector/src/sink/file_sink/fs.rs technical-description
- https://github.com/risingwavelabs/risingwave/blob/v3.0.5/src/frontend/src/handler/create_source.rs technical-description
- VulnCheck Advisory: RisingWave before 3.1.0 Missing Authorization via posix_fs and fs Connectors third-party-advisory