Improper input validation in Cryptography Python-Cryptography
CVE-2018-10903
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
EPSS exploit prediction
EPSS 0.032, 88.3th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Cryptography Python-Cryptography
- [Unknown] Python-Cryptography — versions 2.3
- Canonical Ubuntu Linux — versions 18.04
- Red Hat OpenStack — versions 13
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 5 other repositories (AdiRashkes/python-tda-bug-hunt-2, agoel111/jake, ARPSyndicate/cvemon, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- RHSA-2018:3600 (vendor-advisory)
- USN-3720-1 (vendor-advisory, Third Party Advisory)
- bugzilla.redhat.com/show_bug.cgi (Patch, Third Party Advisory, Issue Tracking)
- github.com/pyca/cryptography/pull/4342/commits/688e0f673bfbf43fa898994326c6877f… (Patch, Third Party Advisory)