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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| [UNKNOWN] | python-cryptography | 2.3 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | python-cryptography | 2.3-1 | — |
| Debian 13 | python-cryptography | 2.3-1 | — |
| Debian 12 | python-cryptography | 2.3-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | python-cryptography | 2.1.4-1ubuntu1.2 | USN-3720-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat OpenStack 13 | python-cryptography +1 | 2.1.4-3.el7ost | RHSA-2018:3600 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP3 | python-cryptography | 2.9.2-150200.13.1 | SUSE-SU-2022:4044-1 |
| SLES 15 SP2 | python-cryptography | 2.9.2-150200.13.1 | SUSE-SU-2022:4044-1 |
| SLES 15 | python-cryptography | 2.1.4-4.3.1 | SUSE-SU-2018:3392-1 |
| SLES 12 SP5 | python-cffi | 1.11.2-5.11.1 | SUSE-SU-2020:0792-1 |
| SLES 12 SP5 | python-cryptography | 2.1.4-7.28.2 | SUSE-SU-2020:0792-1 |
| SLES 12 SP5 | python-xattr | 0.7.5-6.3.2 | SUSE-SU-2020:0792-1 |
| SLES 12 SP4 | python-cffi | 1.11.2-5.11.1 | SUSE-SU-2020:0792-1 |
| SLES 12 SP4 | python-cryptography | 2.1.4-7.28.2 | SUSE-SU-2020:0792-1 |
| SLES 12 SP4 | python-xattr | 0.7.5-6.3.2 | SUSE-SU-2020:0792-1 |
Show 23 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP3 | python-cffi | 1.11.2-5.11.1 | SUSE-SU-2020:0792-1 |
| SLES 12 SP3 | python-cryptography | 2.1.4-7.28.2 | SUSE-SU-2020:0792-1 |
| SLES 12 SP3 | python-xattr | 0.7.5-6.3.2 | SUSE-SU-2020:0792-1 |
| SLES 12 SP2 | python-cffi | 1.11.2-5.11.1 | SUSE-SU-2020:0792-1 |
| SLES 12 SP2 | python-cryptography | 2.1.4-7.28.2 | SUSE-SU-2020:0792-1 |
| SLES 12 SP2 | python-xattr | 0.7.5-6.3.2 | SUSE-SU-2020:0792-1 |
| SLES 12 SP1 | python-cffi | 1.11.2-2.19.2 | SUSE-SU-2020:0790-1 |
| SLES 12 SP1 | python-cryptography | 2.1.4-3.15.5 | SUSE-SU-2020:0790-1 |
| SLES 12 SP1 | python-xattr | 0.7.5-3.2.1 | SUSE-SU-2020:0790-1 |
| SLES 2 | python-cryptography | 2.9.2-150200.13.1 | SUSE-SU-2022:4044-1 |
| SLES for SAP 15 SP2 | python-cryptography | 2.9.2-150200.13.1 | SUSE-SU-2022:4044-1 |
| SLES for SAP 12 SP5 | python-cffi | 1.11.2-5.11.1 | SUSE-SU-2020:0792-1 |
| SLES for SAP 12 SP5 | python-cryptography | 2.1.4-7.28.2 | SUSE-SU-2020:0792-1 |
| SLES for SAP 12 SP5 | python-xattr | 0.7.5-6.3.2 | SUSE-SU-2020:0792-1 |
| SLES for SAP 12 SP4 | python-cffi | 1.11.2-5.11.1 | SUSE-SU-2020:0792-1 |
| SLES for SAP 12 SP4 | python-cryptography | 2.1.4-7.28.2 | SUSE-SU-2020:0792-1 |
| SLES for SAP 12 SP4 | python-xattr | 0.7.5-6.3.2 | SUSE-SU-2020:0792-1 |
| SLES for SAP 12 SP3 | python-cffi | 1.11.2-5.11.1 | SUSE-SU-2020:0792-1 |
| SLES for SAP 12 SP3 | python-cryptography | 2.1.4-7.28.2 | SUSE-SU-2020:0792-1 |
| SLES for SAP 12 SP3 | python-xattr | 0.7.5-6.3.2 | SUSE-SU-2020:0792-1 |
| SLES for SAP 12 SP2 | python-cffi | 1.11.2-5.11.1 | SUSE-SU-2020:0792-1 |
| SLES for SAP 12 SP2 | python-cryptography | 2.1.4-7.28.2 | SUSE-SU-2020:0792-1 |
| SLES for SAP 12 SP2 | python-xattr | 0.7.5-6.3.2 | SUSE-SU-2020:0792-1 |
| SLES for SAP 12 SP1 | python-cffi | 1.11.2-2.19.2 | SUSE-SU-2020:0790-1 |
| SLES for SAP 12 SP1 | python-cryptography | 2.1.4-3.15.5 | SUSE-SU-2020:0790-1 |
| SLES for SAP 12 SP1 | python-xattr | 0.7.5-3.2.1 | SUSE-SU-2020:0790-1 |
| SLE Micro 5.2 | python-cryptography | 2.9.2-150200.13.1 | SUSE-SU-2022:4044-1 |
| SLE Micro 5.1 | python-cryptography | 2.9.2-150200.13.1 | SUSE-SU-2022:4044-1 |
| SLE HPC 15 SP2 | python-cryptography | 2.9.2-150200.13.1 | SUSE-SU-2022:4044-1 |
| SUSE OpenStack Cloud Crowbar 8 | python-cffi | 1.11.2-5.11.1 | SUSE-SU-2020:0792-1 |
| SUSE OpenStack Cloud Crowbar 8 | python-cryptography | 2.0.3-3.3.1 | SUSE-SU-2020:0792-1, SUSE-SU-2018:3553-1 |
| SUSE OpenStack Cloud Crowbar 8 | python-xattr | 0.7.5-6.3.2 | SUSE-SU-2020:0792-1 |
| SUSE OpenStack Cloud 8 | python-cffi | 1.11.2-5.11.1 | SUSE-SU-2020:0792-1 |
| SUSE OpenStack Cloud 8 | python-cryptography | 2.0.3-3.3.1 | SUSE-SU-2020:0792-1, SUSE-SU-2018:3553-1 |
| SUSE OpenStack Cloud 8 | python-xattr | 0.7.5-6.3.2 | SUSE-SU-2020:0792-1 |
| SUSE OpenStack Cloud 7 | python-cffi | 1.11.2-5.11.1 | SUSE-SU-2020:0792-1 |
| SUSE OpenStack Cloud 7 | python-cryptography | 2.1.4-7.28.2 | SUSE-SU-2020:0792-1 |
| SUSE OpenStack Cloud 7 | python-xattr | 0.7.5-6.3.2 | SUSE-SU-2020:0792-1 |
| SUSE OpenStack Cloud 6 | python-cryptography | 2.1.4-3.15.5 | SUSE-SU-2020:0790-1 |
| SUSE Manager Server 4.1 | python-cryptography | 2.9.2-150200.13.1 | SUSE-SU-2022:4044-1 |
| SUSE Manager Retail Branch Server 4.1 | python-cryptography | 2.9.2-150200.13.1 | SUSE-SU-2022:4044-1 |
| SUSE Manager Proxy 4.1 | python-cryptography | 2.9.2-150200.13.1 | SUSE-SU-2022:4044-1 |
| SUSE HPE Helion OpenStack 8 | python-cffi | 1.11.2-5.11.1 | SUSE-SU-2020:0792-1 |
| SUSE HPE Helion OpenStack 8 | python-cryptography | 2.0.3-3.3.1 | SUSE-SU-2020:0792-1, SUSE-SU-2018:3553-1 |
| SUSE HPE Helion OpenStack 8 | python-xattr | 0.7.5-6.3.2 | SUSE-SU-2020:0792-1 |
| SUSE Enterprise Storage 7 | python-cryptography | 2.9.2-150200.13.1 | SUSE-SU-2022:4044-1 |
| SUSE Enterprise Storage 5 | python-cffi | 1.11.2-5.11.1 | SUSE-SU-2020:0792-1 |
| SUSE Enterprise Storage 5 | python-cryptography | 2.1.4-7.28.2 | SUSE-SU-2020:0792-1 |
| SUSE Enterprise Storage 5 | python-xattr | 0.7.5-6.3.2 | SUSE-SU-2020:0792-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Leap 15.3 | python-cryptography | 2.9.2-150200.13.1 | SUSE-SU-2022:4044-1 |
| openSUSE Leap 15.3 | python-cryptography-vectors | 2.9.2-150200.3.3.1 | SUSE-SU-2022:4044-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Leap Micro 5.2 | python-cryptography | 2.9.2-150200.13.1 | SUSE-SU-2022:4044-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | cryptography | >= 1.9.0, < 2.3 | 2.3 | GHSA-fcf9-3qw3-gxmj |
| PyPI | cryptography | >= 1.9, < 2.3 | 2.3 | PYSEC-2018-52 |
Advisories 7
- RHSA-2018:3600 Red Hat Security Advisory: python-cryptography security update Red Hat Security Advisories (RHSA) · Jul 1, 2026
- USN-3720-1 python-cryptography vulnerability Ubuntu Security Notices (USN) · Feb 10, 2026
- SUSE-SU-2020:0790-1 Security update for python-cffi, python-cryptography, python-xattr SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:3392-1 Security update for python-cryptography SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:4044-1 Security update for python-cryptography, python-cryptography-vectors SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2020:0792-1 Security update for python-cffi, python-cryptography SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:3553-1 Security update for python-cryptography SUSE / openSUSE Security Updates · Feb 4, 2026