Skip to content
OpenAdvisories
High · 7.5 CVE-2026-49146 EUVD-2026-42274GHSA-hf7w-mcpw-97mf

App::Ack versions before 3.10.0 for Perl allow memory exhaustion via an unbounded context value in a project .ackrc

Published Jul 8, 2026 · Updated Jul 8, 2026 · Assigned by CPANSec

Description

App::Ack versions before 3.10.0 for Perl allow memory exhaustion via an unbounded context value in a project .ackrc.

ack searches up the directory hierarchy from the current directory for a project .ackrc and loads its options. The -B and -C context options accepted any positive integer, and ack sized the before-context buffer to that value, so a project .ackrc setting --before-context=100000000 made ack allocate a buffer of 100 million elements.

A project .ackrc committed to an untrusted repository can abort ack with an out-of-memory condition.

Affected products

VendorProductAffectedFixed
PETDANCE App::Ack < 3.10.0 3.10.0

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 ack 3.10.0-1 —
Debian 13 ack No fix yet —
Debian 12 ack No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 ack No fix yet —
Ubuntu 26.04 LTS ack No fix yet —
Ubuntu 25.10 ack No fix yet —
Ubuntu 24.04 LTS ack No fix yet —
Ubuntu 22.04 LTS ack No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS ack No fix yet —
Ubuntu 18.04 LTS ack No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed ack 3.10.0-1.1 openSUSE-SU-2026:10965-1
ReleasePackageFixed inAdvisory
Alpine v3.24 ack 3.10.0-r0 —

Advisories 1

References