cve.bz

CVE-2017-7485 postgresql postgresql: Missing Encryption of Sensitive Data

5.9 mediumEPSS 2.0%

Medium (5.9) in postgresql postgresql. EPSS 2.0% estimated probability of exploitation activity in the next 30 days.

On this page
In PostgreSQL 9.3.x before 9.3.17, 9.4.x before 9.4.12, 9.5.x before 9.5.7, and 9.6.x before 9.6.3, it was found that the PGREQUIRESSL environment variable was no longer enforcing a SSL/TLS connection to a PostgreSQL server. An active Man-in-the-Middle attacker could use this flaw to strip the SSL/TLS protection from a connection between a client and a server.

Severity

CVSS 3.0

5.9 medium
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
EPSS
2.0% (unchanged from 2.0% a week ago; 2.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 82nd percentile. Scored 2026-11-24. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-311 Missing Encryption of Sensitive Data
CWE-390 Detection of Error Condition Without Action
OWASP Top 10
A06:2025 Insecure Design, A10:2025 Mishandling of Exceptional Conditions
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-2017-7485 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2017-7485?via=ask-ai-copy and https://cve.bz/cve/CVE-2017-7485?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-2017-7485 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
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.3.14
postgresql:postgresql9.3.15
postgresql:postgresql9.3.16
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.4.9
postgresql:postgresql9.4.10
postgresql:postgresql9.4.11
postgresql:postgresql9.5
postgresql:postgresql9.5.1
postgresql:postgresql9.5.2
postgresql:postgresql9.5.3
postgresql:postgresql9.5.4
postgresql:postgresql9.5.5
postgresql:postgresql9.5.6
postgresql:postgresql9.6
postgresql:postgresql9.6.1
postgresql:postgresql9.6.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8postgresql-9.49.4.12-0+deb8u1DSA-3851-1
Ubuntu14.04:LTSpostgresql-9.39.3.17-0ubuntu0.14.04UBUNTU-CVE-2017-7485
Ubuntu16.04:LTSpostgresql-9.59.5.7-0ubuntu0.16.04UBUNTU-CVE-2017-7485
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:5.8::el6, network_satellite_managed_db:5.8::el6rh-postgresql95-postgresql, rh-postgresql95-postgresql-libs, rh-postgresql95-postgresql-pltcl and 3 more0:9.5.7-2.el6RHSA-2017:1838
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::el6rh-postgresql94-postgresql, rh-postgresql94-postgresql-docs, rh-postgresql94-postgresql-libs and 10 more0:9.4.12-1.el6RHSA-2017:1678
Red Hatrhel_software_collections:2::el6rh-postgresql95-postgresql, rh-postgresql95-postgresql-docs, rh-postgresql95-postgresql-libs and 9 more0:9.5.7-2.el6RHSA-2017:1677
Red Hatrhel_software_collections:2::el7rh-postgresql94-postgresql, rh-postgresql94-postgresql-docs, rh-postgresql94-postgresql-libs and 10 more0:9.4.12-1.el7RHSA-2017:1678
1 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise Desktop 12 SP2, Linux Enterprise Server 12 SP2, Linux Enterprise Server for Raspberry Pi 12 SP2 and 1 morepostgresql949.4.12-20.1SUSE-SU-2017:1690-1
SUSELinux Enterprise Server 11 SP4, Linux Enterprise Server for SAP Applications 11 SP4postgresql94, postgresql94-libs9.4.12-0.22.3SUSE-SU-2017:1783-1
SUSELinux Enterprise Server 12-LTSS, Linux Enterprise Server for SAP Applications 12postgresql939.3.17-24.2SUSE-SU-2017:1441-1
SUSELinux Enterprise Software Development Kit 11 SP4postgresql94-libs9.4.12-0.22.3SUSE-SU-2017:1783-1
SUSELinux Enterprise Software Development Kit 12 SP2postgresql94-libs9.4.12-20.1SUSE-SU-2017:1690-1
Alpinev3.3postgresql9.4.12-r0ALPINE-CVE-2017-7485
Alpinev3.4postgresql9.5.7-r0ALPINE-CVE-2017-7485
Alpinev3.5, v3.6, v3.7 and 7 morepostgresql9.6.3-r0ALPINE-CVE-2017-7485
Alpinev3.15, v3.16postgresql149.6.3-r0ALPINE-CVE-2017-7485
Alpinev3.17, v3.18, v3.19 and 1 morepostgresql14, postgresql159.6.3-r0ALPINE-CVE-2017-7485

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; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's mitigation

Use PGSSLMODE=require instead of PGREQUIRESSL=1

ProductPackageStateAdvisory
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 Satellite 5.8rh-postgresql95-postgresql-0:9.5.7-2.el6Fixed 2017-07-31RHSA-2017:1838
Red Hat Satellite 5.8 ELSrh-postgresql95-postgresql-0:9.5.7-2.el6Fixed 2017-07-31RHSA-2017:1838
Red Hat Software Collections for Red Hat Enterprise Linux 6rh-postgresql95-postgresql-0:9.5.7-2.el6Fixed 2017-07-05RHSA-2017:1677
Red Hat Software Collections for Red Hat Enterprise Linux 6rh-postgresql94-postgresql-0:9.4.12-1.el6Fixed 2017-07-05RHSA-2017:1678
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUSrh-postgresql95-postgresql-0:9.5.7-2.el6Fixed 2017-07-05RHSA-2017:1677
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUSrh-postgresql94-postgresql-0:9.4.12-1.el6Fixed 2017-07-05RHSA-2017:1678
CloudForms Management Engine 5rh-postgresql94-postgresqlAffected
CloudForms Management Engine 5rh-postgresql95-postgresqlAffected
Red Hat Enterprise Linux 5postgresqlNot affected
Red Hat Enterprise Linux 5postgresql84Not affected
Red Hat Enterprise Linux 6postgresqlNot affected
Red Hat Enterprise Linux 7postgresqlNot affected
Red Hat Satellite 5postgresql92-postgresqlNot affected
4 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-2017-7485.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-311 (14).

References

Check your stackJSON