CVE-2018-10903
python-cryptography: GCM tag forgery via truncated tag in finalize_with_tag API
Overview
Description
A flaw was found in python-cryptography versions between >=1.9.0 and <2.3. The finalize_with_tag API did not enforce a minimum tag length. If a user did not validate the input length prior to passing it to finalize_with_tag an attacker could craft an invalid payload with a shortened tag (e.g. 1 byte) such that they would have a 1 in 256 chance of passing the MAC check. GCM tag forgeries can cause key leakage.
Source: OX vulnerability database
Severity
7.5 · HIGH
CVSS 3.0 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- None
- Availability
- None
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weakness: CWE-20
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| PyPI | cryptography | >=1.9.0, <2.3 | 2.3 |
Open a package to see all its vulnerabilities.
Operating systems · 16 fixes
Red Hat 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | python2-cryptography | affected | — |
| 7 | python2-cryptography | 0:2.1.4-3.el7ost | RHSA-2018:3600 |
SUSE Linux Enterprise 1 release · 3 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 12.5 | python-xattr | 0.7.5-6.3.2 | SUSE-SU-2020:0792-1 |
| 12.5 | python-cffi +1 | 1.11.2-5.11.1 | SUSE-SU-2020:0792-1 |
| 12.5 | python-cryptography +1 | 2.1.4-7.28.2 | SUSE-SU-2020:0792-1 |
SUSE Linux Enterprise Micro 2 releases · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 5.1 | python3-cryptography | 2.9.2-150200.13.1 | SUSE-SU-2022:4044-1 |
| 5.2 | python3-cryptography | 2.9.2-150200.13.1 | SUSE-SU-2022:4044-1 |
debian 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | python-cryptography | 2.3-1 |
| 12 | python-cryptography | 2.3-1 |
| 13 | python-cryptography | 2.3-1 |
| 14 | python-cryptography | 2.3-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| python-cryptography | 2.3-1 |
openSUSE Leap Micro 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 5.2 | python3-cryptography | 2.9.2-150200.13.1 | SUSE-SU-2022:4044-1 |
root.io debian 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 12 | rootio-python-cryptography | 2.3-1 |
ubuntu 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 18.04 | python-cryptography | 2.1.4-1ubuntu1.2 |
| 18.04-ESM | python-cryptography | 2.1.4-1ubuntu1.2 |
References
- access.redhat.com https://access.redhat.com/errata/RHSA-2018:3600
- access.redhat.com https://access.redhat.com/security/cve/CVE-2018-10903
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-10903
- github.com https://github.com/advisories/GHSA-fcf9-3qw3-gxmj
- github.com https://github.com/pyca/cryptography
- github.com https://github.com/pyca/cryptography/commit/d4378e42937b56f473ddade2667f919ce32208cb
- github.com https://github.com/pyca/cryptography/pull/4342
- github.com https://github.com/pyca/cryptography/pull/4342/commits/688e0f673bfbf43fa898994326c6877f00ab19ef
- github.com https://github.com/pypa/advisory-database/tree/main/vulns/cryptography/PYSEC-2018-52.yaml
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2018-10903
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.