{"id":"CVE-2021-3987","published":"2024-11-15T10:52:29Z","modified":"2024-11-15T18:28:12Z","title":"Improper Access Control in janeczku/calibre-web","vendor":"janeczku","product":"janeczku/calibre-web","tier":"tail","description":{"text":"An improper access control vulnerability exists in janeczku/calibre-web. The affected version allows users without public shelf permissions to create public shelves. The vulnerability is due to the `create_shelf` method in `shelf.py` not verifying if the user has the necessary permissions to create a public shelf. This issue can lead to unauthorized actions being performed by users.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00346,"percentile":0.28935,"provenance":"source"},"cwes":[{"id":"CWE-284","name":"Improper Access Control"}],"references":[{"url":"https://huntr.com/bounties/29fcc091-87b6-43bc-ab4b-3c0bec3f71df","tags":[]},{"url":"https://github.com/janeczku/calibre-web/commit/bcdc97641447965af486964537f3821f47b28874","tags":[]}],"priority":{"score":9.6,"factors":[{"name":"EPSS percentile","points":5.79},{"name":"CVSS severity","points":3.78}]},"vendorSlug":"janeczku","affectedVersions":[{"vendor":"janeczku","product":"janeczku/calibre-web","versions":[">= unspecified, <= latest"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2024-11-15T18:27:02.281125Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"calibreweb","vulnerableRanges":["<0.6.15"],"patched":["0.6.15"],"from":["GHSA-fj5v-w2jp-wqvj","PYSEC-2026-1229"],"provenance":"source"}],"summary":{"text":"The flaw is an improper access control issue in the janeczku/calibre-web product, specifically in the create_shelf method in shelf.py, which does not check whether a user has the permissions required to create a public shelf. An attacker with a low-privilege account over the network, with no user interaction needed, can create public shelves even though they lack public shelf permissions, which can lead to unauthorized actions by that user.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:07:24Z"},"euvd":{"id":"EUVD-2024-3244","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-janeczku-calibre-web-cve-2021-25964","parents":[{"from":"CVE-2021-3986","to":"CVE-2021-3987","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["cps/shelf.py"],"commits":["https://github.com/janeczku/calibre-web/commit/6f5390ead5df9779ac81fadefffb476e03f93548","https://github.com/janeczku/calibre-web/commit/bcdc97641447965af486964537f3821f47b28874"],"basis":"shared function","functions":["remove_from_shelf"]}]}]}}