{"id":"CVE-2021-3731","aliases":["DEBIAN-CVE-2021-3731","DSA-4962-1","EUVD-2021-27008","GHSA-vj43-qmpm-3qqp","UBUNTU-CVE-2021-3731","USN-5097-1","USN-7647-1"],"status":"published","title":"Improper Restriction of Rendered UI Layers or Frames in ledgersmb/ledgersmb","description":"LedgerSMB does not sufficiently guard against being wrapped by other sites, making it vulnerable to 'clickjacking'. This allows an attacker to trick a targetted user to execute unintended actions.","severity":{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.01236,"percentile":0.693,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-1021"],"published":"2021-08-23T00:00:00Z","modified":"2026-10-24T10:31:05Z","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"]}],"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: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/5664331d-f5f8-4412-8566-408f8655888a","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory","report"]},{"url":"https://ledgersmb.org/cve-2021-3731-clickjacking","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory","advisory","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-3731"},{"url":"https://github.com/advisories/GHSA-vj43-qmpm-3qqp"},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-3731","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-3731","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-5097-1","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-3731","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-3882","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2024-23831","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2021-3731","title":"Improper Restriction of Rendered UI Layers or Frames in ledgersmb/ledgersmb","description":"LedgerSMB does not sufficiently guard against being wrapped by other sites, making it vulnerable to 'clickjacking'. This allows an attacker to trick a targetted user to execute unintended actions.","status":"published","published":"2021-08-23T12:42:01Z","modified":"2024-08-03T17:01:07.699Z","cvss":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N","level":"medium","assessor":"cna"}],"cwes":["CWE-1021"],"updated_at":"2026-11-02T14:33:04.360272Z"}],"euvd":[{"id":"EUVD-2021-27008","description":"LedgerSMB does not sufficiently guard against being wrapped by other sites, making it vulnerable to 'clickjacking'. This allows an attacker to trick a targetted user to execute unintended actions.","status":"published","published":"2021-08-23T12:42:01Z","modified":"2024-08-03T17:01:07Z","cvss":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N","level":"medium"}],"updated_at":"2026-11-03T03:25:12.535968Z"}],"ghsa":[{"id":"GHSA-vj43-qmpm-3qqp","title":"LedgerSMB does not sufficiently guard against being wrapped by other sites, making it vulnerable...","description":"LedgerSMB does not sufficiently guard against being wrapped by other sites, making it vulnerable to 'clickjacking'. This allows an attacker to trick a targetted user to execute unintended actions.","status":"published","published":"2022-05-24T19:11:54Z","modified":"2023-01-30T05:01:37Z","cwes":["CWE-1021"],"updated_at":"2026-11-02T14:46:26.905827Z"}],"nvd":[{"id":"CVE-2021-3731","description":"LedgerSMB does not sufficiently guard against being wrapped by other sites, making it vulnerable to 'clickjacking'. This allows an attacker to trick a targetted user to execute unintended actions.","status":"published","published":"2021-08-23T13:15:08.007Z","modified":"2026-06-17T04:05:39.35Z","cvss":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N","level":"medium","assessor":"secondary"},{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N","level":"medium","assessor":"primary"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-1021"],"updated_at":"2026-11-02T14:06:57.318236Z"}],"osv":[{"id":"CVE-2021-3731","description":"LedgerSMB does not sufficiently guard against being wrapped by other sites, making it vulnerable to 'clickjacking'. This allows an attacker to trick a targetted user to execute unintended actions.","status":"published","published":"2021-08-23T13:15:08.007Z","modified":"2026-10-24T10:31:05.781952163Z","cvss":[{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T15:44:20.434873Z"},{"id":"DEBIAN-CVE-2021-3731","description":"LedgerSMB does not sufficiently guard against being wrapped by other sites, making it vulnerable to 'clickjacking'. This allows an attacker to trick a targetted user to execute unintended actions.","status":"published","published":"2021-08-23T13:15:08.007Z","modified":"2026-10-23T18:03:30.034023978Z","cvss":[{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T15:45:35.233346Z"},{"id":"UBUNTU-CVE-2021-3731","description":"LedgerSMB does not sufficiently guard against being wrapped by other sites, making it vulnerable to 'clickjacking'. This allows an attacker to trick a targetted user to execute unintended actions.","status":"published","published":"2021-08-23T13:15:00Z","modified":"2026-02-04T04:23:44.365378Z","cvss":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N","level":"medium"},{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N","level":"medium"}],"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"}]}}
