CVE-2026-2006: PostgreSQL missing validation of multibyte character length executes arbitrary code

Published Feb 12, 2026
·
Updated

Missing validation of multibyte character length in PostgreSQL text manipulation allows a database user to issue crafted queries that achieve a buffer overrun. That suffices to execute arbitrary code as the operating system user running the database. Versions before PostgreSQL 18.2, 17.8, 16.12, 15.16, and 14.21 are affected.

Affected Software

38 affected componentsFixes available
PostgreSQL postgresql<18.2
PostgreSQL postgresql<17.8
PostgreSQL postgresql<16.12
PostgreSQL postgresql<15.16
PostgreSQL postgresql<14.21
PostgreSQL postgresql>=14.0<14.21
PostgreSQL postgresql>=15.0<15.16
PostgreSQL postgresql>=16.0<16.12
PostgreSQL postgresql>=17.0<17.8
PostgreSQL postgresql>=18.0<18.2
IBM AIX<=7.2
IBM AIX<=7.3
IBM PowerVM VIOS<=4.1
alpine/postgresql15<15.16-r0
15.16-r0
alpine/postgresql15<15.17-r0
15.17-r0
alpine/postgresql15<15.16-r0
15.16-r0
alpine/postgresql16<16.12-r0
16.12-r0
alpine/postgresql16<16.12-r0
16.12-r0
alpine/postgresql16<16.12-r0
16.12-r0
alpine/postgresql16<16.12-r0
16.12-r0
alpine/postgresql16<16.12-r0
16.12-r0
alpine/postgresql17<17.8-r0
17.8-r0
alpine/postgresql17<17.8-r0
17.8-r0
alpine/postgresql17<17.8-r0
17.8-r0
alpine/postgresql17<17.8-r0
17.8-r0
alpine/postgresql18<18.2-r0
18.2-r0
alpine/postgresql18<18.2-r0
18.2-r0
debian/postgresql-15
15.16-0+deb12u1
debian/postgresql-17
17.8-0+deb13u1
debian/postgresql-18
18.2-1
debian/postgresql-13
13.23-0+deb11u2
ubuntu/postgresql-9.3*
ubuntu/postgresql-9.5*
ubuntu/postgresql-10*
ubuntu/postgresql-12*
ubuntu/postgresql-14<14.22-0ubuntu0.22.04.1
14.22-0ubuntu0.22.04.1
ubuntu/postgresql-16<16.13-0ubuntu0.24.04.1
16.13-0ubuntu0.24.04.1
ubuntu/postgresql-17<17.9-0ubuntu0.25.10.1
17.9-0ubuntu0.25.10.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade alpine/postgresql15 to a version that resolves this vulnerability.

    Fixed in 15.16-r0
  2. Upgrade

    Upgrade alpine/postgresql15 to a version that resolves this vulnerability.

    Fixed in 15.17-r0
  3. Upgrade

    Upgrade alpine/postgresql16 to a version that resolves this vulnerability.

    Fixed in 16.12-r0
  4. Upgrade

    Upgrade alpine/postgresql17 to a version that resolves this vulnerability.

    Fixed in 17.8-r0
  5. Upgrade

    Upgrade alpine/postgresql18 to a version that resolves this vulnerability.

    Fixed in 18.2-r0
  6. Upgrade

    Upgrade debian/postgresql-15 to a version that resolves this vulnerability.

    Fixed in 15.16-0+deb12u1
  7. Upgrade

    Upgrade debian/postgresql-17 to a version that resolves this vulnerability.

    Fixed in 17.8-0+deb13u1
  8. Upgrade

    Upgrade debian/postgresql-18 to a version that resolves this vulnerability.

    Fixed in 18.2-1
  9. Upgrade

    Upgrade debian/postgresql-13 to a version that resolves this vulnerability.

    Fixed in 13.23-0+deb11u2
  10. Upgrade

    Upgrade ubuntu/postgresql-14 to a version that resolves this vulnerability.

    Fixed in 14.22-0ubuntu0.22.04.1
  11. Upgrade

    Upgrade ubuntu/postgresql-16 to a version that resolves this vulnerability.

    Fixed in 16.13-0ubuntu0.24.04.1
  12. Upgrade

    Upgrade ubuntu/postgresql-17 to a version that resolves this vulnerability.

    Fixed in 17.9-0ubuntu0.25.10.1
  13. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 18.2
  14. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 17.8
  15. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 16.12
  16. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 15.16
  17. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 14.21

Event History

Feb 12, 2026
CVE Published
via MITRE·01:00 PM
Data Sourced
via MITRE·01:00 PM
DescriptionSeverityWeakness
Data Sourced
via Red Hat·02:01 PM
DescriptionSeverityAffected Software
Data Sourced
via OSV·02:16 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·02:16 PM
DescriptionSeverityWeakness
Feb 20, 2026
Data Sourced
via NVD·07:54 PM
Affected Software
May 11, 2026
News Published
via The Hacker News·12:36 PM
Jun 30, 2026
Updated
via NVD·03:18 AM
SeverityWeakness
Aug 15, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Nov 11, 2026
News Published
via The Hacker News·06:04 AM

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2026-2006?

CVE-2026-2006 is considered a high-severity vulnerability due to the potential for arbitrary code execution.

2

How do I fix CVE-2026-2006?

To fix CVE-2026-2006, you should update PostgreSQL to the latest version where the vulnerability is patched.

3

What versions of PostgreSQL are affected by CVE-2026-2006?

CVE-2026-2006 affects PostgreSQL versions up to 18.2, 17.8, 16.12, 15.16, and 14.21.

4

What are the potential risks associated with CVE-2026-2006?

The potential risks of CVE-2026-2006 include unauthorized access and the ability to execute arbitrary code on the database server.

5

Who can exploit CVE-2026-2006?

CVE-2026-2006 can be exploited by any authenticated database user capable of issuing specially crafted queries.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203