{"id":"CVE-2021-3693","aliases":["DEBIAN-CVE-2021-3693","DSA-4962-1","EUVD-2021-26978","GHSA-x27f-prq2-qwh6","UBUNTU-CVE-2021-3693","USN-5097-1","USN-7647-1"],"status":"published","title":"Cross-site Scripting (XSS) - DOM in ledgersmb/ledgersmb","description":"LedgerSMB does not check the origin of HTML fragments merged into the browser's DOM. By sending a specially crafted URL to an authenticated user, this flaw can be abused for remote code execution and information disclosure.","severity":{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.0317,"percentile":0.88129,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79"],"published":"2021-08-23T00:00:00Z","modified":"2026-10-24T10:30:25Z","fixes":[{"ecosystem":"Debian:12","package":"ledgersmb","fixed_in":["1.6.9+ds-2.1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:16.04:LTS","package":"ledgersmb","fixed_in":["1.3.46-1ubuntu0.1~esm1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:18.04:LTS","package":"ledgersmb","fixed_in":["1.4.42+ds-1ubuntu0.1~esm1"],"sources":["osv"]},{"ecosystem":"Ubuntu:20.04:LTS","package":"ledgersmb","fixed_in":["1.6.9+ds-1ubuntu0.1"],"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"},{"fixed":"1.6.9+ds-2.1"}]}]},{"source":"osv","ecosystem":"Debian:10","package":"ledgersmb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.9+ds-1+deb10u2"}]}],"versions":["1.6.9+ds-1","1.6.9+ds-1+deb10u1"],"bundled":3},{"source":"osv","ecosystem":"Debian:11","package":"ledgersmb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.9+ds-2+deb11u2"}]}],"versions":["1.6.9+ds-2","1.6.9+ds-2+deb11u1"],"bundled":3},{"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"]},{"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"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"ledgersmb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.9+ds-1ubuntu0.1"}]}],"versions":["1.6.9+ds-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:20.04:LTS","package":"ledgersmb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.9+ds-1ubuntu0.1"}]}],"versions":["1.6.9+ds-1"],"bundled":3},{"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":"debian","product":"debian_linux"},{"vendor":"ledgersmb","product":"ledgersmb"},{"vendor":"ledgersmb","product":"ledgersmb/ledgersmb"}],"references":[{"url":"https://huntr.dev/bounties/daf1384d-648a-43fd-9b35-5c37d8ead667","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory","report"]},{"url":"https://ledgersmb.org/cve-2021-3693-cross-site-scripting","tags":["x_refsource_MISC","x_transferred","Patch","Vendor Advisory","fix","report"]},{"url":"https://www.debian.org/security/2021/dsa-4962","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","Third Party Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3693"},{"url":"https://github.com/advisories/GHSA-x27f-prq2-qwh6"},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-3693","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-3693","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-5097-1","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-3693","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-7647-1","tags":["advisory"]},{"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"]},{"url":"https://ubuntu.com/security/CVE-2024-23831","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2021-3693","title":"Cross-site Scripting (XSS) - DOM in ledgersmb/ledgersmb","description":"LedgerSMB does not check the origin of HTML fragments merged into the browser's DOM. By sending a specially crafted URL to an authenticated user, this flaw can be abused for remote code execution and information disclosure.","status":"published","published":"2021-08-23T12:41:57Z","modified":"2024-08-03T17:01:07.977Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"cna"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:33:04.020035Z"}],"euvd":[{"id":"EUVD-2021-26978","description":"LedgerSMB does not check the origin of HTML fragments merged into the browser's DOM. By sending a specially crafted URL to an authenticated user, this flaw can be abused for remote code execution and information disclosure.","status":"published","published":"2021-08-23T12:41:57Z","modified":"2024-08-03T17:01:07Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-03T03:25:12.535968Z"}],"ghsa":[{"id":"GHSA-x27f-prq2-qwh6","title":"LedgerSMB does not check the origin of HTML fragments merged into the browser's DOM. By sending a...","description":"LedgerSMB does not check the origin of HTML fragments merged into the browser's DOM. By sending a specially crafted URL to an authenticated user, this flaw can be abused for remote code execution and information disclosure.","status":"published","published":"2022-05-24T19:11:54Z","modified":"2023-01-30T05:01:37Z","cwes":["CWE-79"],"updated_at":"2026-11-02T14:46:26.905827Z"}],"nvd":[{"id":"CVE-2021-3693","description":"LedgerSMB does not check the origin of HTML fragments merged into the browser's DOM. By sending a specially crafted URL to an authenticated user, this flaw can be abused for remote code execution and information disclosure.","status":"published","published":"2021-08-23T13:15:07.72Z","modified":"2026-06-17T04:05:34.427Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"secondary"},{"version":"3.1","score":9.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:06:57.318236Z"}],"osv":[{"id":"CVE-2021-3693","description":"LedgerSMB does not check the origin of HTML fragments merged into the browser's DOM. By sending a specially crafted URL to an authenticated user, this flaw can be abused for remote code execution and information disclosure.","status":"published","published":"2021-08-23T13:15:07.72Z","modified":"2026-10-24T10:30:25.338379793Z","cvss":[{"version":"3.1","score":9.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:20.434873Z"},{"id":"DEBIAN-CVE-2021-3693","description":"LedgerSMB does not check the origin of HTML fragments merged into the browser's DOM. By sending a specially crafted URL to an authenticated user, this flaw can be abused for remote code execution and information disclosure.","status":"published","published":"2021-08-23T13:15:07.72Z","modified":"2026-10-23T18:03:30.0267312Z","cvss":[{"version":"3.1","score":9.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:45:35.233346Z"},{"id":"UBUNTU-CVE-2021-3693","description":"LedgerSMB does not check the origin of HTML fragments merged into the browser's DOM. By sending a specially crafted URL to an authenticated user, this flaw can be abused for remote code execution and information disclosure.","status":"published","published":"2021-08-23T13:15:00Z","modified":"2026-02-04T03:39:22.105467Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"},{"version":"3.1","score":9.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:54:27.870979Z"},{"id":"DSA-4962-1","title":"ledgersmb - security update","status":"published","published":"2021-08-23T00:00:00Z","modified":"2026-03-09T02:09:57.334833Z","updated_at":"2026-11-02T15:46:17.19998Z"},{"id":"USN-5097-1","title":"ledgersmb vulnerabilities","description":"It was discovered that LedgerSMB incorrectly handled certain inputs. An\nattacker could use this to leak sensitive information, cause a DoS, or\nexecute arbitrary code. (CVE-2021-3693, CVE-2021-3694, CVE-2021-3731)\n","status":"published","published":"2021-09-30T20:14:07Z","modified":"2026-02-10T04:42:20Z","updated_at":"2026-11-02T16:58:15.683829Z"},{"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"}]}}
