Skip to content
OpenAdvisories
High · 7.5 CVE-2024-13939 EUVD-2025-8542GHSA-x2v7-w9j6-rqmx

String::Compare::ConstantTime for Perl through 0.321 is vulnerable to timing attacks that allow an attacker to guess the length of a secret string

Published Mar 28, 2025 · Updated Mar 28, 2025 · Assigned by CPANSec

Description

String::Compare::ConstantTime for Perl through 0.321 is vulnerable to timing attacks that allow an attacker to guess the length of a secret string.

As stated in the documentation: "If the lengths of the strings are different, because equals returns false right away the size of the secret string may be leaked (but not its contents)."

This is similar to CVE-2020-36829

Affected products

VendorProductAffectedFixed
FRACTAL String::Compare::ConstantTime ≤ 0.321 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libstring-compare-constanttime-perl 0.321-3 —
Debian 13 libstring-compare-constanttime-perl 0.321-3 —
Debian 12 libstring-compare-constanttime-perl No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 libstring-compare-constanttime-perl No fix yet —
Ubuntu 26.04 LTS libstring-compare-constanttime-perl No fix yet —
Ubuntu 25.10 libstring-compare-constanttime-perl No fix yet —
Ubuntu 24.04 LTS libstring-compare-constanttime-perl No fix yet —
Ubuntu 22.04 LTS libstring-compare-constanttime-perl No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS libstring-compare-constanttime-perl No fix yet —
Ubuntu 18.04 LTS libstring-compare-constanttime-perl No fix yet —
Ubuntu 16.04 LTS libstring-compare-constanttime-perl No fix yet —

References