CVE-2016-5424: PostgreSQL - Privilege Escalation
- Cve: CVE-2016-5424
- Name: PostgreSQL - Privilege Escalation
- Description: PostgreSQL before 9.1.23, 9.2.x before 9.2.18, 9.3.x before 9.3.14, 9.4.x before 9.4.9, and 9.5.x before 9.5.4 might allow remote authenticated users with the CREATEDB or CREATEROLE role to gain superuser privileges via a (1) " (double quote), (2) \ (backslash), (3) carriage return, or (4) newline character in a (a) database or (b) role name that is mishandled during an administrative operation.
- Impact: Authenticated users can escalate privileges to superuser, potentially compromising entire database system.
- Remediation: Update to PostgreSQL 9.1.23, 9.2.18, 9.3.14, 9.4.9, or 9.5.4 or later versions.
- Vulnerability type: broken_access_control
- Vulnerability impact: privilege_escalation
- Requirement type: logged_in
- Requirements: Attacker must be authenticated with CREATEDB or CREATEROLE roles
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.1
- Cvss vector: CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
- Epss score: 0.04612
- Epss percentile: 0.91903
- Assignee: [email protected]
- Published at: 2016-12-09T23:59:02Z
- Age in days: 3637
- Modified at: 2026-06-17T00:49:23Z
- Patch available: yes
- References total: 15
- Products total: 2
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2016-5424
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-94 | Improper Control of Generation of Code |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://www.postgresql.org/about/news/1688/ | Patch, Third Party Advisory, VDB Entry |
| https://www.postgresql.org/docs/current/static/release-9-1-23.html | Release Notes, Vendor Advisory |
| https://www.postgresql.org/docs/current/static/release-9-2-18.html | Release Notes, Vendor Advisory |
| https://www.postgresql.org/docs/current/static/release-9-3-14.html | Release Notes, Vendor Advisory |
| https://www.postgresql.org/docs/current/static/release-9-4-9.html | Release Notes, Vendor Advisory |
| https://www.postgresql.org/docs/current/static/release-9-5-4.html | Release Notes, Vendor Advisory |
| http://www.debian.org/security/2016/dsa-3646 | Third Party Advisory |
| http://www.securityfocus.com/bid/92435 | Third Party Advisory, VDB Entry |
| http://www.securitytracker.com/id/1036617 | Third Party Advisory, VDB Entry |
| http://rhn.redhat.com/errata/RHSA-2016-1781.html |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| postgresql:postgresql | = 9.5.3, = 9.5.2, = 9.5.1, = 9.5, = 9.4.8, = 9.4.7, = 9.4.6, = 9.4.5, = 9.4.4, = 9.4.3, = 9.4.2, = 9.4.1, = 9.4, = 9.3.13, = 9.3.12, = 9.3.11, = 9.3.10, = 9.3.9, = 9.3.8, = 9.3.7, = 9.3.6, = 9.3.5, = 9.3.4, = 9.3.3, = 9.3.2, = 9.3.1, = 9.3, = 9.2.17, = 9.2.16, = 9.2.15, = 9.2.14, = 9.2.13, = 9.2.12, = 9.2.11, = 9.2.10, = 9.2.9, = 9.2.8, = 9.2.7, = 9.2.6, = 9.2.5, = 9.2.4, = 9.2.3, = 9.2.2, = 9.2.1, = 9.2, <= 9.1.22 | no | nvd | /v1/products/postgresql/postgresql |
| debian:debian_linux | = 8.0 | no | nvd | /v1/products/debian/debian_linux |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Authentication required: yes
- Exposed hosts: 4706702
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports