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
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- UbuntuDebianRed Hat
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.
Upgrade path
27 packages: 11 fixed, 16 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| redhat/devspaces/code-rhel9(Red Hat openshift_devspaces 3) | All versions | No fix listed | No fix yet |
| redhat/openshift/ose-rhel-coreos-8(Red Hat openshift 4) | All versions | No fix listed | No fix yet |
| redhat/openshift/ose-rhel-coreos-9(Red Hat openshift 4) | All versions | No fix listed | No fix yet |
| redhat/openshift/ose-rhel-coreos-9(Red Hat openshift 5) | All versions | No fix listed | No fix yet |
| redhat/perl(Red Hat enterprise_linux 10) | All versions | No fix listed | No fix yet |
| redhat/perl(Red Hat enterprise_linux 8) | All versions | No fix listed | No fix yet |
| redhat/perl(Red Hat enterprise_linux 9) | All versions | No fix listed | No fix yet |
| redhat/perl(Red Hat rhel_els 6) | All versions | No fix listed | No fix yet |
| redhat/perl(Red Hat rhel_els 7) | All versions | No fix listed | No fix yet |
| redhat/perl:5.32/perl(Red Hat enterprise_linux 8) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9(Red Hat openshift_ai) | All versions | No fix listed | No fix yet |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) | >= V3.1.7 | No fix listed | No fix yet |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) | >= V3.1.7 | No fix listed | No fix yet |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) | >= V3.1.7 | No fix listed | No fix yet |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0) | >= V3.1.7 | No fix listed | No fix yet |
| Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0) | >= V3.1.7 | No fix listed | No fix yet |
| alpine/perl(Alpine v3.24) | < 5.42.3-r0 | 5.42.3-r0 | Fixed |
| azure linux perl(Azure Linux 3.0) | < 5.38.2-513 | 5.38.2-513 | Fixed |
| cpan perl | < 5.40.5-RC1; >= 5.41.0, < 5.42.3-RC1; >= 5.43.0, < 5.43.11 | 5.40.5-RC1, 5.42.3-RC1, 5.43.11 | Fixed |
| debian/perl(Debian 12) | < 5.36.0-7+deb12u4; = 5.36.0-7; = 5.36.0-7+deb12u1; = 5.36.0-7+deb12u2 +1 more | 5.36.0-7+deb12u4 | Fixed |
| debian/perl(Debian 13) | < 5.40.1-6+deb13u1; = 5.40.1-6 | 5.40.1-6+deb13u1 | Fixed |
| debian/perl(Debian 14) | < 5.40.1-8; = 5.40.1-6; = 5.40.1-7 | 5.40.1-8 | Fixed |
| perl | <= 5.43.10 | after 5.43.10 | Fixed |
| redhat/perl-main(Red Hat hummingbird 1) | < 0.02-524.3.hum1; < 5.42.2-524.3.hum1 | 0.02-524.3.hum1, 5.42.2-524.3.hum1 | Fixed |
| ubuntu/perl(Ubuntu 22.04) | < 5.34.0-3ubuntu1.8 | 5.34.0-3ubuntu1.8 | Fixed |
| ubuntu/perl(Ubuntu 24.04) | < 5.38.2-3.2ubuntu0.4 | 5.38.2-3.2ubuntu0.4 | Fixed |
| ubuntu/perl(Ubuntu 26.04) | < 5.40.1-7ubuntu0.3 | 5.40.1-7ubuntu0.3 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| cpan perl | < 5.40.5-RC1 | 5.40.5-RC1 |
| cpan perl | >= 5.41.0, < 5.42.3-RC1 | 5.42.3-RC1 |
| cpan perl | >= 5.43.0, < 5.43.11 | 5.43.11 |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) | >= V3.1.7 | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) | >= V3.1.7 | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) | >= V3.1.7 | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0) | >= V3.1.7 | No fix listed |
| Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0) | >= V3.1.7 | No fix listed |
| redhat/perl-main(Red Hat:hummingbird:1) | < 0.02-524.3.hum1 | 0.02-524.3.hum1 |
| redhat/perl-main(Red Hat:hummingbird:1) | < 5.42.2-524.3.hum1 | 5.42.2-524.3.hum1 |
| redhat/perl(Red Hat:enterprise_linux:10) | All versions | No fix listed |
| redhat/perl(Red Hat:rhel_els:6) | All versions | No fix listed |
| redhat/perl(Red Hat:rhel_els:7) | All versions | No fix listed |
| redhat/perl(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/perl:5.32/perl(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/perl(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| redhat/rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/openshift/ose-rhel-coreos-8(Red Hat:openshift:4) | All versions | No fix listed |
| redhat/openshift/ose-rhel-coreos-9(Red Hat:openshift:4) | All versions | No fix listed |
| redhat/openshift/ose-rhel-coreos-9(Red Hat:openshift:5) | All versions | No fix listed |
| redhat/devspaces/code-rhel9(Red Hat:openshift_devspaces:3) | All versions | No fix listed |
| debian/perl(Debian:12) | < 5.36.0-7+deb12u4 | 5.36.0-7+deb12u4 |
| debian/perl(Debian:12) | = 5.36.0-7 | No fix listed |
| debian/perl(Debian:12) | = 5.36.0-7+deb12u1 | No fix listed |
| debian/perl(Debian:12) | = 5.36.0-7+deb12u2 | No fix listed |
Show 12 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/perl(Debian:12) | = 5.36.0-7+deb12u3 | No fix listed |
| debian/perl(Debian:13) | < 5.40.1-6+deb13u1 | 5.40.1-6+deb13u1 |
| debian/perl(Debian:13) | = 5.40.1-6 | No fix listed |
| debian/perl(Debian:14) | < 5.40.1-8 | 5.40.1-8 |
| debian/perl(Debian:14) | = 5.40.1-6 | No fix listed |
| debian/perl(Debian:14) | = 5.40.1-7 | No fix listed |
| ubuntu/perl(Ubuntu:22.04) | < 5.34.0-3ubuntu1.8 | 5.34.0-3ubuntu1.8 |
| alpine/perl(Alpine:v3.24) | < 5.42.3-r0 | 5.42.3-r0 |
| ubuntu/perl(Ubuntu:24.04) | < 5.38.2-3.2ubuntu0.4 | 5.38.2-3.2ubuntu0.4 |
| ubuntu/perl(Ubuntu:26.04) | < 5.40.1-7ubuntu0.3 | 5.40.1-7ubuntu0.3 |
| perl | <= 5.43.10 | No fix listed |
| azure linux perl(Azure Linux:3.0) | < 5.38.2-513 | 5.38.2-513 |
References
- github.com patch
- github.com patch
- www.openwall.com mailing-list patch third-party-advisory
- cert-portal.siemens.com
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- Red Hat CVE page mitigation vendor-advisory
- RHSA-2026:39997 patch vendor-advisory
- Red Hat Bugzilla 2499729 issue-tracking
- www.cve.org
- nvd.nist.gov
- Debian Security Tracker CVE-2026-57432 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-8675-1 vendor-advisory
- USN-8684-1 vendor-advisory
- USN-8675-2 vendor-advisory
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking
- ENISA EUVD EUVD-2026-43502 third-party-advisory