# JLSEC-2026-1395: A heap buffer overflow vulnerability was discovered in Perl. When there are non-ASCII bytes in...

- Severity: High 8.4 (CVSS:3.1, scored by Julia Security Advisories) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-11-23T15:17:06.961Z
- Modified: 2026-11-23T15:43:34.614Z
- Related: CVE-2024-56406, EUVD-2024-54400, GHSA-p6jf-pv8c-623c

## Description

A heap buffer overflow vulnerability was discovered in Perl.

Release branches 5.34, 5.36, 5.38 and 5.40 are affected, including development versions from 5.33.1 through 5.41.10.

When there are non-ASCII bytes in the left-hand-side of the `tr` operator, `S_do_trans_invmap` can overflow the destination pointer `d`.

```
$ perl -e '`$_` = "`\x`{FF}" x 1000000; `tr/\xFF/\x`{100}/;'
   Segmentation fault (core dumped)
```

It is believed that this vulnerability can enable Denial of Service and possibly Code Execution attacks on platforms that lack sufficient defenses.

(As written by Julia Security Advisories.)

## Affected

- Perl_jll (Julia): from 5.34.0+0

## References

- <http://www.openwall.com/lists/oss-security/2025/04/13/3> (web)
- <http://www.openwall.com/lists/oss-security/2025/04/13/4> (web)
- <http://www.openwall.com/lists/oss-security/2025/04/13/5> (web)
- <https://github.com/Perl/perl5/commit/87f42aa0e0096e9a346c9672aa3a0bd3bef8c1dd.patch> (web)
- <https://github.com/advisories/GHSA-p6jf-pv8c-623c> (web)
- <https://metacpan.org/release/SHAY/perl-5.38.4/changes> (web)
- <https://metacpan.org/release/SHAY/perl-5.40.2/changes> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-56406> (web)

## Sources

- Julia Security Advisories: [JLSEC-2026-1395](https://osv.dev/vulnerability/JLSEC-2026-1395), CC-BY-4.0, modified 2026-11-23

---

Page: https://cve.day/JLSEC-2026-1395 · Whole record: https://cve.day/JLSEC-2026-1395.json · Rebuilt by cve.day 2026-11-25T22:56:25.966Z
