Vulnerabilities in pkg:gem/pgsync
PACKAGECVE-2021-31671 is a HIGH (CVSS 7.5) pgsync contains cleartext transmission of vulnerability (CWE-319: Cleartext Transmission of Sensitive Information) affecting Pgsync libraries in the RubyGems ecosystem. The issue involves pgsync contains cleartext transmission of sensitive information. Remediation is available by upgrading affected packages to version 0.6.7.
pkg:gem/pgsync
Vulnerability advisories affecting package pkg:gem/pgsync. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-72rj-36qc-47g7 | CVE-2021-31671 | HIGH | Pgsync Contains Cleartext Transmission of Sensitive Information |
CVE-2021-31671 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2021-31671
To remediate this vulnerability, upgrade all affected Pgsync dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade pgsync to 0.6.7
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for pgsync
How to Check if You Are Affected
To determine whether your application is affected by CVE-2021-31671, inspect your project dependencies for Pgsync:
inspect dependencies for pgsync
Analyze the terminal output to locate any version of Pgsync in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.6.7), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-319: Cleartext Transmission of Sensitive Information, where the product transmits sensitive or security-critical data in cleartext in a communication channel that can be sniffed by unauthorized actors. In Pgsync, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2021-31671 Affected Pgsync Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
pgsync
|
RubyGems |
< 0.6.7
|
0.6.7
|
References
Frequently Asked Questions
What is CVE-2021-31671?
Which Pgsync versions are affected?
What version fixes CVE-2021-31671?
Is pgsync affected?
What is the CVSS score of CVE-2021-31671?
What CWE is associated with CVE-2021-31671?
How can I check RubyGems dependencies for CVE-2021-31671?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-72rj-36qc-47g7",
"modified" : "2023-08-25T22:09:00Z",
"published" : "2021-04-27T15:54:52Z",
"aliases" : [ "CVE-2021-31671" ],
"summary" : "Pgsync Contains Cleartext Transmission of Sensitive Information",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "pgsync"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.6.7"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-31671"
}, {
"type" : "WEB",
"url" : "https://github.com/ankane/pgsync/issues/121"
}, {
"type" : "WEB",
"url" : "https://github.com/ankane/pgsync/commit/05cd18f5fc09407e4b544f2c12f819cabc50c40e"
}, {
"type" : "WEB",
"url" : "https://github.com/ankane/pgsync/blob/master/CHANGELOG.md#067-2021-04-26"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/pgsync/CVE-2021-31671.yml"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-319" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2021-04-27T15:54:16Z",
"nvd_published_at" : "2021-04-27T03:15:00Z"
}
}