Advisory

UBUNTU-CVE-2023-23931

Also known as: CVE-2023-23931

Summary

The record has no summary.

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.

Severity

Medium Basis: CVSS v3 score 4.8, vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L

Dates

Published
2023-02-07 21:15 UTC
Modified
2026-09-17 19:56 UTC

Affected packages and fixes

python-cryptography

Debian packages (deb) · Ubuntu 20.04

Affected

  • introduced 0, fixed 2.8-3ubuntu0.2 (ecosystem)

Fixed versions

2.8-3ubuntu0.2

Fix

  • Fixed version 2.8-3ubuntu0.2
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

python-cryptography

Debian packages (deb) · Ubuntu 22.04

Affected

  • introduced 0, fixed 3.4.8-1ubuntu2.1 (ecosystem)

Fixed versions

3.4.8-1ubuntu2.1

Fix

  • Fixed version 3.4.8-1ubuntu2.1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences