| Name | CVE-2026-2006 |
| Description | 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. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
| References | DSA-6132-1, DSA-6133-1 |
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| postgresql-13 (PTS) | bullseye | 13.16-0+deb11u1 | vulnerable |
| bullseye (security) | 13.23-0+deb11u1 | vulnerable | |
| postgresql-15 (PTS) | bookworm | 15.15-0+deb12u1 | vulnerable |
| bookworm (security) | 15.16-0+deb12u1 | fixed | |
| postgresql-17 (PTS) | trixie | 17.7-0+deb13u1 | vulnerable |
| trixie (security) | 17.8-0+deb13u1 | fixed | |
| postgresql-18 (PTS) | forky | 18.1-2 | vulnerable |
| sid | 18.2-1 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| postgresql-13 | source | (unstable) | (unfixed) | |||
| postgresql-15 | source | bookworm | 15.16-0+deb12u1 | DSA-6132-1 | ||
| postgresql-15 | source | (unstable) | (unfixed) | |||
| postgresql-17 | source | trixie | 17.8-0+deb13u1 | DSA-6133-1 | ||
| postgresql-17 | source | (unstable) | (unfixed) | |||
| postgresql-18 | source | (unstable) | 18.2-1 |
https://www.postgresql.org/about/news/postgresql-182-178-1612-1516-and-1421-released-3235/
Fixed by: https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=df0852fe037246289cc00b4d36da6c1f25ff5844 (REL_18_2)
Fixed by: https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=efef05ba995fb2f553c146acb5c33828cc4f898a (REL_18_2)
Fixed by: https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=7b5fc85bef8a3baa530ec98f89376f9d4b7de83c (REL_18_2)
Fixed by: https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=b0f5d25bc3679afaed69d367c72efd387c763d04 (REL_18_2)
Fixed by: https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=b427091947e59788289e80f0ff4279cb7d32dab1 (REL_18_2)
Fixed by: https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=4543b02af3d3077b8505d533dc51bd51fa47b34a (REL_18_2)