Heap-based buffer overflow in PostgreSQL - CVE-2026-2007
Published: February 12, 2026
Vulnerability identifier: #VU122780
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-2007
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability:
No public exploit available
Vulnerability details
The vulnerability allows a remote user to execute arbitrary code on the target system.
The vulnerability exists due to a boundary error in pg_trgm. A remote user can pass specially crafted data to the application, trigger a heap-based buffer overflow and execute arbitrary code on the target system.
Affected software
PostgreSQL
SUSE Linux Enterprise Server 15 SP6
SUSE Linux Enterprise Server 12 SP5 LTSS Extended
SUSE Linux Enterprise Server 15 SP4
SUSE Linux Enterprise Server 15 SP5
SUSE Linux Enterprise Server 12 SP5
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise High Performance Computing ESPOS 15
SUSE Linux Enterprise High Performance Computing LTSS 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise Server for SAP Applications 12
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise High Performance Computing 12
SUSE Linux Enterprise Desktop 15
SUSE Linux Enterprise Real Time 15
Basesystem Module
Server Applications Module
SUSE Package Hub 15
openSUSE Leap
libecpg6
libpq5
libecpg6-debuginfo
libpq5-debuginfo
libpq5-32bit
libecpg6-debuginfo-32bit
libecpg6-32bit
libpq5-debuginfo-32bit
postgresql18-debuginfo
libpq5-32bit-debuginfo
postgresql18-debugsource
postgresql18-mini-debugsource
libpq5-64bit
postgresql18-contrib-debuginfo
postgresql18-pltcl
postgresql18-server-devel
postgresql18-test
postgresql18-llvmjit
libecpg6-32bit-debuginfo
postgresql18-docs
libecpg6-64bit-debuginfo
libecpg6-64bit
libpq5-64bit-debuginfo
postgresql18-plperl-debuginfo
postgresql18-server
postgresql18-plpython
postgresql18-plperl
postgresql18-server-debuginfo
postgresql18-devel
postgresql18-plpython-debuginfo
postgresql18
postgresql18-devel-mini
postgresql18-contrib
postgresql18-devel-debuginfo
postgresql18-devel-mini-debuginfo
postgresql18-llvmjit-debuginfo
postgresql18-llvmjit-devel
postgresql18-pltcl-debuginfo
postgresql18-server-devel-debuginfo
SUSE Linux Enterprise Server 15 SP6
SUSE Linux Enterprise Server 12 SP5 LTSS Extended
SUSE Linux Enterprise Server 15 SP4
SUSE Linux Enterprise Server 15 SP5
SUSE Linux Enterprise Server 12 SP5
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise High Performance Computing ESPOS 15
SUSE Linux Enterprise High Performance Computing LTSS 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise Server for SAP Applications 12
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise High Performance Computing 12
SUSE Linux Enterprise Desktop 15
SUSE Linux Enterprise Real Time 15
Basesystem Module
Server Applications Module
SUSE Package Hub 15
openSUSE Leap
libecpg6
libpq5
libecpg6-debuginfo
libpq5-debuginfo
libpq5-32bit
libecpg6-debuginfo-32bit
libecpg6-32bit
libpq5-debuginfo-32bit
postgresql18-debuginfo
libpq5-32bit-debuginfo
postgresql18-debugsource
postgresql18-mini-debugsource
libpq5-64bit
postgresql18-contrib-debuginfo
postgresql18-pltcl
postgresql18-server-devel
postgresql18-test
postgresql18-llvmjit
libecpg6-32bit-debuginfo
postgresql18-docs
libecpg6-64bit-debuginfo
libecpg6-64bit
libpq5-64bit-debuginfo
postgresql18-plperl-debuginfo
postgresql18-server
postgresql18-plpython
postgresql18-plperl
postgresql18-server-debuginfo
postgresql18-devel
postgresql18-plpython-debuginfo
postgresql18
postgresql18-devel-mini
postgresql18-contrib
postgresql18-devel-debuginfo
postgresql18-devel-mini-debuginfo
postgresql18-llvmjit-debuginfo
postgresql18-llvmjit-devel
postgresql18-pltcl-debuginfo
postgresql18-server-devel-debuginfo
How to mitigate CVE-2026-2007
Install updates from vendor's website.
PostgreSQL - update to 18.2
libecpg6 - addressed in versions 18.2-8.6.1, 18.2-150200.5.6.1, 18.3-150600.13.8.1
libpq5 - addressed in versions 18.2-8.6.1, 18.2-150200.5.6.1, 18.3-150600.13.8.1
libecpg6-debuginfo - addressed in versions 18.2-8.6.1, 18.2-150200.5.6.1, 18.3-150600.13.8.1
libpq5-debuginfo - addressed in versions 18.2-8.6.1, 18.2-150200.5.6.1, 18.3-150600.13.8.1
libpq5-32bit - addressed in versions 18.2-8.6.1, 18.2-150200.5.6.1, 18.3-150600.13.8.1
libecpg6-debuginfo-32bit - update to 18.2-8.6.1
libecpg6-32bit - addressed in versions 18.2-8.6.1, 18.3-150600.13.8.1
libpq5-debuginfo-32bit - update to 18.2-8.6.1
postgresql18-debuginfo - addressed in versions 18.2-150200.5.6.1, 18.3-150600.13.8.1
libpq5-32bit-debuginfo - addressed in versions 18.2-150200.5.6.1, 18.3-150600.13.8.1
postgresql18-debugsource - addressed in versions 18.2-150200.5.6.1, 18.3-150600.13.8.1
postgresql18-mini-debugsource - update to 18.3-150600.13.8.1
libpq5-64bit - update to 18.3-150600.13.8.1
postgresql18-contrib-debuginfo - update to 18.3-150600.13.8.1
postgresql18-pltcl - update to 18.3-150600.13.8.1
postgresql18-server-devel - update to 18.3-150600.13.8.1
postgresql18-test - update to 18.3-150600.13.8.1
postgresql18-llvmjit - update to 18.3-150600.13.8.1
libecpg6-32bit-debuginfo - update to 18.3-150600.13.8.1
postgresql18-docs - update to 18.3-150600.13.8.1
libecpg6-64bit-debuginfo - update to 18.3-150600.13.8.1
libecpg6-64bit - update to 18.3-150600.13.8.1
libpq5-64bit-debuginfo - update to 18.3-150600.13.8.1
postgresql18-plperl-debuginfo - update to 18.3-150600.13.8.1
postgresql18-server - update to 18.3-150600.13.8.1
postgresql18-plpython - update to 18.3-150600.13.8.1
postgresql18-plperl - update to 18.3-150600.13.8.1
postgresql18-server-debuginfo - update to 18.3-150600.13.8.1
postgresql18-devel - update to 18.3-150600.13.8.1
postgresql18-plpython-debuginfo - update to 18.3-150600.13.8.1
postgresql18 - update to 18.3-150600.13.8.1
postgresql18-devel-mini - update to 18.3-150600.13.8.1
postgresql18-contrib - update to 18.3-150600.13.8.1
postgresql18-devel-debuginfo - update to 18.3-150600.13.8.1
postgresql18-devel-mini-debuginfo - update to 18.3-150600.13.8.1
postgresql18-llvmjit-debuginfo - update to 18.3-150600.13.8.1
postgresql18-llvmjit-devel - update to 18.3-150600.13.8.1
postgresql18-pltcl-debuginfo - update to 18.3-150600.13.8.1
postgresql18-server-devel-debuginfo - update to 18.3-150600.13.8.1
libecpg6 - addressed in versions 18.2-8.6.1, 18.2-150200.5.6.1, 18.3-150600.13.8.1
libpq5 - addressed in versions 18.2-8.6.1, 18.2-150200.5.6.1, 18.3-150600.13.8.1
libecpg6-debuginfo - addressed in versions 18.2-8.6.1, 18.2-150200.5.6.1, 18.3-150600.13.8.1
libpq5-debuginfo - addressed in versions 18.2-8.6.1, 18.2-150200.5.6.1, 18.3-150600.13.8.1
libpq5-32bit - addressed in versions 18.2-8.6.1, 18.2-150200.5.6.1, 18.3-150600.13.8.1
libecpg6-debuginfo-32bit - update to 18.2-8.6.1
libecpg6-32bit - addressed in versions 18.2-8.6.1, 18.3-150600.13.8.1
libpq5-debuginfo-32bit - update to 18.2-8.6.1
postgresql18-debuginfo - addressed in versions 18.2-150200.5.6.1, 18.3-150600.13.8.1
libpq5-32bit-debuginfo - addressed in versions 18.2-150200.5.6.1, 18.3-150600.13.8.1
postgresql18-debugsource - addressed in versions 18.2-150200.5.6.1, 18.3-150600.13.8.1
postgresql18-mini-debugsource - update to 18.3-150600.13.8.1
libpq5-64bit - update to 18.3-150600.13.8.1
postgresql18-contrib-debuginfo - update to 18.3-150600.13.8.1
postgresql18-pltcl - update to 18.3-150600.13.8.1
postgresql18-server-devel - update to 18.3-150600.13.8.1
postgresql18-test - update to 18.3-150600.13.8.1
postgresql18-llvmjit - update to 18.3-150600.13.8.1
libecpg6-32bit-debuginfo - update to 18.3-150600.13.8.1
postgresql18-docs - update to 18.3-150600.13.8.1
libecpg6-64bit-debuginfo - update to 18.3-150600.13.8.1
libecpg6-64bit - update to 18.3-150600.13.8.1
libpq5-64bit-debuginfo - update to 18.3-150600.13.8.1
postgresql18-plperl-debuginfo - update to 18.3-150600.13.8.1
postgresql18-server - update to 18.3-150600.13.8.1
postgresql18-plpython - update to 18.3-150600.13.8.1
postgresql18-plperl - update to 18.3-150600.13.8.1
postgresql18-server-debuginfo - update to 18.3-150600.13.8.1
postgresql18-devel - update to 18.3-150600.13.8.1
postgresql18-plpython-debuginfo - update to 18.3-150600.13.8.1
postgresql18 - update to 18.3-150600.13.8.1
postgresql18-devel-mini - update to 18.3-150600.13.8.1
postgresql18-contrib - update to 18.3-150600.13.8.1
postgresql18-devel-debuginfo - update to 18.3-150600.13.8.1
postgresql18-devel-mini-debuginfo - update to 18.3-150600.13.8.1
postgresql18-llvmjit-debuginfo - update to 18.3-150600.13.8.1
postgresql18-llvmjit-devel - update to 18.3-150600.13.8.1
postgresql18-pltcl-debuginfo - update to 18.3-150600.13.8.1
postgresql18-server-devel-debuginfo - update to 18.3-150600.13.8.1