Out-of-bounds Read Affecting perl-YAML-Syck package, versions *


Severity

Recommended
0.0
medium
0
10

Based on CentOS security rating.

Threat Intelligence

EPSS
0.4% (35th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-CENTOS8-PERLYAMLSYCK-16874381
  • published25 May 2026
  • disclosed12 May 2026

Introduced: 12 May 2026

CVE-2026-5089  (opens in a new tab)
CWE-125  (opens in a new tab)

How to fix?

There is no fixed version for Centos:8 perl-YAML-Syck.

NVD Description

Note: Versions mentioned in the description apply only to the upstream perl-YAML-Syck package and not the perl-YAML-Syck package as distributed by Centos. See How to fix? for Centos:8 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1