postgresql: libpq ignores PGREQUIRESSL environment variable
Published May 12, 2017
7.4
HIGHCVSS 3.0
EPSS 2.04%
Description
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.
Affected products
-
- Version 9.3 - 9.6StatusaffectedConstraints-
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| The PostgreSQL Global Development Group | PostgreSQL | n/a |
|
- 9.3
- 9.3.1
- 9.3.2
- 9.3.3
- 9.3.4
- 9.3.5
- 9.3.6
- 9.3.7
- 9.3.8
- 9.3.9
- 9.3.10
- 9.3.11
- 9.3.12
- 9.3.13
- 9.3.14
- 9.3.15
- 9.3.16
- 9.4
- 9.4.1
- 9.4.2
- 9.4.3
- 9.4.4
- 9.4.5
- 9.4.6
- 9.4.7
- 9.4.8
- 9.4.9
- 9.4.10
- 9.4.11
- 9.5
- 9.5.1
- 9.5.2
- 9.5.3
- 9.5.4
- 9.5.5
- 9.5.6
- 9.6
- 9.6.1
- 9.6.2
No data.
Red Hat Satellite 5.7
rh-postgresql95-0:2.2-3.el6
Fixed · RHSA-2017:2425
Red Hat Satellite 5.7
rh-postgresql95-postgresql-0:9.5.7-2.el6
Fixed · RHSA-2017:2425
Red Hat Satellite 5.7
spacewalk-backend-0:2.3.3-53.el6sat
Fixed · RHSA-2017:2425
Red Hat Satellite 5.7
spacewalk-postgresql-server-0:9.5-1.el6sat
Fixed · RHSA-2017:2425
Red Hat Satellite 5.7
spacewalk-setup-postgresql-0:2.3.0-27.el6sat
Fixed · RHSA-2017:2425
Red Hat Satellite 5.7
spacewalk-utils-0:2.3.2-32.el6sat
Fixed · RHSA-2017:2425
Red Hat Satellite 5.7
spacewalk-web-0:2.3.2-35.el6sat
Fixed · RHSA-2017:2425
Red Hat Satellite 5.8
rh-postgresql95-postgresql-0:9.5.7-2.el6
Fixed · RHSA-2017:1838
Red Hat Satellite 5.8 ELS
rh-postgresql95-postgresql-0:9.5.7-2.el6
Fixed · RHSA-2017:1838
Red Hat Software Collections for Red Hat Enterprise Linux 6
rh-postgresql94-postgresql-0:9.4.12-1.el6
Fixed · RHSA-2017:1678
Red Hat Software Collections for Red Hat Enterprise Linux 6
rh-postgresql95-postgresql-0:9.5.7-2.el6
Fixed · RHSA-2017:1677
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS
rh-postgresql94-postgresql-0:9.4.12-1.el6
Fixed · RHSA-2017:1678
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS
rh-postgresql95-postgresql-0:9.5.7-2.el6
Fixed · RHSA-2017:1677
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-postgresql94-postgresql-0:9.4.12-1.el7
Fixed · RHSA-2017:1678
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-postgresql95-postgresql-0:9.5.7-2.el7
Fixed · RHSA-2017:1677
Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS
rh-postgresql94-postgresql-0:9.4.12-1.el7
Fixed · RHSA-2017:1678
Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS
rh-postgresql95-postgresql-0:9.5.7-2.el7
Fixed · RHSA-2017:1677
CloudForms Management Engine 5
rh-postgresql94-postgresql
Affected
CloudForms Management Engine 5
rh-postgresql95-postgresql
Affected
Red Hat Enterprise Linux 5
postgresql
Not affected
Red Hat Enterprise Linux 5
postgresql84
Not affected
Red Hat Enterprise Linux 6
postgresql
Not affected
Red Hat Enterprise Linux 7
postgresql
Not affected
Red Hat Satellite 5
postgresql92-postgresql
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Satellite 5.7 | rh-postgresql95-0:2.2-3.el6 | Fixed | RHSA-2017:2425 |
| Red Hat Satellite 5.7 | rh-postgresql95-postgresql-0:9.5.7-2.el6 | Fixed | RHSA-2017:2425 |
| Red Hat Satellite 5.7 | spacewalk-backend-0:2.3.3-53.el6sat | Fixed | RHSA-2017:2425 |
| Red Hat Satellite 5.7 | spacewalk-postgresql-server-0:9.5-1.el6sat | Fixed | RHSA-2017:2425 |
| Red Hat Satellite 5.7 | spacewalk-setup-postgresql-0:2.3.0-27.el6sat | Fixed | RHSA-2017:2425 |
| Red Hat Satellite 5.7 | spacewalk-utils-0:2.3.2-32.el6sat | Fixed | RHSA-2017:2425 |
| Red Hat Satellite 5.7 | spacewalk-web-0:2.3.2-35.el6sat | Fixed | RHSA-2017:2425 |
| Red Hat Satellite 5.8 | rh-postgresql95-postgresql-0:9.5.7-2.el6 | Fixed | RHSA-2017:1838 |
| Red Hat Satellite 5.8 ELS | rh-postgresql95-postgresql-0:9.5.7-2.el6 | Fixed | RHSA-2017:1838 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | rh-postgresql94-postgresql-0:9.4.12-1.el6 | Fixed | RHSA-2017:1678 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | rh-postgresql95-postgresql-0:9.5.7-2.el6 | Fixed | RHSA-2017:1677 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS | rh-postgresql94-postgresql-0:9.4.12-1.el6 | Fixed | RHSA-2017:1678 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS | rh-postgresql95-postgresql-0:9.5.7-2.el6 | Fixed | RHSA-2017:1677 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-postgresql94-postgresql-0:9.4.12-1.el7 | Fixed | RHSA-2017:1678 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-postgresql95-postgresql-0:9.5.7-2.el7 | Fixed | RHSA-2017:1677 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS | rh-postgresql94-postgresql-0:9.4.12-1.el7 | Fixed | RHSA-2017:1678 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS | rh-postgresql95-postgresql-0:9.5.7-2.el7 | Fixed | RHSA-2017:1677 |
| CloudForms Management Engine 5 | rh-postgresql94-postgresql | Affected | n/a |
| CloudForms Management Engine 5 | rh-postgresql95-postgresql | Affected | n/a |
| Red Hat Enterprise Linux 5 | postgresql | Not affected | n/a |
| Red Hat Enterprise Linux 5 | postgresql84 | Not affected | n/a |
| Red Hat Enterprise Linux 6 | postgresql | Not affected | n/a |
| Red Hat Enterprise Linux 7 | postgresql | Not affected | n/a |
| Red Hat Satellite 5 | postgresql92-postgresql | Not affected | n/a |
No package ranges for this CVE.
Remediation
Red Hat mitigation
Use PGSSLMODE=require instead of PGREQUIRESSL=1
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
1 other source (Red Hat) ▾
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
AV:N/AC:M/Au:N/C:N/I:P/A:N
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
- EPSS v4
Percentile over time
- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
- EPSS v4
Table of values (12 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 2.04% (0.02042) | 80.45th | v5 (v2026.06.15) |
| Jun 15, 2026 | 2.06% (0.02059) | 78.76th | v5 (v2026.06.15) |
| Dec 20, 2025 | 0.78% (0.00784) | 73.17th | v4 (v2025.03.14) |
| Mar 17, 2025 | 1.82% (0.01820) | 81.66th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.50% (0.00502) | 77.19th | v3 (v2023.03.01) |
| Mar 2, 2024 | 0.50% (0.00502) | 75.86th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.36% (0.00359) | 71.38th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.36% (0.00359) | 67.73th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.54% (0.01537) | 74.52th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.54% (0.01537) | 51.33th | v2 (v2022.01.01) |
| Feb 3, 2022 | 2.07% (0.02069) | 50.36th | v5 (v2026.06.15) |
| Apr 14, 2021 | 2.07% (0.02069) | 0.00th | v1 |
References (13)
- http://www.debian.org/security/2017/dsa-3851 vendor-advisoryx_refsource_DEBIAN
- http://www.securityfocus.com/bid/98461 vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry
- http://www.securitytracker.com/id/1038476 vdb-entryx_refsource_SECTRACK
- https://access.redhat.com/errata/RHSA-2017:1677 vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2017:1678 vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2017:1838 vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2017:2425 vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2017-7485 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1448086 Issue Tracking
- https://nvd.nist.gov/vuln/detail/CVE-2017-7485
- https://security.gentoo.org/glsa/201710-06 vendor-advisoryx_refsource_GENTOO
- https://www.cve.org/CVERecord?id=CVE-2017-7485
- https://www.postgresql.org/about/news/1746/ x_refsource_CONFIRMVendor Advisory
| Link | Providers | Tags |
|---|---|---|
| http://www.debian.org/security/2017/dsa-3851 | vendor-advisoryx_refsource_DEBIAN | |
| http://www.securityfocus.com/bid/98461 | vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry | |
| http://www.securitytracker.com/id/1038476 | vdb-entryx_refsource_SECTRACK | |
| https://access.redhat.com/errata/RHSA-2017:1677 | vendor-advisoryx_refsource_REDHAT | |
| https://access.redhat.com/errata/RHSA-2017:1678 | vendor-advisoryx_refsource_REDHAT | |
| https://access.redhat.com/errata/RHSA-2017:1838 | vendor-advisoryx_refsource_REDHAT | |
| https://access.redhat.com/errata/RHSA-2017:2425 | vendor-advisoryx_refsource_REDHAT | |
| https://access.redhat.com/security/cve/CVE-2017-7485 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1448086 | Issue Tracking | |
| https://nvd.nist.gov/vuln/detail/CVE-2017-7485 | ||
| https://security.gentoo.org/glsa/201710-06 | vendor-advisoryx_refsource_GENTOO | |
| https://www.cve.org/CVERecord?id=CVE-2017-7485 | ||
| https://www.postgresql.org/about/news/1746/ | x_refsource_CONFIRMVendor Advisory |
Change history (0)
No recorded changes yet.