Two new vulnerabilities have been discovered in the Python cryptography library. These include a memory corruption issue that can occur when using `Cipher.update_into` with immutable objects and a DNS name constraint bypass. Patches are available to address these issues, and users are encouraged to upgrade.
One vulnerability is medium severity, and the other is low, based on CVSS scores.
What is Cryptography?
CVE-2023-23931: Memory Corruption in Cipher.update_into
Medium severity vulnerability.
EPSS score of 0.804 indicates a low probability of exploitation.
The `Cipher.update_into` function in the cryptography library could corrupt memory when passed an immutable Python object as the output buffer. This allowed for the mutation of immutable objects, violating Python's fundamental rules.
How to fix CVE-2023-23931 in Cryptography
Patch immediately- 1.Upgrade to cryptography version 39.0.1 or later.
Workaround: Avoid using `Cipher.update_into` with immutable objects as the output buffer in affected versions.
NextGuard automatically flags CVE-2023-23931 if Cryptography appears in any of your monitored projects — no manual lookup required.
CVE-2026-34073: DNS Name Constraint Bypass
Low severity vulnerability.
EPSS score of 0.023 indicates a very low probability of exploitation.
The cryptography library had an incomplete DNS name constraint enforcement on peer names during certificate validation. This allowed a peer name to bypass name constraints defined in parent certificates.
How to fix CVE-2026-34073 in Cryptography
Patch within 7 days- 1.Upgrade to cryptography version 46.0.6 or later.
Workaround: There is no practical workaround besides upgrading. Ensure your X.509 topology is not relying on the faulty validation logic.
NextGuard automatically flags CVE-2026-34073 if Cryptography appears in any of your monitored projects — no manual lookup required.
Stay ahead of Python vulnerabilities
Proactively detect and remediate vulnerabilities in your Python dependencies. monitor your python dependencies to ensure continuous security.
Compare PlansFrequently asked questions
It is crucial to keep your Python cryptography library up to date to mitigate potential security risks. Regularly see all python vulnerabilities and apply necessary patches to ensure the security of your applications. Stay informed about the latest security advisories to protect your systems.
Related topics