CVE-2025-15604

Source
https://cve.org/CVERecord?id=CVE-2025-15604
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-15604.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-15604
Published
2026-03-28T18:43:56.318Z
Modified
2026-07-15T01:48:51.632036736Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Amon2 versions before 6.17 for Perl use an insecure random_string implementation for security functions
Details

Amon2 versions before 6.17 for Perl use an insecure random_string implementation for security functions.

In versions 6.06 through 6.16, the random_string function will attempt to read bytes from the /dev/urandom device, but if that is unavailable then it generates bytes by concatenating a SHA-1 hash seeded with the built-in rand() function, the PID, and the high resolution epoch time. The PID will come from a small set of numbers, and the epoch time may be guessed, if it is not leaked from the HTTP Date header. The built-in rand function is unsuitable for cryptographic usage.

Before version 6.06, there was no fallback when /dev/urandom was not available.

Before version 6.04, the random_string function used the built-in rand() function to generate a mixed-case alphanumeric string.

This function may be used for generating session ids, generating secrets for signing or encrypting cookie session data and generating tokens used for Cross Site Request Forgery (CSRF) protection.

Database specific
{
    "cwe_ids": [
        "CWE-338",
        "CWE-340"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/15xxx/CVE-2025-15604.json",
    "cna_assigner": "CPANSec"
}
References

Affected packages

Git / github.com/tokuhirom/amon

Affected ranges

Type
GIT
Repo
https://github.com/tokuhirom/amon
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
{
    "cpe": "cpe:2.3:a:tokuhirom:amon2:*:*:*:*:*:perl:*:*",
    "source": [
        "AFFECTED_FIELD",
        "CPE_RANGE"
    ],
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "6.17"
        }
    ]
}

Affected versions

Other
0
0.*
0.02
0.10
0.11
0.15
0.16
0.17
0.18
0.19
0.20
0.21
0.22
0.30
0.31
0.32
0.40
0.41
0.42
0.43
0.44
0.45
1.*
1.02
1.03
2.*
2.00
2.03
2.12
2.13
2.16
2.17
2.18
2.19
2.20
2.21
2.32
2.33
2.34
2.35
2.36
2.37
2.39
2.40
2.41
2.42
2.43
2.44
2.45
2.46
2.47
2.48
2.49
2.50
2.51
2.52
2.53
2.54
2.55
2.56
3.*
3.00
3.01
3.02
3.03
3.04
3.05
3.06
3.08
3.09
3.10
3.11
3.12
3.13
3.14
3.15
3.16
3.17
3.18
3.19
3.20
3.21
3.22
3.23
3.24
3.25
3.26
3.27
3.30
3.31
3.32
3.33
3.34
3.35
3.36
3.37
3.38
3.39
3.50
3.51
3.52
3.53
3.54
3.55
3.56
3.57
3.60
3.61
3.62
3.63
3.64
3.67
3.68
3.69
3.70
3.71
3.72
3.73
3.74
3.75
3.76
3.77
3.78
3.79
3.80
3.81
3.82
3.83
3.84
3.85
3.86
3.87
3.99_01
4.*
4.00
4.01
4.02
4.03
4.04
4.05
4.06
5.*
5.00
5.01
5.03
5.04
5.05
5.06
5.07
5.08
5.09
5.10
5.11
5.12
5.13
5.14
5.15
5.16
6.*
6.00
6.01
6.02
6.03
6.04
6.05
6.06
6.07
6.08
6.09
6.10
6.11
6.12
6.13
6.14
6.15
6.16

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-15604.json"