CVEfocus › CVE database › CVE-2018-10903

CVE-2018-10903

CVSS 7.5 HighEPSS 3.2% (higher than 88% of CVEs)Published 2018-07-30Updated 2024-08-05Assigner: redhat

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.

CWE-20

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

5Fixed
5Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 18.04python-cryptographyFixed2.1.4-1ubuntu1.2UBUNTU-CVE-2018-10903
Ubuntu 16.04python-cryptographyNot affected
vulnerable_code_not_present
Debian 14python-cryptographyFixed2.3-1DEBIAN-CVE-2018-10903
Debian 13python-cryptographyFixed2.3-1DEBIAN-CVE-2018-10903
Debian 12python-cryptographyFixed2.3-1DEBIAN-CVE-2018-10903
Red Hat Enterprise Linux 8python-cryptographyNot affected
Red Hat Enterprise Linux 8python3-cryptographyNot affected
Red Hat Enterprise Linux 7python-cryptographyNot affected
Red Hat Enterprise Linux 7python2-cryptographyNot affected
PyPI librarycryptographyFixed2.3PYSEC-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.

Vendor advisories:

References

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.