The cryptography Python package versions from 42.0.5 up to but not including 46.0.5 contain a vulnerability in the handling of SECT elliptic curves. Specifically, certain functions do not validate that a public key point belongs to the expected prime-order subgroup, allowing attackers to supply points from small-order subgroups. This can leak bits of the victim's private key during ECDH key agreement and enable signature forgery in ECDSA. The issue is fixed in version 46.0.5.