Advisory

PYSEC-2018-52

Also known as: CVE-2018-10903, GHSA-fcf9-3qw3-gxmj

Summary

The record has no summary.

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.

Severity

Not rated by the source.

Dates

Published
2018-07-30 16:29 UTC
Modified
2023-11-08 03:59 UTC

Affected packages and fixes

cryptography

PyPI · All systems

Affected

  • introduced 1.9, fixed 2.3 (ecosystem)

Fixed versions

2.3

Fix

  • Fixed version 2.3
    pip install --upgrade cryptography==2.3

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences