PyCA Cryptography vulnerable to GCM tag forgery
Published 31 Jul 2018 · Updated 13 Sept 2024
Is your project on an affected cryptography?
Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- >=1.9.0 <2.3
- Fixed in
- 2.3
pip install 'cryptography>=2.3'Details
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.
Is GHSA-fcf9-3qw3-gxmj in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected cryptography, and gives you the command that fixes it.
More advisories for cryptography
- MediumCVE-2026-69248python-cryptography verifier accepts wildcard DNS names allowing escape from permittedSubtrees · 3 Aug 2026
- HighCVE-2026-69249python-cryptography: Duplicate self-signed intermediates can cause exponential path-building · 3 Aug 2026
- HighCVE-2026-69247cryptography: PKCS#7 EnvelopedData decryption exposes a Bleichenbacher oracle through distinguishable errors and timing · 3 Aug 2026
- HighGHSA-537c-gmf6-5ccfVulnerable OpenSSL included in cryptography wheels · 15 Jun 2026
- MediumCVE-2026-39892Cryptography vulnerable to buffer overflow if non-contiguous buffers were passed to APIs · 8 Apr 2026
- LowCVE-2026-34073cryptography has incomplete DNS name constraint enforcement on peer names · 27 Mar 2026
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2018-10903
- Linkgithub.com/pyca/cryptography/pull/4342
- Linkgithub.com/pyca/cryptography/commit/d4378e42937b56f473ddade2667f919ce32208cb
- Linkaccess.redhat.com/errata/RHSA-2018:3600
- Linkbugzilla.redhat.com/show_bug.cgi?id=CVE-2018-10903
- Advisorygithub.com/advisories/GHSA-fcf9-3qw3-gxmj
- Packagegithub.com/pyca/cryptography
- Linkgithub.com/pypa/advisory-database/tree/main/vulns/cryptography/PYSEC-2018-52.yaml
- Linkusn.ubuntu.com/3720-1
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.