CVE-2018-16850 postgresql before versions 11.1, 10.6 is vulnerable to a to SQL injection in pg_upgrade and pg_dump via CREATE TRIGGER ... REFERENCING. Using a purpose-crafted trigger definition, an attacker can caus...
CriticalCVSS 9.8
EPSS 5.1%
- Published
- Updated
- Exploit status
- No public exploit known
Description
postgresql before versions 11.1, 10.6 is vulnerable to a to SQL injection in pg_upgrade and pg_dump via CREATE TRIGGER ... REFERENCING. Using a purpose-crafted trigger definition, an attacker can cause arbitrary SQL statements to run, with superuser privileges.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| postgresql | >= 10.0, < 10.6 | 10.6 |
| postgresql | >= 11.0, < 11.1 | 11.1 |
| redhat enterprise linux | = 7.0 | No fix listed |
| redhat enterprise linux | = 7.4 | No fix listed |
| redhat enterprise linux | = 7.5 | No fix listed |
| redhat enterprise linux | = 7.6 | No fix listed |
| Canonical Ubuntu Linux | = 18.04 | No fix listed |
| Canonical Ubuntu Linux | = 18.10 | No fix listed |
| alpine/postgresql(Alpine:v3.10) | >= 10.0, < 11.1-r0 | 11.1-r0 |
| alpine/postgresql(Alpine:v3.11) | >= 10.0, < 11.1-r0 | 11.1-r0 |
| alpine/postgresql(Alpine:v3.12) | >= 10.0, < 11.1-r0 | 11.1-r0 |
| alpine/postgresql(Alpine:v3.13) | >= 10.0, < 11.1-r0 | 11.1-r0 |
| alpine/postgresql(Alpine:v3.14) | >= 10.0, < 11.1-r0 | 11.1-r0 |
| alpine/postgresql(Alpine:v3.9) | >= 10.0, < 11.1-r0 | 11.1-r0 |
| alpine/postgresql14(Alpine:v3.15) | < 11.1-r0 | 11.1-r0 |
| alpine/postgresql14(Alpine:v3.16) | < 11.1-r0 | 11.1-r0 |
| alpine/postgresql14(Alpine:v3.17) | < 11.1-r0 | 11.1-r0 |
| alpine/postgresql14(Alpine:v3.18) | < 11.1-r0 | 11.1-r0 |
| alpine/postgresql14(Alpine:v3.19) | < 11.1-r0 | 11.1-r0 |
| alpine/postgresql14(Alpine:v3.20) | < 11.1-r0 | 11.1-r0 |
| alpine/postgresql15(Alpine:v3.17) | < 11.1-r0 | 11.1-r0 |
| alpine/postgresql15(Alpine:v3.18) | < 11.1-r0 | 11.1-r0 |
| alpine/postgresql15(Alpine:v3.19) | < 11.1-r0 | 11.1-r0 |
| alpine/postgresql15(Alpine:v3.20) | < 11.1-r0 | 11.1-r0 |
| The PostgreSQL Project postgresql | = 11.1 | No fix listed |
Show 1 more
| Product | Affected versions | Fixed in |
|---|---|---|
| The PostgreSQL Project postgresql | = 10.6 | No fix listed |
References
- 105923 third-party-advisory vdb-entry
- 1042144 third-party-advisory vdb-entry
- RHSA-2018:3757 third-party-advisory vendor-advisory
- bugzilla.redhat.com issue-tracking patch third-party-advisory
- GLSA-201811-24 mitigation third-party-advisory vendor-advisory
- USN-3818-1 third-party-advisory vendor-advisory
- www.postgresql.org release-notes vendor-advisory
- security.alpinelinux.org vendor-advisory