{"id":"CVE-2021-3874","published":"2021-10-15T13:40:18Z","modified":"2024-08-03T17:09:09Z","title":"Path Traversal in bookstackapp/bookstack","vendor":"bookstackapp","product":"bookstackapp/bookstack","tier":"tail","description":{"text":"bookstack is vulnerable to Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","provenance":"source","from":"CVE.org"},"cvss":{"score":4.3,"severity":"MEDIUM","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01202,"percentile":0.68874,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://huntr.dev/bounties/ac268a17-72b5-446f-a09a-9945ef58607a","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/bookstackapp/bookstack/commit/7224fbcc89f00f2b71644e36bb1b1d96addd1d5a","tags":["x_refsource_MISC"]}],"priority":{"score":16.8,"factors":[{"name":"EPSS percentile","points":13.77},{"name":"CVSS severity","points":3.01}]},"vendorSlug":"bookstackapp","affectedVersions":[{"vendor":"bookstackapp","product":"bookstackapp/bookstack","versions":[">= unspecified, < 21.08.5"]}],"euvd":{"id":"EUVD-2021-27108","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-bookstackapp-bookstack-cve-2020-26210","parents":[{"from":"CVE-2020-26210","to":"CVE-2021-3874","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["app/Uploads/AttachmentService.php"],"commits":["https://github.com/BookStackApp/BookStack/commit/349162ea139556b2d25e09e155cec84e21cc9227","https://github.com/bookstackapp/bookstack/commit/7224fbcc89f00f2b71644e36bb1b1d96addd1d5a"],"basis":"rarely changed file"}]}],"children":[{"from":"CVE-2021-3874","to":"CVE-2021-3916","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["app/Uploads/AttachmentService.php","app/Uploads/ImageService.php"],"commits":["https://github.com/bookstackapp/bookstack/commit/7224fbcc89f00f2b71644e36bb1b1d96addd1d5a","https://github.com/bookstackapp/bookstack/commit/43830a372fc51a8793199d04a34c3f4ebdfccc7b"],"basis":"shared function","functions":["__construct","deleteFile","getThumbnail","imageUriToBase64","resizeImage"]},{"kind":"similar","provenance":"machine","score":1.0,"basis":"same product + CWE + description similarity"}]}]}}