Skip to content
Heist/ feed
Back to feed
High

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

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-49146
Confirmed fixed CVEs
Not specified
Updated in this feed
6 Nov 2026, 00:27 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 8 Jul 2026, 14:55 UTC

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.

osv:CVE-2026-49146
Complete source record
{
  "id": "2ea27fd19ef3ca6ab6ee9605ba72780c14a3804c39eee1b439163171353c7934",
  "url": "https://osv.dev/vulnerability/CVE-2026-49146",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "App::Ack versions before 3.10.0 for Perl allow memory exhaustion via an unbounded context value in a project .ackrc",
    "summary": "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.",
    "evidence": "osv:CVE-2026-49146",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-49146",
      "aliases": [
        "CVE-2026-49146"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/beyondgrep/ack3",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "e627c18e77d635b0dad69c77749e9296071b8389"
                },
                {
                  "fixed": "45ff5fe77dbd96f7332f31943102291f878f30b8"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "3.10.0"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  },
                  {
                    "range": [
                      {
                        "fixed": "45ff5fe77dbd96f7332f31943102291f878f30b8"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v3.9.0",
            "v3.8.2",
            "v3.8.1",
            "v3.8.0",
            "v3.6.0",
            "v3.5.0",
            "v3.4.0",
            "v3.1.3",
            "v3.1.2",
            "v3.1.1",
            "v3.1.0",
            "v3.0.3",
            "v3.0.2",
            "v3.0.1",
            "v3.0.0",
            "2.999_08",
            "2.999_07",
            "2.999_06",
            "2.999_05",
            "2.999_04",
            "2.999_02",
            "2.999_01",
            "2.18r",
            "2.18"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-49146.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:45.425131664Z",
      "provider": "osv",
      "references": [
        "https://cpan.org/modules",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/49xxx/CVE-2026-49146.json",
        "https://metacpan.org/release/PETDANCE/ack-v3.10.0/source/Changes",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-49146",
        "https://github.com/beyondgrep/ack3/commit/45ff5fe77dbd96f7332f31943102291f878f30b8.patch",
        "https://github.com/beyondgrep/ack3"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-770"
        ],
        "cna_assigner": "CPANSec",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/49xxx/CVE-2026-49146.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-49146",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 513480,
  "published_at": "2026-07-08T14:55:37.207+00:00"
}