← All Advisories
Reported from OT-Advisories.com as of

A Signed-Length Guard Perl's pack/unpack Trusts After an Integer Overflow Lets an Attacker-Controlled Template Read Heap Memory Past the Buffer

Last refreshed2026-11-16

Status: UPDATED  |  Advisory ID: CVE-2026-57432

Key Details

CVECVE-2026-57432
CVSS Score / Version
8.4 (High) / CVSS v3.1
Updated2026-11-10
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS Prose
attack vector is local; attack complexity is low; privileges required is none; user interaction is none; scope is unchanged; confidentiality impact is high; integrity impact is high; availability impact is high.
Affected products
see table below
Classified as
CWE-125 (Out-of-bounds Read)
Exploitation prediction (EPSS)
0.21% probability of exploitation in the next 30 days (12% percentile) -- FIRST.org's EPSS model.

Affected Products, Subsystems & Sectors

VendorProductAffected VersionsPatch Status
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0)
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0)
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0)
SiemensSIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0)
perlperl
SubsystemsControllers & Field I/O
SectorsMultiple

What to Know

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. (NVD)

What to Do

Currently no fix is available
Source: Siemens SSA-457936

References

SourceReference
NVDhttps://nvd.nist.gov/vuln/detail/CVE-2026-57432
CVEhttps://www.cve.org/CVERecord?id=CVE-2026-57432
Vendor advisoryhttps://cert-portal.siemens.com/productcert/html/ssa-457936.html
Report compilation © 2026 OT-Advisories.com  ·  CC BY 4.0  ·  Source materials remain the property of their respective publishers as cited.