CVE-2017-20240Crypt::PBKDF2 versions before 0.261630 for Perl are vulnerable to timing attacks
Crypt::PBKDF2 versions before 0.261630 for Perl are vulnerable to timing attacks. These versions use Perl's built-in eq comparison. Discrepancies in timing could be used to guess the underlying derived-key.
What to do
Fixed builds are available from Debian: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | libcrypt-pbkdf2-perl | Fix pending | UBUNTU-CVE-2017-20240 | |
| Ubuntu 26.04 | libcrypt-pbkdf2-perl | Under investigation | UBUNTU-CVE-2017-20240 | |
| Ubuntu 25.10 | libcrypt-pbkdf2-perl | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2017-20240 | |
| Ubuntu 24.04 | libcrypt-pbkdf2-perl | Under investigation | UBUNTU-CVE-2017-20240 | |
| Ubuntu 22.04 | libcrypt-pbkdf2-perl | Under investigation | UBUNTU-CVE-2017-20240 | |
| Ubuntu 20.04 | libcrypt-pbkdf2-perl | Fix pending | UBUNTU-CVE-2017-20240 | |
| Ubuntu 18.04 | libcrypt-pbkdf2-perl | Fix pending | UBUNTU-CVE-2017-20240 | |
| Ubuntu 16.04 | libcrypt-pbkdf2-perl | Fix pending | UBUNTU-CVE-2017-20240 | |
| Debian 14 | libcrypt-pbkdf2-perl | Fixed | 0.261630-1 | DEBIAN-CVE-2017-20240 |
| Debian 13 | libcrypt-pbkdf2-perl | Fixed | 0.261630-1~deb13u1 | DEBIAN-CVE-2017-20240 |
| Debian 12 | libcrypt-pbkdf2-perl | Fixed | 0.261630-1~deb13u1~deb12u1 | DEBIAN-CVE-2017-20240 |
What the vendor says
As published in the CVE record by CPANSec, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- ARODLAND Crypt::PBKDF2: affected: before 0.261630; fixed in
0.261630
Solution: Upgrade to version 0.261630 or later.
Workaround: Apply the patch from the referenced pull request.
Vendor advisories:
References
- https://github.com/arodland/Crypt-PBKDF2/pull/6
- https://metacpan.org/release/ARODLAND/Crypt-PBKDF2-0.161520/source/lib/Crypt/PBKDF2.pm#L123-148
- https://metacpan.org/release/ARODLAND/Crypt-PBKDF2-0.261630/changes
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.