Skip to content
Noroxi
CVE-2026-14664· NVD / CVE Program· CNA PostgreSQL

PostgreSQL regexp heap buffer overflow executes arbitrary code

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.

HighCVSS 8.8 · v3.1—No exploit Fix available

Noroxi analysis

No Noroxi analysis for this record yet

We don't hand-write analysis for the hundreds of thousands of vulnerabilities in the database; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.

We use this product, ask for help
Published
Aug 13, 2026
Updated
Aug 29, 2026
EPSS
0.4% · 35th percentile
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

Action score

35

Monitor

Low priority for now.

CVSS
35 / 40 · 8.8 / 10
CISA KEV
0 / 30 · Not listed
EPSS
0 / 30 · 0.4%

CISA SSVC decision

Exploitation
none
Automatable
no
Technical impact
total

Vulnrichment: CISA's decision-tree inputs.

CNA vs NVD score

NVD
—
CNA · PostgreSQL
8.8
NVD has not scored this yet; the score shown is the CNA’s.

The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.

Affected systems

VendorProduct
postgresqlpostgresql

Using postgresql? Add it to your stack and be the first to know about CVEs like this one. (PostgreSQL)

Add to my stack

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • postgresql postgresql14.0 and later · before 14.24
  • postgresql postgresql15.0 and later · before 15.19
  • postgresql postgresql16.0 and later · before 16.15
  • postgresql postgresql17.0 and later · before 17.11
  • postgresql postgresql18.0 and later · before 18.5

Versions reported by the vendor

Affected version ranges reported by the assigning authority (PostgreSQL). Independent of NVD's CPE analysis and usually ahead of it.

  • n/a PostgreSQL

    • 18 and later · before 18.6affected · rpm
    • 17 and later · before 17.11affected · rpm
    • 16 and later · before 16.15affected · rpm
    • 15 and later · before 15.19affected · rpm
    • before 14.24affected · rpm

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
AlmaLinux:10postgresqlbefore 16.15-1.el10_216.15-1.el10_2
AlmaLinux:10postgresql-contribbefore 16.15-1.el10_216.15-1.el10_2
AlmaLinux:10postgresql-docsbefore 16.15-1.el10_216.15-1.el10_2
AlmaLinux:10postgresql-plperlbefore 16.15-1.el10_216.15-1.el10_2
AlmaLinux:10postgresql-plpython3before 16.15-1.el10_216.15-1.el10_2
AlmaLinux:10postgresql-pltclbefore 16.15-1.el10_216.15-1.el10_2
AlmaLinux:10postgresql-private-develbefore 16.15-1.el10_216.15-1.el10_2
AlmaLinux:10postgresql-private-libsbefore 16.15-1.el10_216.15-1.el10_2
AlmaLinux:10postgresql-serverbefore 16.15-1.el10_216.15-1.el10_2
AlmaLinux:10postgresql-server-develbefore 16.15-1.el10_216.15-1.el10_2
AlmaLinux:10postgresql-staticbefore 16.15-1.el10_216.15-1.el10_2
AlmaLinux:10postgresql-testbefore 16.15-1.el10_216.15-1.el10_2
AlmaLinux:10postgresql-test-rpm-macrosbefore 16.15-1.el10_216.15-1.el10_2
AlmaLinux:10postgresql-upgradebefore 16.15-1.el10_216.15-1.el10_2
AlmaLinux:10postgresql-upgrade-develbefore 16.15-1.el10_216.15-1.el10_2
AlmaLinux:10postgresql18before 18.6-1.el10_218.6-1.el10_2
AlmaLinux:10postgresql18-contribbefore 18.6-1.el10_218.6-1.el10_2
AlmaLinux:10postgresql18-docsbefore 18.6-1.el10_218.6-1.el10_2
AlmaLinux:10postgresql18-plperlbefore 18.6-1.el10_218.6-1.el10_2
AlmaLinux:10postgresql18-plpython3before 18.6-1.el10_218.6-1.el10_2
AlmaLinux:10postgresql18-private-develbefore 18.6-1.el10_218.6-1.el10_2
AlmaLinux:10postgresql18-private-libsbefore 18.6-1.el10_218.6-1.el10_2
AlmaLinux:10postgresql18-serverbefore 18.6-1.el10_218.6-1.el10_2
AlmaLinux:10postgresql18-server-develbefore 18.6-1.el10_218.6-1.el10_2

+96

Other highest-scoring records for the same primary product.

  • CVE-2017-7546PostgreSQL versions before 9.2.22, 9.3.18, 9.4.13, 9.5.8 and 9.6.4 are vulnerable to incorrect authentication flaw allowing remote attackers
    57Plan
  • CVE-2019-9193In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and users in the 'pg_execute_server_program' group to
    55Plan
  • CVE-2020-25695A flaw was found in PostgreSQL versions before 13.1, before 12.5, before 11.10, before 10.15, before 9.6.20 and before 9.5.24.
    49Plan
  • CVE-2007-3280The Database Link library (dblink) in PostgreSQL 8.1 implements functions via CREATE statements that map to arbitrary libraries based on the
    44Plan
  • CVE-2013-1899Argument injection vulnerability in PostgreSQL 9.2.x before 9.2.4, 9.1.x before 9.1.9, and 9.0.x before 9.0.13 allows remote attackers to ca
    42Plan
  • CVE-2018-16850postgresql before versions 11.1, 10.6 is vulnerable to a to SQL injection in pg_upgrade and pg_dump via CREATE TRIGGER ...
    41Plan

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
n/a PostgreSQL14.24Vendor (CNA)
n/a PostgreSQL15.19Vendor (CNA)
n/a PostgreSQL16.15Vendor (CNA)
n/a PostgreSQL17.11Vendor (CNA)
n/a PostgreSQL18.6Vendor (CNA)
azl3 postgresql 16.14-1 on Azure Linux 3.016.15-1 · CBL-Mariner ReleasesMicrosoft (MSRC)
almalinux:postgresql1818.6-1.el10_2 · AlmaLinux:10Package registry (OSV)
almalinux:postgresql18-contrib18.6-1.el10_2 · AlmaLinux:10Package registry (OSV)
almalinux:postgresql18-docs18.6-1.el10_2 · AlmaLinux:10Package registry (OSV)
almalinux:postgresql18-plperl18.6-1.el10_2 · AlmaLinux:10Package registry (OSV)
almalinux:postgresql18-plpython318.6-1.el10_2 · AlmaLinux:10Package registry (OSV)
almalinux:postgresql18-private-devel18.6-1.el10_2 · AlmaLinux:10Package registry (OSV)
almalinux:postgresql18-private-libs18.6-1.el10_2 · AlmaLinux:10Package registry (OSV)
almalinux:postgresql18-server18.6-1.el10_2 · AlmaLinux:10Package registry (OSV)
almalinux:postgresql18-server-devel18.6-1.el10_2 · AlmaLinux:10Package registry (OSV)
almalinux:postgresql18-static18.6-1.el10_2 · AlmaLinux:10Package registry (OSV)
almalinux:postgresql18-test18.6-1.el10_2 · AlmaLinux:10Package registry (OSV)
almalinux:postgresql18-test-rpm-macros18.6-1.el10_2 · AlmaLinux:10Package registry (OSV)
alpine:postgresql1616.15-r0 · Alpine:v3.21Package registry (OSV)
alpine:postgresql1717.11-r0 · Alpine:v3.21Package registry (OSV)
alpine:postgresql1818.5-r0 · Alpine:v3.23Package registry (OSV)
debian:postgresql-1515.19-0+deb12u1 · Debian:12Package registry (OSV)
debian:postgresql-1717.11-0+deb13u1 · Debian:13Package registry (OSV)
debian:postgresql-1818.6-1 · Debian:14Package registry (OSV)
opensuse:postgresql1414.24-1.1 · openSUSE:TumbleweedPackage registry (OSV)
opensuse:postgresql1515.19-1.1 · openSUSE:TumbleweedPackage registry (OSV)
opensuse:postgresql1616.15-1.1 · openSUSE:TumbleweedPackage registry (OSV)
opensuse:postgresql1717.11-1.1 · openSUSE:TumbleweedPackage registry (OSV)
opensuse:postgresql1818.6-1.1 · openSUSE:TumbleweedPackage registry (OSV)
opensuse:postgresql18-mini18.6-160000.1.1 · openSUSE:Leap 16.0Package registry (OSV)

+24

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

No commit or PR link among the references.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

  • CVE-2026-146690 days apartPostgreSQL to_char heap buffer overflow executes arbitrary code
    35Monitor
  • CVE-2026-146700 days apartPostgreSQL plperl tied object heap buffer overflow executes arbitrary code
    35Monitor
  • CVE-2026-146760 days apartPostgreSQL pg_stat_statements heap buffer overflow executes arbitrary code
    35Monitor
  • CVE-2026-193850 days apartPostgreSQL pg_dump heap buffer overflow executes arbitrary code
    35Monitor
  • CVE-2026-2005182 days apartPostgreSQL pgcrypto heap buffer overflow executes arbitrary code
    35Monitor
  • CVE-2026-2007182 days apartPostgreSQL pg_trgm heap buffer overflow writes pattern onto server memory
    32Monitor

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

No known public program.

Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).

Technical details

Attack conditions

  • Anyone who can reach it over the internet can trigger it.
  • A low-privileged account is enough.
  • No user action is required.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
high · data can be read
Integrity
high · data or configuration can be modified
Availability
high · the service can be disrupted
Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality impact
High
Integrity impact
High
Availability impact
High

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

nvd-secondary

Attack context

MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.

ATT&CK techniques

—

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

Vendor advisories and official records. Exploit/PoC links are deliberately left out.

All records