CVEfocus › CVE database › CVE-2024-13939

CVE-2024-13939String::Compare::ConstantTime for Perl through 0.321 is vulnerable to timing attacks…

CVSS 7.5 HighEPSS 0.7% (higher than 49% of CVEs)Published 2025-03-28Updated 2025-03-28Assigner: CPANSec

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

CWE-208

What to do

Fixed builds are available from Debian: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

2Fixed
4Fix pending
3Under investigation
2Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10libstring-compare-constanttime-perlFix pendingUBUNTU-CVE-2024-13939
Ubuntu 26.04libstring-compare-constanttime-perlUnder investigationUBUNTU-CVE-2024-13939
Ubuntu 25.10libstring-compare-constanttime-perlWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-13939
Ubuntu 24.04libstring-compare-constanttime-perlUnder investigationUBUNTU-CVE-2024-13939
Ubuntu 22.04libstring-compare-constanttime-perlUnder investigationUBUNTU-CVE-2024-13939
Ubuntu 20.04libstring-compare-constanttime-perlWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-13939
Ubuntu 18.04libstring-compare-constanttime-perlFix pendingUBUNTU-CVE-2024-13939
Ubuntu 16.04libstring-compare-constanttime-perlFix pendingUBUNTU-CVE-2024-13939
Debian 14libstring-compare-constanttime-perlFixed0.321-3DEBIAN-CVE-2024-13939
Debian 13libstring-compare-constanttime-perlFixed0.321-3DEBIAN-CVE-2024-13939
Debian 12libstring-compare-constanttime-perlFix pendingDEBIAN-CVE-2024-13939

What the vendor says

As published in the CVE record by CPANSec, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.