ALPINE-CVE-2023-23931

Source
https://security.alpinelinux.org/vuln/CVE-2023-23931
Import Source
https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2023-23931.json
JSON Data
https://api.osv.dev/v1/vulns/ALPINE-CVE-2023-23931
Upstream
Published
2023-02-07T21:15:09.850Z
Modified
2025-12-03T23:03:39.203535Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L CVSS Calculator
Summary
[none]
Details

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

Affected packages

Alpine:v3.23 / py3-cryptography

Package

Name
py3-cryptography
Purl
pkg:apk/alpine/py3-cryptography?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
39.0.1-r0

Affected versions

0.*

0.6.1-r0
0.8.2-r0

1.*

1.0.2-r0
1.3.1-r0
1.3.2-r0
1.4-r0
1.4-r1
1.4-r2
1.5.2-r0
1.5.2-r1
1.5.3-r0
1.7.2-r0
1.7.2-r1
1.8.1-r0
1.8.1-r1
1.9-r0

2.*

2.0.2-r0
2.0.3-r0
2.0.3-r1
2.1.3-r0
2.1.4-r0
2.1.4-r1
2.2.2-r0
2.3.1-r0
2.3.1-r1
2.4.2-r0
2.4.2-r1
2.4.2-r2
2.5-r0
2.6.1-r0
2.6.1-r1
2.7-r0
2.7-r1
2.8-r0
2.8-r1
2.9-r0
2.9.2-r0

3.*

3.2.1-r0
3.3-r0
3.3.1-r0
3.3.2-r0
3.3.2-r1
3.3.2-r2
3.3.2-r3
3.3.2-r4
3.4.8-r0
3.4.8-r1

37.*

37.0.4-r0
37.0.4-r1
37.0.4-r2

38.*

38.0.1-r0
38.0.2-r0
38.0.3-r0
38.0.3-r1
38.0.4-r0

39.*

39.0.0-r0