CVE-2023-23931 Cipher.update_into can corrupt memory in pyca cryptography
MediumCVSS 6.5
EPSS 1.3%
- Published
- Updated
- Exploit status
- No public exploit known
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.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi cryptography(PyPI) | >= 1.8, < 39.0.1 | 39.0.1 |
| pypi cryptography(PyPI) | = 1.8 | No fix listed |
| pypi cryptography(PyPI) | = 1.8.1 | No fix listed |
| pypi cryptography(PyPI) | = 1.8.2 | No fix listed |
| pypi cryptography(PyPI) | = 1.9 | No fix listed |
| pypi cryptography(PyPI) | = 2.0 | No fix listed |
| pypi cryptography(PyPI) | = 2.0.1 | No fix listed |
| pypi cryptography(PyPI) | = 2.0.2 | No fix listed |
| pypi cryptography(PyPI) | = 2.0.3 | No fix listed |
| pypi cryptography(PyPI) | = 2.1 | No fix listed |
| pypi cryptography(PyPI) | = 2.1.1 | No fix listed |
| pypi cryptography(PyPI) | = 2.1.2 | No fix listed |
| pypi cryptography(PyPI) | = 2.1.3 | No fix listed |
| pypi cryptography(PyPI) | = 2.1.4 | No fix listed |
| pypi cryptography(PyPI) | = 2.2 | No fix listed |
| pypi cryptography(PyPI) | = 2.2.1 | No fix listed |
| pypi cryptography(PyPI) | = 2.2.2 | No fix listed |
| pypi cryptography(PyPI) | = 2.3 | No fix listed |
| pypi cryptography(PyPI) | = 2.3.1 | No fix listed |
| pypi cryptography(PyPI) | = 2.4 | No fix listed |
| pypi cryptography(PyPI) | = 2.4.1 | No fix listed |
| pypi cryptography(PyPI) | = 2.4.2 | No fix listed |
| pypi cryptography(PyPI) | = 2.5 | No fix listed |
| pypi cryptography(PyPI) | = 2.6 | No fix listed |
| pypi cryptography(PyPI) | = 2.6.1 | No fix listed |
Show 77 more
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi cryptography(PyPI) | = 2.7 | No fix listed |
| pypi cryptography(PyPI) | = 2.8 | No fix listed |
| pypi cryptography(PyPI) | = 2.9 | No fix listed |
| pypi cryptography(PyPI) | = 2.9.1 | No fix listed |
| pypi cryptography(PyPI) | = 2.9.2 | No fix listed |
| pypi cryptography(PyPI) | = 3.0 | No fix listed |
| pypi cryptography(PyPI) | = 3.1 | No fix listed |
| pypi cryptography(PyPI) | = 3.1.1 | No fix listed |
| pypi cryptography(PyPI) | = 3.2 | No fix listed |
| pypi cryptography(PyPI) | = 3.2.1 | No fix listed |
| pypi cryptography(PyPI) | = 3.3 | No fix listed |
| pypi cryptography(PyPI) | = 3.3.1 | No fix listed |
| pypi cryptography(PyPI) | = 3.3.2 | No fix listed |
| pypi cryptography(PyPI) | = 3.4 | No fix listed |
| pypi cryptography(PyPI) | = 3.4.1 | No fix listed |
| pypi cryptography(PyPI) | = 3.4.2 | No fix listed |
| pypi cryptography(PyPI) | = 3.4.3 | No fix listed |
| pypi cryptography(PyPI) | = 3.4.4 | No fix listed |
| pypi cryptography(PyPI) | = 3.4.5 | No fix listed |
| pypi cryptography(PyPI) | = 3.4.6 | No fix listed |
| pypi cryptography(PyPI) | = 3.4.7 | No fix listed |
| pypi cryptography(PyPI) | = 3.4.8 | No fix listed |
| pypi cryptography(PyPI) | = 35.0.0 | No fix listed |
| pypi cryptography(PyPI) | = 36.0.0 | No fix listed |
| pypi cryptography(PyPI) | = 36.0.1 | No fix listed |
| pypi cryptography(PyPI) | = 36.0.2 | No fix listed |
| pypi cryptography(PyPI) | = 37.0.0 | No fix listed |
| pypi cryptography(PyPI) | = 37.0.1 | No fix listed |
| pypi cryptography(PyPI) | = 37.0.2 | No fix listed |
| pypi cryptography(PyPI) | = 37.0.3 | No fix listed |
| pypi cryptography(PyPI) | = 37.0.4 | No fix listed |
| pypi cryptography(PyPI) | = 38.0.0 | No fix listed |
| pypi cryptography(PyPI) | = 38.0.1 | No fix listed |
| pypi cryptography(PyPI) | = 38.0.2 | No fix listed |
| pypi cryptography(PyPI) | = 38.0.3 | No fix listed |
| pypi cryptography(PyPI) | = 38.0.4 | No fix listed |
| pypi cryptography(PyPI) | = 39.0.0 | No fix listed |
| debian/python-cryptography(Debian:12) | < 38.0.4-3 | 38.0.4-3 |
| debian/python-cryptography(Debian:13) | < 38.0.4-3 | 38.0.4-3 |
| debian/python-cryptography(Debian:14) | < 38.0.4-3 | 38.0.4-3 |
| pyca cryptography | = >=1.8, < 39.0.1 | No fix listed |
| ubuntu/python-cryptography(Ubuntu:22.04) | < 3.4.8-1ubuntu2.1 | 3.4.8-1ubuntu2.1 |
| cryptography.io cryptography | >= 1.8, < 39.0.1 | 39.0.1 |
| alpine/py3-cryptography(Alpine:v3.17) | >= 1.8, < 38.0.3-r1 | 38.0.3-r1 |
| alpine/py3-cryptography(Alpine:v3.18) | >= 1.8, < 39.0.1-r0 | 39.0.1-r0 |
| alpine/py3-cryptography(Alpine:v3.19) | >= 1.8, < 39.0.1-r0 | 39.0.1-r0 |
| alpine/py3-cryptography(Alpine:v3.20) | >= 1.8, < 39.0.1-r0 | 39.0.1-r0 |
| alpine/py3-cryptography(Alpine:v3.21) | >= 1.8, < 39.0.1-r0 | 39.0.1-r0 |
| alpine/py3-cryptography(Alpine:v3.22) | >= 1.8, < 39.0.1-r0 | 39.0.1-r0 |
| alpine/py3-cryptography(Alpine:v3.23) | >= 1.8, < 39.0.1-r0 | 39.0.1-r0 |
| alpine/py3-cryptography(Alpine:v3.24) | >= 1.8, < 39.0.1-r0 | 39.0.1-r0 |
| ubuntu/python-cryptography(Ubuntu:Pro:18.04) | < 2.1.4-1ubuntu1.4+esm6 | 2.1.4-1ubuntu1.4+esm6 |
| ubuntu/python-cryptography(Ubuntu:Pro:18.04) | = 1.9-1 | No fix listed |
| ubuntu/python-cryptography(Ubuntu:Pro:18.04) | = 2.1.3-3 | No fix listed |
| ubuntu/python-cryptography(Ubuntu:Pro:18.04) | = 2.1.4-1 | No fix listed |
| ubuntu/python-cryptography(Ubuntu:Pro:18.04) | = 2.1.4-1build1 | No fix listed |
| ubuntu/python-cryptography(Ubuntu:Pro:18.04) | = 2.1.4-1build2 | No fix listed |
| ubuntu/python-cryptography(Ubuntu:Pro:18.04) | = 2.1.4-1ubuntu1 | No fix listed |
| ubuntu/python-cryptography(Ubuntu:Pro:18.04) | = 2.1.4-1ubuntu1.1 | No fix listed |
| ubuntu/python-cryptography(Ubuntu:Pro:18.04) | = 2.1.4-1ubuntu1.2 | No fix listed |
| ubuntu/python-cryptography(Ubuntu:Pro:18.04) | = 2.1.4-1ubuntu1.3 | No fix listed |
| ubuntu/python-cryptography(Ubuntu:Pro:18.04) | = 2.1.4-1ubuntu1.4 | No fix listed |
| ubuntu/python-cryptography(Ubuntu:Pro:18.04) | = 2.1.4-1ubuntu1.4+esm1 | No fix listed |
| ubuntu/python-cryptography(Ubuntu:Pro:18.04) | = 2.1.4-1ubuntu1.4+esm3 | No fix listed |
| ubuntu/python-cryptography(Ubuntu:20.04) | < 2.8-3ubuntu0.2 | 2.8-3ubuntu0.2 |
| ubuntu/python-cryptography(Ubuntu:20.04) | = 2.6.1-3.1 | No fix listed |
| ubuntu/python-cryptography(Ubuntu:20.04) | = 2.6.1-4 | No fix listed |
| ubuntu/python-cryptography(Ubuntu:20.04) | = 2.6.1-4ubuntu1 | No fix listed |
| ubuntu/python-cryptography(Ubuntu:20.04) | = 2.8-1ubuntu2 | No fix listed |
| ubuntu/python-cryptography(Ubuntu:20.04) | = 2.8-2 | No fix listed |
| ubuntu/python-cryptography(Ubuntu:20.04) | = 2.8-3 | No fix listed |
| ubuntu/python-cryptography(Ubuntu:20.04) | = 2.8-3ubuntu0.1 | No fix listed |
| ubuntu/python-cryptography(Ubuntu:22.04) | = 3.3.2-1 | No fix listed |
| ubuntu/python-cryptography(Ubuntu:22.04) | = 3.3.2-1build1 | No fix listed |
| ubuntu/python-cryptography(Ubuntu:22.04) | = 3.4.8-1 | No fix listed |
| ubuntu/python-cryptography(Ubuntu:22.04) | = 3.4.8-1ubuntu1 | No fix listed |
| ubuntu/python-cryptography(Ubuntu:22.04) | = 3.4.8-1ubuntu2 | No fix listed |
References
- https://github.com/pyca/cryptography/security/advisories/GHSA-w7pp-m8wf-vj6r exploit issue-tracking vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch
- github.com patch
- github.com product
- github.com
- lists.debian.org
- security.netapp.com
- https://github.com/pyca/cryptography/pull/8230/commits/94a50a9731f35405f0357fa5f3b177d46a726ab3 issue-tracking patch
- Debian Security Tracker CVE-2023-23931 vendor-advisory
- github.com
- Ubuntu CVE tracker issue-tracking vendor-advisory
- USN-6539-1 vendor-advisory
- USN-8776-1 vendor-advisory
- www.cve.org issue-tracking
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking