Live threats

All CVEs / Cryptography

CVE-2018-10903Cryptography Python-cryptography

High 7.5 No auth needed

Priority
60
CVSS 3.0
7.5
EPSS
3.2%
probability of exploitation in 30 days · percentile 89
Auth required
No
Published
Jul 30, 2018
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-20
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Python-cryptography.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI cryptography ≥ 1.9.0 < 2.3 2.3 pip install "cryptography>=2.3"
PyPI cryptography ≥ 1.9 < 2.3 2.3 pip install "cryptography>=2.3"

Per OSV / GitHub Advisories (GHSA-fcf9-3qw3-gxmj, PYSEC-2018-52). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
cryptographypython-cryptography≥ 1.9.0 < 2.3
redhatopenstack13
canonicalubuntu_linux18.04

Official sources

References

Links published by the sources. Open them with care.