CVE-2024-13939
JSON

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 packageVersionsReported by
String-Compare-ConstantTimeup to 0.321CVE List
fractal string::compare::constanttimeup to 0.321NVD

Classification

CWE-203CWE-208

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

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

SourceRecordLicence
CVE ListCVE-2024-13939 changed 2025-03-28CVE Terms of Use
NVDCVE-2024-13939 changed 2026-06-17Public domain