pg_read_binary_file_blocks 缺少初始用户权限校验,普通用户可读取 relation 文件块

Summary

CVECVE-2026-111439
StatePUBLISHED
AssigneropenGauss
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-10-19 08:17:02 UTC
Updated2026-10-19 20:56:36 UTC
Description在 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。

Risk And Classification

Primary CVSS: v3.1 4.3 MEDIUM from a1a479f7-907b-4ae8-a999-9148cadc9224

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N

EPSS: 0.002590000 probability, percentile 0.164800000 (date 2026-10-19)

Problem Types: CWE-862 | CWE-862 CWE-862 Missing Authorization


VersionSourceTypeScoreSeverityVector
3.1a1a479f7-907b-4ae8-a999-9148cadc9224Secondary4.3MEDIUMCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
3.1CNACVSS4.3MEDIUMCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N

CVSS v3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA OpenGauss-server OpenGauss-server unaffected 7.0.0-LTS openEuler Centos
CNA OpenGauss-server OpenGauss-server affected 3.0.0-3.0.5 openEuler Centos
CNA OpenGauss-server OpenGauss-server affected 3.1.0-3.1.1 openEuler Centos
CNA OpenGauss-server OpenGauss-server affected 5.0.0-RC1 openEuler Centos
CNA OpenGauss-server OpenGauss-server affected 5.0.0-5.0.3 openEuler Centos
CNA OpenGauss-server OpenGauss-server affected 5.1.0 openEuler Centos
CNA OpenGauss-server OpenGauss-server affected 6.0.0-RC1 openEuler Centos
CNA OpenGauss-server OpenGauss-server affected 6.0.0-6.0.6 openEuler Centos
CNA OpenGauss-server OpenGauss-server affected 7.0.0-RC1, 7.0.0-RC2, 7.0.0-RC3 openEuler Centos

References

ReferenceSourceLinkTags
gitcode.com/opengauss/openGauss-server/pull/9374 a1a479f7-907b-4ae8-a999-9148cadc9224 gitcode.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report