CVE-2017-15099

MEDIUM

PostgreSQL 9.5.x < 9.5.10, 9.6.x < 9.6.6, 10.x < 10.1 - Unauthorized Data Exposure via INSERT ON CONFLICT DO UPDATE

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2017-15099. PoCs published by ToontjeM.

AI-analyzed exploit summary This repository contains a Vagrant-based proof-of-concept for CVE-2017-15099, demonstrating a PostgreSQL JDBC driver vulnerability leading to RCE. It includes scripts to provision vulnerable and non-vulnerable PostgreSQL instances, as well as an attacker node with Metasploit.

Description

INSERT ... ON CONFLICT DO UPDATE commands in PostgreSQL 10.x before 10.1, 9.6.x before 9.6.6, and 9.5.x before 9.5.10 disclose table contents that the invoker lacks privilege to read. These exploits affect only tables where the attacker lacks full read access but has both INSERT and UPDATE privileges. Exploits bypass row level security policies and lack of SELECT privilege.

Exploits (1)

nomisec WORKING POC
by ToontjeM · poc
https://github.com/ToontjeM/CVE-2017-15099

This repository contains a Vagrant-based proof-of-concept for CVE-2017-15099, demonstrating a PostgreSQL JDBC driver vulnerability leading to RCE. It includes scripts to provision vulnerable and non-vulnerable PostgreSQL instances, as well as an attacker node with Metasploit.

Classification
Working Poc 90%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: PostgreSQL JDBC driver versions [9.4.1208,42.2.25) [42.3.0,42.3.2)
No auth needed
Prerequisites: VirtualBox · Vagrant · Vagrant Hosts plugin · Vagrant Reload plugin
mistral-large-3 · analyzed Feb 16, 2026 Full analysis →

References (7)

Core 7
Core References
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/101781
Vendor Advisory vendor-advisory x_refsource_redhat
https://access.redhat.com/errata/RHSA-2018:2511
Issue Tracking, Vendor Advisory x_refsource_misc
https://www.postgresql.org/support/security/
Third Party Advisory, VDB Entry vdb-entry x_refsource_sectrack
http://www.securitytracker.com/id/1039752
Issue Tracking, Vendor Advisory x_refsource_confirm
https://www.postgresql.org/about/news/1801/
Vendor Advisory vendor-advisory x_refsource_redhat
https://access.redhat.com/errata/RHSA-2018:2566
Issue Tracking, Third Party Advisory vendor-advisory x_refsource_debian
https://www.debian.org/security/2017/dsa-4028

Scores

CVSS v3 6.5
EPSS 0.0632
EPSS Percentile 92.8%
Attack Vector NETWORK
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Details

CWE
CWE-200
Status published
Products (19)
debian/debian_linux 9.0
postgresql/postgresql 9.5
postgresql/postgresql 9.5.1
postgresql/postgresql 9.5.2
postgresql/postgresql 9.5.3
postgresql/postgresql 9.5.4
postgresql/postgresql 9.5.5
postgresql/postgresql 9.5.6
postgresql/postgresql 9.5.7
postgresql/postgresql 9.5.8
... and 9 more
Published Nov 22, 2017
Tracked Since Feb 18, 2026