{
  "id": "CVE-2026-8376",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-8376",
  "published_at": "2026-05-25T23:53:27.812Z",
  "title": "Perl versions before 5.40.5-RC1, from 5.41.0 before 5.42.3-RC1, from 5.43.0 before 5.43.11 have a heap buffer overflow when compiling regular expressions with a repeated fixed string on 32-bit builds",
  "cvss": {
    "score": 9.8,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "Perl versions before 5.40.5-RC1, from 5.41.0 before 5.42.3-RC1, from 5.43.0 before 5.43.11 have a heap buffer overflow when compiling regular expressions with a repeated fixed string on 32-bit builds.\n\nPerl_study_chunk in regcomp_study.c checked the size of the joined substring buffer in characters rather than bytes. For a quantified fixed substring with a large minimum count, the byte length mincount * l could overflow SSize_t, producing an undersized SvGROW allocation; the subsequent copy writes past the end of the buffer.\n\nA caller that compiles an attacker-controlled regular expression on a 32-bit perl build triggers a heap buffer overflow at compile time.",
  "cwe": "CWE-680",
  "cpes": [
    "cpe:2.3:a:perl:perl:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cisa-adp": 7.3,
    "nvd": 9.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "",
        "product": "",
        "ranges": [
          "\u003c 5.40.5-RC1",
          "\u003e= 5.41.0, \u003c 5.42.3-RC1",
          "\u003e= 5.43.0, \u003c 5.43.11"
        ],
        "fixed_in": [
          "5.40.5-RC1",
          "5.42.3-RC1",
          "5.43.11"
        ]
      }
    ],
    "solutions": [
      "Upgrade to Perl 5.40.5, 5.42.3 or 5.44.0 or later, or apply the upstream patch."
    ],
    "upgrade": [
      "Upgrade the affected product to 5.40.5-RC1 or 5.42.3-RC1 or 5.43.11 or later."
    ],
    "workarounds": [
      "On 32-bit perl builds, avoid compiling regular expressions from untrusted input until a fixed release is installed."
    ],
    "references": [
      {
        "kind": "Patch",
        "url": "https://github.com/Perl/perl5/commit/5e7f119eb2bb1181be908701f22bf7068e722f1c.patch"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
