CVE catalog

CVE-2024-58135

libmojolicious-perl: CVE-2024-58135

[CVE catalog]

Severity
Medium · CVSS 6.2CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Published
Source
[NVD] · [CVE record]
EPSS
0.57% · Oct 25, 2026

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 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. Release 9.46 fixes the issue by providing high quality randomness, even in absence of CryptX. Users should be aware that the update does not replace previously generated weak secrets. A secret generated with the previous version MUST be replaced to ensure the updated version is using a strong secret.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianlibmojolicious-perlsid9.53+dfsg-1vulnerable
Debianlibmojolicious-perlforky9.49+dfsg-1vulnerable
Debianlibmojolicious-perltrixie9.39+dfsg-1vulnerable
Debianlibmojolicious-perlbookworm9.31+dfsg-1vulnerable
Ubuntulibmojolicious-perl16.046.15+dfsg-1vulnerable
Ubuntulibmojolicious-perl16.046.15+dfsg-1ubuntu1vulnerable
Ubuntulibmojolicious-perl18.047.39+dfsg-1ubuntu1vulnerable
Ubuntulibmojolicious-perl18.047.43+dfsg-1ubuntu1vulnerable
Ubuntulibmojolicious-perl18.047.57+dfsg-1ubuntu1vulnerable
Ubuntulibmojolicious-perl18.047.59+dfsg-1ubuntu1vulnerable
Ubuntulibmojolicious-perl20.048.22+dfsg-1vulnerable
Ubuntulibmojolicious-perl20.048.23+dfsg-1vulnerable
Ubuntulibmojolicious-perl20.048.26+dfsg-1vulnerable
Ubuntulibmojolicious-perl20.048.27+dfsg-1vulnerable
Ubuntulibmojolicious-perl20.048.32+dfsg-1vulnerable
Ubuntulibmojolicious-perl20.048.33+dfsg-1vulnerable
Ubuntulibmojolicious-perl22.048.71+dfsg-1vulnerable
Ubuntulibmojolicious-perl22.049.22+dfsg-1vulnerable
Ubuntulibmojolicious-perl24.049.33+dfsg-1vulnerable
Ubuntulibmojolicious-perl24.049.35+dfsg-1vulnerable
Ubuntulibmojolicious-perl25.109.39+dfsg-1vulnerable
Ubuntulibmojolicious-perl26.109.42+dfsg-1vulnerable
Ubuntulibmojolicious-perl26.109.45+dfsg-2vulnerable
Ubuntulibmojolicious-perl26.109.46+dfsg-1vulnerable
Ubuntulibmojolicious-perl26.109.48+dfsg-1vulnerable
Ubuntulibmojolicious-perl26.049.39+dfsg-1vulnerable
Ubuntulibmojolicious-perl26.049.42+dfsg-1vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianlibmojolicious-perlsourcesid(unfixed)not yet assignedNot reported[1104633]
Debianlibmojolicious-perlsourceforky(unfixed)not yet assignedNot reported[1104633]
Debianlibmojolicious-perlsourcetrixie(unfixed)not yet assignedNot reported[1104633]
Debianlibmojolicious-perlsourcebookworm(unfixed)not yet assignedNot reported[1104633]

[Debian bug #1104633]

Notes

[trixie] libmojolicious-perl: Minor issue [bookworm] libmojolicious-perl: Minor issue

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Details (4)
    • 9.31+dfsg-1 · all · bookworm

      Affected

      dsa · libmojolicious-perl · debian · bookworm; dsa · libmojolicious-perl · debian · 12

    • 9.31+dfsg-1 · all · bookworm

      Affected

      dsa · libmojolicious-perl · debian · bookworm; dsa · libmojolicious-perl · debian · 12

    • 9.37+dfsg-2~bpo12+1 · all · bookworm-backports

      Affected

      dsa · libmojolicious-perl · debian · bookworm; dsa · libmojolicious-perl · debian · 12

    • 9.37+dfsg-2~bpo12+1 · all · bookworm-backports

      Affected

      dsa · libmojolicious-perl · debian · bookworm; dsa · libmojolicious-perl · debian · 12

[Debian 13 (Trixie)]

  • Details (4)
    • 9.39+dfsg-1 · all · trixie

      Affected

      dsa · libmojolicious-perl · debian · 13

    • 9.39+dfsg-1 · all · trixie

      Affected

      dsa · libmojolicious-perl · debian · 13

    • 9.42+dfsg-1~bpo13+2 · all · trixie-backports

      Affected

      dsa · libmojolicious-perl · debian · 13

    • 9.42+dfsg-1~bpo13+2 · all · trixie-backports

      Affected

      dsa · libmojolicious-perl · debian · 13

Observed:

References