CVE-2024-13939 Details
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
A timing attack vulnerability has been identified in the String::Compare::ConstantTime module for Perl, affecting versions through 0.321. This vulnerability allows an attacker to infer the length of a secret string by measuring the time it takes to compare strings of differing lengths. The issue arises because the comparison function, 'equals', returns false immediately when string lengths differ, potentially leaking information about the length of the secret string without revealing its actual content.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 28, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://metacpan.org/release/FRACTAL/String-Compare-ConstantTime-0.321/view/lib/String/Compare/ConstantTime.pm#TIMING-SIDE-CHANNEL | CPANSec | Technical Description |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-203 | Observable Discrepancy | [email protected] |
| CWE-208 | Observable Timing Discrepancy | CPANSec |
Affected Products
| Product | Versions |
|---|---|
| fractal string::compare::constanttime | <= 0.321 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | CPANSec |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 11, 2025 | Initial Analysis | [email protected] |
| Mar 28, 2025 | CVE Modified | CISA-ADP |
| Mar 28, 2025 | New CVE Received | CPANSec |