CVE-2019-6690: Python gnupg Improper Input Validation Python-gnupg Vulnerability
HIGHCVE-2019-6690 is a HIGH (CVSS 7.5) improper input validation python-gnupg vulnerability (CWE-20: Improper Input Validation) affecting Python gnupg libraries in the PyPI ecosystem. The issue involves improper input validation python-gnupg. Remediation is available by upgrading affected packages to version 0.4.4.
CVE-2019-6690 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.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N).
How to Fix CVE-2019-6690
To remediate this vulnerability, upgrade all affected Python gnupg dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install python-gnupg>=0.4.4
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show python-gnupg
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2019-6690, inspect your installed packages using pip:
pip show python-gnupg
Analyze the terminal output to locate any version of Python gnupg in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.4.4), your application is affected.
Note: The pip show python-gnupg command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Python gnupg, 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-2019-6690 Affected Python gnupg Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
python-gnupg
|
PyPI |
< 0.4.4
|
0.4.4
|
References
Frequently Asked Questions
What is CVE-2019-6690?
Which Python gnupg versions are affected?
What version fixes CVE-2019-6690?
Is python-gnupg affected?
What is the CVSS score of CVE-2019-6690?
What CWE is associated with CVE-2019-6690?
How can I check PyPI dependencies for CVE-2019-6690?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-2fch-jvg5-crf6",
"modified" : "2022-09-17T00:03:45Z",
"published" : "2019-03-25T16:17:53Z",
"aliases" : [ "CVE-2019-6690" ],
"summary" : "Improper Input Validation python-gnupg",
"details" : "python-gnupg 0.4.3 allows context-dependent attackers to trick gnupg to decrypt other ciphertext than intended. To perform the attack, the passphrase to gnupg must be controlled by the adversary and the ciphertext should be trusted. Related to a \"CWE-20: Improper Input Validation\" issue affecting the affect functionality component.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "python-gnupg"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.4.4"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-6690"
}, {
"type" : "WEB",
"url" : "https://blog.hackeriet.no/cve-2019-6690-python-gnupg-vulnerability"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-2fch-jvg5-crf6"
}, {
"type" : "WEB",
"url" : "https://lists.debian.org/debian-lts-announce/2019/02/msg00021.html"
}, {
"type" : "WEB",
"url" : "https://lists.debian.org/debian-lts-announce/2021/12/msg00027.html"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3WMV6XNPPL3VB3RQRFFOBCJ3AGWC4K47"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/W6KYZMN2PWXY4ENZVJUVTGFBVYEVY7II"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/X4VFRUG56542LTYK4444TPJBGR57MT25"
}, {
"type" : "WEB",
"url" : "https://pypi.org/project/python-gnupg/#history"
}, {
"type" : "WEB",
"url" : "https://seclists.org/bugtraq/2019/Jan/41"
}, {
"type" : "WEB",
"url" : "https://usn.ubuntu.com/3964-1"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20200227091727/http://www.securityfocus.com/bid/106756"
}, {
"type" : "WEB",
"url" : "http://lists.opensuse.org/opensuse-security-announce/2019-02/msg00008.html"
}, {
"type" : "WEB",
"url" : "http://lists.opensuse.org/opensuse-security-announce/2019-02/msg00058.html"
}, {
"type" : "WEB",
"url" : "http://packetstormsecurity.com/files/151341/Python-GnuPG-0.4.3-Improper-Input-Validation.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T20:41:57Z",
"nvd_published_at" : "2019-03-21T16:01:00Z"
}
}