postgresql: CASE/WHEN with inlining can cause untrusted pointer dereference
Published Dec 9, 2016
8.5
HIGHCVSS 3.0
EPSS 5.96%
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 allow remote authenticated users to cause a denial of service (NULL pointer dereference and server crash), obtain sensitive memory information, or possibly execute arbitrary code via (1) a CASE expression within the test value subexpression of another CASE or (2) inlining of an SQL function that implements the equality operator used for a CASE expression involving values of different types.
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:L/PR:L/UI:N/S:U/C:L/I:H/A:H
1 other source (Red Hat) ▾
CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
AV:N/AC:L/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 (12 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 5.96% (0.05962) | 93.07th | v5 (v2026.06.15) |
| Jun 15, 2026 | 6.01% (0.06011) | 92.38th | v5 (v2026.06.15) |
| Mar 30, 2025 | 3.40% (0.03395) | 86.27th | v4 (v2025.03.14) |
| Mar 29, 2025 | 8.77% (0.08767) | 87.31th | v4 (v2025.03.14) |
| Mar 17, 2025 | 4.06% (0.04065) | 87.78th | v4 (v2025.03.14) |
| Dec 12, 2024 | 1.03% (0.01033) | 84.55th | v3 (v2023.03.01) |
| Mar 11, 2024 | 1.03% (0.01033) | 83.48th | v3 (v2023.03.01) |
| Mar 5, 2024 | 0.90% (0.00898) | 82.24th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.90% (0.00898) | 80.24th | v3 (v2023.03.01) |
| Mar 6, 2023 | 6.05% (0.06053) | 90.58th | v2 (v2022.01.01) |
| Apr 1, 2022 | 6.05% (0.06053) | 89.69th | v2 (v2022.01.01) |
| Feb 4, 2022 | 6.05% (0.06053) | 77.54th | 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/92433 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-5423 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1364001 x_refsource_CONFIRMIssue TrackingThird Party AdvisoryVDB Entry
- https://nvd.nist.gov/vuln/detail/CVE-2016-5423
- https://security.gentoo.org/glsa/201701-33 vendor-advisoryx_refsource_GENTOO
- https://www.cve.org/CVERecord?id=CVE-2016-5423
- https://www.postgresql.org/about/news/1688/ x_refsource_CONFIRMPatchVendor Advisory
- 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.