CVE-2018-1058: A flaw was found in the way Postgresql allowed a user to modify the behavior of a query for other users.
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
- CWE
- CWE-20
Report tools
Action score
39
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.
Is PostgreSQL on your server exposed to the internet?Run a port scan
Is your version affected? Check itNoroxi 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 helpAffected 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.
| Vendor | Product | CPE |
|---|---|---|
| postgresql | postgresql | cpe:2.3:a:postgresql:postgresql |
| canonical | ubuntu linux | cpe:2.3:o:canonical:ubuntu_linux |
| redhat | cloudforms | cpe:2.3:a:redhat:cloudforms |
Using postgresql? Add it to your stack and be the first to know about CVEs like this one. (PostgreSQL)
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 scanVersions 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
Affected versions · NVD (5)
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
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Alpine:v3.10 | postgresql | from 9.3 · before 10.3-r0 | 10.3-r0 |
| Alpine:v3.15 | postgresql14 | before 10.3-r0 | 10.3-r0 |
| Alpine:v3.17 | postgresql15 | before 10.3-r0 | 10.3-r0 |
| Alpine:v3.4 | postgresql | from 9.3 · before 9.5.12-r0 | 9.5.12-r0 |
| Alpine:v3.5 | postgresql | from 9.3 · before 9.6.8-r0 | 9.6.8-r0 |
| openSUSE:Tumbleweed | kubectl-cnpg | before 1.29.2-1.1 | 1.29.2-1.1 |
| openSUSE:Tumbleweed | postgresql10 | before 10.18-1.3 | 10.18-1.3 |
| Red Hat:cloudforms_managementengine:5.9::el7 | cfme | before 0:5.9.6.5-3.el7cf | 0:5.9.6.5-3.el7cf |
| Red Hat:cloudforms_managementengine:5.9::el7 | cfme-amazon-smartstate | before 0:5.9.6.5-2.el7cf | 0:5.9.6.5-2.el7cf |
| Red Hat:cloudforms_managementengine:5.9::el7 | cfme-appliance | before 0:5.9.6.5-1.el7cf | 0:5.9.6.5-1.el7cf |
| Red Hat:cloudforms_managementengine:5.9::el7 | cfme-appliance-common | before 0:5.9.6.5-1.el7cf | 0:5.9.6.5-1.el7cf |
| Red Hat:cloudforms_managementengine:5.9::el7 | cfme-appliance-debuginfo | before 0:5.9.6.5-1.el7cf | 0:5.9.6.5-1.el7cf |
| Red Hat:cloudforms_managementengine:5.9::el7 | cfme-appliance-tools | before 0:5.9.6.5-1.el7cf | 0:5.9.6.5-1.el7cf |
| Red Hat:cloudforms_managementengine:5.9::el7 | cfme-debuginfo | before 0:5.9.6.5-3.el7cf | 0:5.9.6.5-3.el7cf |
| Red Hat:cloudforms_managementengine:5.9::el7 | cfme-gemset | before 0:5.9.6.5-2.el7cf | 0:5.9.6.5-2.el7cf |
| Red Hat:cloudforms_managementengine:5.9::el7 | cfme-gemset-debuginfo | before 0:5.9.6.5-2.el7cf | 0:5.9.6.5-2.el7cf |
| Red Hat:cloudforms_managementengine:5.9::el7 | dbus-api-service | before 0:1.0.1-3.1.el7cf | 0:1.0.1-3.1.el7cf |
| Red Hat:cloudforms_managementengine:5.9::el7 | httpd-configmap-generator | before 0:0.2.2-1.2.el7cf | 0:0.2.2-1.2.el7cf |
| Red Hat:cloudforms_managementengine:5.9::el7 | postgresql96 | before 0:9.6.10-1PGDG.el7at | 0:9.6.10-1PGDG.el7at |
| Red Hat:cloudforms_managementengine:5.9::el7 | postgresql96-contrib | before 0:9.6.10-1PGDG.el7at | 0:9.6.10-1PGDG.el7at |
| Red Hat:cloudforms_managementengine:5.9::el7 | postgresql96-debuginfo | before 0:9.6.10-1PGDG.el7at | 0:9.6.10-1PGDG.el7at |
| Red Hat:cloudforms_managementengine:5.9::el7 | postgresql96-devel | before 0:9.6.10-1PGDG.el7at | 0:9.6.10-1PGDG.el7at |
| Red Hat:cloudforms_managementengine:5.9::el7 | postgresql96-docs | before 0:9.6.10-1PGDG.el7at | 0:9.6.10-1PGDG.el7at |
| Red Hat:cloudforms_managementengine:5.9::el7 | postgresql96-libs | before 0:9.6.10-1PGDG.el7at | 0:9.6.10-1PGDG.el7at |
+65
Same product
postgresql: all recordsOther 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 script28Monitor
- 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 / package | Fixed version | Source |
|---|---|---|
| alpine:postgresql | 10.3-r0 · Alpine:v3.10 | Package registry (OSV) |
| alpine:postgresql14 | 10.3-r0 · Alpine:v3.15 | Package registry (OSV) |
| alpine:postgresql15 | 10.3-r0 · Alpine:v3.17 | Package registry (OSV) |
| opensuse:kubectl-cnpg | 1.29.2-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:postgresql10 | 10.18-1.3 · openSUSE:Tumbleweed | Package registry (OSV) |
| red hat:rh-postgresql95-postgresql | 0:9.5.14-1.el6 · Red Hat:rhel_software_collections:3::el6 | Package registry (OSV) |
| red hat:rh-postgresql95-postgresql-contrib | 0:9.5.14-1.el6 · Red Hat:rhel_software_collections:3::el6 | Package registry (OSV) |
| red hat:rh-postgresql95-postgresql-debuginfo | 0:9.5.14-1.el6 · Red Hat:rhel_software_collections:3::el6 | Package registry (OSV) |
| red hat:rh-postgresql95-postgresql-devel | 0:9.5.14-1.el6 · Red Hat:rhel_software_collections:3::el6 | Package registry (OSV) |
| red hat:rh-postgresql95-postgresql-docs | 0:9.5.14-1.el6 · Red Hat:rhel_software_collections:3::el6 | Package registry (OSV) |
| red hat:rh-postgresql95-postgresql-libs | 0:9.5.14-1.el6 · Red Hat:rhel_software_collections:3::el6 | Package registry (OSV) |
| red hat:rh-postgresql95-postgresql-plperl | 0:9.5.14-1.el6 · Red Hat:rhel_software_collections:3::el6 | Package registry (OSV) |
| red hat:rh-postgresql95-postgresql-plpython | 0:9.5.14-1.el6 · Red Hat:rhel_software_collections:3::el6 | Package registry (OSV) |
| red hat:rh-postgresql95-postgresql-pltcl | 0:9.5.14-1.el6 · Red Hat:rhel_software_collections:3::el6 | Package registry (OSV) |
| red hat:rh-postgresql95-postgresql-server | 0:9.5.14-1.el6 · Red Hat:rhel_software_collections:3::el6 | Package registry (OSV) |
| red hat:rh-postgresql95-postgresql-static | 0:9.5.14-1.el6 · Red Hat:rhel_software_collections:3::el6 | Package registry (OSV) |
| red hat:rh-postgresql95-postgresql-test | 0:9.5.14-1.el6 · Red Hat:rhel_software_collections:3::el6 | Package registry (OSV) |
| suse:postgresql94 | 9.4.17-0.23.16.1 · SUSE:Linux Enterprise Server 11 SP4 | Package registry (OSV) |
| suse:postgresql94-libs | 9.4.17-0.23.16.1 · SUSE:Linux Enterprise Software Development Kit 11 SP4 | Package registry (OSV) |
| suse:postgresql96 | 9.6.8-3.16.1 · SUSE:Linux Enterprise Desktop 12 SP2 | Package registry (OSV) |
| suse:postgresql96-libs | 9.6.8-3.16.1 · SUSE:Linux Enterprise Desktop 12 SP2 | Package 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.
| Source | Kind | Date |
|---|---|---|
| Proof-of-concept repository on GitHub | stars:0 | 2026-05-09 |
| Proof-of-concept repository on GitHub | stars:0 | 2026-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.
- Published
- First PoC+2990 d
- TodayNov 16, 2026+3181 d
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.
- TR-20-094 · Feb 18, 2020(Postgresql Sunucu Güvenlik Güncellemesi)
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
Weakness class (CWE)
CWE-20 · Improper Input ValidationCVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
- Buffer Overflow via Environment VariablesCAPEC-10likelihood: High · High
- Server Side Include (SSI) InjectionCAPEC-101likelihood: High · High
- Cross Zone ScriptingCAPEC-104likelihood: Medium · High
- Command Line Execution through SQL InjectionCAPEC-108likelihood: Low · Very High
- Object Relational Mapping InjectionCAPEC-109likelihood: Low · High
- SQL Injection through SOAP Parameter TamperingCAPEC-110likelihood: High · Very High
- Double EncodingCAPEC-120likelihood: Low · Medium
- Subverting Environment Variable ValuesCAPEC-13likelihood: High · Very High
ATT&CK techniques
- Obfuscated Files or InformationT1027
- Masquerading: Invalid Code SignatureT1036.001
- Steal Web Session CookieT1539
- Subvert Trust Controls: Code SigningT1553.002
- Impair Defenses:Impair Command History LoggingT1562.003
- Hijack Execution Flow:Dynamic Linker HijackingT1574.006
- Hijack Execution Flow:Path Interception by PATH Environment VariableT1574.007
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (6 more)Show less
Vendor advisories and official records. Exploit/PoC links are deliberately left out.