CVE-2018-10903Cryptography Python-cryptography
High 7.5 No auth needed
Follow: this CVE · Cryptography · Cryptography Python-cryptography We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Python-cryptography.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| cryptography | python-cryptography | ≥ 1.9.0 < 2.3 |
| redhat | openstack | 13 |
| canonical | ubuntu_linux | 18.04 |
Official sources
References
Links published by the sources. Open them with care.
- access.redhat.com
- bugzilla.redhat.com Issue Tracking Patch Third Party Advisory
- github.com Patch Third Party Advisory
- usn.ubuntu.com Third Party Advisory