postgresql: privilege escalation via crafted database and role names
Published Dec 9, 2016
7.6
HIGHCVSS 3.0
EPSS 4.61%
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.
Affected products
No data.
Configuration 1
- 8.0
Configuration 2
- ≤ 9.1.22
- 9.2
- 9.2.1
- 9.2.2
- 9.2.3
- 9.2.4
- 9.2.5
- 9.2.6
- 9.2.7
- 9.2.8
- 9.2.9
- 9.2.10
- 9.2.11
- 9.2.12
- 9.2.13
- 9.2.14
- 9.2.15
- 9.2.16
- 9.2.17
- 9.3
- 9.3.1
- 9.3.2
- 9.3.3
- 9.3.4
- 9.3.5
- 9.3.6
- 9.3.7
- 9.3.8
- 9.3.9
- 9.3.10
- 9.3.11
- 9.3.12
- 9.3.13
- 9.4
- 9.4.1
- 9.4.2
- 9.4.3
- 9.4.4
- 9.4.5
- 9.4.6
- 9.4.7
- 9.4.8
- 9.5
- 9.5.1
- 9.5.2
- 9.5.3
No data.
Red Hat Enterprise Linux 7
postgresql-0:9.2.18-1.el7
Fixed · RHSA-2016:2606
Red Hat Satellite 5.7
rh-postgresql95-0:2.2-3.el6
Fixed · RHSA-2017:2425
Red Hat Satellite 5.7
rh-postgresql95-0:2.2-3.el6
Fixed · RHSA-2017:2425
Red Hat Satellite 5.7
rh-postgresql95-postgresql-0:9.5.7-2.el6
Fixed · RHSA-2017:2425
Red Hat Satellite 5.7
rh-postgresql95-postgresql-0:9.5.7-2.el6
Fixed · RHSA-2017:2425
Red Hat Satellite 5.7
spacewalk-backend-0:2.3.3-53.el6sat
Fixed · RHSA-2017:2425
Red Hat Satellite 5.7
spacewalk-backend-0:2.3.3-53.el6sat
Fixed · RHSA-2017:2425
Red Hat Satellite 5.7
spacewalk-postgresql-server-0:9.5-1.el6sat
Fixed · RHSA-2017:2425
Red Hat Satellite 5.7
spacewalk-postgresql-server-0:9.5-1.el6sat
Fixed · RHSA-2017:2425
Red Hat Satellite 5.7
spacewalk-setup-postgresql-0:2.3.0-27.el6sat
Fixed · RHSA-2017:2425
Red Hat Satellite 5.7
spacewalk-setup-postgresql-0:2.3.0-27.el6sat
Fixed · RHSA-2017:2425
Red Hat Satellite 5.7
spacewalk-utils-0:2.3.2-32.el6sat
Fixed · RHSA-2017:2425
Red Hat Satellite 5.7
spacewalk-utils-0:2.3.2-32.el6sat
Fixed · RHSA-2017:2425
Red Hat Satellite 5.7
spacewalk-web-0:2.3.2-35.el6sat
Fixed · RHSA-2017:2425
Red Hat Satellite 5.7
spacewalk-web-0:2.3.2-35.el6sat
Fixed · RHSA-2017:2425
Red Hat Software Collections for Red Hat Enterprise Linux 6
postgresql92-postgresql-0:9.2.18-1.el6
Fixed · RHSA-2016:1820
Red Hat Software Collections for Red Hat Enterprise Linux 6
rh-postgresql94-postgresql-0:9.4.9-1.el6
Fixed · RHSA-2016:1781
Red Hat Software Collections for Red Hat Enterprise Linux 6
rh-postgresql95-postgresql-0:9.5.4-1.el6
Fixed · RHSA-2016:1821
Red Hat Software Collections for Red Hat Enterprise Linux 6.6 EUS
postgresql92-postgresql-0:9.2.18-1.el6
Fixed · RHSA-2016:1820
Red Hat Software Collections for Red Hat Enterprise Linux 6.6 EUS
rh-postgresql94-postgresql-0:9.4.9-1.el6
Fixed · RHSA-2016:1781
Red Hat Software Collections for Red Hat Enterprise Linux 6.6 EUS
rh-postgresql95-postgresql-0:9.5.4-1.el6
Fixed · RHSA-2016:1821
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS
postgresql92-postgresql-0:9.2.18-1.el6
Fixed · RHSA-2016:1820
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS
rh-postgresql94-postgresql-0:9.4.9-1.el6
Fixed · RHSA-2016:1781
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS
rh-postgresql95-postgresql-0:9.5.4-1.el6
Fixed · RHSA-2016:1821
Red Hat Software Collections for Red Hat Enterprise Linux 7
postgresql92-postgresql-0:9.2.18-1.el7
Fixed · RHSA-2016:1820
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-postgresql94-postgresql-0:9.4.9-1.el7
Fixed · RHSA-2016:1781
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-postgresql95-postgresql-0:9.5.4-1.el7
Fixed · RHSA-2016:1821
Red Hat Software Collections for Red Hat Enterprise Linux 7.1 EUS
postgresql92-postgresql-0:9.2.18-1.el7
Fixed · RHSA-2016:1820
Red Hat Software Collections for Red Hat Enterprise Linux 7.1 EUS
rh-postgresql94-postgresql-0:9.4.9-1.el7
Fixed · RHSA-2016:1781
Red Hat Software Collections for Red Hat Enterprise Linux 7.1 EUS
rh-postgresql95-postgresql-0:9.5.4-1.el7
Fixed · RHSA-2016:1821
Red Hat Software Collections for Red Hat Enterprise Linux 7.2 EUS
postgresql92-postgresql-0:9.2.18-1.el7
Fixed · RHSA-2016:1820
Red Hat Software Collections for Red Hat Enterprise Linux 7.2 EUS
rh-postgresql94-postgresql-0:9.4.9-1.el7
Fixed · RHSA-2016:1781
Red Hat Software Collections for Red Hat Enterprise Linux 7.2 EUS
rh-postgresql95-postgresql-0:9.5.4-1.el7
Fixed · RHSA-2016:1821
CloudForms Management Engine 5
postgresql
Affected
CloudForms Management Engine 5
postgresql92-postgresql
Affected
Red Hat Enterprise Linux 5
postgresql
Will not fix
Red Hat Enterprise Linux 5
postgresql84
Will not fix
Red Hat Enterprise Linux 6
postgresql
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 7 | postgresql-0:9.2.18-1.el7 | Fixed | RHSA-2016:2606 |
| Red Hat Satellite 5.7 | rh-postgresql95-0:2.2-3.el6 | Fixed | RHSA-2017:2425 |
| Red Hat Satellite 5.7 | rh-postgresql95-0:2.2-3.el6 | Fixed | RHSA-2017:2425 |
| Red Hat Satellite 5.7 | rh-postgresql95-postgresql-0:9.5.7-2.el6 | Fixed | RHSA-2017:2425 |
| Red Hat Satellite 5.7 | rh-postgresql95-postgresql-0:9.5.7-2.el6 | Fixed | RHSA-2017:2425 |
| Red Hat Satellite 5.7 | spacewalk-backend-0:2.3.3-53.el6sat | Fixed | RHSA-2017:2425 |
| Red Hat Satellite 5.7 | spacewalk-backend-0:2.3.3-53.el6sat | Fixed | RHSA-2017:2425 |
| Red Hat Satellite 5.7 | spacewalk-postgresql-server-0:9.5-1.el6sat | Fixed | RHSA-2017:2425 |
| Red Hat Satellite 5.7 | spacewalk-postgresql-server-0:9.5-1.el6sat | Fixed | RHSA-2017:2425 |
| Red Hat Satellite 5.7 | spacewalk-setup-postgresql-0:2.3.0-27.el6sat | Fixed | RHSA-2017:2425 |
| Red Hat Satellite 5.7 | spacewalk-setup-postgresql-0:2.3.0-27.el6sat | Fixed | RHSA-2017:2425 |
| Red Hat Satellite 5.7 | spacewalk-utils-0:2.3.2-32.el6sat | Fixed | RHSA-2017:2425 |
| Red Hat Satellite 5.7 | spacewalk-utils-0:2.3.2-32.el6sat | Fixed | RHSA-2017:2425 |
| Red Hat Satellite 5.7 | spacewalk-web-0:2.3.2-35.el6sat | Fixed | RHSA-2017:2425 |
| Red Hat Satellite 5.7 | spacewalk-web-0:2.3.2-35.el6sat | Fixed | RHSA-2017:2425 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | postgresql92-postgresql-0:9.2.18-1.el6 | Fixed | RHSA-2016:1820 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | rh-postgresql94-postgresql-0:9.4.9-1.el6 | Fixed | RHSA-2016:1781 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | rh-postgresql95-postgresql-0:9.5.4-1.el6 | Fixed | RHSA-2016:1821 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.6 EUS | postgresql92-postgresql-0:9.2.18-1.el6 | Fixed | RHSA-2016:1820 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.6 EUS | rh-postgresql94-postgresql-0:9.4.9-1.el6 | Fixed | RHSA-2016:1781 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.6 EUS | rh-postgresql95-postgresql-0:9.5.4-1.el6 | Fixed | RHSA-2016:1821 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS | postgresql92-postgresql-0:9.2.18-1.el6 | Fixed | RHSA-2016:1820 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS | rh-postgresql94-postgresql-0:9.4.9-1.el6 | Fixed | RHSA-2016:1781 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS | rh-postgresql95-postgresql-0:9.5.4-1.el6 | Fixed | RHSA-2016:1821 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | postgresql92-postgresql-0:9.2.18-1.el7 | Fixed | RHSA-2016:1820 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-postgresql94-postgresql-0:9.4.9-1.el7 | Fixed | RHSA-2016:1781 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-postgresql95-postgresql-0:9.5.4-1.el7 | Fixed | RHSA-2016:1821 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.1 EUS | postgresql92-postgresql-0:9.2.18-1.el7 | Fixed | RHSA-2016:1820 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.1 EUS | rh-postgresql94-postgresql-0:9.4.9-1.el7 | Fixed | RHSA-2016:1781 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.1 EUS | rh-postgresql95-postgresql-0:9.5.4-1.el7 | Fixed | RHSA-2016:1821 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.2 EUS | postgresql92-postgresql-0:9.2.18-1.el7 | Fixed | RHSA-2016:1820 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.2 EUS | rh-postgresql94-postgresql-0:9.4.9-1.el7 | Fixed | RHSA-2016:1781 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.2 EUS | rh-postgresql95-postgresql-0:9.5.4-1.el7 | Fixed | RHSA-2016:1821 |
| CloudForms Management Engine 5 | postgresql | Affected | n/a |
| CloudForms Management Engine 5 | postgresql92-postgresql | Affected | n/a |
| Red Hat Enterprise Linux 5 | postgresql | Will not fix | n/a |
| Red Hat Enterprise Linux 5 | postgresql84 | Will not fix | n/a |
| Red Hat Enterprise Linux 6 | postgresql | Will not fix | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
1 other source (Red Hat) ▾
CVSS:3.0/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H
AV:N/AC:H/Au:S/C:P/I:P/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (11 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 4.61% (0.04612) | 91.39th | v5 (v2026.06.15) |
| Jun 15, 2026 | 4.65% (0.04650) | 90.53th | v5 (v2026.06.15) |
| Mar 30, 2025 | 1.67% (0.01671) | 80.43th | v4 (v2025.03.14) |
| Mar 29, 2025 | 4.11% (0.04114) | 80.68th | v4 (v2025.03.14) |
| Mar 17, 2025 | 1.96% (0.01956) | 82.27th | v4 (v2025.03.14) |
| Dec 17, 2024 | 2.11% (0.02112) | 88.86th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.63% (0.00625) | 78.29th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.63% (0.00625) | 75.67th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.97% (0.01968) | 78.68th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.97% (0.01968) | 76.79th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.97% (0.01968) | 55.87th | v2 (v2022.01.01) |
References (19)
- http://rhn.redhat.com/errata/RHSA-2016-1781.html vendor-advisoryx_refsource_REDHAT
- http://rhn.redhat.com/errata/RHSA-2016-1820.html vendor-advisoryx_refsource_REDHAT
- http://rhn.redhat.com/errata/RHSA-2016-1821.html vendor-advisoryx_refsource_REDHAT
- http://rhn.redhat.com/errata/RHSA-2016-2606.html vendor-advisoryx_refsource_REDHAT
- http://www.debian.org/security/2016/dsa-3646 vendor-advisoryx_refsource_DEBIANThird Party Advisory
- http://www.securityfocus.com/bid/92435 vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry
- http://www.securitytracker.com/id/1036617 vdb-entryx_refsource_SECTRACKThird Party AdvisoryVDB Entry
- https://access.redhat.com/errata/RHSA-2017:2425 vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2016-5424 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1364002 Issue Tracking
- https://nvd.nist.gov/vuln/detail/CVE-2016-5424
- https://security.gentoo.org/glsa/201701-33 vendor-advisoryx_refsource_GENTOO
- https://www.cve.org/CVERecord?id=CVE-2016-5424
- https://www.postgresql.org/about/news/1688/ x_refsource_CONFIRMPatchThird Party AdvisoryVDB Entry
- https://www.postgresql.org/docs/current/static/release-9-1-23.html x_refsource_CONFIRMRelease NotesVendor Advisory
- https://www.postgresql.org/docs/current/static/release-9-2-18.html x_refsource_CONFIRMRelease NotesVendor Advisory
- https://www.postgresql.org/docs/current/static/release-9-3-14.html x_refsource_CONFIRMRelease NotesVendor Advisory
- https://www.postgresql.org/docs/current/static/release-9-4-9.html x_refsource_CONFIRMRelease NotesVendor Advisory
- https://www.postgresql.org/docs/current/static/release-9-5-4.html x_refsource_CONFIRMRelease NotesVendor Advisory
Change history (0)
No recorded changes yet.