Skip to content
Noroxi
CVE-2018-1058· NVD / CVE Program· CNA redhat

A flaw was found in the way Postgresql allowed a user to modify the behavior of a query for other users.

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.

HighCVSS 8.8 · v3.1—Proof of concept Fix available
Published
Mar 2, 2018
Updated
Jun 16, 2026
EPSS
13.1% · 96th percentile
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

Action score

39

Monitor

Low priority for now.

CVSS
35 / 40 · 8.8 / 10
CISA KEV
0 / 30 · Not listed
EPSS
4 / 30 · 13.1%

Affected systems

VendorProduct
postgresqlpostgresql
canonicalubuntu linux
redhatcloudforms

Using postgresql? Add it to your stack and be the first to know about CVEs like this one. (PostgreSQL)

Add to my stack

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • postgresql postgresql9.3 and later · before 9.3.22
  • postgresql postgresql9.4 and later · before 9.4.17
  • postgresql postgresql9.5 and later · before 9.5.12
  • postgresql postgresql9.6 and later · before 9.6.8
  • postgresql postgresql10.0 and later · before 10.3

Versions reported by the vendor

Affected version ranges reported by the assigning authority (redhat). Independent of NVD's CPE analysis and usually ahead of it.

  • The PostgreSQL Global Development Group postgresql

    • 9.3 - 10affected

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Alpine:v3.10postgresqlfrom 9.3 · before 10.3-r010.3-r0
Alpine:v3.15postgresql14before 10.3-r010.3-r0
Alpine:v3.17postgresql15before 10.3-r010.3-r0
Alpine:v3.4postgresqlfrom 9.3 · before 9.5.12-r09.5.12-r0
Alpine:v3.5postgresqlfrom 9.3 · before 9.6.8-r09.6.8-r0
openSUSE:Tumbleweedkubectl-cnpgbefore 1.29.2-1.11.29.2-1.1
openSUSE:Tumbleweedpostgresql10before 10.18-1.310.18-1.3
Red Hat:cloudforms_managementengine:5.9::el7cfmebefore 0:5.9.6.5-3.el7cf0:5.9.6.5-3.el7cf
Red Hat:cloudforms_managementengine:5.9::el7cfme-amazon-smartstatebefore 0:5.9.6.5-2.el7cf0:5.9.6.5-2.el7cf
Red Hat:cloudforms_managementengine:5.9::el7cfme-appliancebefore 0:5.9.6.5-1.el7cf0:5.9.6.5-1.el7cf
Red Hat:cloudforms_managementengine:5.9::el7cfme-appliance-commonbefore 0:5.9.6.5-1.el7cf0:5.9.6.5-1.el7cf
Red Hat:cloudforms_managementengine:5.9::el7cfme-appliance-debuginfobefore 0:5.9.6.5-1.el7cf0:5.9.6.5-1.el7cf
Red Hat:cloudforms_managementengine:5.9::el7cfme-appliance-toolsbefore 0:5.9.6.5-1.el7cf0:5.9.6.5-1.el7cf
Red Hat:cloudforms_managementengine:5.9::el7cfme-debuginfobefore 0:5.9.6.5-3.el7cf0:5.9.6.5-3.el7cf
Red Hat:cloudforms_managementengine:5.9::el7cfme-gemsetbefore 0:5.9.6.5-2.el7cf0:5.9.6.5-2.el7cf
Red Hat:cloudforms_managementengine:5.9::el7cfme-gemset-debuginfobefore 0:5.9.6.5-2.el7cf0:5.9.6.5-2.el7cf
Red Hat:cloudforms_managementengine:5.9::el7dbus-api-servicebefore 0:1.0.1-3.1.el7cf0:1.0.1-3.1.el7cf
Red Hat:cloudforms_managementengine:5.9::el7httpd-configmap-generatorbefore 0:0.2.2-1.2.el7cf0:0.2.2-1.2.el7cf
Red Hat:cloudforms_managementengine:5.9::el7postgresql96before 0:9.6.10-1PGDG.el7at0:9.6.10-1PGDG.el7at
Red Hat:cloudforms_managementengine:5.9::el7postgresql96-contribbefore 0:9.6.10-1PGDG.el7at0:9.6.10-1PGDG.el7at
Red Hat:cloudforms_managementengine:5.9::el7postgresql96-debuginfobefore 0:9.6.10-1PGDG.el7at0:9.6.10-1PGDG.el7at
Red Hat:cloudforms_managementengine:5.9::el7postgresql96-develbefore 0:9.6.10-1PGDG.el7at0:9.6.10-1PGDG.el7at
Red Hat:cloudforms_managementengine:5.9::el7postgresql96-docsbefore 0:9.6.10-1PGDG.el7at0:9.6.10-1PGDG.el7at
Red Hat:cloudforms_managementengine:5.9::el7postgresql96-libsbefore 0:9.6.10-1PGDG.el7at0:9.6.10-1PGDG.el7at

+65

Other highest-scoring records for the same primary product.

  • CVE-2017-7546PostgreSQL versions before 9.2.22, 9.3.18, 9.4.13, 9.5.8 and 9.6.4 are vulnerable to incorrect authentication flaw allowing remote attackers
    57Plan
  • CVE-2019-9193In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and users in the 'pg_execute_server_program' group to
    55Plan
  • CVE-2020-25695A flaw was found in PostgreSQL versions before 13.1, before 12.5, before 11.10, before 10.15, before 9.6.20 and before 9.5.24.
    49Plan
  • CVE-2007-3280The Database Link library (dblink) in PostgreSQL 8.1 implements functions via CREATE statements that map to arbitrary libraries based on the
    44Plan
  • CVE-2013-1899Argument injection vulnerability in PostgreSQL 9.2.x before 9.2.4, 9.1.x before 9.1.9, and 9.0.x before 9.0.13 allows remote attackers to ca
    42Plan
  • CVE-2018-16850postgresql before versions 11.1, 10.6 is vulnerable to a to SQL injection in pg_upgrade and pg_dump via CREATE TRIGGER ...
    41Plan

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
alpine:postgresql10.3-r0 · Alpine:v3.10Package registry (OSV)
alpine:postgresql1410.3-r0 · Alpine:v3.15Package registry (OSV)
alpine:postgresql1510.3-r0 · Alpine:v3.17Package registry (OSV)
opensuse:kubectl-cnpg1.29.2-1.1 · openSUSE:TumbleweedPackage registry (OSV)
opensuse:postgresql1010.18-1.3 · openSUSE:TumbleweedPackage registry (OSV)
red hat:rh-postgresql95-postgresql0:9.5.14-1.el6 · Red Hat:rhel_software_collections:3::el6Package registry (OSV)
red hat:rh-postgresql95-postgresql-contrib0:9.5.14-1.el6 · Red Hat:rhel_software_collections:3::el6Package registry (OSV)
red hat:rh-postgresql95-postgresql-debuginfo0:9.5.14-1.el6 · Red Hat:rhel_software_collections:3::el6Package registry (OSV)
red hat:rh-postgresql95-postgresql-devel0:9.5.14-1.el6 · Red Hat:rhel_software_collections:3::el6Package registry (OSV)
red hat:rh-postgresql95-postgresql-docs0:9.5.14-1.el6 · Red Hat:rhel_software_collections:3::el6Package registry (OSV)
red hat:rh-postgresql95-postgresql-libs0:9.5.14-1.el6 · Red Hat:rhel_software_collections:3::el6Package registry (OSV)
red hat:rh-postgresql95-postgresql-plperl0:9.5.14-1.el6 · Red Hat:rhel_software_collections:3::el6Package registry (OSV)
red hat:rh-postgresql95-postgresql-plpython0:9.5.14-1.el6 · Red Hat:rhel_software_collections:3::el6Package registry (OSV)
red hat:rh-postgresql95-postgresql-pltcl0:9.5.14-1.el6 · Red Hat:rhel_software_collections:3::el6Package registry (OSV)
red hat:rh-postgresql95-postgresql-server0:9.5.14-1.el6 · Red Hat:rhel_software_collections:3::el6Package registry (OSV)
red hat:rh-postgresql95-postgresql-static0:9.5.14-1.el6 · Red Hat:rhel_software_collections:3::el6Package registry (OSV)
red hat:rh-postgresql95-postgresql-test0:9.5.14-1.el6 · Red Hat:rhel_software_collections:3::el6Package registry (OSV)
suse:postgresql949.4.17-0.23.16.1 · SUSE:Linux Enterprise Server 11 SP4Package registry (OSV)
suse:postgresql94-libs9.4.17-0.23.16.1 · SUSE:Linux Enterprise Software Development Kit 11 SP4Package registry (OSV)
suse:postgresql969.6.8-3.16.1 · SUSE:Linux Enterprise Desktop 12 SP2Package registry (OSV)
suse:postgresql96-libs9.6.8-3.16.1 · SUSE:Linux Enterprise Desktop 12 SP2Package registry (OSV)

Exploit status

Proof of concept available

A public proof of concept or detection signature exists. Exploit knowledge is out there; don't delay patching.

Evidence

  • Proof-of-concept repository on GitHub ×2

Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.

Public exploit evidence
SourceKindDate
Proof-of-concept repository on GitHubstars:02026-05-09
Proof-of-concept repository on GitHubstars:02026-08-19

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

  1. Published
  2. First PoC+2990 d
  3. TodaySep 30, 2026+3134 d
EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

No commit or PR link among the references.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

No nightly-computed relations.

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

No known public program.

Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).

Technical details

Attack conditions

  • Anyone who can reach it over the internet can trigger it.
  • A low-privileged account is enough.
  • No user action is required.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
high · data can be read
Integrity
high · data or configuration can be modified
Availability
high · the service can be disrupted
Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality impact
High
Integrity impact
High
Availability impact
High

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

nvd-primary

Noroxi analysis

No Noroxi analysis for this record yet

We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.

We use this product, ask for help

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records