Original description
Heap buffer overflow in PostgreSQL regexp allows the query author to execute arbitrary code as the operating system user running the database, via text that would not pass encoding validation. This shares heritage with CVE-2026-2006, but this case involved unanticipated data growth when round-tripped through pg_wchar. Versions before PostgreSQL 18.6, 17.11, 16.15, 15.19, and 14.24 are affected.
Affected software
- PostgreSQL ≥ 18.0 < 18.5≥ 14.0 < 14.24≥ 17.0 < 17.11≥ 15.0 < 15.19≥ 16.0 < 16.15 Fixed in: 18.5, 14.24, 17.11, 15.19 exact match
Details
- Published
- 2026-08-13
- Last modified
- 2026-08-30
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H- CWE
- CWE-122
- EPSS (30-day exploit probability)
- 0.44% (percentile 38)
References
Track these versions on your own servers
InfraGuard collects installed software versions from every server and flags the ones with known vulnerabilities. Self-hosted — nothing leaves your network.
This product uses data from the NVD API but is not endorsed or certified by the NVD. CVE® is a registered trademark of The MITRE Corporation; CVE records are used under the CVE Program Terms of Use.