Security mailing lists by PureSourceCode

CVE-2023-23931

MEDIUM 6.5CVSS 3.1

Cipher.update_into can corrupt memory if passed an immutable python object as the outbuf

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.

Published
7 Feb 2023
Last modified
10 Sep 2026
Assigned by
security-advisories@github.com
NVD status
Modified
Weakness
CWE-754
Also known as
GHSA-w7pp-m8wf-vj6rPYSEC-2023-11
Sources
NVDJSONOSV GHSA-w7pp-m8wf-vj6rJSONOSV PYSEC-2023-11JSON

Scores

SourceScored byVersionScoreVector / decision
OSV GitHub CVSS 4.0 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
OSV GitHub CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
NVD security-advisories@github.com (Secondary) CVSS 3.1 MEDIUM 4.8 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD cryptography.io cryptography
cpe:2.3:a:cryptography.io:cryptography:*:*:*:*:*:python:*:*
>= 1.8, < 39.0.1 39.0.1
OSV PyPI cryptography >= 1.8, < 39.0.1 39.0.1

References

History

  • 25 Nov 2026 20:35 UTC · NVD: first stored (published 7 Feb 2023)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Feb 2023)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Feb 2023)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.