CVE-2026-111439

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

4.3 medium EPSS 0.26%

Published 19 Oct 2026 Updated 19 Oct 2026 CNA: openGauss

Check your servers for CVE-2026-111439

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-111439 affects opengauss-server, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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。

Severity (CVSS)

4.3 medium CVSS 3.1 from openGauss (CNA)
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality low, integrity none, availability none: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.26%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 18.7% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 19 Oct 2026):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Weakness

Affected products

As the CNA lists them.

ProductVersions
openGauss-server
unaffected 7.0.0-LTS
affected 3.0.0-3.0.5
affected 3.1.0-3.1.1
affected 5.0.0-RC1
affected 5.0.0-5.0.3
affected 5.1.0
affected 6.0.0-RC1
affected 6.0.0-6.0.6
affected 7.0.0-RC1, 7.0.0-RC2, 7.0.0-RC3
Other versions: unaffected

Is my server affected?

Find the installed version of opengauss-server and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.

Debian, Ubuntu

dpkg -l | grep -i opengauss-server
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-111439 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-111439

RHEL, Rocky, Alma, Fedora

rpm -q opengauss-server
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-111439

Alpine

apk list --installed | grep -i opengauss-server

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-111439
trivy image --scanners vuln IMAGE | grep CVE-2026-111439

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-111439 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.