CVE-2024-13939
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
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
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- None
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
7.5
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
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
- Record
CVE-2024-13939- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-208
- Updated
- 2026-11-02
EUVDEUVD-2025-8542
7.5
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
- Record
EUVD-2025-8542- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-x2v7-w9j6-rqmx
7.5
String::Compare::ConstantTime for Perl through 0.321 is vulnerable to timing attacks that allow...
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
- Record
GHSA-x2v7-w9j6-rqmx- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-203, CWE-208
- Updated
- 2026-11-02
NVD
7.5
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
- Record
CVE-2024-13939- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-208, CWE-203
- Updated
- 2026-11-02
OSV
7.5
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
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
- Record
CVE-2024-13939- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-208
- Updated
- 2026-11-02
OSVDEBIAN-CVE-2024-13939
7.5
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
- Record
DEBIAN-CVE-2024-13939- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSVUBUNTU-CVE-2024-13939
7.5
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
- Record
UBUNTU-CVE-2024-13939- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
libstring-compare-constanttime-perlDebian:12 |
All versions, plus listed versions 0.321-20.321-3 |
None known |
libstring-compare-constanttime-perlDebian:13 |
before 0.321-3 | 0.321-3 |
libstring-compare-constanttime-perlDebian:14 |
before 0.321-3 | 0.321-3 |
libstring-compare-constanttime-perlUbuntu:16.04:LTS |
All versions, plus listed versions 0.310-10.311-10.311-1build1 |
None known |
libstring-compare-constanttime-perlUbuntu:18.04:LTS |
All versions, plus listed versions 0.312-1build1 |
None known |
libstring-compare-constanttime-perlUbuntu:20.04:LTS |
All versions, plus listed versions 0.321-10.321-1build1 |
None known |
libstring-compare-constanttime-perlUbuntu:22.04:LTS |
All versions, plus listed versions 0.321-1build20.321-1build3 |
None known |
libstring-compare-constanttime-perlUbuntu:24.04:LTS |
All versions, plus listed versions 0.321-2build10.321-2build20.321-2build30.321-2build4 |
None known |
libstring-compare-constanttime-perlUbuntu:25.10 |
All versions, plus listed versions 0.321-2build50.321-3 |
None known |
libstring-compare-constanttime-perlUbuntu:26.10 |
All versions, plus listed versions 0.321-30.321-3build1 |
None known |
libstring-compare-constanttime-perlUbuntu:26.04:LTS |
All versions, plus listed versions 0.321-3 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2024-13939 is a high vulnerability (CVSS 7.5) in Fractal String::compare::constanttime, published March 28, 2025. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.37%, the 31st percentile. Fixed in libstring-compare-constanttime-perl 0.321-3.
References
metacpan.org/release/FRACTAL/String-Compare-ConstantTime-0.321/view/lib/String/Compare/ConstantTime.pm
nvd.nist.gov/vuln/detail/CVE-2024-13939
github.com/advisories/GHSA-x2v7-w9j6-rqmx
cpan.org/modules
github.com/CVEProject/cvelistV5/tree/main/cves/2024/13xxx/CVE-2024-13939.json
github.com/hoytech/String-Compare-ConstantTime
security-tracker.debian.org/tracker/CVE-2024-13939
ubuntu.com/security/CVE-2024-13939
cve.org/CVERecord?id=CVE-2024-13939