{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-23831 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2024-23831 is a high-severity vulnerability in LedgerSMB, published on 2 Feb 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-23831 and fix it if it is affected.\n\nWhat it is: CVE-2024-23831 is a high-severity vulnerability in LedgerSMB, published on 2 Feb 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2024-23831 in the wild and no public exploit code.\n\nAffected product: LedgerSMB. 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-23831/ (Markdown: https://insights.sbomify.com/CVE-2024-23831/index.md)","id":"CVE-2024-23831","markdown":"https://insights.sbomify.com/CVE-2024-23831/index.md","name":"CVE-2024-23831","record":{"aliases":["DEBIAN-CVE-2024-23831","GHSA-98ff-f638-qxjm","UBUNTU-CVE-2024-23831"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["privilege_escalation","account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"Accounting web application","requires_auth":"none","summary":"Attackers can trick admins into creating privileged accounts via CSRF in setup.pl, leading to privilege escalation in LedgerSMB.","user_interaction":"required","vuln_class":"csrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"ledgersmb","vendor":"ledgersmb"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-352","name":"Cross-Site Request Forgery"}],"description":"LedgerSMB is a free web-based double-entry accounting system. When a LedgerSMB database administrator has an active session in /setup.pl, an attacker can trick the admin into clicking on a link which automatically submits a request to setup.pl without the admin's consent.  This request can be used to create a new user account with full application (/login.pl) privileges, leading to privilege escalation.  The vulnerability is patched in versions 1.10.30 and 1.11.9.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Privilege escalation through CSRF attack on 'setup.pl'","id":"CVE-2024-23831","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"csrf","year":"2024"},"n_packages":0,"n_references":2,"next":{"headline":"Mastodon Remote user impersonation and takeover","id":"CVE-2024-23832"},"packages":[],"prev":{"headline":"MantisBT Host Header Injection vulnerability","id":"CVE-2024-23830"},"products":["LedgerSMB"],"published":"2024-02-02","related":[{"cvss_score":10,"headline":"Auth bypass in n/a","id":"CVE-2007-3907","kev_date_added":null,"published":"2007-07-19"},{"cvss_score":10,"headline":"Path traversal in n/a","id":"CVE-2007-1329","kev_date_added":null,"published":"2007-03-07"},{"cvss_score":9.8,"headline":"Command injection in n/a","id":"CVE-2018-9246","kev_date_added":null,"published":"2018-06-08"},{"cvss_score":9,"headline":"Auth bypass in n/a","id":"CVE-2007-1437","kev_date_added":null,"published":"2007-03-13"},{"cvss_score":7.8,"headline":"Denial of service in n/a","id":"CVE-2008-4077","kev_date_added":null,"published":"2008-09-15"},{"cvss_score":7.5,"headline":"Missing authorization in n/a","id":"CVE-2007-1923","kev_date_added":null,"published":"2007-04-10"}],"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":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-08-21","vendors":["ledgersmb"]},"summary":"Attackers can trick admins into creating privileged accounts via CSRF in setup.pl, leading to privilege escalation in LedgerSMB.","url":"https://insights.sbomify.com/CVE-2024-23831/"}