CVE-2019-10208
published high CVSS 3.0 · 7.5postgresql: TYPE in pg_temp executes arbitrary SQL during SECURITY DEFINER execution
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| PostgreSQL | — | postgresqlall 11.x before 11.5 · all 10.x before 10.10 · all 9.6.x before 9.6.15 · all 9.5.x before 9.5.19 · all 9.4.x before 9.4.24 | Affected | Not stated | redhat |
| Amazon Linux | AL2 | Release evaluationALAS2-2021-1665 | Fixed | Not stated | Amazon Linux assessment |
| Alpine Linux | v3.10 | postgresql | Fixed | 11.5-r0 | Package fix record |
| Oracle Linux | 7 | postgresqlaarch64 | Advisory build | 0:9.2.24-6.el7_9 | ELSA-2021-1512 |
| Red Hat Enterprise Linux | RHEL-7 | postgresqli686 | Advisory build | 9.2.24-6.el7_9 | RHSA-2021:1512 |
| SUSE / openSUSE | openSUSE-Leap-15.1 | postgresqlnoarch | Advisory build | 12.0.1-lp151.6.9.1 | OPENSUSE-SU-2020:1227-1 |
| Debian | buster | postgresql-11 | Advisory build | 11.5-1+deb10u1 | DSA-4493-1 |
| Alpine Linux | v3.11 | postgresql | Fixed | 11.5-r0 | Package fix record |
Show 94 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.12 | postgresql | Fixed | 11.5-r0 | Package fix record |
| Alpine Linux | v3.13 | postgresql | Fixed | 11.5-r0 | Package fix record |
| Alpine Linux | v3.14 | postgresql | Fixed | 11.5-r0 | Package fix record |
| Alpine Linux | v3.7 | postgresql | Fixed | 10.10-r0 | Package fix record |
| Alpine Linux | v3.8 | postgresql | Fixed | 10.10-r0 | Package fix record |
| Alpine Linux | v3.9 | postgresql | Fixed | 11.5-r0 | Package fix record |
| Oracle Linux | 7 | postgresqlx86_64 | Advisory build | 0:9.2.24-6.el7_9 | ELSA-2021-1512 |
| Oracle Linux | 8 | postgresqlaarch64 · postgresql · 10b | Advisory build | 0:10.14-1.module+el8.2.0+7785+0ea9f177 | ELSA-2020-3669 |
| Oracle Linux | 8 | postgresqlaarch64 · postgresql · 9.6b | Advisory build | 0:9.6.20-1.module+el8.3.0+9604+f0f52296 | ELSA-2020-5619-1 |
| Oracle Linux | 8 | postgresqlx86_64 · postgresql · 10b | Advisory build | 0:10.14-1.module+el8.2.0+7785+0ea9f177 | ELSA-2020-3669 |
| Oracle Linux | 8 | postgresqlx86_64 · postgresql · 9.6b | Advisory build | 0:9.6.20-1.module+el8.3.0+9604+f0f52296 | ELSA-2020-5619-1 |
| Red Hat Enterprise Linux | RHEL-7 | postgresqlppc | Advisory build | 9.2.24-6.el7_9 | RHSA-2021:1512 |
| Red Hat Enterprise Linux | RHEL-7 | postgresqlppc64 | Advisory build | 9.2.24-6.el7_9 | RHSA-2021:1512 |
| Red Hat Enterprise Linux | RHEL-7 | postgresqlppc64le | Advisory build | 9.2.24-6.el7_9 | RHSA-2021:1512 |
| Red Hat Enterprise Linux | RHEL-7 | postgresqls390 | Advisory build | 9.2.24-6.el7_9 | RHSA-2021:1512 |
| Red Hat Enterprise Linux | RHEL-7 | postgresqls390x | Advisory build | 9.2.24-6.el7_9 | RHSA-2021:1512 |
| Red Hat Enterprise Linux | RHEL-7 | postgresqlsrc | Advisory build | 9.2.24-6.el7_9 | RHSA-2021:1512 |
| Red Hat Enterprise Linux | RHEL-7 | postgresqlx86_64 | Advisory build | 9.2.24-6.el7_9 | RHSA-2021:1512 |
| Red Hat Enterprise Linux | RHEL-8 | postgresqlaarch64 | Advisory build | 10.14-1.module+el8.2.0+7801+be0fed80 | RHSA-2020:3669 |
| Red Hat Enterprise Linux | RHEL-8 | postgresqlaarch64 | Advisory build | 10.15-1.module+el8.1.0+9154+cd474635 | RHSA-2021:0166 |
| Red Hat Enterprise Linux | RHEL-8 | postgresqlaarch64 | Advisory build | 9.6.20-1.module+el8.1.0+9156+8ff1384f | RHSA-2021:0167 |
| Red Hat Enterprise Linux | RHEL-8 | postgresqlaarch64 | Advisory build | 9.6.20-1.module+el8.2.0+8939+9a3b4b64 | RHSA-2021:0164 |
| Red Hat Enterprise Linux | RHEL-8 | postgresqlaarch64 | Advisory build | 9.6.20-1.module+el8.3.0+8938+7f0e88b6 | RHSA-2020:5619 |
| Red Hat Enterprise Linux | RHEL-8 | postgresqlppc64le | Advisory build | 10.14-1.module+el8.2.0+7801+be0fed80 | RHSA-2020:3669 |
| Red Hat Enterprise Linux | RHEL-8 | postgresqlppc64le | Advisory build | 10.15-1.module+el8.0.0+9155+4a85661a | RHSA-2020:5664 |
| Red Hat Enterprise Linux | RHEL-8 | postgresqlppc64le | Advisory build | 10.15-1.module+el8.1.0+9154+cd474635 | RHSA-2021:0166 |
| Red Hat Enterprise Linux | RHEL-8 | postgresqlppc64le | Advisory build | 9.6.20-1.module+el8.0.0+9157+356b8def | RHSA-2020:5661 |
| Red Hat Enterprise Linux | RHEL-8 | postgresqlppc64le | Advisory build | 9.6.20-1.module+el8.1.0+9156+8ff1384f | RHSA-2021:0167 |
| Red Hat Enterprise Linux | RHEL-8 | postgresqlppc64le | Advisory build | 9.6.20-1.module+el8.2.0+8939+9a3b4b64 | RHSA-2021:0164 |
| Red Hat Enterprise Linux | RHEL-8 | postgresqlppc64le | Advisory build | 9.6.20-1.module+el8.3.0+8938+7f0e88b6 | RHSA-2020:5619 |
| Red Hat Enterprise Linux | RHEL-8 | postgresqls390x | Advisory build | 10.14-1.module+el8.2.0+7801+be0fed80 | RHSA-2020:3669 |
| Red Hat Enterprise Linux | RHEL-8 | postgresqls390x | Advisory build | 10.15-1.module+el8.1.0+9154+cd474635 | RHSA-2021:0166 |
| Red Hat Enterprise Linux | RHEL-8 | postgresqls390x | Advisory build | 9.6.20-1.module+el8.1.0+9156+8ff1384f | RHSA-2021:0167 |
| Red Hat Enterprise Linux | RHEL-8 | postgresqls390x | Advisory build | 9.6.20-1.module+el8.2.0+8939+9a3b4b64 | RHSA-2021:0164 |
| Red Hat Enterprise Linux | RHEL-8 | postgresqls390x | Advisory build | 9.6.20-1.module+el8.3.0+8938+7f0e88b6 | RHSA-2020:5619 |
| Red Hat Enterprise Linux | RHEL-8 | postgresqlsrc | Advisory build | 10.14-1.module+el8.2.0+7801+be0fed80 | RHSA-2020:3669 |
| Red Hat Enterprise Linux | RHEL-8 | postgresqlsrc | Advisory build | 10.15-1.module+el8.0.0+9155+4a85661a | RHSA-2020:5664 |
| Red Hat Enterprise Linux | RHEL-8 | postgresqlsrc | Advisory build | 10.15-1.module+el8.1.0+9154+cd474635 | RHSA-2021:0166 |
| Red Hat Enterprise Linux | RHEL-8 | postgresqlsrc | Advisory build | 9.6.20-1.module+el8.0.0+9157+356b8def | RHSA-2020:5661 |
| Red Hat Enterprise Linux | RHEL-8 | postgresqlsrc | Advisory build | 9.6.20-1.module+el8.1.0+9156+8ff1384f | RHSA-2021:0167 |
| Red Hat Enterprise Linux | RHEL-8 | postgresqlsrc | Advisory build | 9.6.20-1.module+el8.2.0+8939+9a3b4b64 | RHSA-2021:0164 |
| Red Hat Enterprise Linux | RHEL-8 | postgresqlsrc | Advisory build | 9.6.20-1.module+el8.3.0+8938+7f0e88b6 | RHSA-2020:5619 |
| Red Hat Enterprise Linux | RHEL-8 | postgresqlx86_64 | Advisory build | 10.14-1.module+el8.2.0+7801+be0fed80 | RHSA-2020:3669 |
| Red Hat Enterprise Linux | RHEL-8 | postgresqlx86_64 | Advisory build | 10.15-1.module+el8.0.0+9155+4a85661a | RHSA-2020:5664 |
| Red Hat Enterprise Linux | RHEL-8 | postgresqlx86_64 | Advisory build | 10.15-1.module+el8.1.0+9154+cd474635 | RHSA-2021:0166 |
| Red Hat Enterprise Linux | RHEL-8 | postgresqlx86_64 | Advisory build | 9.6.20-1.module+el8.0.0+9157+356b8def | RHSA-2020:5661 |
| Red Hat Enterprise Linux | RHEL-8 | postgresqlx86_64 | Advisory build | 9.6.20-1.module+el8.1.0+9156+8ff1384f | RHSA-2021:0167 |
| Red Hat Enterprise Linux | RHEL-8 | postgresqlx86_64 | Advisory build | 9.6.20-1.module+el8.2.0+8939+9a3b4b64 | RHSA-2021:0164 |
| Red Hat Enterprise Linux | RHEL-8 | postgresqlx86_64 | Advisory build | 9.6.20-1.module+el8.3.0+8938+7f0e88b6 | RHSA-2020:5619 |
| Alpine Linux | v3.15 | postgresql14 | Fixed | 11.5-r0 | Package fix record |
| Alpine Linux | v3.16 | postgresql14 | Fixed | 11.5-r0 | Package fix record |
| Alpine Linux | v3.17 | postgresql14 | Fixed | 11.5-r0 | Package fix record |
| Alpine Linux | v3.17 | postgresql15 | Fixed | 11.5-r0 | Package fix record |
| Alpine Linux | v3.18 | postgresql14 | Fixed | 11.5-r0 | Package fix record |
| Alpine Linux | v3.18 | postgresql15 | Fixed | 11.5-r0 | Package fix record |
| Alpine Linux | v3.19 | postgresql14 | Fixed | 11.5-r0 | Package fix record |
| Alpine Linux | v3.19 | postgresql15 | Fixed | 11.5-r0 | Package fix record |
| Alpine Linux | v3.20 | postgresql14 | Fixed | 11.5-r0 | Package fix record |
| Alpine Linux | v3.20 | postgresql15 | Fixed | 11.5-r0 | Package fix record |
| Debian | jessie | postgresql-9.4 | Advisory build | 9.4.24-0+deb8u1 | DLA-1874-1 |
| Debian | stretch | postgresql-9.6 | Advisory build | 9.6.15-0+deb9u1 | DSA-4492-1 |
| Oracle Linux | 7 | postgresql-contribaarch64 | Advisory build | 0:9.2.24-6.el7_9 | ELSA-2021-1512 |
| Oracle Linux | 7 | postgresql-contribx86_64 | Advisory build | 0:9.2.24-6.el7_9 | ELSA-2021-1512 |
| Oracle Linux | 7 | postgresql-develaarch64 | Advisory build | 0:9.2.24-6.el7_9 | ELSA-2021-1512 |
| Oracle Linux | 7 | postgresql-develx86_64 | Advisory build | 0:9.2.24-6.el7_9 | ELSA-2021-1512 |
| Oracle Linux | 7 | postgresql-docsaarch64 | Advisory build | 0:9.2.24-6.el7_9 | ELSA-2021-1512 |
| Oracle Linux | 7 | postgresql-docsx86_64 | Advisory build | 0:9.2.24-6.el7_9 | ELSA-2021-1512 |
| Oracle Linux | 7 | postgresql-libsaarch64 | Advisory build | 0:9.2.24-6.el7_9 | ELSA-2021-1512 |
| Oracle Linux | 7 | postgresql-libsx86_64 | Advisory build | 0:9.2.24-6.el7_9 | ELSA-2021-1512 |
| Oracle Linux | 7 | postgresql-plperlaarch64 | Advisory build | 0:9.2.24-6.el7_9 | ELSA-2021-1512 |
| Oracle Linux | 7 | postgresql-plperlx86_64 | Advisory build | 0:9.2.24-6.el7_9 | ELSA-2021-1512 |
| Oracle Linux | 7 | postgresql-plpythonaarch64 | Advisory build | 0:9.2.24-6.el7_9 | ELSA-2021-1512 |
| Oracle Linux | 7 | postgresql-plpythonx86_64 | Advisory build | 0:9.2.24-6.el7_9 | ELSA-2021-1512 |
| Oracle Linux | 7 | postgresql-pltclaarch64 | Advisory build | 0:9.2.24-6.el7_9 | ELSA-2021-1512 |
| Oracle Linux | 7 | postgresql-pltclx86_64 | Advisory build | 0:9.2.24-6.el7_9 | ELSA-2021-1512 |
| Oracle Linux | 7 | postgresql-serveraarch64 | Advisory build | 0:9.2.24-6.el7_9 | ELSA-2021-1512 |
| Oracle Linux | 7 | postgresql-serverx86_64 | Advisory build | 0:9.2.24-6.el7_9 | ELSA-2021-1512 |
| Oracle Linux | 7 | postgresql-staticaarch64 | Advisory build | 0:9.2.24-6.el7_9 | ELSA-2021-1512 |
| Oracle Linux | 7 | postgresql-staticx86_64 | Advisory build | 0:9.2.24-6.el7_9 | ELSA-2021-1512 |
| Oracle Linux | 7 | postgresql-testaarch64 | Advisory build | 0:9.2.24-6.el7_9 | ELSA-2021-1512 |
| Oracle Linux | 7 | postgresql-testx86_64 | Advisory build | 0:9.2.24-6.el7_9 | ELSA-2021-1512 |
| Oracle Linux | 7 | postgresql-upgradeaarch64 | Advisory build | 0:9.2.24-6.el7_9 | ELSA-2021-1512 |
| Oracle Linux | 7 | postgresql-upgradex86_64 | Advisory build | 0:9.2.24-6.el7_9 | ELSA-2021-1512 |
| Oracle Linux | 7 | rh-postgresql10-postgresqlx86_64 | Advisory build | 0:10.15-1.el7 | ELSA-2021-9290 |
| Oracle Linux | 7 | rh-postgresql10-postgresql-contribx86_64 | Advisory build | 0:10.15-1.el7 | ELSA-2021-9290 |
| Oracle Linux | 7 | rh-postgresql10-postgresql-contrib-syspathsx86_64 | Advisory build | 0:10.15-1.el7 | ELSA-2021-9290 |
| Oracle Linux | 7 | rh-postgresql10-postgresql-develx86_64 | Advisory build | 0:10.15-1.el7 | ELSA-2021-9290 |
| Oracle Linux | 7 | rh-postgresql10-postgresql-docsx86_64 | Advisory build | 0:10.15-1.el7 | ELSA-2021-9290 |
| Oracle Linux | 7 | rh-postgresql10-postgresql-libsx86_64 | Advisory build | 0:10.15-1.el7 | ELSA-2021-9290 |
| Oracle Linux | 7 | rh-postgresql10-postgresql-plperlx86_64 | Advisory build | 0:10.15-1.el7 | ELSA-2021-9290 |
| Oracle Linux | 7 | rh-postgresql10-postgresql-plpythonx86_64 | Advisory build | 0:10.15-1.el7 | ELSA-2021-9290 |
| Oracle Linux | 7 | rh-postgresql10-postgresql-pltclx86_64 | Advisory build | 0:10.15-1.el7 | ELSA-2021-9290 |
| Oracle Linux | 7 | rh-postgresql10-postgresql-serverx86_64 | Advisory build | 0:10.15-1.el7 | ELSA-2021-9290 |
| Oracle Linux | 7 | rh-postgresql10-postgresql-server-syspathsx86_64 | Advisory build | 0:10.15-1.el7 | ELSA-2021-9290 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
A flaw was discovered in postgresql versions 9.4.x before 9.4.24, 9.5.x before 9.5.19, 9.6.x before 9.6.15, 10.x before 10.10 and 11.x before 11.5 where arbitrary SQL statements can be executed given a suitable SECURITY DEFINER function. An attacker, with EXECUTE permission on the function, can execute arbitrary SQL as the owner of the function.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.0
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- redhat · cna
- Vector string
- CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| PostgreSQL | postgresql | all 11.x before 11.5 (affected)all 10.x before 10.10 (affected)all 9.6.x before 9.6.15 (affected)all 9.5.x before 9.5.19 (affected)all 9.4.x before 9.4.24 (affected) | redhat · cna |
Weaknesses
1- CWE-89
References
3- openSUSE-SU-2020:1227 http://lists.opensuse.org/opensuse-security-announce/2020-08/msg00043.html
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-10208
- https://www.postgresql.org/about/news/1960/
Provider assertions
2redhat · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 4fa88beeddd3d9344a634448ef067475ae63f8cfe51c4d4ba1f147d39af70b6a
- Ingested
- 23 Sep 2026, 07:45:30 UTC
- Source record
- Official CVE record