Cloudanix VulnDB

CVE-2017-7546

Critical · 9.8

CVSS

9.8

EPSS

61.6%

Published

Aug 16, 2017

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Attend

Older versions of PostgreSQL let anyone connect to certain database accounts that were never given a password, allowing unauthorized access to stored information.

Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Trivial
Impact
Full Compromise
Component
Network Service
Class
Authentication Bypass
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Incorrect authentication logic permits remote connections to succeed against database accounts configured with empty passwords, bypassing intended credential checks.

Why it matters to the business

Attackers can directly access and modify database contents, exposing sensitive information, disrupting operations, and risking compliance violations in environments still running unpatched PostgreSQL.

How an attack unfolds

An attacker establishes a network connection to an exposed PostgreSQL instance and supplies an empty password string for any account that lacks a password hash; the flawed authentication path accepts the connection without enforcing proper verification, granting full database privileges.

How to fix it

Upgrade PostgreSQL to at least 9.2.22, 9.3.18, 9.4.13, 9.5.8 or 9.6.4. After upgrade, enforce password policies on all accounts and restrict network access to trusted sources only.

How to confirm the fix worked

Verify running version meets or exceeds the listed fixed releases, attempt connection with empty passwords from a test client to confirm rejection, and review pg_hba.conf for appropriate authentication methods.

Typical attack path

  1. Scan for publicly reachable PostgreSQL ports
  2. Identify accounts without password hashes
  3. Connect using empty password credentials
  4. Execute arbitrary SQL or extract data

How to detect it

Review PostgreSQL server logs for successful authentication records that show empty or null password fields, unexpected remote client addresses, or connections to accounts known to have no password set.

  • authentication success with empty password
  • FATAL: no PostgreSQL user name specified in startup packet
  • connection authorized: user=.* password=\(null\)

What your security team should do

  • Immediately patch all PostgreSQL instances to the fixed versions
  • Audit existing user accounts and set strong passwords where empty
  • Limit PostgreSQL exposure to private networks or VPNs
  • Enable detailed logging of authentication events for ongoing monitoring

The record

PostgreSQL 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 attackers to gain access to database accounts with an empty password.

Affected packages

Ecosystem Package Introduced Fixed
Alpine:v3.10 postgresql 0 9.6.4-r0
Alpine:v3.11 postgresql 0 9.6.4-r0
Alpine:v3.12 postgresql 0 9.6.4-r0
Alpine:v3.13 postgresql 0 9.6.4-r0
Alpine:v3.14 postgresql 0 9.6.4-r0
Alpine:v3.15 postgresql14 0 9.6.4-r0
Alpine:v3.16 postgresql14 0 9.6.4-r0
Alpine:v3.17 postgresql14 0 9.6.4-r0
Alpine:v3.17 postgresql15 0 9.6.4-r0
Alpine:v3.18 postgresql14 0 9.6.4-r0
Alpine:v3.18 postgresql15 0 9.6.4-r0
Alpine:v3.19 postgresql15 0 9.6.4-r0
Alpine:v3.20 postgresql15 0 9.6.4-r0
Alpine:v3.3 postgresql 0 9.4.13-r0
Alpine:v3.4 postgresql 0 9.5.8-r0
Alpine:v3.5 postgresql 0 9.6.4-r0
Alpine:v3.6 postgresql 0 9.6.4-r0
Alpine:v3.7 postgresql 0 9.6.4-r0
Alpine:v3.8 postgresql 0 9.6.4-r0
Alpine:v3.9 postgresql 0 9.6.4-r0
Debian:7 postgresql-9.1 0 9.1.24lts2-0+deb7u1
Debian:8 postgresql-9.4 0 9.4.13-0+deb8u1
Debian:9 postgresql-9.6 0 9.6.4-0+deb9u1
Mageia:5 postgresql9.3 0 9.3.18-1.mga5
Mageia:5 postgresql9.4 0 9.4.13-1.mga5
Mageia:6 postgresql9.4 0 9.4.13-1.mga6
Mageia:6 postgresql9.6 0 9.6.4-1.mga6
Red Hat:enterprise_linux:6::client postgresql 0 0:8.4.20-8.el6_9
Red Hat:enterprise_linux:6::client postgresql-contrib 0 0:8.4.20-8.el6_9
Red Hat:enterprise_linux:6::client postgresql-debuginfo 0 0:8.4.20-8.el6_9
Red Hat:enterprise_linux:6::client postgresql-devel 0 0:8.4.20-8.el6_9
Red Hat:enterprise_linux:6::client postgresql-docs 0 0:8.4.20-8.el6_9
Red Hat:enterprise_linux:6::client postgresql-libs 0 0:8.4.20-8.el6_9
Red Hat:enterprise_linux:6::client postgresql-plperl 0 0:8.4.20-8.el6_9
Red Hat:enterprise_linux:6::client postgresql-plpython 0 0:8.4.20-8.el6_9
Red Hat:enterprise_linux:6::client postgresql-pltcl 0 0:8.4.20-8.el6_9
Red Hat:enterprise_linux:6::client postgresql-server 0 0:8.4.20-8.el6_9
Red Hat:enterprise_linux:6::client postgresql-test 0 0:8.4.20-8.el6_9
Red Hat:enterprise_linux:6::computenode postgresql 0 0:8.4.20-8.el6_9
Red Hat:enterprise_linux:6::computenode postgresql-contrib 0 0:8.4.20-8.el6_9
Red Hat:enterprise_linux:6::computenode postgresql-debuginfo 0 0:8.4.20-8.el6_9
Red Hat:enterprise_linux:6::computenode postgresql-devel 0 0:8.4.20-8.el6_9
Red Hat:enterprise_linux:6::computenode postgresql-docs 0 0:8.4.20-8.el6_9
Red Hat:enterprise_linux:6::computenode postgresql-libs 0 0:8.4.20-8.el6_9
Red Hat:enterprise_linux:6::computenode postgresql-plperl 0 0:8.4.20-8.el6_9
Red Hat:enterprise_linux:6::computenode postgresql-plpython 0 0:8.4.20-8.el6_9
Red Hat:enterprise_linux:6::computenode postgresql-pltcl 0 0:8.4.20-8.el6_9
Red Hat:enterprise_linux:6::computenode postgresql-server 0 0:8.4.20-8.el6_9
Red Hat:enterprise_linux:6::computenode postgresql-test 0 0:8.4.20-8.el6_9
Red Hat:enterprise_linux:6::server postgresql 0 0:8.4.20-8.el6_9
Red Hat:enterprise_linux:6::server postgresql-contrib 0 0:8.4.20-8.el6_9
Red Hat:enterprise_linux:6::server postgresql-debuginfo 0 0:8.4.20-8.el6_9
Red Hat:enterprise_linux:6::server postgresql-devel 0 0:8.4.20-8.el6_9
Red Hat:enterprise_linux:6::server postgresql-docs 0 0:8.4.20-8.el6_9
Red Hat:enterprise_linux:6::server postgresql-libs 0 0:8.4.20-8.el6_9
Red Hat:enterprise_linux:6::server postgresql-plperl 0 0:8.4.20-8.el6_9
Red Hat:enterprise_linux:6::server postgresql-plpython 0 0:8.4.20-8.el6_9
Red Hat:enterprise_linux:6::server postgresql-pltcl 0 0:8.4.20-8.el6_9
Red Hat:enterprise_linux:6::server postgresql-server 0 0:8.4.20-8.el6_9
Red Hat:enterprise_linux:6::server postgresql-test 0 0:8.4.20-8.el6_9
Red Hat:enterprise_linux:6::workstation postgresql 0 0:8.4.20-8.el6_9
Red Hat:enterprise_linux:6::workstation postgresql-contrib 0 0:8.4.20-8.el6_9
Red Hat:enterprise_linux:6::workstation postgresql-debuginfo 0 0:8.4.20-8.el6_9
Red Hat:enterprise_linux:6::workstation postgresql-devel 0 0:8.4.20-8.el6_9
Red Hat:enterprise_linux:6::workstation postgresql-docs 0 0:8.4.20-8.el6_9
Red Hat:enterprise_linux:6::workstation postgresql-libs 0 0:8.4.20-8.el6_9
Red Hat:enterprise_linux:6::workstation postgresql-plperl 0 0:8.4.20-8.el6_9
Red Hat:enterprise_linux:6::workstation postgresql-plpython 0 0:8.4.20-8.el6_9
Red Hat:enterprise_linux:6::workstation postgresql-pltcl 0 0:8.4.20-8.el6_9
Red Hat:enterprise_linux:6::workstation postgresql-server 0 0:8.4.20-8.el6_9
Red Hat:enterprise_linux:6::workstation postgresql-test 0 0:8.4.20-8.el6_9
Red Hat:enterprise_linux:7::client postgresql 0 0:9.2.23-1.el7_4
Red Hat:enterprise_linux:7::client postgresql-contrib 0 0:9.2.23-1.el7_4
Red Hat:enterprise_linux:7::client postgresql-debuginfo 0 0:9.2.23-1.el7_4
Red Hat:enterprise_linux:7::client postgresql-devel 0 0:9.2.23-1.el7_4
Red Hat:enterprise_linux:7::client postgresql-docs 0 0:9.2.23-1.el7_4
Red Hat:enterprise_linux:7::client postgresql-libs 0 0:9.2.23-1.el7_4
Red Hat:enterprise_linux:7::client postgresql-plperl 0 0:9.2.23-1.el7_4
Red Hat:enterprise_linux:7::client postgresql-plpython 0 0:9.2.23-1.el7_4
Red Hat:enterprise_linux:7::client postgresql-pltcl 0 0:9.2.23-1.el7_4
Red Hat:enterprise_linux:7::client postgresql-server 0 0:9.2.23-1.el7_4
Red Hat:enterprise_linux:7::client postgresql-static 0 0:9.2.23-1.el7_4
Red Hat:enterprise_linux:7::client postgresql-test 0 0:9.2.23-1.el7_4
Red Hat:enterprise_linux:7::client postgresql-upgrade 0 0:9.2.23-1.el7_4
Red Hat:enterprise_linux:7::computenode postgresql 0 0:9.2.23-1.el7_4
Red Hat:enterprise_linux:7::computenode postgresql-contrib 0 0:9.2.23-1.el7_4
Red Hat:enterprise_linux:7::computenode postgresql-debuginfo 0 0:9.2.23-1.el7_4
Red Hat:enterprise_linux:7::computenode postgresql-devel 0 0:9.2.23-1.el7_4
Red Hat:enterprise_linux:7::computenode postgresql-docs 0 0:9.2.23-1.el7_4
Red Hat:enterprise_linux:7::computenode postgresql-libs 0 0:9.2.23-1.el7_4
Red Hat:enterprise_linux:7::computenode postgresql-plperl 0 0:9.2.23-1.el7_4
Red Hat:enterprise_linux:7::computenode postgresql-plpython 0 0:9.2.23-1.el7_4
Red Hat:enterprise_linux:7::computenode postgresql-pltcl 0 0:9.2.23-1.el7_4
Red Hat:enterprise_linux:7::computenode postgresql-server 0 0:9.2.23-1.el7_4
Red Hat:enterprise_linux:7::computenode postgresql-static 0 0:9.2.23-1.el7_4
Red Hat:enterprise_linux:7::computenode postgresql-test 0 0:9.2.23-1.el7_4
Red Hat:enterprise_linux:7::computenode postgresql-upgrade 0 0:9.2.23-1.el7_4
Red Hat:enterprise_linux:7::server postgresql 0 0:9.2.23-1.el7_4
Red Hat:enterprise_linux:7::server postgresql-contrib 0 0:9.2.23-1.el7_4
Red Hat:enterprise_linux:7::server postgresql-debuginfo 0 0:9.2.23-1.el7_4
Red Hat:enterprise_linux:7::server postgresql-devel 0 0:9.2.23-1.el7_4
Red Hat:enterprise_linux:7::server postgresql-docs 0 0:9.2.23-1.el7_4
Red Hat:enterprise_linux:7::server postgresql-libs 0 0:9.2.23-1.el7_4
Red Hat:enterprise_linux:7::server postgresql-plperl 0 0:9.2.23-1.el7_4
Red Hat:enterprise_linux:7::server postgresql-plpython 0 0:9.2.23-1.el7_4
Red Hat:enterprise_linux:7::server postgresql-pltcl 0 0:9.2.23-1.el7_4
Red Hat:enterprise_linux:7::server postgresql-server 0 0:9.2.23-1.el7_4
Red Hat:enterprise_linux:7::server postgresql-static 0 0:9.2.23-1.el7_4
Red Hat:enterprise_linux:7::server postgresql-test 0 0:9.2.23-1.el7_4
Red Hat:enterprise_linux:7::server postgresql-upgrade 0 0:9.2.23-1.el7_4
Red Hat:enterprise_linux:7::workstation postgresql 0 0:9.2.23-1.el7_4
Red Hat:enterprise_linux:7::workstation postgresql-contrib 0 0:9.2.23-1.el7_4
Red Hat:enterprise_linux:7::workstation postgresql-debuginfo 0 0:9.2.23-1.el7_4
Red Hat:enterprise_linux:7::workstation postgresql-devel 0 0:9.2.23-1.el7_4
Red Hat:enterprise_linux:7::workstation postgresql-docs 0 0:9.2.23-1.el7_4
Red Hat:enterprise_linux:7::workstation postgresql-libs 0 0:9.2.23-1.el7_4
Red Hat:enterprise_linux:7::workstation postgresql-plperl 0 0:9.2.23-1.el7_4
Red Hat:enterprise_linux:7::workstation postgresql-plpython 0 0:9.2.23-1.el7_4
Red Hat:enterprise_linux:7::workstation postgresql-pltcl 0 0:9.2.23-1.el7_4
Red Hat:enterprise_linux:7::workstation postgresql-server 0 0:9.2.23-1.el7_4
Red Hat:enterprise_linux:7::workstation postgresql-static 0 0:9.2.23-1.el7_4
Red Hat:enterprise_linux:7::workstation postgresql-test 0 0:9.2.23-1.el7_4
Red Hat:enterprise_linux:7::workstation postgresql-upgrade 0 0:9.2.23-1.el7_4
Red Hat:rhel_software_collections:2::el6 rh-postgresql94-postgresql 0 0:9.4.14-1.el6
Red Hat:rhel_software_collections:2::el6 rh-postgresql94-postgresql-contrib 0 0:9.4.14-1.el6
Red Hat:rhel_software_collections:2::el6 rh-postgresql94-postgresql-debuginfo 0 0:9.4.14-1.el6
Red Hat:rhel_software_collections:2::el6 rh-postgresql94-postgresql-devel 0 0:9.4.14-1.el6
Red Hat:rhel_software_collections:2::el6 rh-postgresql94-postgresql-docs 0 0:9.4.14-1.el6
Red Hat:rhel_software_collections:2::el6 rh-postgresql94-postgresql-libs 0 0:9.4.14-1.el6
Red Hat:rhel_software_collections:2::el6 rh-postgresql94-postgresql-plperl 0 0:9.4.14-1.el6
Red Hat:rhel_software_collections:2::el6 rh-postgresql94-postgresql-plpython 0 0:9.4.14-1.el6
Red Hat:rhel_software_collections:2::el6 rh-postgresql94-postgresql-pltcl 0 0:9.4.14-1.el6
Red Hat:rhel_software_collections:2::el6 rh-postgresql94-postgresql-server 0 0:9.4.14-1.el6
Red Hat:rhel_software_collections:2::el6 rh-postgresql94-postgresql-static 0 0:9.4.14-1.el6
Red Hat:rhel_software_collections:2::el6 rh-postgresql94-postgresql-test 0 0:9.4.14-1.el6
Red Hat:rhel_software_collections:2::el6 rh-postgresql94-postgresql-upgrade 0 0:9.4.14-1.el6
Red Hat:rhel_software_collections:2::el6 rh-postgresql95-postgresql 0 0:9.5.9-1.el6
Red Hat:rhel_software_collections:2::el6 rh-postgresql95-postgresql-contrib 0 0:9.5.9-1.el6
Red Hat:rhel_software_collections:2::el6 rh-postgresql95-postgresql-debuginfo 0 0:9.5.9-1.el6
Red Hat:rhel_software_collections:2::el6 rh-postgresql95-postgresql-devel 0 0:9.5.9-1.el6
Red Hat:rhel_software_collections:2::el6 rh-postgresql95-postgresql-docs 0 0:9.5.9-1.el6
Red Hat:rhel_software_collections:2::el6 rh-postgresql95-postgresql-libs 0 0:9.5.9-1.el6
Red Hat:rhel_software_collections:2::el6 rh-postgresql95-postgresql-plperl 0 0:9.5.9-1.el6
Red Hat:rhel_software_collections:2::el6 rh-postgresql95-postgresql-plpython 0 0:9.5.9-1.el6
Red Hat:rhel_software_collections:2::el6 rh-postgresql95-postgresql-pltcl 0 0:9.5.9-1.el6
Red Hat:rhel_software_collections:2::el6 rh-postgresql95-postgresql-server 0 0:9.5.9-1.el6
Red Hat:rhel_software_collections:2::el6 rh-postgresql95-postgresql-static 0 0:9.5.9-1.el6
Red Hat:rhel_software_collections:2::el6 rh-postgresql95-postgresql-test 0 0:9.5.9-1.el6
Red Hat:rhel_software_collections:2::el7 rh-postgresql94-postgresql 0 0:9.4.14-1.el7
Red Hat:rhel_software_collections:2::el7 rh-postgresql94-postgresql-contrib 0 0:9.4.14-1.el7
Red Hat:rhel_software_collections:2::el7 rh-postgresql94-postgresql-debuginfo 0 0:9.4.14-1.el7
Red Hat:rhel_software_collections:2::el7 rh-postgresql94-postgresql-devel 0 0:9.4.14-1.el7
Red Hat:rhel_software_collections:2::el7 rh-postgresql94-postgresql-docs 0 0:9.4.14-1.el7
Red Hat:rhel_software_collections:2::el7 rh-postgresql94-postgresql-libs 0 0:9.4.14-1.el7
Red Hat:rhel_software_collections:2::el7 rh-postgresql94-postgresql-plperl 0 0:9.4.14-1.el7
Red Hat:rhel_software_collections:2::el7 rh-postgresql94-postgresql-plpython 0 0:9.4.14-1.el7
Red Hat:rhel_software_collections:2::el7 rh-postgresql94-postgresql-pltcl 0 0:9.4.14-1.el7
Red Hat:rhel_software_collections:2::el7 rh-postgresql94-postgresql-server 0 0:9.4.14-1.el7
Red Hat:rhel_software_collections:2::el7 rh-postgresql94-postgresql-static 0 0:9.4.14-1.el7
Red Hat:rhel_software_collections:2::el7 rh-postgresql94-postgresql-test 0 0:9.4.14-1.el7
Red Hat:rhel_software_collections:2::el7 rh-postgresql94-postgresql-upgrade 0 0:9.4.14-1.el7
Red Hat:rhel_software_collections:2::el7 rh-postgresql95-postgresql 0 0:9.5.9-1.el7
Red Hat:rhel_software_collections:2::el7 rh-postgresql95-postgresql-contrib 0 0:9.5.9-1.el7
Red Hat:rhel_software_collections:2::el7 rh-postgresql95-postgresql-debuginfo 0 0:9.5.9-1.el7
Red Hat:rhel_software_collections:2::el7 rh-postgresql95-postgresql-devel 0 0:9.5.9-1.el7
Red Hat:rhel_software_collections:2::el7 rh-postgresql95-postgresql-docs 0 0:9.5.9-1.el7
Red Hat:rhel_software_collections:2::el7 rh-postgresql95-postgresql-libs 0 0:9.5.9-1.el7
Red Hat:rhel_software_collections:2::el7 rh-postgresql95-postgresql-plperl 0 0:9.5.9-1.el7
Red Hat:rhel_software_collections:2::el7 rh-postgresql95-postgresql-plpython 0 0:9.5.9-1.el7
Red Hat:rhel_software_collections:2::el7 rh-postgresql95-postgresql-pltcl 0 0:9.5.9-1.el7
Red Hat:rhel_software_collections:2::el7 rh-postgresql95-postgresql-server 0 0:9.5.9-1.el7
Red Hat:rhel_software_collections:2::el7 rh-postgresql95-postgresql-static 0 0:9.5.9-1.el7
Red Hat:rhel_software_collections:2::el7 rh-postgresql95-postgresql-test 0 0:9.5.9-1.el7
SUSE:Linux Enterprise Desktop 12 SP2 postgresql94 0 9.4.13-21.5.1
SUSE:Linux Enterprise Desktop 12 SP2 postgresql96 0 9.6.4-3.6.1
SUSE:Linux Enterprise Desktop 12 SP2 postgresql96-libs 0 9.6.4-3.6.1
SUSE:Linux Enterprise Desktop 12 SP3 postgresql96 0 9.6.4-3.6.1
SUSE:Linux Enterprise Desktop 12 SP3 postgresql96-libs 0 9.6.4-3.6.1
SUSE:Linux Enterprise Point of Sale 11 SP3 postgresql94 0 9.4.13-0.23.5.1
SUSE:Linux Enterprise Point of Sale 11 SP3 postgresql94-libs 0 9.4.13-0.23.5.1
SUSE:Linux Enterprise Server 11 SP3-LTSS postgresql94 0 9.4.13-0.23.5.1
SUSE:Linux Enterprise Server 11 SP3-LTSS postgresql94-libs 0 9.4.13-0.23.5.1
SUSE:Linux Enterprise Server 11 SP3-TERADATA postgresql94 0 9.4.13-0.23.5.1
SUSE:Linux Enterprise Server 11 SP3-TERADATA postgresql94-libs 0 9.4.13-0.23.5.1
SUSE:Linux Enterprise Server 11 SP4 postgresql94 0 9.4.13-0.23.5.1
SUSE:Linux Enterprise Server 11 SP4 postgresql94-libs 0 9.4.13-0.23.5.1
SUSE:Linux Enterprise Server 12 SP1-LTSS postgresql94 0 9.4.13-21.5.1
SUSE:Linux Enterprise Server 12 SP1-LTSS postgresql96 0 9.6.4-3.6.1
SUSE:Linux Enterprise Server 12 SP1-LTSS postgresql96-libs 0 9.6.4-3.6.1
SUSE:Linux Enterprise Server 12 SP2 postgresql94 0 9.4.13-21.5.1
SUSE:Linux Enterprise Server 12 SP2 postgresql96 0 9.6.4-3.6.1
SUSE:Linux Enterprise Server 12 SP2 postgresql96-libs 0 9.6.4-3.6.1
SUSE:Linux Enterprise Server 12 SP3 postgresql96 0 9.6.4-3.6.1
SUSE:Linux Enterprise Server 12 SP3 postgresql96-libs 0 9.6.4-3.6.1
SUSE:Linux Enterprise Server 12-LTSS postgresql93 0 9.3.18-25.5.1
SUSE:Linux Enterprise Server 12-LTSS postgresql94 0 9.4.13-21.5.1
SUSE:Linux Enterprise Server 12-LTSS postgresql96 0 9.6.4-3.6.1
SUSE:Linux Enterprise Server 12-LTSS postgresql96-libs 0 9.6.4-3.6.1
SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 postgresql94 0 9.4.13-21.5.1
SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 postgresql96 0 9.6.4-3.6.1

Related vulnerabilities