{"id":"CVE-2018-1058","published":"2018-03-02T15:00:00Z","modified":"2024-09-17T03:22:50Z","title":"A flaw was found in the way Postgresql allowed a user to modify the behavior of a query for other users","vendor":"The PostgreSQL Global Development Group","product":"postgresql","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.13098,"percentile":0.96445,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1547044","tags":["x_refsource_CONFIRM"]},{"url":"https://usn.ubuntu.com/3589-1/","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"http://www.securityfocus.com/bid/103221","tags":["vdb-entry","x_refsource_BID"]},{"url":"https://www.postgresql.org/about/news/1834/","tags":["x_refsource_CONFIRM"]},{"url":"https://access.redhat.com/errata/RHSA-2018:2511","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2018:2566","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2018:3816","tags":["vendor-advisory","x_refsource_REDHAT"]}],"priority":{"score":24.3,"factors":[{"name":"EPSS percentile","points":19.29},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"pocGithub":{"count":1,"skipped":1,"earliest":"2026-08-19","earliestUrl":"https://github.com/mthamil107/DB_Audit_Research","repos":[{"name":"mthamil107/DB_Audit_Research","url":"https://github.com/mthamil107/DB_Audit_Research","stars":0,"created":"2026-08-19"}]},"first":{"date":"2026-08-19","source":"PoC-in-GitHub","url":"https://github.com/mthamil107/DB_Audit_Research"},"provenance":"source"},"vendorSlug":"the-postgresql-global-development-group","affectedVersions":[{"vendor":"The PostgreSQL Global Development Group","product":"postgresql","versions":["9.3 - 10"]}],"summary":{"text":"A flaw in PostgreSQL's handling of queries allows one user to alter the behavior of a query run by other users.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:47:10Z"},"euvd":{"id":"EUVD-2018-11711","exploited":false,"provenance":"source"},"lineage":{"children":[{"from":"CVE-2018-1058","to":"CVE-2020-14349","relation":"related","confidence":"low","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"related","quote":"An authenticated attacker could use this flaw in an attack similar to CVE-2018-1058, in order to execute arbitrary SQL command in the context of the user used for replication.","from":"CVE.org","in":"CVE-2020-14349"}]}]}}