{"id":"CVE-2026-8376","published":"2026-05-25T23:53:27Z","modified":"2026-11-10T12:40:41Z","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…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.3,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00643,"percentile":0.51768,"provenance":"source"},"cwes":[{"id":"CWE-680","name":"Integer Overflow to Buffer Overflow"}],"references":[{"url":"https://github.com/Perl/perl5/commit/5e7f119eb2bb1181be908701f22bf7068e722f1c.patch","tags":["patch"]},{"url":"http://www.openwall.com/lists/oss-security/2026/05/26/1","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-457936.html","tags":[]}],"priority":{"score":15.5,"factors":[{"name":"EPSS percentile","points":10.35},{"name":"CVSS severity","points":5.11}]},"affectedVersions":[{"vendor":null,"product":null,"versions":["< 5.40.5-RC1",">= 5.41.0, < 5.42.3-RC1",">= 5.43.0, < 5.43.11"]}],"solutions":{"items":["Upgrade to Perl 5.40.5, 5.42.3 or 5.44.0 or later, or apply the upstream patch."],"from":"CVE.org CNA","provenance":"source"},"workarounds":{"items":["On 32-bit perl builds, avoid compiling regular expressions from untrusted input until a fixed release is installed."],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-05-27T18:03:45.554441Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-31772","exploited":false,"provenance":"source"}}