# CVE-2021-31671: Pgsync Contains Cleartext Transmission of Sensitive Information

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.73%, higher than 55% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-04-27T02:43:32.000Z
- Modified: 2026-06-17T03:52:08.363Z
- Also known as: GHSA-72rj-36qc-47g7
- Weaknesses: CWE-319
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- pgsync (RubyGems): before 0.6.7
- pgsync_project pgsync: before 0.6.7

## Every score

- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:P/I:N/A:N`

## 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)

## Sources

- CVE List: [CVE-2021-31671](https://www.cve.org/CVERecord?id=CVE-2021-31671), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-72rj-36qc-47g7](https://github.com/advisories/GHSA-72rj-36qc-47g7), CC-BY-4.0, modified 2024-02-16
- NVD: [CVE-2021-31671](https://nvd.nist.gov/vuln/detail/CVE-2021-31671), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-31671 · Whole record: https://cve.day/CVE-2021-31671.json · Rebuilt by cve.day 2026-11-25T22:58:01.054Z
