Skip to content
OpenAdvisories
High ALAS2023-2025-985 2 CVEs

Important: perl-Mojolicious security update (Amazon Linux 2023)

Published May 21, 2025 · Updated Jun 2, 2025

Summary

Package updates are available for Amazon Linux 2023 that fix the following vulnerabilities: CVE-2024-58135: Mojolicious versions from 7.28 through 9.39 for Perl may generate weak HMAC session secrets. When creating a default app with the "mojo generate app" tool, a weak secret is written to the application's configuration file using the insecure rand() function, and used for authenticating and protecting the integrity of the application's sessions. This may allow an attacker to brute force the application's session keys.++6330 CVE-2024-58134: Mojolicious versions from 0.999922 through 9.39 for Perl uses a hard coded string, or the application's class name, as a HMAC session secret by default. These predictable default secrets can be exploited to forge session cookies. An attacker who knows or guesses the secret could compute valid HMAC signatures for the session cookie, allowing them to tamper with or hijack another user's session.

Fixed packages 2

ReleasePackageFixed in
Amazon Linux · 2023 perl-Mojolicious 0:9.40-3.amzn2023.0.1
Amazon Linux · 2023 perl-Test-Mojo 0:9.40-3.amzn2023.0.1

Vulnerabilities 2

  • High 8.1

    Mojolicious versions from 0.999922 for Perl uses a hard coded string, or the application's class name, as an HMAC session cookie secret by default

    Mojolicious versions from 0.999922 for Perl uses a hard coded string, or the application's class name, as an HMAC session cookie secret by default. These predictable default secrets can be exploited by an attacker to forge session cookies.  An attacker who kn…

  • Medium 5.3

    Mojolicious versions from 7.28 through 9.45 for Perl will generate weak HMAC session cookie secrets via "mojo generate app" by default

    Mojolicious versions from 7.28 through 9.45 for Perl will generate weak HMAC session cookie secrets via "mojo generate app" by default. When creating a default app skeleton with the "mojo generate app" tool, a weak secret is written to the application's confi…

References

  • web
    https://alas.aws.amazon.com/cve/html/CVE-2024-58134.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2024-58135.html