cve.bz

CVE-2016-5424 Code Injection

7.1 highEPSS 4.6%Fix available

High (7.1). EPSS 4.6% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.0

7.1 high
CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
EPSS
4.6% (unchanged from 4.6% a week ago; 4.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 92nd percentile. Scored 2026-11-23. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-94 Improper Control of Generation of Code (Code Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2016-5424 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2016-5424?via=ask-ai-copy and https://cve.bz/cve/CVE-2016-5424?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2016-5424 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
debian:debian_linux8.0
postgresql:postgresqlthrough 9.1.22
postgresql:postgresql9.2
postgresql:postgresql9.2.1
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.2.10
postgresql:postgresql9.2.11
postgresql:postgresql9.2.12
postgresql:postgresql9.2.13
postgresql:postgresql9.2.14
postgresql:postgresql9.2.15
postgresql:postgresql9.2.16
postgresql:postgresql9.2.17
postgresql:postgresql9.3
postgresql:postgresql9.3.1
postgresql:postgresql9.3.2
postgresql:postgresql9.3.3
postgresql:postgresql9.3.4
postgresql:postgresql9.3.5
postgresql:postgresql9.3.6
postgresql:postgresql9.3.7
postgresql:postgresql9.3.8
postgresql:postgresql9.3.9
postgresql:postgresql9.3.10
postgresql:postgresql9.3.11
postgresql:postgresql9.3.12
postgresql:postgresql9.3.13
postgresql:postgresql9.4
postgresql:postgresql9.4.1
postgresql:postgresql9.4.2
postgresql:postgresql9.4.3
postgresql:postgresql9.4.4
postgresql:postgresql9.4.5
postgresql:postgresql9.4.6
postgresql:postgresql9.4.7
postgresql:postgresql9.4.8
postgresql:postgresql9.5
postgresql:postgresql9.5.1
postgresql:postgresql9.5.2
postgresql:postgresql9.5.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian7postgresql-9.19.1.23-0+deb7u1DLA-592-1
Debian8postgresql-9.49.4.9-0+deb8u1DSA-3646-1
Ubuntu14.04:LTSpostgresql-9.19.1.23-0ubuntu0.14.04UBUNTU-CVE-2016-5424
Ubuntu14.04:LTSpostgresql-9.39.3.14-0ubuntu0.14.04UBUNTU-CVE-2016-5424 USN-3066-1
Ubuntu16.04:LTSpostgresql-9.59.5.4-0ubuntu0.16.04UBUNTU-CVE-2016-5424 USN-3066-1
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 morepostgresql, postgresql-docs, postgresql-libs and 9 more0:9.2.18-1.el7RHSA-2016:2606
Red Hatnetwork_satellite:5.7::el6spacewalk-backend, spacewalk-backend-app, spacewalk-backend-iss and 14 more0:2.3.3-53.el6satRHSA-2017:2425
Red Hatnetwork_satellite:5.7::el6spacewalk-pxt, spacewalk-web, spacewalk-base and 6 more0:2.3.2-35.el6satRHSA-2017:2425
Red Hatnetwork_satellite:5.7::el6spacewalk-utils0:2.3.2-32.el6satRHSA-2017:2425
Red Hatnetwork_satellite:5.7::el6, network_satellite_managed_db:5.7::el6rh-postgresql95-postgresql, rh-postgresql95-postgresql-libs, rh-postgresql95-postgresql-pltcl and 3 more0:9.5.7-2.el6RHSA-2017:2425
Red Hatnetwork_satellite:5.7::el6, network_satellite_managed_db:5.7::el6rh-postgresql95-runtime0:2.2-3.el6RHSA-2017:2425
Red Hatnetwork_satellite:5.7::el6, network_satellite_managed_db:5.7::el6spacewalk-postgresql-server0:9.5-1.el6satRHSA-2017:2425
Red Hatnetwork_satellite:5.7::el6, network_satellite_managed_db:5.7::el6spacewalk-setup-postgresql0:2.3.0-27.el6satRHSA-2017:2425
Red Hatnetwork_satellite_managed_db:5.7::el6spacewalk-web, spacewalk-dobby, spacewalk-base-minimal0:2.3.2-35.el6satRHSA-2017:2425
Red Hatrhel_software_collections:2::el6postgresql92-postgresql, postgresql92-postgresql-docs, postgresql92-postgresql-libs and 9 more0:9.2.18-1.el6RHSA-2016:1820
Red Hatrhel_software_collections:2::el6rh-postgresql94-postgresql, rh-postgresql94-postgresql-docs, rh-postgresql94-postgresql-libs and 10 more0:9.4.9-1.el6RHSA-2016:1781
Red Hatrhel_software_collections:2::el6rh-postgresql95-postgresql, rh-postgresql95-postgresql-docs, rh-postgresql95-postgresql-libs and 9 more0:9.5.4-1.el6RHSA-2016:1821
3 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise Desktop 12 SP1, Linux Enterprise Server 12 SP1, Linux Enterprise Server for SAP Applications 12 SP1postgresql94, postgresql94-libs9.4.9-14.1SUSE-SU-2016:2415-1
SUSELinux Enterprise Server 11 SP4, Linux Enterprise Server for SAP Applications 11 SP4postgresql94, postgresql94-libs9.4.9-0.19.1SUSE-SU-2016:2418-1
SUSELinux Enterprise Server 12-LTSS, Linux Enterprise Server for SAP Applications 12postgresql939.3.14-19.2SUSE-SU-2016:2414-1
SUSELinux Enterprise Software Development Kit 11 SP4postgresql94-libs9.4.9-0.19.1SUSE-SU-2016:2418-1
SUSELinux Enterprise Software Development Kit 12 SP1postgresql94-libs9.4.9-14.1SUSE-SU-2016:2415-1
SUSEManager 2.1postgresql949.4.9-0.19.1SUSE-SU-2016:2418-1
openSUSETumbleweedpostgresql939.3.15-1.1openSUSE-SU-2024:10256-1
openSUSETumbleweedpostgresql949.4.10-1.1openSUSE-SU-2024:10030-1
openSUSETumbleweedpostgresql959.5.4-1.2openSUSE-SU-2024:10273-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7postgresql-0:9.2.18-1.el7Fixed 2016-11-03RHSA-2016:2606
Red Hat Satellite 5.7rh-postgresql95-0:2.2-3.el6Fixed 2017-08-07RHSA-2017:2425
Red Hat Satellite 5.7rh-postgresql95-postgresql-0:9.5.7-2.el6Fixed 2017-08-07RHSA-2017:2425
Red Hat Satellite 5.7spacewalk-backend-0:2.3.3-53.el6satFixed 2017-08-07RHSA-2017:2425
Red Hat Satellite 5.7spacewalk-postgresql-server-0:9.5-1.el6satFixed 2017-08-07RHSA-2017:2425
Red Hat Satellite 5.7spacewalk-setup-postgresql-0:2.3.0-27.el6satFixed 2017-08-07RHSA-2017:2425
Red Hat Satellite 5.7spacewalk-utils-0:2.3.2-32.el6satFixed 2017-08-07RHSA-2017:2425
Red Hat Satellite 5.7spacewalk-web-0:2.3.2-35.el6satFixed 2017-08-07RHSA-2017:2425
Red Hat Software Collections for Red Hat Enterprise Linux 6rh-postgresql94-postgresql-0:9.4.9-1.el6Fixed 2016-08-31RHSA-2016:1781
Red Hat Software Collections for Red Hat Enterprise Linux 6postgresql92-postgresql-0:9.2.18-1.el6Fixed 2016-09-07RHSA-2016:1820
Red Hat Software Collections for Red Hat Enterprise Linux 6rh-postgresql95-postgresql-0:9.5.4-1.el6Fixed 2016-09-07RHSA-2016:1821
Red Hat Software Collections for Red Hat Enterprise Linux 6.6 EUSrh-postgresql94-postgresql-0:9.4.9-1.el6Fixed 2016-08-31RHSA-2016:1781
Red Hat Software Collections for Red Hat Enterprise Linux 6.6 EUSpostgresql92-postgresql-0:9.2.18-1.el6Fixed 2016-09-07RHSA-2016:1820
Red Hat Software Collections for Red Hat Enterprise Linux 6.6 EUSrh-postgresql95-postgresql-0:9.5.4-1.el6Fixed 2016-09-07RHSA-2016:1821
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUSrh-postgresql94-postgresql-0:9.4.9-1.el6Fixed 2016-08-31RHSA-2016:1781
CloudForms Management Engine 5postgresqlAffected
CloudForms Management Engine 5postgresql92-postgresqlAffected
Red Hat Enterprise Linux 5postgresqlWill not fix
Red Hat Enterprise Linux 5postgresql84Will not fix
Red Hat Enterprise Linux 6postgresqlWill not fix
11 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2016-5424.

Attack patterns (CAPEC)

  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-242 Code Injection Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON