7.5high
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
- Severity
- 7.5high CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.37% (higher than 33% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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
| Product or package | Versions | Reported by |
|---|---|---|
| String-Compare-ConstantTime | up to 0.321 | CVE List |
| fractal string::compare::constanttime | up to 0.321 | NVD |
Classification
What each source says
CVE List
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
NVD (es)
String::Compare::ConstantTime para Perl hasta la versión 0.321 es vulnerable a ataques de temporización que permiten a un atacante adivinar la longitud de una cadena secreta. Como se indica en la documentación: "Si las longitudes de las cadenas son diferentes, dado que `equals` devuelve `false` inmediatamente, el tamaño de la cadena secreta podría filtrarse (pero no su contenido). Esto es similar a CVE-2020-36829".
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-13939 changed 2025-03-28 | CVE Terms of Use |
| NVD | CVE-2024-13939 changed 2026-06-17 | Public domain |