# 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

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.37%, higher than 33% of CVEs (2026-12-01)
- Published: 2025-03-28T02:05:01.416Z
- Modified: 2026-06-17T07:03:01.300Z
- Weaknesses: CWE-203, CWE-208
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- 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

(As written by CVE List.)

## Affected

- String-Compare-ConstantTime: up to 0.321
- fractal string::compare::constanttime: up to 0.321

## References

- <https://metacpan.org/release/FRACTAL/String-Compare-ConstantTime-0.321/view/lib/String/Compare/ConstantTime.pm#TIMING-SIDE-CHANNEL> (related, technical-description)

## Sources

- CVE List: [CVE-2024-13939](https://www.cve.org/CVERecord?id=CVE-2024-13939), CVE Terms of Use, modified 2025-03-28
- NVD: [CVE-2024-13939](https://nvd.nist.gov/vuln/detail/CVE-2024-13939), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-13939 · Whole record: https://cve.day/CVE-2024-13939.json · Rebuilt by cve.day 2026-11-25T22:58:52.452Z
