7.5high
App::Ack versions before 3.10.0 for Perl allow memory exhaustion via an unbounded context value in a project .ackrc
- Severity
- 7.5high CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.38% (higher than 33% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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
| Product or package | Versions | Reported by |
|---|---|---|
| ack | before 3.10.0 | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
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.
NVD (es)
Las versiones de App::Ack anteriores a la 3.10.0 para Perl permiten el agotamiento de la memoria a través de un valor de contexto ilimitado en un archivo .ackrc de proyecto. ack busca en la jerarquía de directorios desde el directorio actual un archivo .ackrc de proyecto y carga sus opciones. Las opciones de contexto -B y -C aceptaban cualquier entero positivo, y ack dimensionaba el búfer de contexto anterior a ese valor, por lo que una configuración en un archivo .ackrc de proyecto de --before-context=100000000 hacía que ack asignara un búfer de 100 millones de elementos. Un archivo .ackrc de proyecto subido a un repositorio no confiable puede abortar ack con una condición de falta de memoria.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-49146 changed 2026-07-08 | CVE Terms of Use |
| NVD | CVE-2026-49146 changed 2026-10-25 | Public domain |