CVE-2017-7486: Infoleak
A typical CREATE USER MAPPING command persists a foreign password in an "option" of the user mapping. Contrary to its documentation and at variance with the informationschema.usermappingoptions view, the pgusermappings view discloses user mapping options to any user having USAGE privilege on the associated foreign server. If someone revokes the USAGE grant, an attacker having captured the password this way might use it to connect another way. An attacker may use the password to run arbitrary queries against the server or others accepting the same credentials, not just the limited queries one can issue via foreign tables.
Affected versions: 8.4 - 9.6
Other sources
PostgreSQL versions 8.4 - 9.6 are vulnerable to information leak in pgusermappings view which discloses foreign server passwords to any user having USAGE privilege on the associated foreign server.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/postgresqlto a version that resolves this vulnerability.Fixed in 9.2.21 - Upgrade
Upgrade
redhat/postgresqlto a version that resolves this vulnerability.Fixed in 9.3.17 - Upgrade
Upgrade
redhat/postgresqlto a version that resolves this vulnerability.Fixed in 9.4.12 - Upgrade
Upgrade
redhat/postgresqlto a version that resolves this vulnerability.Fixed in 9.5.7 - Upgrade
Upgrade
redhat/postgresqlto a version that resolves this vulnerability.Fixed in 9.6.3 - Upgrade
Upgrade
alpine/postgresqlto a version that resolves this vulnerability.Fixed in 9.6.3-r0 - Upgrade
Upgrade
alpine/postgresqlto a version that resolves this vulnerability.Fixed in 9.4.12-r0 - Upgrade
Upgrade
alpine/postgresqlto a version that resolves this vulnerability.Fixed in 9.5.7-r0 - Upgrade
Upgrade
alpine/postgresql14to a version that resolves this vulnerability.Fixed in 9.6.3-r0 - Upgrade
Upgrade
alpine/postgresql15to a version that resolves this vulnerability.Fixed in 9.6.3-r0
Event History
Frequently Asked Questions
What is the severity of CVE-2017-7486?
CVE-2017-7486 has been classified as a moderate severity vulnerability affecting PostgreSQL.
How do I fix CVE-2017-7486?
To fix CVE-2017-7486, you need to upgrade PostgreSQL to version 9.2.21 or later, 9.3.17 or later, 9.4.12 or later, 9.5.7 or later, or 9.6.3 or later.
Which versions of PostgreSQL are affected by CVE-2017-7486?
CVE-2017-7486 affects PostgreSQL versions 8.4 through 9.6.
What does CVE-2017-7486 vulnerability expose?
CVE-2017-7486 exposes foreign server passwords through the pg_user_mappings view to any user with USAGE privilege on the foreign server.
Is CVE-2017-7486 still a risk if running a supported version of PostgreSQL?
If running a version of PostgreSQL that has been updated to the recommended releases, CVE-2017-7486 should no longer pose a risk.