Breaking News: Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2018-10903

python-cryptography: GCM tag forgery via truncated tag in finalize_with_tag API

Overview

Published
30 Jul 2018
Modified
17 Jun 2026
High CVE
1 Registry packages
7 OS packages
8 Linux distributions
Yes Fix available

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.

Source: OX vulnerability database

Severity

7.5 · HIGH

CVSS 3.0 base score, scored by NVD.

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Weakness: CWE-20

Affected packages · 1

Packages affected by CVE-2018-10903
EcosystemPackageVulnerableFixed in
PyPI cryptography >=1.9.0, <2.3 2.3

Open a package to see all its vulnerabilities.

Operating systems · 16 fixes

Red Hat 1 release · 1 package

affected 1 fixed 1
python2-cryptography
Red Hat fixes for CVE-2018-10903
ReleasePackageFixed inAdvisory
7 python2-cryptography affected —
7 python2-cryptography 0:2.1.4-3.el7ost RHSA-2018:3600

SUSE Linux Enterprise 1 release · 3 packages

fixed 3
python-xattr python-cffi python-cryptography
SUSE Linux Enterprise fixes for CVE-2018-10903
ReleasePackageFixed inAdvisory
12.5 python-xattr 0.7.5-6.3.2 SUSE-SU-2020:0792-1
12.5 python-cffi +1 1.11.2-5.11.1 SUSE-SU-2020:0792-1
12.5 python-cryptography +1 2.1.4-7.28.2 SUSE-SU-2020:0792-1

SUSE Linux Enterprise Micro 2 releases · 1 package

fixed 2
python3-cryptography
SUSE Linux Enterprise Micro fixes for CVE-2018-10903
ReleasePackageFixed inAdvisory
5.1 python3-cryptography 2.9.2-150200.13.1 SUSE-SU-2022:4044-1
5.2 python3-cryptography 2.9.2-150200.13.1 SUSE-SU-2022:4044-1

debian 4 releases · 1 package

fixed 4
python-cryptography
debian fixes for CVE-2018-10903
ReleasePackageFixed in
11 python-cryptography 2.3-1
12 python-cryptography 2.3-1
13 python-cryptography 2.3-1
14 python-cryptography 2.3-1

echo 1 release · 1 package

fixed 1
python-cryptography
echo fixes for CVE-2018-10903
ReleasePackageFixed in
python-cryptography 2.3-1

openSUSE Leap Micro 1 release · 1 package

fixed 1
python3-cryptography
openSUSE Leap Micro fixes for CVE-2018-10903
ReleasePackageFixed inAdvisory
5.2 python3-cryptography 2.9.2-150200.13.1 SUSE-SU-2022:4044-1

root.io debian 1 release · 1 package

fixed 1
rootio-python-cryptography
root.io debian fixes for CVE-2018-10903
ReleasePackageFixed in
12 rootio-python-cryptography 2.3-1

ubuntu 2 releases · 1 package

fixed 2
python-cryptography
ubuntu fixes for CVE-2018-10903
ReleasePackageFixed in
18.04 python-cryptography 2.1.4-1ubuntu1.2
18.04-ESM python-cryptography 2.1.4-1ubuntu1.2

References

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.