CVE-2023-23931
Cryptography.io Cryptography vulnerability
cryptography is a package designed to expose cryptographic primitives and recipes to Python developers. In affected versions `Cipher.update_into` would accept Python objects which implement the buffer protocol, but provide only immutable buffers. This would allow immutable objects (such as `bytes`) to be mutated, thus violating fundamental rules of Python and resulting in corrupted output. This now correctly raises an exception. This issue has been present since `update_into` was originally introduced in cryptography 1.8.
Affected products
Cryptography. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Cryptography.io Cryptography runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/pyca/cryptography/pull/8230/commits/94a50a9731f35405f0357fa5f3b177d46a726ab3 · Patch
- github.com/pyca/cryptography/security/advisories/GHSA-w7pp-m8wf-vj6r
- nvd.nist.gov/vuln/detail/CVE-2023-23931
- github.com/pyca/cryptography/commit/d6951dca25de45abd52da51b608055371fbcde4e
- github.com/pyca/cryptography/pull/8230
- github.com/pypa/advisory-database/tree/main/vulns/cryptography/PYSEC-2023-11.yaml
- lists.debian.org/debian-lts-announce/2024/10/msg00012.html
- security.netapp.com/advisory/ntap-20230324-0007
- nvd.nist.gov/vuln/detail/CVE-2023-23931
- cve.org/CVERecord?id=CVE-2023-23931
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.