{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-58135 exists.","fix":"No fix has been published for CVE-2024-58135 yet. Limit exposure of the affected software until one is available.","what":"CVE-2024-58135 is a medium-severity vulnerability in SRI Mojolicious, published on 3 May 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-58135 and fix it if it is affected.\n\nWhat it is: CVE-2024-58135 is a medium-severity vulnerability in SRI Mojolicious, published on 3 May 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-58135 exists.\n\nAffected product: SRI Mojolicious. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-58135/ (Markdown: https://insights.sbomify.com/CVE-2024-58135/index.md)","id":"CVE-2024-58135","markdown":"https://insights.sbomify.com/CVE-2024-58135/index.md","name":"CVE-2024-58135","record":{"aliases":["AZL-61741","AZL-61822","DEBIAN-CVE-2024-58135","GHSA-3r5v-gmfp-3mh9","UBUNTU-CVE-2024-58135"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["account_takeover","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Perl web framework","requires_auth":"none","summary":"Weak HMAC secrets in Mojolicious allow attackers to brute force session keys, potentially leading to account takeover or security bypass.","user_interaction":"not_required","vuln_class":"weak_cryptography"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"CPANSec","cpe":[{"product":"mojolicious","vendor":"mojolicious"}],"cvss":{"score":5.3,"severity":"medium","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-338","name":"Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)"}],"description":"Mojolicious versions from 7.28 through 9.45 for Perl will generate weak HMAC session cookie secrets via \"mojo generate app\" by default.\n\nWhen 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.\n\nRelease 9.46 fixes the issue by providing high quality randomness, even in absence of CryptX.\n\nUsers 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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":false,"headline":"Weak cryptography in Mojolicious","id":"CVE-2024-58135","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"weak_cryptography","year":"2024"},"n_packages":0,"n_references":13,"next":{"headline":"Yiiframework Yii Improper Protection of Alternate Path","id":"CVE-2024-58136"},"packages":[],"prev":{"headline":"Hardcoded credentials in Mojolicious","id":"CVE-2024-58134"},"products":["Mojolicious"],"published":"2025-05-03","related":[{"cvss_score":10,"headline":"Other in n/a","id":"CVE-2009-5074","kev_date_added":null,"published":"2011-05-03"},{"cvss_score":10,"headline":"Other in n/a","id":"CVE-2010-4802","kev_date_added":null,"published":"2011-05-03"},{"cvss_score":10,"headline":"Weak cryptography in n/a","id":"CVE-2010-4803","kev_date_added":null,"published":"2011-05-03"},{"cvss_score":8.1,"headline":"Hardcoded credentials in Mojolicious","id":"CVE-2024-58134","kev_date_added":null,"published":"2025-05-03"},{"cvss_score":5,"headline":"Path traversal in n/a","id":"CVE-2011-1589","kev_date_added":null,"published":"2011-04-29"},{"cvss_score":4.3,"headline":"Denial of service in n/a","id":"CVE-2021-47208","kev_date_added":null,"published":"2024-04-07"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-06-05","vendors":["SRI"]},"summary":"Weak HMAC secrets in Mojolicious allow attackers to brute force session keys, potentially leading to account takeover or security bypass.","url":"https://insights.sbomify.com/CVE-2024-58135/"}