Vulnerabilities in pkg:pypi/oauth2
PACKAGECVE-2013-4347 is a MODERATE (CVSS 3.7) simplegeo python-oauth2 vulnerable to the vulnerability (CWE-330: Use of Insufficiently Random Values) affecting Oauth2 libraries in the PyPI ecosystem. The issue involves simplegeo python-oauth2 vulnerable to the use of insufficiently random values to generate nonces. Remediation is available by upgrading affected packages to version 1.9rc1.
pkg:pypi/oauth2
Vulnerability advisories affecting package pkg:pypi/oauth2. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-rv8h-p43r-4x5r | CVE-2013-4347 | MODERATE | SimpleGeo python-oauth2 vulnerable to the use of Insufficiently Random Values to generate nonces |
| GHSA-4433-4cxq-vv73 | CVE-2013-4346 | HIGH | SimpleGeo python-oauth2 does not check the nonce allowing replay attacks |
CVE-2013-4347 at a Glance
Security Impact
CVSS: 3.7
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N).
How to Fix CVE-2013-4347
To remediate this vulnerability, upgrade all affected Oauth2 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 oauth2>=1.9rc1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show oauth2
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2013-4347, inspect your installed packages using pip:
pip show oauth2
Analyze the terminal output to locate any version of Oauth2 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.9rc1), your application is affected.
Note: The pip show oauth2 command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-330: Use of Insufficiently Random Values, where the product uses insufficiently random numbers or values in a security context that depends on unpredictable numbers. In Oauth2, 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-2013-4347 Affected Oauth2 Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
oauth2
|
PyPI |
< 1.9rc1
|
1.9rc1
|
References
Frequently Asked Questions
What is CVE-2013-4347?
Which Oauth2 versions are affected?
What version fixes CVE-2013-4347?
Is oauth2 affected?
What is the CVSS score of CVE-2013-4347?
What CWE is associated with CVE-2013-4347?
How can I check PyPI dependencies for CVE-2013-4347?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-rv8h-p43r-4x5r",
"modified" : "2024-10-07T21:06:35Z",
"published" : "2022-05-17T03:46:28Z",
"aliases" : [ "CVE-2013-4347" ],
"summary" : "SimpleGeo python-oauth2 vulnerable to the use of Insufficiently Random Values to generate nonces",
"details" : "The (1) make_nonce, (2) generate_nonce, and (3) generate_verifier functions in SimpleGeo python-oauth2 uses weak random numbers to generate nonces, which makes it easier for remote attackers to guess the nonce via a brute force attack.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "oauth2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.9rc1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2013-4347"
}, {
"type" : "WEB",
"url" : "https://github.com/simplegeo/python-oauth2/issues/9"
}, {
"type" : "WEB",
"url" : "https://github.com/simplegeo/python-oauth2/pull/146"
}, {
"type" : "WEB",
"url" : "https://github.com/joestump/python-oauth2/commit/82dd2cdd4954cd7b8983d5d64c0dfd9072bf4650"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2015:1591"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2015:1592"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/security/cve/CVE-2013-4347"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1007758"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/joestump/python-oauth2"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/oauth2/PYSEC-2014-86.yaml"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2013/09/12/7"
}, {
"type" : "WEB",
"url" : "http://www.securityfocus.com/bid/62388"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-330" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-08-29T18:04:35Z",
"nvd_published_at" : "2014-05-20T14:55:00Z"
}
}