CVE-2018-10903
HIGH 7.5CVSS 3.0PyCA Cryptography vulnerable to GCM tag forgery
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.
- Published
- 30 Jul 2018
- Last modified
- 17 Jun 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Weakness
- CWE-20
- Also known as
- GHSA-fcf9-3qw3-gxmjPYSEC-2018-52
- Sources
- NVDJSONOSV GHSA-fcf9-3qw3-gxmjJSONOSV PYSEC-2018-52JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N | |
| NVD | secalert@redhat.com (Secondary) | CVSS 3.0 | HIGH 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | HIGH 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.0 | HIGH 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | cryptography | python-cryptographycpe:2.3:a:cryptography:python-cryptography:*:*:*:*:*:*:*:* |
>= 1.9.0, < 2.3 | 2.3 |
| NVD | redhat | openstackcpe:2.3:a:redhat:openstack:13:*:*:*:*:*:*:* |
= 13 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:* |
= 18.04 | |
| OSV | PyPI | cryptography | >= 1.9.0, < 2.3 | 2.3 |
| OSV | PyPI | cryptography | >= 1.9, < 2.3 | 2.3 |
References
- https://access.redhat.com/errata/RHSA-2018:3600 · WEB, ADVISORY
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-10903 · Issue Tracking, Patch, Third Party Advisory, WEB, REPORT
- https://github.com/pyca/cryptography/pull/4342/commits/688e0f673bfbf43fa898994326c6877f00ab19ef · Patch, Third Party Advisory, WEB
- https://usn.ubuntu.com/3720-1/ · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2018-10903 · ADVISORY
- https://github.com/pyca/cryptography/pull/4342 · WEB
- https://github.com/pyca/cryptography/commit/d4378e42937b56f473ddade2667f919ce32208cb · WEB
- https://github.com/advisories/GHSA-fcf9-3qw3-gxmj · ADVISORY
- https://github.com/pyca/cryptography · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/cryptography/PYSEC-2018-52.yaml · WEB
History
- 25 Nov 2026 20:21 UTC · NVD: first stored (published 30 Jul 2018)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 30 Jul 2018)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 31 Jul 2018)