CVE-2025-40915

CVE-2025-40915 is a high-severity vulnerability with a CVSS 3.x base score of 7.0. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-338.

Key facts

Description

Mojolicious::Plugin::CSRF 1.03 for Perl uses a weak random number source for generating CSRF tokens. That version of the module generates tokens as an MD5 of the process id, the current time, and a single call to the built-in rand() function.

Frequently asked questions

What is CVE-2025-40915?
Mojolicious::Plugin::CSRF 1.03 for Perl uses a weak random number source for generating CSRF tokens. That version of the module generates tokens as an MD5 of the process id, the current time, and a single call to the built-in rand() function.
How severe is CVE-2025-40915?
CVE-2025-40915 has a CVSS 3.x base score of 7.0, rated high severity. It is exploitable over network with high attack complexity, requires no privileges and no user interaction. Impact on confidentiality is high, integrity low, and availability low.
Is CVE-2025-40915 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (15th percentile), an estimate of the probability of exploitation in the next 30 days.
How do I fix CVE-2025-40915?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
Does CVE-2025-40915 have an EU (EUVD) identifier?
Yes. CVE-2025-40915 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2025-18132.
When was CVE-2025-40915 published?
CVE-2025-40915 was published on 2025-06-11 and last updated on 2026-06-17.

References

Other CWE-338 vulnerabilities

Browse all CWE-338 vulnerabilities →