CVEfocus › CVE database › CVE-2018-1058

CVE-2018-1058

CVSS 8.8 HighEPSS 13.1% (higher than 96% of CVEs)Published 2018-03-02Updated 2024-09-17Assigner: redhat

A flaw was found in the way Postgresql allowed a user to modify the behavior of a query for other users. An attacker with a user account could use this flaw to execute code with the permissions of superuser in the database. Versions 9.3 through 10 are affected.

CWE-20

What to do

Likely to be exploited: EPSS gives a 13% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.

Fixed builds are available from Alpine, 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

24Fixed
1Fix pending
24Will not fix
18Not 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.3-1UBUNTU-CVE-2018-1058
Ubuntu 16.04postgresql-9.5Fixed9.5.12-0ubuntu0.16.04UBUNTU-CVE-2018-1058
Ubuntu 14.04postgresql-9.1Fix pending
Ubuntu 14.04postgresql-9.3Fixed9.3.22-0ubuntu0.14.04UBUNTU-CVE-2018-1058
Red Hat Enterprise Linux 8pg_repackNot affected
Red Hat Enterprise Linux 8pgauditNot affected
Red Hat Enterprise Linux 8postgres-decoderbufsNot affected
Red Hat Enterprise Linux 8postgresqlNot affected
Red Hat Enterprise Linux 8postgresql-contribNot affected
Red Hat Enterprise Linux 8postgresql-docsNot affected
Red Hat Enterprise Linux 8postgresql-plperlNot affected
Red Hat Enterprise Linux 8postgresql-plpython3Not affected
Red Hat Enterprise Linux 8postgresql-pltclNot affected
Red Hat Enterprise Linux 8postgresql-private-develNot affected
Red Hat Enterprise Linux 8postgresql-private-libsNot affected
Red Hat Enterprise Linux 8postgresql-serverNot affected
Red Hat Enterprise Linux 8postgresql-server-develNot affected
Red Hat Enterprise Linux 8postgresql-staticNot affected
Red Hat Enterprise Linux 8postgresql-testNot affected
Red Hat Enterprise Linux 8postgresql-test-rpm-macrosNot affected
Red Hat Enterprise Linux 8postgresql-upgradeNot affected
Red Hat Enterprise Linux 8postgresql-upgrade-develNot affected
Red Hat Enterprise Linux 7postgresqlWill not fix
Will not fix
Red Hat Enterprise Linux 7postgresql-contribWill not fix
Will not fix
Red Hat Enterprise Linux 7postgresql-develWill not fix
Will not fix
Red Hat Enterprise Linux 7postgresql-docsWill not fix
Will not fix
Red Hat Enterprise Linux 7postgresql-libsWill not fix
Will not fix
Red Hat Enterprise Linux 7postgresql-plperlWill not fix
Will not fix
Red Hat Enterprise Linux 7postgresql-plpythonWill not fix
Will not fix
Red Hat Enterprise Linux 7postgresql-pltclWill not fix
Will not fix
Red Hat Enterprise Linux 7postgresql-serverWill not fix
Will not fix
Red Hat Enterprise Linux 7postgresql-staticWill not fix
Will not fix
Red Hat Enterprise Linux 7postgresql-testWill not fix
Will not fix
Red Hat Enterprise Linux 7postgresql-upgradeWill not fix
Will not fix
Red Hat Enterprise Linux 6postgresqlWill not fix
Will not fix
Red Hat Enterprise Linux 6postgresql-contribWill not fix
Will not fix
Red Hat Enterprise Linux 6postgresql-develWill not fix
Will not fix
Red Hat Enterprise Linux 6postgresql-docsWill not fix
Will not fix
Red Hat Enterprise Linux 6postgresql-libsWill not fix
Will not fix
Red Hat Enterprise Linux 6postgresql-plperlWill not fix
Will not fix
Red Hat Enterprise Linux 6postgresql-plpythonWill not fix
Will not fix
Red Hat Enterprise Linux 6postgresql-pltclWill not fix
Will not fix
Red Hat Enterprise Linux 6postgresql-serverWill not fix
Will not fix
Red Hat Enterprise Linux 6postgresql-testWill not fix
Will not fix
Red Hat Enterprise Linux 5postgresqlWill not fix
Will not fix
Red Hat Enterprise Linux 5postgresql84Will not fix
Will not fix
Alpine Linux 3.20postgresql14Fixed10.3-r0ALPINE-CVE-2018-1058
Alpine Linux 3.20postgresql15Fixed10.3-r0ALPINE-CVE-2018-1058
Alpine Linux 3.19postgresql14Fixed10.3-r0ALPINE-CVE-2018-1058
Alpine Linux 3.19postgresql15Fixed10.3-r0ALPINE-CVE-2018-1058
Alpine Linux 3.18postgresql14Fixed10.3-r0ALPINE-CVE-2018-1058
Alpine Linux 3.18postgresql15Fixed10.3-r0ALPINE-CVE-2018-1058
Alpine Linux 3.17postgresql14Fixed10.3-r0ALPINE-CVE-2018-1058
Alpine Linux 3.17postgresql15Fixed10.3-r0ALPINE-CVE-2018-1058
Alpine Linux 3.16postgresql14Fixed10.3-r0ALPINE-CVE-2018-1058
Alpine Linux 3.15postgresql14Fixed10.3-r0ALPINE-CVE-2018-1058
Alpine Linux 3.14postgresqlFixed10.3-r0ALPINE-CVE-2018-1058
Alpine Linux 3.13postgresqlFixed10.3-r0ALPINE-CVE-2018-1058
Alpine Linux 3.12postgresqlFixed10.3-r0ALPINE-CVE-2018-1058
Alpine Linux 3.11postgresqlFixed10.3-r0ALPINE-CVE-2018-1058
Alpine Linux 3.10postgresqlFixed10.3-r0ALPINE-CVE-2018-1058
Alpine Linux 3.9postgresqlFixed10.3-r0ALPINE-CVE-2018-1058
Alpine Linux 3.8postgresqlFixed10.3-r0ALPINE-CVE-2018-1058
Alpine Linux 3.7postgresqlFixed10.3-r0ALPINE-CVE-2018-1058
Alpine Linux 3.6postgresqlFixed9.6.8-r0ALPINE-CVE-2018-1058
Alpine Linux 3.5postgresqlFixed9.6.8-r0ALPINE-CVE-2018-1058
Alpine Linux 3.4postgresqlFixed9.5.12-r0ALPINE-CVE-2018-1058

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.