pg_read_binary_file_blocks 缺少初始用户权限校验,普通用户可读取 relation 文件块
Overview
在 openGauss-server的 src/common/backend/utils/adt/genfile.cpp 模块中,内置函数 pg_read_binary_file_blocks() 存在权限校验逻辑缺陷。该函数在入口处仅校验了起始块号(startBlockNum)和块数量(blockCount)的范围,随后直接调用底层文件读取例程 ReadBinaryFileBlocksFirstCall()。该底层例程仅执行了路径规范化检查以及针对 .. 路径遍历和数据目录边界的基本检查,缺失了对调用者数据库权限(如 SELECT 权限)的校验。此外,辅助函数 is_row_data_file() 也仅用于识别文件形态,未包含权限检查。因此,任何拥有普通数据库连接权限的用户,只要能够通过 pg_relation_filepath() 等函数获取到目标表的底层关系文件路径(例如压缩数据的 _compress 文件路径),即可无需具备该表的 SELECT 权限,直接读取表数据的二进制块。 此漏洞影响此前3.0.0到6.0.0间的所有版本及补丁版,并在7.0.0-LTS版本修复。修复patch详见:https://gitcode.com/opengauss/openGauss-server/pull/9374。
- Published
- 10/19/2026
- Last modified
- 10/19/2026
- CVE assigner
- Not available
- NVD analysis
- Not available
Exploitation
No CISA KEV flag in the saved record
An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.
EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare
Affected products
Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.
| Vendor / product | Affected versions | Platform / conditions | Evidence |
|---|---|---|---|
openGauss-server openGauss-server | 3.0.0-3.0.5 | Verify advisory Verify the advisory platform, edition, update channel, and any version exceptions. | Source |
openGauss-server openGauss-server | 3.1.0-3.1.1 | Verify advisory Verify the advisory platform, edition, update channel, and any version exceptions. | Source |
openGauss-server openGauss-server | 5.0.0-RC1 | Verify advisory Verify the advisory platform, edition, update channel, and any version exceptions. | Source |
openGauss-server openGauss-server | 5.0.0-5.0.3 | Verify advisory Verify the advisory platform, edition, update channel, and any version exceptions. | Source |
openGauss-server openGauss-server | 5.1.0 | Verify advisory Verify the advisory platform, edition, update channel, and any version exceptions. | Source |
openGauss-server openGauss-server | 6.0.0-RC1 | Verify advisory Verify the advisory platform, edition, update channel, and any version exceptions. | Source |
openGauss-server openGauss-server | 6.0.0-6.0.6 | Verify advisory Verify the advisory platform, edition, update channel, and any version exceptions. | Source |
openGauss-server openGauss-server | 7.0.0-RC1, 7.0.0-RC2, 7.0.0-RC3 | Verify advisory Verify the advisory platform, edition, update channel, and any version exceptions. | Source |
Recommended actions
Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.
Vendor advisory links
Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.
Severity
CVSS describes technical impact. It is separate from exploitation evidence.
Published headline score: 4.3. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.
Sources & references
Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.