CVE-2021-31671
HIGH 7.5CVSS 3.1Pgsync Contains Cleartext Transmission of Sensitive Information
pgsync before 0.6.7 is affected by Information Disclosure of sensitive information. Syncing the schema with the --schema-first and --schema-only options is mishandled. For example, the sslmode connection parameter may be lost, which means that SSL would not be used.
- Published
- 27 Apr 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-319
- Also known as
- GHSA-72rj-36qc-47g7
- Sources
- NVDJSONOSV GHSA-72rj-36qc-47g7JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | pgsync_project | pgsynccpe:2.3:a:pgsync_project:pgsync:*:*:*:*:*:*:*:* |
< 0.6.7 | 0.6.7 |
| OSV | RubyGems | pgsync | < 0.6.7 | 0.6.7 |
References
- https://github.com/ankane/pgsync/issues/121 · Exploit, Issue Tracking, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-31671 · ADVISORY
- https://github.com/ankane/pgsync/commit/05cd18f5fc09407e4b544f2c12f819cabc50c40e · WEB
- https://github.com/ankane/pgsync/blob/master/CHANGELOG.md#067-2021-04-26 · WEB
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/pgsync/CVE-2021-31671.yml · WEB
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 27 Apr 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 27 Apr 2021)