cve.bz

CVE-2018-10903 Improper Input Validation

7.5 highEPSS 3.2%Fix available

High (7.5). EPSS 3.2% estimated probability of exploitation activity in the next 30 days. Fixed in cryptography 2.3.

On this page
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.

Severity

CVSS 3.0

7.5 high
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
3.2% (unchanged from 3.2% a week ago; 3.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 88th percentile. Scored 2026-11-23. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-20 Improper Input Validation
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-10903 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-10903?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-10903?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-10903 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
cryptography:python-cryptographyfrom 1.9.0 before 2.3
redhat:openstack13
canonical:ubuntu_linux18.04

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-fcf9-3qw3-gxmjPyPIcryptography>=1.9.0 <2.32.3
PYSEC-2018-52PyPIcryptography>=1.9 <2.32.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14python-cryptography2.3-1DEBIAN-CVE-2018-10903
Ubuntu18.04:LTSpython-cryptography2.1.4-1ubuntu1.2UBUNTU-CVE-2018-10903 USN-3720-1
Red Hatopenstack:13::el7python-cryptography, python2-cryptography, python-cryptography-debuginfo0:2.1.4-3.el7ostRHSA-2018:3600
SUSEEnterprise Storage 5, HPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL and 12 morepython-cffi1.11.2-5.11.1SUSE-SU-2020:0792-1
SUSEEnterprise Storage 5, HPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL and 12 morepython-cryptography2.1.4-7.28.2SUSE-SU-2020:0792-1
SUSEEnterprise Storage 5, HPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL and 12 morepython-xattr0.7.5-6.3.2SUSE-SU-2020:0792-1
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-ESPOS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 10 morepython-cryptography2.9.2-150200.13.1SUSE-SU-2022:4044-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8, OpenStack Cloud Crowbar 8python-cryptography2.0.3-3.3.1SUSE-SU-2018:3553-1
SUSELinux Enterprise Module for Basesystem 15python-cryptography2.1.4-4.3.1SUSE-SU-2018:3392-1
SUSELinux Enterprise Server 12 SP1-LTSS, Linux Enterprise Server for SAP Applications 12 SP1python-cffi1.11.2-2.19.2SUSE-SU-2020:0790-1
SUSELinux Enterprise Server 12 SP1-LTSS, Linux Enterprise Server for SAP Applications 12 SP1python-xattr0.7.5-3.2.1SUSE-SU-2020:0790-1
SUSELinux Enterprise Server 12 SP1-LTSS, Linux Enterprise Server for SAP Applications 12 SP1, OpenStack Cloud 6-LTSSpython-cryptography2.1.4-3.15.5SUSE-SU-2020:0790-1
openSUSELeap 15.3python-cryptography-vectors2.9.2-150200.3.3.1SUSE-SU-2022:4044-1
openSUSELeap 15.3, Leap Micro 5.2python-cryptography2.9.2-150200.13.1SUSE-SU-2022:4044-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat OpenStack Platform 13.0 (Queens)python-cryptography-0:2.1.4-3.el7ostFixed 2018-11-13RHSA-2018:3600
Red Hat Enterprise Linux 7python-cryptographyNot affected
Red Hat Enterprise Linux 8python-cryptographyNot affected
Red Hat Enterprise Linux OpenStack Platform 7 (Kilo)python-cryptographyNot affected
Red Hat OpenStack Platform 14 (Rocky)python-cryptographyAffected
Red Hat OpenStack Platform 8 (Liberty)python-cryptographyNot affected
Red Hat OpenStack Platform 9 (Mitaka)python-cryptographyNot affected
Red Hat Virtualization 4python-cryptographyNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-10903.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-20 (51).

References

Check your stackJSON