Closed
Description
CVE-2023-23931 references github.com/pyca/cryptography, which may be a Go module.
Description:
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.
References:
- NIST: https://nvd.nist.gov/vuln/detail/CVE-2023-23931
- JSON: https://github.com/CVEProject/cvelist/tree/a51d198718b3a4cf9c47982d01ee2d487376d37a/2023/23xxx/CVE-2023-23931.json
- web: GHSA-w7pp-m8wf-vj6r
- fix: pyca/cryptography@94a50a9
- Imported by: https://pkg.go.dev/github.com/pyca/cryptography?tab=importedby
Cross references:
- Module github.com/pyca/cryptography appears in issue x/vulndb: potential Go vuln in github.com/pyca/cryptography: CVE-2020-25659 #430 NOT_GO_CODE
- Module github.com/pyca/cryptography appears in issue x/vulndb: potential Go vuln in github.com/pyca/cryptography: CVE-2020-36242 #431 NOT_GO_CODE
See doc/triage.md for instructions on how to triage this report.
modules:
- module: github.com/pyca/cryptography
packages:
- package: cryptography
description: |
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.
cves:
- CVE-2023-23931
references:
- web: https://github.com/pyca/cryptography/security/advisories/GHSA-w7pp-m8wf-vj6r
- fix: https://github.com/pyca/cryptography/pull/8230/commits/94a50a9731f35405f0357fa5f3b177d46a726ab3