CVE-2026-120153
Public on 2026-11-12
Modified on 2026-11-14
Description
SQL injection in PostgreSQL extension-script substitutions allows an attacker with database-level CREATE privilege to execute arbitrary code as the bootstrap superuser, via a schema or owner name containing newlines or other special substrings. This is similar to CVE-2023-39417, but it requires a non-bundled extension with a vulnerable script pattern. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.
Severity
See what this means
CVSS v3 Base Score
See breakdown
Affected Packages
| Platform | Package | Release Date | Advisory | Status |
|---|---|---|---|---|
| Amazon Linux 2 - Postgresql14 Extra | libpq | Not Affected | ||
| Amazon Linux 2023 | libpq | Not Affected | ||
| Amazon Linux 2027 Preview | libpq | Not Affected | ||
| Amazon Linux 2 - Core | postgresql | Pending Fix | ||
| Amazon Linux 2 - Postgresql14 Extra | postgresql | 2026-11-19 | ALAS2POSTGRESQL14-2026-026 | Fixed |
| Amazon Linux 2023 | postgresql15 | 2026-11-19 | ALAS2023-2026-3487 | Fixed |
| Amazon Linux 2023 | postgresql16 | 2026-11-19 | ALAS2023-2026-3486 | Fixed |
| Amazon Linux 2027 Preview | postgresql16 | 2026-11-19 | ALAS2027-2026-382 | Fixed |
| Amazon Linux 2023 | postgresql17 | 2026-11-19 | ALAS2023-2026-3485 | Fixed |
| Amazon Linux 2027 Preview | postgresql17 | 2026-11-19 | ALAS2027-2026-383 | Fixed |
| Amazon Linux 2023 | postgresql18 | 2026-11-19 | ALAS2023-2026-3482 | Fixed |
| Amazon Linux 2027 Preview | postgresql18 | 2026-11-19 | ALAS2027-2026-384 | Fixed |
CVSS Scores
| Score Type | Score | Vector | |
|---|---|---|---|
| Amazon Linux | CVSSv3 | 7.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |