CVE-2026-19082Imager versions from 0.45_02 before 1.034 for Perl may expose adjacent heap bytes via…
Imager versions from 0.45_02 before 1.034 for Perl may expose adjacent heap bytes via strlen() over-read from zero-count ASCII EXIF entries in copy_string_tags. copy_string_tags() computes an ASCII EXIF tag's length as `entry->size - 1` to strip the trailing NUL. A zero-count ASCII entry sets `entry->size` to 0, and the derived length reaches i_tags_add() as -1, which is interpreted as a request to call strlen(), scanning past the entry to the next NUL and copying those bytes into the tag. JPEG reaches this path via im_decode_exif(), as does the separate Imager::File::WEBP distribution, which is fixed by upgrading Imager. Any caller of Imager->read() on an attacker-supplied image with such an entry may receive an exif_* tag holding adjacent heap bytes instead of an empty string.
What to do
Fixed builds are available from Debian: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | libimager-perl | Fix pending | UBUNTU-CVE-2026-19082 | |
| Ubuntu 26.04 | libimager-perl | Under investigation | UBUNTU-CVE-2026-19082 | |
| Ubuntu 24.04 | libimager-perl | Under investigation | UBUNTU-CVE-2026-19082 | |
| Ubuntu 22.04 | libimager-perl | Under investigation | UBUNTU-CVE-2026-19082 | |
| Ubuntu 20.04 | libimager-perl | Fix pending | UBUNTU-CVE-2026-19082 | |
| Ubuntu 18.04 | libimager-perl | Fix pending | UBUNTU-CVE-2026-19082 | |
| Ubuntu 16.04 | libimager-perl | Fix pending | UBUNTU-CVE-2026-19082 | |
| Debian 14 | libimager-perl | Fixed | 1.034+dfsg-1 | DEBIAN-CVE-2026-19082 |
| Debian 13 | libimager-perl | Fix pending | DEBIAN-CVE-2026-19082 | |
| Debian 12 | libimager-perl | Fix pending | DEBIAN-CVE-2026-19082 |
What the vendor says
As published in the CVE record by CPANSec, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- TONYC Imager: affected: 0.45_02 to before 1.034; fixed in
1.034
Solution: Upgrade to Imager 1.034 or later.
Vendor advisories:
- https://github.com/tonycoz/imager/security/advisories/GHSA-hx46-55wp-hv6m (vendor-advisory)
- https://github.com/tonycoz/imager/commit/24bde0427a113264d53f45a9c29ae756d84c82fe.patch (patch)
- https://metacpan.org/release/TONYC/Imager-1.034/changes (release-notes)
References
- https://github.com/tonycoz/imager/security/advisories/GHSA-hx46-55wp-hv6m
- https://github.com/tonycoz/imager/commit/24bde0427a113264d53f45a9c29ae756d84c82fe.patch
- https://metacpan.org/release/TONYC/Imager-1.034/changes
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.