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

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.38%, higher than 33% of CVEs (2026-12-01)
- Published: 2026-07-08T14:55:37.207Z
- Modified: 2026-10-25T20:10:00.147Z
- Weaknesses: CWE-770
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- ack: before 3.10.0

## References

- <https://github.com/beyondgrep/ack3/commit/45ff5fe77dbd96f7332f31943102291f878f30b8.patch> (patch)
- <https://metacpan.org/release/PETDANCE/ack-v3.10.0/source/Changes> (release-notes)
- <http://www.openwall.com/lists/oss-security/2026/07/08/8>

## Sources

- CVE List: [CVE-2026-49146](https://www.cve.org/CVERecord?id=CVE-2026-49146), CVE Terms of Use, modified 2026-07-08
- NVD: [CVE-2026-49146](https://nvd.nist.gov/vuln/detail/CVE-2026-49146), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-49146 · Whole record: https://cve.day/CVE-2026-49146.json · Rebuilt by cve.day 2026-11-25T22:59:27.381Z
