{"id":"UBUNTU-CVE-2024-58134","details":"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.","modified":"2026-05-20T16:20:12.246504584Z","published":"2025-05-03T16:15:00Z","upstream":["CVE-2024-58134"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2024-58134"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2024-58134"},{"type":"REPORT","url":"https://lists.security.metacpan.org/cve-announce/msg/29247502/"},{"type":"REPORT","url":"https://github.com/mojolicious/mojo/pull/1791"},{"type":"REPORT","url":"https://github.com/mojolicious/mojo/pull/2200"},{"type":"REPORT","url":"https://github.com/hashcat/hashcat/pull/4090"},{"type":"REPORT","url":"https://medium.com/securing/baking-mojolicious-cookies-revisited-a-case-study-of-solving-security-problems-through-security-by-13da7c225802"},{"type":"REPORT","url":"https://metacpan.org/release/SRI/Mojolicious-9.39/source/lib/Mojolicious.pm#L51"},{"type":"REPORT","url":"https://www.synacktiv.com/publications/baking-mojolicious-cookies"}],"affected":[{"package":{"name":"libmojolicious-perl","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/libmojolicious-perl?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.15+dfsg-1","6.15+dfsg-1ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_version":"6.15+dfsg-1ubuntu1","binary_name":"libmojolicious-perl"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-58134.json"}},{"package":{"name":"libmojolicious-perl","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/libmojolicious-perl?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.39+dfsg-1ubuntu1","7.43+dfsg-1ubuntu1","7.57+dfsg-1ubuntu1","7.59+dfsg-1ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_name":"libmojolicious-perl","binary_version":"7.59+dfsg-1ubuntu1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-58134.json"}},{"package":{"name":"libmojolicious-perl","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/libmojolicious-perl?arch=source&distro=focal"},"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"],"ecosystem_specific":{"binaries":[{"binary_name":"libmojolicious-perl","binary_version":"8.33+dfsg-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-58134.json"}},{"package":{"name":"libmojolicious-perl","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/libmojolicious-perl?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["8.71+dfsg-1","9.22+dfsg-1"],"ecosystem_specific":{"binaries":[{"binary_version":"9.22+dfsg-1","binary_name":"libmojolicious-perl"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-58134.json"}},{"package":{"name":"libmojolicious-perl","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/libmojolicious-perl?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["9.33+dfsg-1","9.35+dfsg-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libmojolicious-perl","binary_version":"9.35+dfsg-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-58134.json"}},{"package":{"name":"libmojolicious-perl","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/libmojolicious-perl?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["9.39+dfsg-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libmojolicious-perl","binary_version":"9.39+dfsg-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-58134.json"}},{"package":{"name":"libmojolicious-perl","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/libmojolicious-perl?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["9.39+dfsg-1","9.42+dfsg-1"],"ecosystem_specific":{"binaries":[{"binary_version":"9.42+dfsg-1","binary_name":"libmojolicious-perl"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-58134.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N"},{"type":"Ubuntu","score":"medium"}]}