CVE-2026-57432
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
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.
INFO
Published Date :
July 13, 2026, 5:17 p.m.
Last Modified :
Nov. 10, 2026, 1:19 p.m.
Remotely Exploit :
No
Source :
9b29abf9-4ab0-4765-b253-1875cd9b441e
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | |||||
| CVSS 3.1 | HIGH | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | ||||
| CVSS 3.1 | HIGH | [email protected] |
Solution
- Update Perl to a patched version.
- Avoid using untrusted input for pack/unpack templates.
- Implement overflow checks for SSize_t calculations.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-57432.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-57432 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-57432
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-57432 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-57432 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
Nov. 10, 2026
Action Type Old Value New Value Added Affected New affected value received. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/57xxx/CVE-2026-57432.json">CVE-2026-57432</a> Added Reference https://cert-portal.siemens.com/productcert/html/ssa-457936.html -
CVE Translated by [email protected]
Oct. 24, 2026
Action Type Old Value New Value Added Translation Title: perl de SHAY, Description: Las versiones de Perl hasta la 5.43.10 tienen un desbordamiento de entero en S_measure_struct que conduce a una lectura de pila fuera de límites en pack y unpack. S_measure_struct suma el tamaño de cada elemento multiplicado por su recuento de repeticiones a un total acumulado sin verificación de desbordamiento, por lo que un recuento de repeticiones grande en una plantilla de pack o unpack envuelve el total SSize_t con signo a negativo. Los códigos de posición @, X y x luego protegen sus movimientos con una comparación de longitud con signo que pasa cuando la longitud es negativa, avanzando el puntero del búfer fuera de límites. Una plantilla derivada de entrada no confiable puede leer memoria de pila más allá del búfer y devolverla al llamador. -
CVE Modified by 9b29abf9-4ab0-4765-b253-1875cd9b441e
Sep. 08, 2026
Action Type Old Value New Value Changed Description Perl versions through 5.43.10 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. 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. Added Affected Affected value modified. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/57xxx/CVE-2026-57432.json">CVE-2026-57432</a> Added Reference https://github.com/Perl/perl5/commit/40754edc72dd3e513d758153c0e2f0215897740e.patch Added Reference https://github.com/Perl/perl5/commit/5f7eb6bbbe0510964e3fb1d6bb691e5445913e55.patch Removed Reference https://github.com/Perl/perl5/commit/40754edc72dd3e513d758153c0e2f0215897740e.patch Removed Reference https://github.com/Perl/perl5/commit/5f7eb6bbbe0510964e3fb1d6bb691e5445913e55.patch Removed Reference Type https://github.com/Perl/perl5/commit/40754edc72dd3e513d758153c0e2f0215897740e.patch Types: Patch Removed Reference Type https://github.com/Perl/perl5/commit/5f7eb6bbbe0510964e3fb1d6bb691e5445913e55.patch Types: Patch -
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Sep. 08, 2026
Action Type Old Value New Value Added Reference http://www.openwall.com/lists/oss-security/2026/07/13/6 Removed Reference http://www.openwall.com/lists/oss-security/2026/07/13/6 Removed Reference Type http://www.openwall.com/lists/oss-security/2026/07/13/6 Types: Mailing List, Patch, Third Party Advisory -
Initial Analysis by [email protected]
Jul. 14, 2026
Action Type Old Value New Value Added CVSS V3.1 AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Added CPE Configuration OR *cpe:2.3:a:perl:perl:*:*:*:*:*:*:*:* versions up to (including) 5.43.10 Added Reference Type CVE: http://www.openwall.com/lists/oss-security/2026/07/13/6 Types: Mailing List, Patch, Third Party Advisory Added Reference Type CPANSec: https://github.com/Perl/perl5/commit/40754edc72dd3e513d758153c0e2f0215897740e.patch Types: Patch Added Reference Type CPANSec: https://github.com/Perl/perl5/commit/5f7eb6bbbe0510964e3fb1d6bb691e5445913e55.patch Types: Patch -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Jul. 14, 2026
Action Type Old Value New Value Added CVSS V3.1 AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Added SSVC {'id': 'CVE-2026-57432', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'none'}, {'automatable': 'no'}, {'technicalImpact': 'total'}], 'version': '2.0.3', 'timestamp': '2026-07-14T13:34:38.894921Z'} -
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Jul. 13, 2026
Action Type Old Value New Value Added Reference http://www.openwall.com/lists/oss-security/2026/07/13/6 -
New CVE Received by 9b29abf9-4ab0-4765-b253-1875cd9b441e
Jul. 13, 2026
Action Type Old Value New Value Added Affected [{'repo': 'https://github.com/Perl/perl5', 'vendor': 'SHAY', 'product': 'perl', 'versions': [{'status': 'affected', 'version': '0', 'versionType': 'custom', 'lessThanOrEqual': '5.43.10'}], 'packageName': 'perl', 'programFiles': ['pp_pack.c'], 'collectionURL': 'https://cpan.org/modules', 'defaultStatus': 'unaffected', 'programRoutines': [{'name': 'S_measure_struct'}]}] Added Description Perl versions through 5.43.10 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. Added CWE CWE-125 Added CWE CWE-190 Added Reference https://github.com/Perl/perl5/commit/40754edc72dd3e513d758153c0e2f0215897740e.patch Added Reference https://github.com/Perl/perl5/commit/5f7eb6bbbe0510964e3fb1d6bb691e5445913e55.patch