5.3 MEDIUM
- CVSS version (CVSS): 3.1
- Attack Vector (AV): Network (N)
- Attack Complexity (AC): Low (L)
- Privileges Required (PR): None (N)
- User Interaction (UI): None (N)
- Scope (S): Unchanged (U)
- Confidentiality (C): None (N)
- Integrity (I): None (N)
- Availability (A): Low (L)
- Modified Attack Vector (MAV): Network (N)
- Modified Attack Complexity (MAC): Low (L)
- Modified Privileges Required (MPR): None (N)
- Modified User Interaction (MUI): None (N)
- Modified Confidentiality (MC): None (N)
- Modified Scope (MS): Unchanged (U)
- Modified Integrity (MI): None (N)
- Modified Availability (MA): Low (L)
by @LeSuisse Activity log
- Created suggestion
- @LeSuisse accepted
- @LeSuisse published on GitHub
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
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.
References
Affected products
- <0.031
Matching in nixpkgs
pkgs.perlPackages.CryptArgon2
Perl interface to the Argon2 key derivation functions
-
nixos-unstable Argon2-0.019
- nixpkgs-unstable Argon2-0.019
- nixos-unstable-small Argon2-0.019
-
nixos-25.11 Argon2-0.019
- nixos-25.11-small Argon2-0.019
- nixpkgs-25.11-darwin Argon2-0.019
pkgs.perl5Packages.CryptArgon2
Perl interface to the Argon2 key derivation functions
-
nixos-unstable Argon2-0.019
- nixpkgs-unstable Argon2-0.019
- nixos-unstable-small Argon2-0.019
pkgs.perl538Packages.CryptArgon2
Perl interface to the Argon2 key derivation functions
-
nixos-25.11 Argon2-0.019
- nixos-25.11-small Argon2-0.019
- nixpkgs-25.11-darwin Argon2-0.019
pkgs.perl540Packages.CryptArgon2
Perl interface to the Argon2 key derivation functions
-
nixos-25.11 Argon2-0.019
- nixos-25.11-small Argon2-0.019
- nixpkgs-25.11-darwin Argon2-0.019