{"id":"CVE-2026-8376","aliases":["CVE-2026-8376"],"related":[],"kind":"vulnerability","state":"published","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","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Versiones de Perl hasta la 5.43.10 tienen un desbordamiento de búfer de montón al compilar expresiones regulares con una cadena fija repetida en compilaciones de 32 bits.\n\nPerl_study_chunk en regcomp_study.c verificó el tamaño del búfer de subcadena unida en caracteres en lugar de bytes. Para una subcadena fija cuantificada con un recuento mínimo grande, la longitud en bytes mincount * l podría desbordar SSize_t, produciendo una asignación SvGROW de tamaño insuficiente; la copia subsiguiente escribe más allá del final del búfer.\n\nUn llamador que compila una expresión regular controlada por el atacante en una compilación de Perl de 32 bits desencadena un desbordamiento de búfer de montón en tiempo de compilación.","source":"nvd"}],"published":"2026-05-25T23:53:27.812Z","modified":"2026-11-10T13:19:41.447Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":7.3,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":7.3,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-680"],"affected":[{"ranges":[{"type":"custom","introduced":"0","fixed":"5.40.5-RC1","status":"affected"},{"type":"custom","introduced":"5.41.0","fixed":"5.42.3-RC1","status":"affected"},{"type":"custom","introduced":"5.43.0","fixed":"5.43.11","status":"affected"}],"package":"perl","repo":"https://github.com/Perl/perl5","source":"cvelist"},{"ranges":[{"status":"affected","lastAffected":"5.43.10"}],"vendor":"perl","product":"perl","cpe":"cpe:2.3:a:perl:perl:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/Perl/perl5/commit/5e7f119eb2bb1181be908701f22bf7068e722f1c.patch","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"http://www.openwall.com/lists/oss-security/2026/05/26/1","tags":["mailing-list","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-457936.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"CPANSec","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-05-27T18:03:45.554Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-8376","url":"https://www.cve.org/CVERecord?id=CVE-2026-8376","licence":"CVE Terms of Use","modified":"2026-11-10T12:40:41.094Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-8376","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-8376","licence":"Public domain","modified":"2026-11-10T13:19:41.447Z"}],"updatedAt":"2026-11-25T22:59:22.302Z","epss":{"score":0.00643,"percentile":0.52137,"date":"2026-12-01T12:00:22.000Z"}}