Skip to content
Fencer Vulns
medium 5.9

CVE-2017-7485 json

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 envi…

published 2017-05-12 9 y ago modified 2026-06-17 4 mo ago also EUVD-2017-16505

cvss
5.9
version 3.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
2.0%
EPSS 2.0% chance of exploitation in 30 days, percentile 81%
public exploits
0
none known

Summary

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.

Patch / fix

  • postgresql-9.3 Ubuntu 14.04 LTS 9.3.17-0ubuntu0.14.04
  • postgresql-9.5 Ubuntu 16.04 LTS 9.5.7-0ubuntu0.16.04

ubuntu advisories UBUNTU-CVE-2017-7485

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • rh-postgresql95-postgresql RHEL 2 SOFTWARE_COLLECTIONS, network satellite managed db 5.8, network satellite managed db 5.7 +2 more 9.5.7-2.el6
  • spacewalk-pxt network satellite 5.7 2.3.2-35.el6sat
  • spacewalk-web network satellite managed db 5.7, network satellite 5.7 2.3.2-35.el6sat
  • spacewalk-base network satellite 5.7 2.3.2-35.el6sat
  • spacewalk-html network satellite 5.7 2.3.2-35.el6sat
  • spacewalk-dobby network satellite managed db 5.7, network satellite 5.7 2.3.2-35.el6sat
  • spacewalk-grail network satellite 5.7 2.3.2-35.el6sat
  • spacewalk-utils network satellite 5.7 2.3.2-32.el6sat

red hat advisories RHSA-2017:2425RHSA-2017:1838RHSA-2017:1677RHSA-2017:1678

  • postgresql94 SLES for SAP 11 SP4, SLES 11 SP4 9.4.12-0.22.3
  • postgresql94-libs SLES for SAP 11 SP4, SLES 11 SP4, SLE Software Development Kit 11 SP4 9.4.12-0.22.3
  • postgresql94 SLES for SAP 12 SP2, SLES for Raspberry Pi 12 SP2, SLES 12 SP2 +1 more 9.4.12-20.1
  • postgresql94-libs SLE Software Development Kit 12 SP2 9.4.12-20.1
  • postgresql93 SLES for SAP 12, SLES 12-LTSS 9.3.17-24.2

suse advisories SUSE-SU-2017:1783-1SUSE-SU-2017:1690-1SUSE-SU-2017:1441-1

  • postgresql Alpine 3.14, Alpine 3.13, Alpine 3.12 +7 more 9.6.3-r0
  • postgresql Alpine 3.3 9.4.12-r0
  • postgresql Alpine 3.4 9.5.7-r0
  • postgresql14 Alpine 3.20, Alpine 3.19, Alpine 3.18 +3 more 9.6.3-r0
  • postgresql15 Alpine 3.20, Alpine 3.19, Alpine 3.18 +1 more 9.6.3-r0

alpine advisories ALPINE-CVE-2017-7485

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • postgresql-libs Arch Linux 9.6.3-1

arch linux advisories AVG-280

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2017-7485 updated cvss 7.4

postgresql: libpq ignores PGREQUIRESSL environment variable

  • Red Hat CloudForms Management Engine 5 rh-postgresql94-postgresql, rh-postgresql95-postgresql
    affected: workaround, no fix available “Use PGSSLMODE=require instead of PGREQUIRESSL=1”
  • Red Hat Satellite 5.7 (RHEL v.6) spacewalk-pxt 2.3.2-35.el6sat, spacewalk-web 2.3.2-35.el6sat, spacewalk-base 2.3.2-35.el6sat, spacewalk-html 2.3.2-35.el6sat, spacewalk-dobby 2.3.2-35.el6sat, spacewalk-grail 2.3.2-35.el6sat, +29 more
    fixed: vendor fix “Use PGSSLMODE=require instead of PGREQUIRESSL=1” RHSA-2017:2425
  • Red Hat Satellite 5.8 (RHEL v.6) rh-postgresql95-postgresql 9.5.7-2.el6, rh-postgresql95-postgresql-libs 9.5.7-2.el6, rh-postgresql95-postgresql-pltcl 9.5.7-2.el6, rh-postgresql95-postgresql-server 9.5.7-2.el6, rh-postgresql95-postgresql-contrib 9.5.7-2.el6 Red Hat Satellite 5.8 ELS (RHEL v.6) rh-postgresql95-postgresql 9.5.7-2.el6, rh-postgresql95-postgresql-libs 9.5.7-2.el6, rh-postgresql95-postgresql-pltcl 9.5.7-2.el6, rh-postgresql95-postgresql-server 9.5.7-2.el6, rh-postgresql95-postgresql-contrib 9.5.7-2.el6
    fixed: vendor fix “Use PGSSLMODE=require instead of PGREQUIRESSL=1” RHSA-2017:1838
  • Red Hat Satellite Managed DB 5.7 (RHEL v.6) spacewalk-web 2.3.2-35.el6sat, spacewalk-dobby 2.3.2-35.el6sat, rh-postgresql95-runtime 2.2-3.el6, rh-postgresql95-postgresql 9.5.7-2.el6, spacewalk-base-minimal 2.3.2-35.el6sat, spacewalk-postgresql-server 9.5-1.el6sat, +5 more
    fixed: vendor fix “Use PGSSLMODE=require instead of PGREQUIRESSL=1” RHSA-2017:2425
  • Red Hat Satellite Managed DB 5.8 (RHEL v.6) rh-postgresql95-postgresql 9.5.7-2.el6, rh-postgresql95-postgresql-libs 9.5.7-2.el6, rh-postgresql95-postgresql-pltcl 9.5.7-2.el6, rh-postgresql95-postgresql-server 9.5.7-2.el6, rh-postgresql95-postgresql-contrib 9.5.7-2.el6 Red Hat Satellite Managed DB 5.8 ELS (RHEL v.6) rh-postgresql95-postgresql 9.5.7-2.el6, rh-postgresql95-postgresql-libs 9.5.7-2.el6, rh-postgresql95-postgresql-pltcl 9.5.7-2.el6, rh-postgresql95-postgresql-server 9.5.7-2.el6, rh-postgresql95-postgresql-contrib 9.5.7-2.el6
    fixed: vendor fix “Use PGSSLMODE=require instead of PGREQUIRESSL=1” RHSA-2017:1838
  • Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) rh-postgresql95-postgresql 9.5.7-2.el6, rh-postgresql94-postgresql 9.4.12-1.el6, rh-postgresql95-postgresql-libs 9.5.7-2.el6, rh-postgresql95-postgresql-test 9.5.7-2.el6, rh-postgresql94-postgresql-libs 9.4.12-1.el6, rh-postgresql94-postgresql-test 9.4.12-1.el6, +11 more Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-postgresql95-postgresql 9.5.7-2.el7, rh-postgresql94-postgresql 9.4.12-1.el7, rh-postgresql95-postgresql-libs 9.5.7-2.el7, rh-postgresql95-postgresql-test 9.5.7-2.el7, rh-postgresql94-postgresql-libs 9.4.12-1.el7, rh-postgresql94-postgresql-test 9.4.12-1.el7, +11 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.7) rh-postgresql95-postgresql 9.5.7-2.el6, rh-postgresql94-postgresql 9.4.12-1.el6, rh-postgresql95-postgresql-libs 9.5.7-2.el6, rh-postgresql95-postgresql-test 9.5.7-2.el6, rh-postgresql94-postgresql-libs 9.4.12-1.el6, rh-postgresql94-postgresql-test 9.4.12-1.el6, +11 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.3) rh-postgresql95-postgresql 9.5.7-2.el7, rh-postgresql94-postgresql 9.4.12-1.el7, rh-postgresql95-postgresql-libs 9.5.7-2.el7, rh-postgresql95-postgresql-test 9.5.7-2.el7, rh-postgresql94-postgresql-libs 9.4.12-1.el7, rh-postgresql94-postgresql-test 9.4.12-1.el7, +11 more Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) rh-postgresql95-postgresql 9.5.7-2.el6, rh-postgresql94-postgresql 9.4.12-1.el6, rh-postgresql95-postgresql-libs 9.5.7-2.el6, rh-postgresql95-postgresql-test 9.5.7-2.el6, rh-postgresql94-postgresql-libs 9.4.12-1.el6, rh-postgresql94-postgresql-test 9.4.12-1.el6, +11 more Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-postgresql95-postgresql 9.5.7-2.el7, rh-postgresql94-postgresql 9.4.12-1.el7, rh-postgresql95-postgresql-libs 9.5.7-2.el7, rh-postgresql95-postgresql-test 9.5.7-2.el7, rh-postgresql94-postgresql-libs 9.4.12-1.el7, rh-postgresql94-postgresql-test 9.4.12-1.el7, +11 more
    fixed: vendor fix “Use PGSSLMODE=require instead of PGREQUIRESSL=1” RHSA-2017:1678
  • Red Hat Enterprise Linux 5 postgresql, postgresql84 Red Hat Enterprise Linux 6 postgresql, postgresql-libs, postgresql-test, postgresql-pltcl, postgresql-plperl, postgresql-server, +2 more Red Hat Enterprise Linux 7 postgresql, postgresql-libs, postgresql-test, postgresql-pltcl, postgresql-plperl, postgresql-server, +3 more Red Hat Satellite 5 postgresql92-postgresql
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

2.04% chance of exploitation in the next 30 days, higher than 81% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
NVD 3.0 5.9 CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
NVD 2.0 4.3 AV:N/AC:M/Au:N/C:N/I:P/A:N

Affected products

  • The PostgreSQL Global Development Group PostgreSQL

Classification

Weakness
  • CWE-390 Detection of Error Condition Without Action
  • CWE-311 Missing Encryption of Sensitive Data
Technology feeds

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.