Security Vulnerability Report
中文
CVE-2026-6659 CVSS 7.5 HIGH

CVE-2026-6659

Published: 2026-05-08 18:16:34
Last Modified: 2026-05-12 16:45:19
Source: 9b29abf9-4ab0-4765-b253-1875cd9b441e

Description

Crypt::PasswdMD5 versions through 1.42 for Perl generates insecure random values for salts. The built-in rand function is predictable, and unsuitable for cryptography.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

Crypt::PasswdMD5 <= 1.42

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/usr/bin/perl # PoC for CVE-2026-6659: Demonstrating predictable salt generation use strict; use warnings; # Simulate the vulnerable salt generation logic found in Crypt::PasswdMD5 <= 1.42 # The vulnerability relies on the predictability of the built-in rand(). sub generate_vulnerable_salt { my $salt; # Character set used in the module my @saltchars = ('.', '/', 0..9, 'A'..'Z', 'a'..'z'); # Generate 8 character salt $salt .= $saltchars[rand(@saltchars)] for (1..8); return $salt; } # Seed the random number generator with the current time (common default behavior) # This makes the output predictable if the time is known. srand(time()); print "Vulnerable Salt (Simulated): " . generate_vulnerable_salt() . "\n"; print "If an attacker knows the approximate time of generation, they can reproduce this salt.\n";

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-6659", "sourceIdentifier": "9b29abf9-4ab0-4765-b253-1875cd9b441e", "published": "2026-05-08T18:16:34.183", "lastModified": "2026-05-12T16:45:18.893", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Crypt::PasswdMD5 versions through 1.42 for Perl generates insecure random values for salts.\n\nThe built-in rand function 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:N/A:N", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 3.6}]}, "weaknesses": [{"source": "9b29abf9-4ab0-4765-b253-1875cd9b441e", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-338"}]}], "references": [{"url": "https://metacpan.org/release/RSAVAGE/Crypt-PasswdMD5-1.42/source/lib/Crypt/PasswdMD5.pm#L35-47", "source": "9b29abf9-4ab0-4765-b253-1875cd9b441e"}, {"url": "http://www.openwall.com/lists/oss-security/2026/05/08/17", "source": "af854a3a-2127-422b-91ae-364da2661108"}]}}