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.
What to do
Fixed builds are available from Debian, PyPI, Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 18.04 | python-cryptography | Fixed | 2.1.4-1ubuntu1.2 | UBUNTU-CVE-2018-10903 |
| Ubuntu 16.04 | python-cryptography | Not affected vulnerable_code_not_present | ||
| Debian 14 | python-cryptography | Fixed | 2.3-1 | DEBIAN-CVE-2018-10903 |
| Debian 13 | python-cryptography | Fixed | 2.3-1 | DEBIAN-CVE-2018-10903 |
| Debian 12 | python-cryptography | Fixed | 2.3-1 | DEBIAN-CVE-2018-10903 |
| Red Hat Enterprise Linux 8 | python-cryptography | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-cryptography | Not affected | ||
| Red Hat Enterprise Linux 7 | python-cryptography | Not affected | ||
| Red Hat Enterprise Linux 7 | python2-cryptography | Not affected | ||
| PyPI library | cryptography | Fixed | 2.3 | PYSEC-2018-52 |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- [UNKNOWN] python-cryptography: affected: 2.3
Vendor advisories:
- https://access.redhat.com/errata/RHSA-2018:3600 (vendor-advisory)
- https://usn.ubuntu.com/3720-1/ (vendor-advisory)
References
- https://access.redhat.com/errata/RHSA-2018:3600
- https://usn.ubuntu.com/3720-1/
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-10903
- https://github.com/pyca/cryptography/pull/4342/commits/688e0f673bfbf43fa898994326c6877f00ab19ef
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.