# CVE-2026-57432: Integer overflow in perl:perl

> An integer overflow in Perl's pack and unpack functions allows attackers to read heap memory out of bounds via crafted templates.

- **Severity:** High 8.4 (`CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Local or same network only
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 13 Jul 2026
- **Updated:** 8 Sep 2026
- **Also known as:** AZL-92297, CLSA-2026-1784531112, CLSA-2026-1787646574, DEBIAN-CVE-2026-57432, ECHO-af51-df70-c8c4, GHSA-5g35-5jrj-f39p, MINI-47cj-mj97-jh2m, MINI-8p26-5vq2-86q9, ROOT-OS-ALPINE-322-CVE-2026-57432, ROOT-OS-ALPINE-323-CVE-2026-57432, ROOT-OS-DEBIAN-11-CVE-2026-57432, UBUNTU-CVE-2026-57432

## What is CVE-2026-57432?

CVE-2026-57432 is a high-severity vulnerability in perl:perl, published on 13 Jul 2026. It can only be exploited from the same machine or local network, with no action from the victim.

### Official description

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.

Weakness: CWE-190 (Integer Overflow or Wraparound), CWE-125 (Out-of-bounds Read)

## Which versions are affected by CVE-2026-57432?

It affects 1 product.


Products: Perl Perl.

## How do I fix CVE-2026-57432?

Upgrade to a fixed version.

## Is CVE-2026-57432 being exploited?

There is no known exploitation of CVE-2026-57432 in the wild and no public exploit code.

## Other vulnerabilities in perl:perl

- [CVE-2026-4176](https://insights.sbomify.com/CVE-2026-4176/): Supply chain in perl (critical 9.8)
- [CVE-2022-48522](https://insights.sbomify.com/CVE-2022-48522/): Memory corruption in n/a (critical 9.8)
- [CVE-2017-12814](https://insights.sbomify.com/CVE-2017-12814/): Memory corruption in n/a (critical 9.8)
- [CVE-2015-8608](https://insights.sbomify.com/CVE-2015-8608/): Memory corruption in n/a (critical 9.8)
- [CVE-2026-13221](https://insights.sbomify.com/CVE-2026-13221/): Integer overflow in perl:perl (critical 9.1)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-57432 and fix it if it is affected.

What it is: CVE-2026-57432 is a high-severity vulnerability in perl:perl, published on 13 Jul 2026. It can only be exploited from the same machine or local network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2026-57432 in the wild and no public exploit code.

Affected product: perl:perl. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-57432/ (Markdown: https://insights.sbomify.com/CVE-2026-57432/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-57432
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-57432
- OSV: https://osv.dev/vulnerability/CVE-2026-57432

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-57432/
Summaries are generated and may contain mistakes; the official description above is the record.
