CVE-2021-31671 json
Pgsync Contains Cleartext Transmission of Sensitive Information
published 2021-04-27 5 y ago modified 2026-06-17 4 mo ago also GHSA-72rj-36qc-47g7 , EUVD-2021-0780
- cvss
- 7.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.7%
- EPSS 0.7% chance of exploitation in 30 days, percentile 54%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
Exploit prediction
0.73% chance of exploitation in the next 30 days, higher than 54% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/ankane/pgsync/issues/121 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| rubygems | pgsync | <0.6.7 |
0.6.7 |
Classification
- Weakness
-
- CWE-319 Cleartext Transmission of Sensitive Information
References
-
github.com
/ankane/pgsync/commit/05cd18f5fc09407e4b544f2c12f819cabc50c40e
web
-
github.com
/ankane/pgsync/issues/121
web, exploit, issue-tracking, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-31671
advisory
-
github.com
/ankane/pgsync/blob/master/CHANGELOG.md#067-2021-04-26
web
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/pgsync/CVE-2021-31671.yml
web
Sources
- CVE List CVE-2021-31671
- GitHub Advisory GHSA-72rj-36qc-47g7
- NVD CVE-2021-31671
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.