{"id":"CVE-2024-23831","aliases":["DEBIAN-CVE-2024-23831","EUVD-2024-21274","GHSA-98ff-f638-qxjm","UBUNTU-CVE-2024-23831","USN-7647-1"],"status":"published","title":"Privilege escalation through CSRF attack on 'setup.pl'","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.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-12","score":0.00274,"percentile":0.20013,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-352"],"published":"2024-02-02T15:34:12Z","modified":"2026-11-02T12:00:49Z","fixes":[{"ecosystem":"Ubuntu:Pro:20.04:LTS","package":"ledgersmb","fixed_in":["1.6.9+ds-1ubuntu0.1+esm1"],"sources":["osv"]},{"ecosystem":"Ubuntu:22.04:LTS","package":"ledgersmb","fixed_in":["1.6.33+ds-1ubuntu0.1"],"sources":["osv"]},{"ecosystem":"Ubuntu:24.04:LTS","package":"ledgersmb","fixed_in":["1.6.33+ds-2.1ubuntu0.1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"ledgersmb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.6.33+ds-2.1","1.6.33+ds-2.2"]},{"source":"osv","ecosystem":"Ubuntu:Pro:20.04:LTS","package":"ledgersmb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.9+ds-1ubuntu0.1+esm1"}]}],"versions":["1.6.9+ds-1","1.6.9+ds-1ubuntu0.1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"ledgersmb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.33+ds-1ubuntu0.1"}]}],"versions":["1.6.9+ds-2.1","1.6.33+ds-1"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"ledgersmb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.33+ds-2.1ubuntu0.1"}]}],"versions":["1.6.33+ds-2.1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"ledgersmb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.46-1ubuntu0.1~esm1"}]}],"versions":["1.3.46-1"],"bundled":5},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"ledgersmb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.4.42+ds-1ubuntu0.1~esm1"}]}],"versions":["1.4.41+ds-1","1.4.42+ds-1"],"bundled":5},{"source":"osv","ecosystem":"Ubuntu:Pro:20.04:LTS","package":"ledgersmb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.9+ds-1ubuntu0.1+esm1"}]}],"versions":["1.6.9+ds-1","1.6.9+ds-1ubuntu0.1"],"bundled":5},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"ledgersmb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.33+ds-1ubuntu0.1"}]}],"versions":["1.6.9+ds-2.1","1.6.33+ds-1"],"bundled":5},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"ledgersmb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.33+ds-2.1ubuntu0.1"}]}],"versions":["1.6.33+ds-2.1"],"bundled":5}],"products":[{"vendor":"ledgersmb","product":"ledgersmb"}],"references":[{"url":"https://github.com/ledgersmb/LedgerSMB/security/advisories/GHSA-98ff-f638-qxjm","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory","advisory","report"]},{"url":"https://github.com/ledgersmb/LedgerSMB/commit/8c2ae5be68a782d62cb9c0e17c0127bf30ef4165","tags":["x_refsource_MISC","x_transferred","Patch","fix","report"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/23xxx/CVE-2024-23831.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-23831","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2024-23831","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2024-23831","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-23831","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-7647-1","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-3693","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2021-3694","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2021-3731","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2021-3882","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2024-23831","title":"Privilege escalation through CSRF attack on 'setup.pl'","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.\n","status":"published","published":"2024-02-02T15:34:12.121Z","modified":"2024-08-21T15:39:55.803Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"cna"}],"cwes":["CWE-352"],"updated_at":"2026-11-02T14:34:05.077718Z"}],"euvd":[{"id":"EUVD-2024-21274","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.\n","status":"published","published":"2024-02-02T15:34:12Z","modified":"2024-08-21T15:39:55Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-03T00:56:14.188111Z"}],"nvd":[{"id":"CVE-2024-23831","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.\n","status":"published","published":"2024-02-02T16:15:55.593Z","modified":"2026-06-17T07:13:41.903Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"secondary"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"}],"cwes":["CWE-352"],"updated_at":"2026-11-02T14:09:34.891666Z"}],"osv":[{"id":"CVE-2024-23831","title":"Privilege escalation through CSRF attack on 'setup.pl'","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.\n","status":"published","published":"2024-02-02T15:34:12.121Z","modified":"2026-10-28T02:30:51.512620138Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-352"],"updated_at":"2026-11-02T15:44:38.897406Z"},{"id":"DEBIAN-CVE-2024-23831","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.","status":"published","published":"2024-02-02T16:15:55.593Z","modified":"2026-11-02T12:00:49.397144918Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:41.849198Z"},{"id":"UBUNTU-CVE-2024-23831","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.","status":"published","published":"2024-02-02T16:15:00Z","modified":"2026-02-04T04:18:52.649448Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T16:54:42.68848Z"},{"id":"USN-7647-1","title":"ledgersmb vulnerabilities","description":"It was discovered that LedgerSMB did not check the origin of HTML\nfragments. An attacker could possibly use this issue to send a\nmaliciously crafted URL to the server and obtain sensitive\ninformation, or execute arbitrary code. This issue only affected\nUbuntu 22.04 LTS, Ubuntu 24.04 LTS, and Ubuntu 25.04.\n(CVE-2021-3693)\n\nIt was discovered that LedgerSMB did not properly encode HTML\nerror messages. An attacker could possibly use this issue to send\na maliciously crafted URL to the server and obtain sensitive\ninformation, or execute arbitrary code. This issue only affected\nUbuntu 18.04 LTS. (CVE-2021-3694)\n\nIt was discovered that LedgerSMB did not guard against discrete\nlink redirections. An attacker could possibly use this issue to\nobtain sensitive information. This issue only affected Ubuntu\n16.04 LTS and Ubuntu 18.04 LTS. (CVE-2021-3731)\n\nIt was discovered that LedgerSMB did not properly set the 'Secure'\nattribute during HTTPS sessions. If a user were tricked into using\nan unencrypted connection, an attacker could possibly use this\nissue to obtain sensitive information. This issue only affected\nUbuntu 20.04 LTS, Ubuntu 22.04 LTS, Ubuntu 24.04 LTS, and Ubuntu\n25.04. (CVE-2021-3882)\n\nIt was discovered that LedgerSMB could create admin accounts via\na URL. If an admin were tricked into clicking a maliciously\ncrafted URL, an attacker could possibly use this issue to\nachieve privilege escalation. This issue only affected Ubuntu 20.04\nLTS, Ubuntu 22.04 LTS, Ubuntu 24.04 LTS, and Ubuntu 25.04.\n(CVE-2024-23831)","status":"published","published":"2025-07-17T14:39:24Z","modified":"2026-06-25T13:32:30.663791012Z","updated_at":"2026-11-02T16:58:21.91885Z"}]}}
