CVE-2016-5423: 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…
Noroxi assessment
Priority: Monitor (action score 35/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 5.9% (FIRST EPSS); higher than 93.4% of all records.
- Anyone who can reach it over the internet can trigger it. A low-privileged account is enough. No user action is required. No special conditions are required; it is repeatable.
- Fixed version: postgresql-9.1 (Debian:7) 9.1.23-0+deb7u1; postgresql-9.4 (Debian:8) 9.4.9-0+deb8u1; postgresql (Red Hat:enterprise_linux:7::client) 0:9.2.18-1.el7.
Low priority for now. Upgrade to postgresql-9.1 (Debian:7) 9.1.23-0+deb7u1; postgresql-9.4 (Debian:8) 9.4.9-0+deb8u1; postgresql (Red Hat:enterprise_linux:7::client) 0:9.2.18-1.el7 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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.
- Published
- Dec 9, 2016
- Updated
- Jun 16, 2026
- EPSS
- 5.9% · 93th percentile
- CWE
- CWE-476
Report tools
Action score
35
Low priority for now.
- CVSS
- 33 / 40 · 8.3 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 2 / 30 · 5.9%
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is PostgreSQL on your server exposed to the internet?Run a port scan
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| postgresql | postgresql | cpe:2.3:a:postgresql:postgresql |
| debian | debian linux | cpe:2.3:o:debian:debian_linux |
Using postgresql? Add it to your stack and be the first to know about CVEs like this one. (PostgreSQL)
Is PostgreSQL on your server exposed to the internet?
The free port scanner finds the open ports on your server and matches the service versions it can read against known vulnerabilities. No account needed.
Run a port scanAffected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- postgresql postgresqlup to 9.1.22 inclusive
- postgresql postgresql9.2
- postgresql postgresql9.2.1
- postgresql postgresql9.2.10
- postgresql postgresql9.2.11
- postgresql postgresql9.2.12
- postgresql postgresql9.2.13
- postgresql postgresql9.2.14
+12 more rows
- postgresql postgresql9.2.15
- postgresql postgresql9.2.16
- postgresql postgresql9.2.17
- postgresql postgresql9.2.2
- postgresql postgresql9.2.3
- postgresql postgresql9.2.4
- postgresql postgresql9.2.5
- postgresql postgresql9.2.6
- postgresql postgresql9.2.7
- postgresql postgresql9.2.8
- postgresql postgresql9.2.9
- postgresql postgresql9.3
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:7 | postgresql-9.1 | before 9.1.23-0+deb7u1 | 9.1.23-0+deb7u1 |
| Debian:8 | postgresql-9.4 | before 9.4.9-0+deb8u1 | 9.4.9-0+deb8u1 |
| Red Hat:enterprise_linux:7::client | postgresql | before 0:9.2.18-1.el7 | 0:9.2.18-1.el7 |
| Red Hat:enterprise_linux:7::client | postgresql-contrib | before 0:9.2.18-1.el7 | 0:9.2.18-1.el7 |
| Red Hat:enterprise_linux:7::client | postgresql-debuginfo | before 0:9.2.18-1.el7 | 0:9.2.18-1.el7 |
| Red Hat:enterprise_linux:7::client | postgresql-devel | before 0:9.2.18-1.el7 | 0:9.2.18-1.el7 |
| Red Hat:enterprise_linux:7::client | postgresql-docs | before 0:9.2.18-1.el7 | 0:9.2.18-1.el7 |
| Red Hat:enterprise_linux:7::client | postgresql-libs | before 0:9.2.18-1.el7 | 0:9.2.18-1.el7 |
| Red Hat:enterprise_linux:7::client | postgresql-plperl | before 0:9.2.18-1.el7 | 0:9.2.18-1.el7 |
| Red Hat:enterprise_linux:7::client | postgresql-plpython | before 0:9.2.18-1.el7 | 0:9.2.18-1.el7 |
| Red Hat:enterprise_linux:7::client | postgresql-pltcl | before 0:9.2.18-1.el7 | 0:9.2.18-1.el7 |
| Red Hat:enterprise_linux:7::client | postgresql-server | before 0:9.2.18-1.el7 | 0:9.2.18-1.el7 |
| Red Hat:enterprise_linux:7::client | postgresql-test | before 0:9.2.18-1.el7 | 0:9.2.18-1.el7 |
| Red Hat:enterprise_linux:7::client | postgresql-upgrade | before 0:9.2.18-1.el7 | 0:9.2.18-1.el7 |
| Red Hat:network_satellite_managed_db:5.7::el6 | rh-postgresql95-postgresql | before 0:9.5.7-2.el6 | 0:9.5.7-2.el6 |
| Red Hat:network_satellite_managed_db:5.7::el6 | rh-postgresql95-postgresql-contrib | before 0:9.5.7-2.el6 | 0:9.5.7-2.el6 |
| Red Hat:network_satellite_managed_db:5.7::el6 | rh-postgresql95-postgresql-debuginfo | before 0:9.5.7-2.el6 | 0:9.5.7-2.el6 |
| Red Hat:network_satellite_managed_db:5.7::el6 | rh-postgresql95-postgresql-libs | before 0:9.5.7-2.el6 | 0:9.5.7-2.el6 |
| Red Hat:network_satellite_managed_db:5.7::el6 | rh-postgresql95-postgresql-pltcl | before 0:9.5.7-2.el6 | 0:9.5.7-2.el6 |
| Red Hat:network_satellite_managed_db:5.7::el6 | rh-postgresql95-postgresql-server | before 0:9.5.7-2.el6 | 0:9.5.7-2.el6 |
| Red Hat:network_satellite_managed_db:5.7::el6 | rh-postgresql95-runtime | before 0:2.2-3.el6 | 0:2.2-3.el6 |
| Red Hat:network_satellite_managed_db:5.7::el6 | spacewalk-base-minimal | before 0:2.3.2-35.el6sat | 0:2.3.2-35.el6sat |
| Red Hat:network_satellite_managed_db:5.7::el6 | spacewalk-dobby | before 0:2.3.2-35.el6sat | 0:2.3.2-35.el6sat |
| Red Hat:network_satellite_managed_db:5.7::el6 | spacewalk-postgresql-server | before 0:9.5-1.el6sat | 0:9.5-1.el6sat |
+96
Same product
postgresql: all recordsOther highest-scoring records for the same primary product.
- CVE-2017-7546PostgreSQL versions before 9.2.22, 9.3.18, 9.4.13, 9.5.8 and 9.6.4 are vulnerable to incorrect authentication flaw allowing remote…57Plan
- CVE-2019-9193In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and users in the 'pg_execute_server_program' group to…55Plan
- CVE-2020-25695A flaw was found in PostgreSQL versions before 13.1, before 12.5, before 11.10, before 10.15, before 9.6.20 and before 9.5.24.49Plan
Published before and after this one in the same product
- ← EarlierCVE-2016-2193Apr 11, 2016 · PostgreSQL before 9.5.x before 9.5.2 does not properly maintain row-security status in cached plans, which might allow attackers to bypass…31Monitor
- ← EarlierCVE-2016-3065Apr 11, 2016 · The (1) brin_page_type and (2) brin_metapage_info functions in the pageinspect extension in PostgreSQL before 9.5.x before 9.5.2 allows…37Monitor
- Later →CVE-2016-5424Dec 9, 2016 · 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…29Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| debian:postgresql-9.1 | 9.1.23-0+deb7u1 · Debian:7 | Package registry (OSV) |
| debian:postgresql-9.4 | 9.4.9-0+deb8u1 · Debian:8 | Package registry (OSV) |
| red hat:rh-postgresql94-postgresql | 0:9.4.9-1.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:rh-postgresql94-postgresql-contrib | 0:9.4.9-1.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:rh-postgresql94-postgresql-debuginfo | 0:9.4.9-1.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:rh-postgresql94-postgresql-devel | 0:9.4.9-1.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:rh-postgresql94-postgresql-docs | 0:9.4.9-1.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:rh-postgresql94-postgresql-libs | 0:9.4.9-1.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:rh-postgresql94-postgresql-plperl | 0:9.4.9-1.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:rh-postgresql94-postgresql-plpython | 0:9.4.9-1.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:rh-postgresql94-postgresql-pltcl | 0:9.4.9-1.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:rh-postgresql94-postgresql-server | 0:9.4.9-1.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:rh-postgresql94-postgresql-static | 0:9.4.9-1.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:rh-postgresql94-postgresql-test | 0:9.4.9-1.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| suse:postgresql93 | 9.3.14-19.2 · SUSE:Linux Enterprise Server for SAP Applications 12 | Package registry (OSV) |
| suse:postgresql94 | 9.4.9-14.1 · SUSE:Linux Enterprise Desktop 12 SP1 | Package registry (OSV) |
| suse:postgresql94-libs | 9.4.9-14.1 · SUSE:Linux Enterprise Desktop 12 SP1 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · variant or chain candidate · public bounty program.
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- A low-privileged account is enough.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- low · data can be read
- Integrity
- high · data or configuration can be modified
- Availability
- high · the service can be disrupted
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- Low
- Integrity impact
- High
- Availability impact
- High
Weakness class (CWE)
CWE-476 · NULL Pointer DereferenceCVSS vector
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
MITRE has no CAPEC/ATT&CK mapping for this CWE.
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (15 more)Show less
- rhn.redhat.com/errata/RHSA-2016-1820.html
- rhn.redhat.com/errata/RHSA-2016-1821.html
- rhn.redhat.com/errata/RHSA-2016-2606.html
- www.debian.org/security/2016/dsa-3646
- www.securityfocus.com/bid/92433
- www.securitytracker.com/id/1036617
- access.redhat.com/errata/RHSA-2017:2425
- bugzilla.redhat.com/show_bug.cgi?id=1364001
- security.gentoo.org/glsa/201701-33
- www.postgresql.org/about/news/1688/
- www.postgresql.org/docs/current/static/release-9-1-23.html
- www.postgresql.org/docs/current/static/release-9-2-18.html
- www.postgresql.org/docs/current/static/release-9-3-14.html
- www.postgresql.org/docs/current/static/release-9-4-9.html
- www.postgresql.org/docs/current/static/release-9-5-4.html
Vendor advisories and official records. Exploit/PoC links are deliberately left out.