{"id":"CVE-2018-10903","published":"2018-07-30T15:00:00Z","modified":"2024-08-05T07:54:36Z","title":"A flaw was found in python-cryptography versions between >=1.9.0 and <2.3","vendor":null,"product":"python-cryptography","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.03196,"percentile":0.88426,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2018:3600","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://usn.ubuntu.com/3720-1/","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-10903","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/pyca/cryptography/pull/4342/commits/688e0f673bfbf43fa898994326c6877f00ab19ef","tags":["x_refsource_CONFIRM"]}],"priority":{"score":22.9,"factors":[{"name":"EPSS percentile","points":17.69},{"name":"CVSS severity","points":5.25}]},"affectedVersions":[{"vendor":"[UNKNOWN]","product":"python-cryptography","versions":["2.3"]}],"affected":[{"ecosystem":"PyPI","package":"cryptography","vulnerableRanges":[">=1.9.0, <2.3",">=1.9, <2.3"],"patched":["2.3"],"from":["GHSA-fcf9-3qw3-gxmj","PYSEC-2018-52"],"provenance":"source"}],"summary":{"text":"A flaw in the finalize_with_tag API of python-cryptography (versions 1.9.0 up to, but not including, 2.3) allows the MAC tag to be shortened without a minimum length check. An attacker can exploit this when the application does not validate input length before calling finalize_with_tag by sending a payload with a truncated tag (for example, 1 byte), giving roughly a 1-in-256 chance of passing the MAC check and enabling GCM tag forgery that can lead to key leakage.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:40:47Z"},"euvd":{"id":"EUVD-2018-0030","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-unknown-python-cryptography-cve-2018-10903","children":[{"from":"CVE-2018-10903","to":"CVE-2020-36242","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/cryptography/hazmat/backends/openssl/ciphers.py"],"commits":["https://github.com/pyca/cryptography/commit/688e0f673bfbf43fa898994326c6877f00ab19ef","https://github.com/pyca/cryptography/commit/d4378e42937b56f473ddade2667f919ce32208cb","https://github.com/pyca/cryptography/commit/82b6ce28389f0a317bc55ba2091a74b346db7cae"],"basis":"rarely changed file"}]}]}}