Vulnerabilities in pkg:pypi/python-apt
PACKAGECVE-2019-15796 is a MODERATE (CVSS 4.7) python-apt does not check hash vulnerability (CWE-347: Improper Verification of Cryptographic Signature) affecting Python apt libraries in the PyPI ecosystem. The issue involves python-apt does not check hash signature. Remediation is available by upgrading affected packages to version 0.8.3ubuntu7.5, 0.9.3.5ubuntu3, 1.6.5ubuntu0.1, 1.9.0ubuntu1.2, 1.9.5.
pkg:pypi/python-apt
Vulnerability advisories affecting package pkg:pypi/python-apt. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-pj65-3pf6-c5q4 | CVE-2019-15796 | MODERATE | python-apt Does Not Check Hash Signature |
| GHSA-rp8m-h266-53jh | CVE-2019-15795 | MODERATE | python-apt Flawed Package Integrity Check |
CVE-2019-15796 at a Glance
Security Impact
CVSS: 4.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:R/S:C/C:L/I:L/A:N).
How to Fix CVE-2019-15796
To remediate this vulnerability, upgrade all affected Python apt 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-apt>=0.8.3ubuntu7.5
pip install python-apt>=0.9.3.5ubuntu3
pip install python-apt>=1.6.5ubuntu0.1
pip install python-apt>=1.9.0ubuntu1.2
pip install python-apt>=1.9.5
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show python-apt
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2019-15796, inspect your installed packages using pip:
pip show python-apt
Analyze the terminal output to locate any version of Python apt in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.8.3ubuntu7.5), your application is affected.
Note: The pip show python-apt command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-347: Improper Verification of Cryptographic Signature, where the product does not verify, or incorrectly verifies, the cryptographic signature for data. In Python apt, 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-15796 Affected Python apt Versions
5 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
python-apt
|
PyPI |
< 0.8.3ubuntu7.5
|
0.8.3ubuntu7.5
|
|
python-apt
|
PyPI |
≥ 0.9.0
< 0.9.3.5ubuntu3
|
0.9.3.5ubuntu3
|
|
python-apt
|
PyPI |
≥ 1.2.0
< 1.6.5ubuntu0.1
|
1.6.5ubuntu0.1
|
|
python-apt
|
PyPI |
≥ 1.7.0
< 1.9.0ubuntu1.2
|
1.9.0ubuntu1.2
|
|
python-apt
|
PyPI |
≥ 1.9.1
< 1.9.5
|
1.9.5
|
References
Frequently Asked Questions
What is CVE-2019-15796?
Which Python apt versions are affected?
What version fixes CVE-2019-15796?
Is python-apt affected?
What is the CVSS score of CVE-2019-15796?
What CWE is associated with CVE-2019-15796?
How can I check PyPI dependencies for CVE-2019-15796?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-pj65-3pf6-c5q4",
"modified" : "2023-09-26T21:25:11Z",
"published" : "2022-05-24T17:12:47Z",
"aliases" : [ "CVE-2019-15796" ],
"summary" : "python-apt Does Not Check Hash Signature",
"details" : "Python-apt doesn't check if hashes are signed in `Version.fetch_binary()` and `Version.fetch_source()` of apt/package.py or in `_fetch_archives()` of apt/cache.py in version 1.9.3ubuntu2 and earlier. This allows downloads from unsigned repositories which shouldn't be allowed and has been fixed in verisions 1.9.5, 1.9.0ubuntu1.2, 1.6.5ubuntu0.1, 1.1.0~beta1ubuntu0.16.04.7, 0.9.3.5ubuntu3+esm2, and 0.8.3ubuntu7.5.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "python-apt"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.8.3ubuntu7.5"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "python-apt"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.9.0"
}, {
"fixed" : "0.9.3.5ubuntu3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "python-apt"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.2.0"
}, {
"fixed" : "1.6.5ubuntu0.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "python-apt"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.7.0"
}, {
"fixed" : "1.9.0ubuntu1.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "python-apt"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.9.1"
}, {
"fixed" : "1.9.5"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-15796"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/excid3/python-apt"
}, {
"type" : "WEB",
"url" : "https://usn.ubuntu.com/4247-1"
}, {
"type" : "WEB",
"url" : "https://usn.ubuntu.com/4247-3"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-347" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-07-18T22:36:38Z",
"nvd_published_at" : "2020-03-26T13:15:00Z"
}
}