Skip to content
Noroxi
NVD / CVE Program· CNA redhat

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

HighCVSS 8.8 · v3.1—Proof of concept Fix available

Noroxi assessment

Priority: Monitor (action score 39/100)

  • Public proof-of-concept code exists (GitHub); there is no record of exploitation in the wild.
  • Probability of exploitation in the next 30 days: 13% (FIRST EPSS); higher than 96.4% of all records.
  • 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.
  • Fixed version: postgresql (Alpine:v3.10) 10.3-r0; postgresql14 (Alpine:v3.15) 10.3-r0; postgresql15 (Alpine:v3.17) 10.3-r0.
  • Mentioned 1 time in Turkish national cyber security advisories (siberguvenlik.gov.tr).

Low priority for now. Upgrade to postgresql (Alpine:v3.10) 10.3-r0; postgresql14 (Alpine:v3.15) 10.3-r0; postgresql15 (Alpine:v3.17) 10.3-r0 or later.

Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it

Primary sources: NVD · CVE.org · FIRST EPSS

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.

Published
Mar 2, 2018
Updated
Jun 16, 2026
EPSS
13.0% · 96th percentile

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.0%

Get told when this record changes

  • Not in KEV: no record of exploitation in the wild
  • Proof of concept exists, no weaponized module
  • A fix has been released

If any of these changes, we'll tell you in the daily email digest.

Follow CVE-2018-1058

When you'll hear from us

  • when it enters CISA KEV
  • when exploit code appears or is weaponized
  • when the record is updated (including a fixed version)
  • when EPSS rises 20 points in a week

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits every 10 minutes on paid plans, on the hour on the free plan.

Is PostgreSQL on your server exposed to the internet?Run a port scan

Your free account also gets you

  • CVE alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools, at most 30 a day (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools

Is PostgreSQL on your server exposed to the internet?Run a port scan

Is your version affected? Check it

Noroxi analysis

What does it mean in your environment?

The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.

We use this product, ask for help

Affected systems

Is your version affected?

Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.

VendorProduct
postgresqlpostgresql
canonicalubuntu linux
redhatcloudforms

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

Watch new CVEs for postgresql

When you'll hear from us

  • when a new CVE affecting this product is published
  • when a record in your stack enters KEV or is weaponized

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits every 10 minutes on paid plans, on the hour on the free plan.

Is PostgreSQL on your server exposed to the internet?Run a port scan

Your free account also gets you

  • CVE alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools, at most 30 a day (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools

Sign up with email · Have an account? Sign in

Free account, no card. Unfollow any time.

Is PostgreSQL on your server exposed to the internet?

The free port scanner finds the open ports on your server and matches the service versions it can read against known vulnerabilities. No account needed.

Run a port scan

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…
    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

Published before and after this one in the same product

  • ← EarlierCVE-2018-1053Feb 9, 2018 · In postgresql 9.3.x before 9.3.21, 9.4.x before 9.4.16, 9.5.x before 9.5.11, 9.6.x before 9.6.7 and 10.x before 10.2, pg_upgrade creates…
    28Monitor
  • ← EarlierCVE-2017-14798Mar 1, 2018 · local privilege escalation in SUSE postgresql init script
    28Monitor
  • Later →CVE-2018-1115May 10, 2018 · postgresql before versions 10.4, 9.6.9 is vulnerable in the adminpack extension, the pg_catalog.pg_logfile_rotate() function doesn't follow…
    37Monitor

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. TodayNov 16, 2026+3181 d
EPSS, last 120 days

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

National notice (Türkiye Cybersecurity Directorate / USOM)

Official security notices citing this record; remediation advice is on the agency's page.

All national notices →

Not on record for this CVE: patch commit or PR link · researcher credit · variant or chain candidate · public bounty program.

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

References

All records