Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection security vulnerability with schema sync #121

Closed
ankane opened this issue Apr 26, 2021 · 0 comments
Closed

Connection security vulnerability with schema sync #121

ankane opened this issue Apr 26, 2021 · 0 comments

Comments

@ankane
Copy link
Owner

ankane commented Apr 26, 2021

CVE Identifier: CVE-2021-31671
Versions Affected: 0.6.6 and below
Fixed Versions: 0.6.7

Impact

pgsync drops connection parameters when syncing the schema with the --schema-first and --schema-only options. Some of these parameters may affect security. For instance, if sslmode is dropped, the connection may not use SSL. The first connection parameter is not affected.

Here's an example where sslmode is dropped (connect_timeout is not affected):

from: postgres://user:pass@host/dbname?connect_timeout=10&sslmode=require

This applies to both the to and from connections.

All users running an affected release should upgrade immediately.

Credits

Thanks to Dmitriy Gunchenko for reporting this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant