CVE-2018-10925
It was discovered that PostgreSQL versions before 10.5, 9.6.10, 9.5.14, 9.4.19, and 9.3.24 failed to properly check authorization on certain statements involved with "INSERT ... ON CONFLICT DO UPDATE". An attacker with "CREATE TABLE" privileges could exploit this to read arbitrary bytes server memory. If the attacker also had certain "INSERT" and limited "UPDATE" privileges to a particular table, they could exploit this to update other columns in the same table.
What to do
Fixed builds are available from Alpine, Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 18.04 | postgresql-10 | Fixed | 10.5-0ubuntu0.18.04 | UBUNTU-CVE-2018-10925 |
| Ubuntu 16.04 | postgresql-9.5 | Fixed | 9.5.14-0ubuntu0.16.04 | UBUNTU-CVE-2018-10925 |
| Ubuntu 14.04 | postgresql-9.1 | Not affected vulnerable_code_not_present | ||
| Red Hat Enterprise Linux 8 | libpq | Not affected | ||
| Red Hat Enterprise Linux 8 | libpq-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | pg_repack | Not affected | ||
| Red Hat Enterprise Linux 8 | pgaudit | Not affected | ||
| Red Hat Enterprise Linux 8 | postgres-decoderbufs | Not affected | ||
| Red Hat Enterprise Linux 8 | postgresql | Not affected | ||
| Red Hat Enterprise Linux 8 | postgresql-contrib | Not affected | ||
| Red Hat Enterprise Linux 8 | postgresql-docs | Not affected | ||
| Red Hat Enterprise Linux 8 | postgresql-plperl | Not affected | ||
| Red Hat Enterprise Linux 8 | postgresql-plpython3 | Not affected | ||
| Red Hat Enterprise Linux 8 | postgresql-pltcl | Not affected | ||
| Red Hat Enterprise Linux 8 | postgresql-private-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | postgresql-private-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | postgresql-server | Not affected | ||
| Red Hat Enterprise Linux 8 | postgresql-server-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | postgresql-static | Not affected | ||
| Red Hat Enterprise Linux 8 | postgresql-test | Not affected | ||
| Red Hat Enterprise Linux 8 | postgresql-test-rpm-macros | Not affected | ||
| Red Hat Enterprise Linux 8 | postgresql-upgrade | Not affected | ||
| Red Hat Enterprise Linux 8 | postgresql-upgrade-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | postgresql | Not affected | ||
| Red Hat Enterprise Linux 7 | postgresql-contrib | Not affected | ||
| Red Hat Enterprise Linux 7 | postgresql-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | postgresql-docs | Not affected | ||
| Red Hat Enterprise Linux 7 | postgresql-libs | Not affected | ||
| Red Hat Enterprise Linux 7 | postgresql-plperl | Not affected | ||
| Red Hat Enterprise Linux 7 | postgresql-plpython | Not affected | ||
| Red Hat Enterprise Linux 7 | postgresql-pltcl | Not affected | ||
| Red Hat Enterprise Linux 7 | postgresql-server | Not affected | ||
| Red Hat Enterprise Linux 7 | postgresql-static | Not affected | ||
| Red Hat Enterprise Linux 7 | postgresql-test | Not affected | ||
| Red Hat Enterprise Linux 7 | postgresql-upgrade | Not affected | ||
| Red Hat Enterprise Linux 6 | postgresql | Not affected | ||
| Red Hat Enterprise Linux 6 | postgresql-contrib | Not affected | ||
| Red Hat Enterprise Linux 6 | postgresql-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | postgresql-docs | Not affected | ||
| Red Hat Enterprise Linux 6 | postgresql-libs | Not affected | ||
| Red Hat Enterprise Linux 6 | postgresql-plperl | Not affected | ||
| Red Hat Enterprise Linux 6 | postgresql-plpython | Not affected | ||
| Red Hat Enterprise Linux 6 | postgresql-pltcl | Not affected | ||
| Red Hat Enterprise Linux 6 | postgresql-server | Not affected | ||
| Red Hat Enterprise Linux 6 | postgresql-test | Not affected | ||
| Red Hat Enterprise Linux 5 | postgresql | Not affected | ||
| Red Hat Enterprise Linux 5 | postgresql84 | Not affected | ||
| Alpine Linux 3.20 | postgresql14 | Fixed | 10.5-r0 | ALPINE-CVE-2018-10925 |
| Alpine Linux 3.20 | postgresql15 | Fixed | 10.5-r0 | ALPINE-CVE-2018-10925 |
| Alpine Linux 3.19 | postgresql14 | Fixed | 10.5-r0 | ALPINE-CVE-2018-10925 |
| Alpine Linux 3.19 | postgresql15 | Fixed | 10.5-r0 | ALPINE-CVE-2018-10925 |
| Alpine Linux 3.18 | postgresql14 | Fixed | 10.5-r0 | ALPINE-CVE-2018-10925 |
| Alpine Linux 3.18 | postgresql15 | Fixed | 10.5-r0 | ALPINE-CVE-2018-10925 |
| Alpine Linux 3.17 | postgresql14 | Fixed | 10.5-r0 | ALPINE-CVE-2018-10925 |
| Alpine Linux 3.17 | postgresql15 | Fixed | 10.5-r0 | ALPINE-CVE-2018-10925 |
| Alpine Linux 3.16 | postgresql14 | Fixed | 10.5-r0 | ALPINE-CVE-2018-10925 |
| Alpine Linux 3.15 | postgresql14 | Fixed | 10.5-r0 | ALPINE-CVE-2018-10925 |
| Alpine Linux 3.14 | postgresql | Fixed | 10.5-r0 | ALPINE-CVE-2018-10925 |
| Alpine Linux 3.13 | postgresql | Fixed | 10.5-r0 | ALPINE-CVE-2018-10925 |
| Alpine Linux 3.12 | postgresql | Fixed | 10.5-r0 | ALPINE-CVE-2018-10925 |
| Alpine Linux 3.11 | postgresql | Fixed | 10.5-r0 | ALPINE-CVE-2018-10925 |
| Alpine Linux 3.10 | postgresql | Fixed | 10.5-r0 | ALPINE-CVE-2018-10925 |
| Alpine Linux 3.9 | postgresql | Fixed | 10.5-r0 | ALPINE-CVE-2018-10925 |
| Alpine Linux 3.8 | postgresql | Fixed | 10.5-r0 | ALPINE-CVE-2018-10925 |
| Alpine Linux 3.7 | postgresql | Fixed | 10.5-r0 | ALPINE-CVE-2018-10925 |
| Alpine Linux 3.6 | postgresql | Fixed | 9.6.10-r0 | ALPINE-CVE-2018-10925 |
| Alpine Linux 3.5 | postgresql | Fixed | 9.6.10-r0 | ALPINE-CVE-2018-10925 |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- PostgreSQL Global Development Group postgresql: affected: 10.5, 9.6.10, 9.5.14, 9.4.19, 9.3.24
Vendor advisories:
- https://security.gentoo.org/glsa/201810-08 (vendor-advisory)
- https://www.debian.org/security/2018/dsa-4269 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2018:2511 (vendor-advisory)
- https://usn.ubuntu.com/3744-1/ (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2018:2566 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2018:2565 (vendor-advisory)
References
- https://security.gentoo.org/glsa/201810-08
- https://www.debian.org/security/2018/dsa-4269
- http://www.securityfocus.com/bid/105052
- https://access.redhat.com/errata/RHSA-2018:2511
- https://usn.ubuntu.com/3744-1/
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-10925
- https://access.redhat.com/errata/RHSA-2018:2566
- https://access.redhat.com/errata/RHSA-2018:2565
- https://access.redhat.com/errata/RHSA-2018:3816
- https://www.postgresql.org/about/news/1878/
- http://www.securitytracker.com/id/1041446
- http://lists.opensuse.org/opensuse-security-announce/2020-08/msg00043.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.