CVE-2026-111441

HLL 反序列化 lenTotal/lenUsed 校验缺失导致堆越界写

8.1 high EPSS 0.40%

Published 19 Oct 2026 Updated 19 Oct 2026 CNA: openGauss

Check your servers for CVE-2026-111441

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-111441 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/gausskernel/cbb/utils/hll/hll.cpp 中,内置函数 HllObjectUnpack() 存在长度校验缺陷。该函数从用户提供的 packed HLL 解析 lenUsed 与 lenTotal 后,仅检查输入长度足以覆盖 HLL_HEAD_SIZE + lenUsed,随后按 lenTotal 分配缓冲区、按 lenUsed 调用 memcpy_s() 拷贝输入,既未校验 lenTotal >= lenUsed,也将 memcpy_s() 目标大小写成 lenUsed 而非实际分配的 lenTotal,导致安全拷贝无法拦截越界写。hll_in()、hll_print()、hll_cardinality() 等 SQL 入口会走同一解包路径。因此,普通数据库连接用户只需构造 lenTotal 小于 lenUsed 的畸形 packed HLL(例如经 ::hll 进入 hll_in()),即可触发服务端堆越界写,存在内存破坏风险。此问题随 packed HLL 解包函数 HllObjectUnpack() 进入代码,v2.1.0 起即存在。受影响版本包括 2.1.0、3.0.x、3.1.x、5.0.x、5.1.0、6.0.x,以及 7.0.0-RC1、7.0.0-RC2、7.0.0-RC3。该问题已在 7.0.0-LTS 版本修复,通过在 HllObjectUnpack() 中补齐 lenUsed <= lenTotal 校验,并将 memcpy_s() 的目标大小改为实际分配的 lenTotal。修复 PR 见 https://gitcode.com/opengauss/openGauss-server/pull/9380 。

Severity (CVSS)

8.1 high CVSS 3.1 from openGauss (CNA)
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
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 none, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.40%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 36.8% 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
Other versions: unaffected
openGauss-server
affected 7.0.0-RC1, 7.0.0-RC2 7.0.0-RC3
affected 2.1.0
affected 3.0.0-3.0.6
affected 3.1.0
affected 5.0.0-5.0.5
affected 6.0.0-6.0.6
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-111441 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-111441

RHEL, Rocky, Alma, Fedora

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

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-111441
trivy image --scanners vuln IMAGE | grep CVE-2026-111441

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-111441 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.