Undefined Behavior for Input to API Affecting perl-IO-Compress-tests package, versions <0:2.217-1.amzn2023.0.2


Severity

Recommended
high

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.26% (18th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-AMZN2023-PERLIOCOMPRESSTESTS-17414934
  • published23 Jun 2026
  • disclosed27 May 2026

Introduced: 27 May 2026

CVE-2026-48961  (opens in a new tab)
CWE-475  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2023 perl-IO-Compress-tests to version 0:2.217-1.amzn2023.0.2 or higher.
This issue was patched in ALAS2023-2026-1825.

NVD Description

Note: Versions mentioned in the description apply only to the upstream perl-IO-Compress-tests package and not the perl-IO-Compress-tests package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2023 relevant fixed versions and status.

IO::Compress versions from 2.207 before 2.220 for Perl ship a zipdetails CLI tool that crashes with undefined subroutine on Info-ZIP Unix Extra Field with 8-byte UID or GID.

When decode_ux() in bin/zipdetails handles an Info-ZIP Unix Extra Field (tag 0x7875) with UID Size or GID Size set to 8, causing zipdetails to decode an 8-byte UID or GID value, it dispatches through decodeLitteEndian(), which calls a misnamed helper unpackValueQ. The actual function defined in the same file is unpackValue_Q (with underscore); the call raises 'Undefined subroutine &main::unpackValueQ' and the script exits with status 255.

Library callers of IO::Compress and IO::Uncompress are not affected; the defect is in the bundled CLI tool.

CVSS Base Scores

version 3.1