{"id":"CVE-2024-58134","aliases":["AZL-61673","AZL-61825","DEBIAN-CVE-2024-58134","EUVD-2025-13360","GHSA-3g23-7g3r-898j","UBUNTU-CVE-2024-58134"],"status":"published","title":"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","description":"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.\n\nThese predictable default secrets can be exploited by an attacker 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.","severity":{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","level":"high","assessor":"adp","from":"cve"},"epss":{"day":"2026-11-11","score":0.00556,"percentile":0.46811,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-321","CWE-331"],"published":"2025-05-03T16:08:55Z","modified":"2026-11-05T05:36:30Z","affected":[{"source":"osv","ecosystem":"Azure Linux:2","package":"perl-Mojolicious","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"8.57-3"}]}]},{"source":"osv","ecosystem":"Azure Linux:3","package":"perl-Mojolicious","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"8.57-3"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"libmojolicious-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["9.31+dfsg-1","9.33+dfsg-1","9.34+dfsg-1","9.35+dfsg-1","9.36+dfsg-1","9.36+dfsg-1~bpo12+2","9.37+dfsg-1","9.37+dfsg-2","9.37+dfsg-2~bpo12+1","9.38+dfsg-1","9.39+dfsg-1","9.42+dfsg-1","9.42+dfsg-1~bpo13+2","9.45+dfsg-1","9.45+dfsg-2","9.46+dfsg-1","9.47+dfsg-1","9.48+dfsg-1","9.49+dfsg-1","9.53+dfsg-1"]},{"source":"osv","ecosystem":"Debian:13","package":"libmojolicious-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["9.39+dfsg-1","9.42+dfsg-1","9.42+dfsg-1~bpo13+2","9.45+dfsg-1","9.45+dfsg-2","9.46+dfsg-1","9.47+dfsg-1","9.48+dfsg-1","9.49+dfsg-1","9.53+dfsg-1"]},{"source":"osv","ecosystem":"Debian:14","package":"libmojolicious-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["9.39+dfsg-1","9.42+dfsg-1","9.42+dfsg-1~bpo13+2","9.45+dfsg-1","9.45+dfsg-2","9.46+dfsg-1","9.47+dfsg-1","9.48+dfsg-1","9.49+dfsg-1","9.53+dfsg-1"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"libmojolicious-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.15+dfsg-1","6.15+dfsg-1ubuntu1"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"libmojolicious-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.39+dfsg-1ubuntu1","7.43+dfsg-1ubuntu1","7.57+dfsg-1ubuntu1","7.59+dfsg-1ubuntu1"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"libmojolicious-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["8.22+dfsg-1","8.23+dfsg-1","8.26+dfsg-1","8.27+dfsg-1","8.32+dfsg-1","8.33+dfsg-1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"libmojolicious-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["8.71+dfsg-1","9.22+dfsg-1"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"libmojolicious-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["9.33+dfsg-1","9.35+dfsg-1"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"libmojolicious-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["9.39+dfsg-1"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"libmojolicious-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["9.42+dfsg-1","9.45+dfsg-2","9.46+dfsg-1","9.48+dfsg-1"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"libmojolicious-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["9.39+dfsg-1","9.42+dfsg-1"]}],"products":[{"vendor":"mojolicious","product":"mojolicious"},{"vendor":"sri","product":"mojolicious"}],"references":[{"url":"https://github.com/mojolicious/mojo/pull/1791","tags":["issue-tracking","Issue Tracking","Patch","report"]},{"url":"https://github.com/mojolicious/mojo/pull/2200","tags":["issue-tracking","Issue Tracking","Patch","report"]},{"url":"https://www.synacktiv.com/publications/baking-mojolicious-cookies","tags":["technical-description","Exploit","article","report"]},{"url":"https://medium.com/securing/baking-mojolicious-cookies-revisited-a-case-study-of-solving-security-problems-through-security-by-13da7c225802","tags":["technical-description","Third Party Advisory","article","report"]},{"url":"https://metacpan.org/release/SRI/Mojolicious-9.39/source/lib/Mojolicious.pm#L51","tags":["related","Product","web","report"]},{"url":"https://github.com/hashcat/hashcat/pull/4090","tags":["exploit","Issue Tracking","Patch","evidence","report"]},{"url":"https://lists.debian.org/debian-perl/2025/05/msg00016.html","tags":["mailing-list","article"]},{"url":"https://lists.debian.org/debian-perl/2025/05/msg00017.html","tags":["mailing-list","article"]},{"url":"https://lists.debian.org/debian-perl/2025/05/msg00018.html","tags":["mailing-list","article"]},{"url":"https://github.com/mojolicious/mojo/pull/2252","tags":["issue-tracking","report"]},{"url":"https://docs.mojolicious.org/Mojolicious/Guides/FAQ#What-does-Your-secret-passphrase-needs-to-be-changed-mean","tags":["technical-description","article"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-58134","tags":["web","advisory"]},{"url":"https://github.com/advisories/GHSA-3g23-7g3r-898j"},{"url":"https://cpan.org/modules","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/58xxx/CVE-2024-58134.json","tags":["advisory"]},{"url":"https://github.com/mojolicious/mojo","tags":["package"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2024-58134","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2024-58134","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-58134","tags":["report"]},{"url":"https://lists.security.metacpan.org/cve-announce/msg/29247502/","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2024-58134","title":"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","description":"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.\n\nThese predictable default secrets can be exploited by an attacker 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.","status":"published","published":"2025-05-03T16:08:55.042Z","modified":"2025-10-20T20:09:00.882Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","level":"high","assessor":"adp"}],"cwes":["CWE-321","CWE-331"],"updated_at":"2026-11-02T14:34:08.843708Z"}],"euvd":[{"id":"EUVD-2025-13360","description":"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.\n\nThese predictable default secrets can be exploited by an attacker 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.","status":"published","published":"2025-05-03T16:08:55Z","modified":"2025-10-20T20:09:00Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","level":"high"}],"updated_at":"2026-11-02T20:31:29.921127Z"}],"ghsa":[{"id":"GHSA-3g23-7g3r-898j","title":"Mojolicious versions from 0.999922 through 9.39 for Perl uses a hard coded string, or the...","description":"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.\n\nThese 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.","status":"published","published":"2025-05-03T18:30:29Z","modified":"2025-10-20T21:30:27Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","level":"high"}],"cwes":["CWE-321"],"updated_at":"2026-11-02T15:04:02.427458Z"}],"nvd":[{"id":"CVE-2024-58134","description":"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.\n\nThese predictable default secrets can be exploited by an attacker 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.","status":"published","published":"2025-05-03T16:15:19.31Z","modified":"2026-06-17T08:14:41.333Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","level":"high","assessor":"secondary"}],"cwes":["CWE-321","CWE-331"],"updated_at":"2026-11-02T14:10:46.40251Z"}],"osv":[{"id":"CVE-2024-58134","title":"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","description":"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.\n\nThese predictable default secrets can be exploited by an attacker 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.","status":"published","published":"2025-05-03T16:08:55.042Z","modified":"2026-10-28T02:30:28.811721652Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","level":"high"}],"cwes":["CWE-321","CWE-331"],"updated_at":"2026-11-02T15:44:45.107804Z"},{"id":"DEBIAN-CVE-2024-58134","description":"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 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.","status":"published","published":"2025-05-03T16:15:19.31Z","modified":"2026-11-02T12:03:12.019222244Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","level":"high"}],"updated_at":"2026-11-02T15:45:44.747956Z"},{"id":"UBUNTU-CVE-2024-58134","description":"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 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.","status":"published","published":"2025-05-03T16:15:00Z","modified":"2026-10-17T12:56:46.450628394Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","level":"high"}],"updated_at":"2026-11-02T16:55:18.664792Z"},{"id":"AZL-61673","title":"CVE-2024-58134 affecting package perl-Mojolicious 8.57-3","description":"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.\n\nThese predictable default secrets can be exploited by an attacker 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.","status":"published","published":"2025-05-03T16:15:19Z","modified":"2026-04-21T04:31:49.063009Z","updated_at":"2026-11-02T15:28:07.805289Z"},{"id":"AZL-61825","title":"CVE-2024-58134 affecting package perl-Mojolicious 8.57-3","description":"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.\n\nThese predictable default secrets can be exploited by an attacker 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.","status":"published","published":"2025-05-03T16:15:19Z","modified":"2026-11-05T05:36:30Z","updated_at":"2026-11-05T16:41:21.518778Z"}]}}
