{"id":"CVE-2026-111439","state":"PUBLISHED","title":"pg_read_binary_file_blocks 缺少初始用户权限校验，普通用户可读取 relation 文件块","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 权限，直接读取表数据的二进制块。\n此漏洞影响此前3.0.0到6.0.0间的所有版本及补丁版，并在7.0.0-LTS版本修复。修复patch详见：https://gitcode.com/opengauss/openGauss-server/pull/9374。","publishedAt":"2026-10-19T07:59:44.700Z","updatedAt":"2026-10-19T17:25:07.334Z","severity":{"score":4.3,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","source":"openGauss"},"assigner":"openGauss","products":["openGauss-server openGauss-server"],"affected":[{"vendor":"openGauss-server","product":"openGauss-server","defaultStatus":"unaffected","versions":[{"version":"7.0.0-LTS","status":"unaffected"},{"version":"3.0.0-3.0.5","status":"affected"},{"version":"3.1.0-3.1.1","status":"affected"},{"version":"5.0.0-RC1","status":"affected"},{"version":"5.0.0-5.0.3","status":"affected"},{"version":"5.1.0","status":"affected"},{"version":"6.0.0-RC1","status":"affected"},{"version":"6.0.0-6.0.6","status":"affected"},{"version":"7.0.0-RC1, 7.0.0-RC2, 7.0.0-RC3","status":"affected"}],"platforms":["openEuler Centos"],"collectionURL":"https://opengauss.org/zh/download/archive/?version=7.0.0%20(LTS)"}],"references":["https://gitcode.com/opengauss/openGauss-server/pull/9374"],"weaknesses":["CWE-862"],"ingestedAt":"2026-10-29T20:10:33.477Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/111xxx/CVE-2026-111439.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-111439","state":"PUBLISHED","datePublished":"2026-10-19T07:59:44.700Z","dateUpdated":"2026-10-19T17:25:07.334Z","assignerShortName":"openGauss","assignerOrgId":"a1a479f7-907b-4ae8-a999-9148cadc9224","dateReserved":"2026-10-16T03:04:55.778Z"},"containers":{"cna":{"title":"pg_read_binary_file_blocks 缺少初始用户权限校验，普通用户可读取 relation 文件块","descriptions":[{"lang":"en","value":"在 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 权限，直接读取表数据的二进制块。\n此漏洞影响此前3.0.0到6.0.0间的所有版本及补丁版，并在7.0.0-LTS版本修复。修复patch详见：https://gitcode.com/opengauss/openGauss-server/pull/9374。"}],"affected":[{"vendor":"openGauss-server","product":"openGauss-server","defaultStatus":"unaffected","versions":[{"version":"7.0.0-LTS","status":"unaffected"},{"version":"3.0.0-3.0.5","status":"affected"},{"version":"3.1.0-3.1.1","status":"affected"},{"version":"5.0.0-RC1","status":"affected"},{"version":"5.0.0-5.0.3","status":"affected"},{"version":"5.1.0","status":"affected"},{"version":"6.0.0-RC1","status":"affected"},{"version":"6.0.0-6.0.6","status":"affected"},{"version":"7.0.0-RC1, 7.0.0-RC2, 7.0.0-RC3","status":"affected"}],"platforms":["openEuler Centos"],"collectionURL":"https://opengauss.org/zh/download/archive/?version=7.0.0%20(LTS)"}],"references":[{"url":"https://gitcode.com/opengauss/openGauss-server/pull/9374"}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV3_1":{"version":"3.1","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"LOW","integrityImpact":"NONE","availabilityImpact":"NONE","baseSeverity":"MEDIUM","baseScore":4.3,"vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-862","lang":"en","description":"CWE-862 Missing Authorization","type":"CWE"}]}],"providerMetadata":{"shortName":"openGauss","orgId":"a1a479f7-907b-4ae8-a999-9148cadc9224","dateUpdated":"2026-10-19T07:59:44.700Z"},"impacts":[{"capecId":"CAPEC-1","descriptions":[{"lang":"en","value":"CAPEC-1 Accessing Functionality Not Properly Constrained by ACLs"}]}],"source":{"discovery":"EXTERNAL"},"x_generator":{"engine":"Vulnogram 1.0.5"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-10-19T17:24:53.483125Z","id":"CVE-2026-111439","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-19T17:25:07.334Z"}}]}}}