CVE-2026-93019: Imager versions before 1.036 for Perl exit the process reading a TGA with a colour map length of 32768 or more in tga_palette_read

Published Sep 18, 2026
·
Updated

Imager versions before 1.036 for Perl exit the process reading a TGA with a colour map length of 32768 or more in tgapaletteread.

The reader unpacks the two-byte colour map length into a signed short, so a length of 32768 or more becomes negative. tgapaletteread() casts that value to sizet and asks mymalloc() for a size near SIZEMAX. The allocation fails and Imager's allocator calls exit(3).

Reading an attacker-supplied file through Imager->read() triggers an uncatchable exit.

Affected Software

1 affected component
Imager Imager<1.036

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Imager (Perl) to a version that resolves this vulnerability.

    Fixed in 1.036

Event History

Sep 18, 2026
CVE Published
via MITRE·01:58 PM
Data Sourced
via MITRE·01:58 PM
RemedyDescriptionWeakness

Frequently Asked Questions

1

Who is exposed to this issue?

Applications using Imager before 1.036 are exposed if they read attacker-supplied TGA files through Imager->read(). A crafted TGA colour map length of 32768 or greater can terminate the process.

2

What does an attacker need to exploit it?

An attacker needs to cause the application to read a malicious TGA file. No additional conditions are described beyond supplying a TGA whose colour map length is at least 32768.

3

Can the application catch the failure and continue processing?

No. The allocation failure causes Imager's allocator to call exit(3), and the resulting process exit is described as uncatchable when triggered through Imager->read().

4

What can be done if upgrading is not immediately possible?

Do not process untrusted TGA files with affected Imager versions. If TGA input must be accepted, reject files with colour map lengths of 32768 or greater before passing them to Imager->read().

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203