CVE-2019-10208 SQL injection in postgresql

High 7.5 Published Updated

Attackers with EXECUTE permission on a SECURITY DEFINER function can execute arbitrary SQL as the function owner, leading to privilege escalation.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2019-10208?

CVE-2019-10208 is a high-severity SQL injection vulnerability in Postgresql Postgresql, published on 29 Oct 2019. Any signed-in user can exploit it over the network, with no action from the victim.

Official 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.

Weakness: CWE-89

Which versions are affected by CVE-2019-10208?

It affects 1 product.

Linux distribution packages (40)
postgresql94 SUSE:Enterprise Storage 4All versions9.4.24-21.25.1
postgresql96 SUSE:Enterprise Storage 4All versions9.6.15-3.29.1
postgresql96-libs SUSE:Enterprise Storage 4All versions9.6.15-3.29.1
postgresql96 SUSE:Enterprise Storage 5All versions9.6.15-3.29.1
postgresql96-libs SUSE:Enterprise Storage 5All versions9.6.15-3.29.1
postgresql96 SUSE:HPE Helion OpenStack 8All versions9.6.15-3.29.1
postgresql96-libs SUSE:HPE Helion OpenStack 8All versions9.6.15-3.29.1
postgresql10 SUSE:Linux Enterprise Module for Basesystem 15All versions10.10-4.16.1
postgresql10 SUSE:Linux Enterprise Module for Basesystem 15 SP1All versions10.10-8.6.1
postgresql10 SUSE:Linux Enterprise Module for Package Hub 15All versions10.10-4.16.1
postgresql10 SUSE:Linux Enterprise Module for Server Applications 15All versions10.10-4.16.1
postgresql10 SUSE:Linux Enterprise Module for Server Applications 15 SP1All versions10.10-8.6.1
postgresql94 SUSE:Linux Enterprise Server 12 SP1-LTSSAll versions9.4.24-21.25.1
postgresql96 SUSE:Linux Enterprise Server 12 SP1-LTSSAll versions9.6.15-3.29.1
postgresql96-libs SUSE:Linux Enterprise Server 12 SP1-LTSSAll versions9.6.15-3.29.1
postgresql94 SUSE:Linux Enterprise Server 12 SP2-BCLAll versions9.4.24-21.25.1
postgresql96 SUSE:Linux Enterprise Server 12 SP2-BCLAll versions9.6.15-3.29.1
postgresql96-libs SUSE:Linux Enterprise Server 12 SP2-BCLAll versions9.6.15-3.29.1
postgresql94 SUSE:Linux Enterprise Server 12 SP2-LTSSAll versions9.4.24-21.25.1
postgresql96 SUSE:Linux Enterprise Server 12 SP2-LTSSAll versions9.6.15-3.29.1
postgresql96-libs SUSE:Linux Enterprise Server 12 SP2-LTSSAll versions9.6.15-3.29.1
postgresql96 SUSE:Linux Enterprise Server 12 SP3-BCLAll versions9.6.15-3.29.1
postgresql96-libs SUSE:Linux Enterprise Server 12 SP3-BCLAll versions9.6.15-3.29.1
postgresql96 SUSE:Linux Enterprise Server 12 SP3-LTSSAll versions9.6.15-3.29.1
postgresql96-libs SUSE:Linux Enterprise Server 12 SP3-LTSSAll versions9.6.15-3.29.1
postgresql94 SUSE:Linux Enterprise Server for SAP Applications 12 SP1All versions9.4.24-21.25.1
postgresql96 SUSE:Linux Enterprise Server for SAP Applications 12 SP1All versions9.6.15-3.29.1
postgresql96-libs SUSE:Linux Enterprise Server for SAP Applications 12 SP1All versions9.6.15-3.29.1
postgresql94 SUSE:Linux Enterprise Server for SAP Applications 12 SP2All versions9.4.24-21.25.1
postgresql96 SUSE:Linux Enterprise Server for SAP Applications 12 SP2All versions9.6.15-3.29.1
postgresql96-libs SUSE:Linux Enterprise Server for SAP Applications 12 SP2All versions9.6.15-3.29.1
postgresql96 SUSE:Linux Enterprise Server for SAP Applications 12 SP3All versions9.6.15-3.29.1
postgresql96-libs SUSE:Linux Enterprise Server for SAP Applications 12 SP3All versions9.6.15-3.29.1
postgresql94 SUSE:OpenStack Cloud 7All versions9.4.24-21.25.1
postgresql96 SUSE:OpenStack Cloud 7All versions9.6.15-3.29.1
postgresql96-libs SUSE:OpenStack Cloud 7All versions9.6.15-3.29.1
postgresql96 SUSE:OpenStack Cloud 8All versions9.6.15-3.29.1
postgresql96-libs SUSE:OpenStack Cloud 8All versions9.6.15-3.29.1
postgresql96 SUSE:OpenStack Cloud Crowbar 8All versions9.6.15-3.29.1
postgresql96-libs SUSE:OpenStack Cloud Crowbar 8All versions9.6.15-3.29.1

Products include Postgresql Postgresql.

How do I fix CVE-2019-10208?

Upgrade to a fixed version.

Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.

Is CVE-2019-10208 being exploited?

There is no known exploitation of CVE-2019-10208 in the wild and no public exploit code.

All Postgresql Postgresql vulnerabilities

Sources

Also known as ALPINE-CVE-2019-10208, CLEANSTART-2026-UB56862, DLA-1874-1, DSA-4492-1, GHSA-7v5r-hqr9-r2x2, SUSE-SU-2019:2158-1 and 6 more.

Is CVE-2019-10208 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free