CVEfocus › CVE database › CVE-2019-10208

CVE-2019-10208

CVSS 7.5 HighEPSS 2.2% (higher than 83% of CVEs)Published 2019-10-29Updated 2024-08-04Assigner: redhat

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.

CWE-89

What to do

Fixed builds are available from Alpine, Red Hat, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

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

45Fixed
1Fix pending
11Will not fix
2Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 18.04postgresql-10Fixed10.10-0ubuntu0.18.04.1UBUNTU-CVE-2019-10208
Ubuntu 16.04postgresql-9.5Fixed9.5.19-0ubuntu0.16.04.1UBUNTU-CVE-2019-10208
Ubuntu 14.04postgresql-9.3Fix pendingUBUNTU-CVE-2019-10208
Red Hat Enterprise Linux 8libpqNot affected
Red Hat Enterprise Linux 8libpq-develNot affected
Red Hat Enterprise Linux 8postgresqlFixed0:9.6.20-1.module+el8.3.0+8938+7f0e88b6RHSA-2020:3669
Red Hat Enterprise Linux 8postgresql-contribFixed0:9.6.20-1.module+el8.3.0+8938+7f0e88b6RHSA-2020:3669
Red Hat Enterprise Linux 8postgresql-docsFixed0:9.6.20-1.module+el8.3.0+8938+7f0e88b6RHSA-2020:3669
Red Hat Enterprise Linux 8postgresql-plperlFixed0:10.14-1.module+el8.2.0+7801+be0fed80RHSA-2020:5619
Red Hat Enterprise Linux 8postgresql-plpython3Fixed0:10.14-1.module+el8.2.0+7801+be0fed80RHSA-2020:5619
Red Hat Enterprise Linux 8postgresql-pltclFixed0:9.6.20-1.module+el8.3.0+8938+7f0e88b6RHSA-2020:3669
Red Hat Enterprise Linux 8postgresql-serverFixed0:10.14-1.module+el8.2.0+7801+be0fed80RHSA-2020:5619
Red Hat Enterprise Linux 8postgresql-server-develFixed0:9.6.20-1.module+el8.3.0+8938+7f0e88b6RHSA-2020:3669
Red Hat Enterprise Linux 8postgresql-staticFixed0:9.6.20-1.module+el8.3.0+8938+7f0e88b6RHSA-2020:3669
Red Hat Enterprise Linux 8postgresql-testFixed0:9.6.20-1.module+el8.3.0+8938+7f0e88b6RHSA-2020:3669
Red Hat Enterprise Linux 8postgresql-test-rpm-macrosFixed0:9.6.20-1.module+el8.3.0+8938+7f0e88b6RHSA-2020:3669
Red Hat Enterprise Linux 8postgresql-upgradeFixed0:10.14-1.module+el8.2.0+7801+be0fed80RHSA-2020:3669
Red Hat Enterprise Linux 8postgresql-upgrade-develFixed0:10.14-1.module+el8.2.0+7801+be0fed80RHSA-2020:3669
Red Hat Enterprise Linux 7postgresqlFixed0:9.2.24-6.el7_9RHSA-2021:1512
Red Hat Enterprise Linux 7postgresql-contribFixed0:9.2.24-6.el7_9RHSA-2021:1512
Red Hat Enterprise Linux 7postgresql-develFixed0:9.2.24-6.el7_9RHSA-2021:1512
Red Hat Enterprise Linux 7postgresql-docsFixed0:9.2.24-6.el7_9RHSA-2021:1512
Red Hat Enterprise Linux 7postgresql-libsFixed0:9.2.24-6.el7_9RHSA-2021:1512
Red Hat Enterprise Linux 7postgresql-plperlFixed0:9.2.24-6.el7_9RHSA-2021:1512
Red Hat Enterprise Linux 7postgresql-plpythonFixed0:9.2.24-6.el7_9RHSA-2021:1512
Red Hat Enterprise Linux 7postgresql-pltclFixed0:9.2.24-6.el7_9RHSA-2021:1512
Red Hat Enterprise Linux 7postgresql-serverFixed0:9.2.24-6.el7_9RHSA-2021:1512
Red Hat Enterprise Linux 7postgresql-staticFixed0:9.2.24-6.el7_9RHSA-2021:1512
Red Hat Enterprise Linux 7postgresql-testFixed0:9.2.24-6.el7_9RHSA-2021:1512
Red Hat Enterprise Linux 7postgresql-upgradeFixed0:9.2.24-6.el7_9RHSA-2021:1512
Red Hat Enterprise Linux 6postgresqlWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-contribWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-docsWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-plperlWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-plpythonWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-pltclWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-serverWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-testWill not fix
Out of support scope
Red Hat Enterprise Linux 5postgresqlWill not fix
Out of support scope
Alpine Linux 3.20postgresql14Fixed11.5-r0ALPINE-CVE-2019-10208
Alpine Linux 3.20postgresql15Fixed11.5-r0ALPINE-CVE-2019-10208
Alpine Linux 3.19postgresql14Fixed11.5-r0ALPINE-CVE-2019-10208
Alpine Linux 3.19postgresql15Fixed11.5-r0ALPINE-CVE-2019-10208
Alpine Linux 3.18postgresql14Fixed11.5-r0ALPINE-CVE-2019-10208
Alpine Linux 3.18postgresql15Fixed11.5-r0ALPINE-CVE-2019-10208
Alpine Linux 3.17postgresql14Fixed11.5-r0ALPINE-CVE-2019-10208
Alpine Linux 3.17postgresql15Fixed11.5-r0ALPINE-CVE-2019-10208
Alpine Linux 3.16postgresql14Fixed11.5-r0ALPINE-CVE-2019-10208
Alpine Linux 3.15postgresql14Fixed11.5-r0ALPINE-CVE-2019-10208
Alpine Linux 3.14postgresqlFixed11.5-r0ALPINE-CVE-2019-10208
Alpine Linux 3.13postgresqlFixed11.5-r0ALPINE-CVE-2019-10208
Alpine Linux 3.12postgresqlFixed11.5-r0ALPINE-CVE-2019-10208
Alpine Linux 3.11postgresqlFixed11.5-r0ALPINE-CVE-2019-10208
Alpine Linux 3.10postgresqlFixed11.5-r0ALPINE-CVE-2019-10208
Alpine Linux 3.9postgresqlFixed11.5-r0ALPINE-CVE-2019-10208
Alpine Linux 3.8postgresqlFixed10.10-r0ALPINE-CVE-2019-10208
Alpine Linux 3.7postgresqlFixed10.10-r0ALPINE-CVE-2019-10208

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.

Vendor advisories:

References

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.