# CVE-2026-5089: YAML::Syck versions before 1.38 for Perl has an out-of-bounds read

- Severity: High 7.3 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.40%, higher than 36% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-12T16:14:21.951Z
- Modified: 2026-10-26T18:10:00.173Z
- Weaknesses: CWE-124
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: CPANSec

## Description

YAML::Syck versions before 1.38 for Perl  has an out-of-bounds read.

The base60 (sexagesimal) parsing code in perl_syck.h has a buffer underflow bug in both int#base60 and float#base60 handlers. When processing the leftmost segment of a colon-separated value (e.g., the 1 in 1:30:45), the inner while loop can decrement a pointer past the start of the string buffer:

    while ( colon >= ptr && *colon != ':' )
    {
        colon--;
    }
    if ( *colon == ':' ) *colon = '\0';  // colon may be ptr-1 here

When no colon is found (final/leftmost segment), colon becomes ptr-1, and the subsequent *colon dereference reads one byte before the allocated buffer.

(As written by CVE List.)

## Affected

- YAML-Syck: before 1.38

## References

- <https://github.com/cpan-authors/YAML-Syck/issues/132> (exploit, issue-tracking)
- <https://metacpan.org/release/TODDR/YAML-Syck-1.38/changes> (release-notes)
- <https://github.com/cpan-authors/YAML-Syck/pull/133> (issue-tracking)
- <https://github.com/cpan-authors/YAML-Syck/commit/208a4d3bd1b5cdb4a791a6e3905bd6bd45e9d005.patch> (patch)
- <http://www.openwall.com/lists/oss-security/2026/05/12/16>

## Sources

- CVE List: [CVE-2026-5089](https://www.cve.org/CVERecord?id=CVE-2026-5089), CVE Terms of Use, modified 2026-05-14
- NVD: [CVE-2026-5089](https://nvd.nist.gov/vuln/detail/CVE-2026-5089), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-5089 · Whole record: https://cve.day/CVE-2026-5089.json · Rebuilt by cve.day 2026-11-25T22:59:21.382Z
