Advisory

UBUNTU-CVE-2026-57432

Also known as: CVE-2026-57432

Summary

The record has no summary.

Details

Perl versions before 5.40.5-RC1, from 5.41.0 before 5.42.3-RC1, from 5.43.0 before 5.43.11 have an integer overflow in S_measure_struct leading to an out-of-bounds heap read in pack and unpack. S_measure_struct adds each item's size times its repeat count to a running total with no overflow check, so a large repeat count in a pack or unpack template wraps the signed SSize_t total negative. The @, X, and x position codes then guard their moves with a signed length comparison that passes when the length is negative, advancing the buffer pointer out of bounds. A template derived from untrusted input can read heap memory past the buffer and return it to the caller.

Severity

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

Dates

Published
2026-07-13 17:17 UTC
Modified
2026-09-16 14:01 UTC

Affected packages and fixes

perl

Debian packages (deb) · Ubuntu 22.04

Affected

  • introduced 0, fixed 5.34.0-3ubuntu1.8 (ecosystem)

Fixed versions

5.34.0-3ubuntu1.8

Fix

  • Fixed version 5.34.0-3ubuntu1.8
    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.

perl

Debian packages (deb) · Ubuntu 24.04

Affected

  • introduced 0, fixed 5.38.2-3.2ubuntu0.4 (ecosystem)

Fixed versions

5.38.2-3.2ubuntu0.4

Fix

  • Fixed version 5.38.2-3.2ubuntu0.4
    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.

perl

Debian packages (deb) · Ubuntu 26.04

Affected

  • introduced 0, fixed 5.40.1-7ubuntu0.3 (ecosystem)

Fixed versions

5.40.1-7ubuntu0.3

Fix

  • Fixed version 5.40.1-7ubuntu0.3
    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