Security Advisories (1)
Crypt::Argon2 versions from 0.017 before 0.031 for Perl perform a heap out-of-bounds read in argon2_verify on empty encoded input. The auto-detect form of argon2_verify passes encoded_len - 1 as the length argument to memchr without checking that encoded_len is non-zero. When the encoded string is empty, the size_t subtraction underflows to SIZE_MAX and memchr scans adjacent heap memory looking for a '$' separator byte. A caller that invokes argon2_verify against a stored hash that may legitimately be empty (for example a placeholder row or a NULL column materialised as an empty string) reads out-of-bounds heap memory, which can crash the process or leak the position of an adjacent '$' byte into subsequent parsing.
No POD found for pod-coverage.t.
Time to read the source?
Module Install Instructions
To install Crypt::Argon2, copy and paste the appropriate command in to your terminal.
cpanm Crypt::Argon2
perl -MCPAN -e shell
install Crypt::Argon2
For more information on module installation, please visit the detailed CPAN module installation guide.