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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 | — |