Skip to content
OpenAdvisories
High · 7.5 CVE-2018-10903 EUVD-2018-0030GHSA-fcf9-3qw3-gxmjPYSEC-2018-52

PyCA Cryptography vulnerable to GCM tag forgery

Published Jul 30, 2018 · Updated Aug 5, 2024 · Assigned by redhat

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

VendorProductAffectedFixed
[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.

ReleasePackageFixed inAdvisory
Debian 14 python-cryptography 2.3-1 —
Debian 13 python-cryptography 2.3-1 —
Debian 12 python-cryptography 2.3-1 —
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS python-cryptography 2.1.4-1ubuntu1.2 USN-3720-1
ReleasePackageFixed inAdvisory
Red Hat OpenStack 13 python-cryptography +1 2.1.4-3.el7ost RHSA-2018:3600
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
openSUSE Leap Micro 5.2 python-cryptography 2.9.2-150200.13.1 SUSE-SU-2022:4044-1

Affected packages

EcosystemPackageAffectedFixedRecord
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

References