Bug 2355663 (CVE-2024-13939) - CVE-2024-13939 String-Compare-ConstantTime: 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
Summary: CVE-2024-13939 String-Compare-ConstantTime: String::Compare::ConstantTime for...
Keywords:
Status: NEW
Alias: CVE-2024-13939
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2355704 2355705
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-03-28 03:01 UTC by OSIDB Bzimport
Modified: 2025-04-17 19:48 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-03-28 03:01:41 UTC
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

Comment 2 Petr Pisar 2025-03-28 12:00:04 UTC
I think this is not bug because it's a documented behavior. Though I understand that it's desirable to improve the code to remove that problematic feature.

Comment 3 Petr Pisar 2025-04-01 15:09:35 UTC
I sent a fix upstream <https://github.com/hoytech/String-Compare-ConstantTime/pull/21>.

Comment 4 Fedora Update System 2025-04-17 19:01:23 UTC
FEDORA-2025-ce51c124a5 (perl-String-Compare-ConstantTime-0.321-22.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 5 Fedora Update System 2025-04-17 19:33:29 UTC
FEDORA-2025-e6f5710dba (perl-String-Compare-ConstantTime-0.321-19.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 6 Fedora Update System 2025-04-17 19:48:00 UTC
FEDORA-2025-5d61874568 (perl-String-Compare-ConstantTime-0.321-21.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.