{"id":"CVE-2021-3987","aliases":["CVE-2021-3987","GHSA-fj5v-w2jp-wqvj","PYSEC-2026-1229"],"related":[],"kind":"vulnerability","state":"published","title":"Improper Access Control in janeczku/calibre-web","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Existe una vulnerabilidad de control de acceso indebido en janeczku/calibre-web. La versión afectada permite a los usuarios sin permisos de estantería pública crear estanterías públicas. La vulnerabilidad se debe a que el método `create_shelf` en `shelf.py` no verifica si el usuario tiene los permisos necesarios para crear una estantería pública. Este problema puede provocar que los usuarios realicen acciones no autorizadas.","source":"nvd"}],"published":"2024-11-15T10:52:29.478Z","modified":"2026-07-07T17:57:15.471Z","severity":{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},"severities":[{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","score":4.3,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"}],"cwes":["CWE-284","CWE-862"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","lastAffected":"latest","status":"affected"}],"vendor":"janeczku","product":"janeczku/calibre-web","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"*","status":"affected"}],"vendor":"calibre-web_project","product":"calibre-web","cpe":"cpe:2.3:a:calibre-web_project:calibre-web:-:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.6.15"}],"ecosystem":"PyPI","package":"calibreweb","purl":"pkg:pypi/calibreweb","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.6.15"}],"vendor":"janeczku","product":"calibre-web","cpe":"cpe:2.3:a:janeczku:calibre-web:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.6.15"}],"ecosystem":"PyPI","package":"calibreweb","purl":"pkg:pypi/calibreweb","source":"pysec"}],"references":[{"url":"https://huntr.com/bounties/29fcc091-87b6-43bc-ab4b-3c0bec3f71df","tags":["exploit","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/janeczku/calibre-web/commit/bcdc97641447965af486964537f3821f47b28874","tags":["patch","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3987","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/janeczku/calibre-web","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/calibreweb","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-fj5v-w2jp-wqvj","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"@huntr_ai","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2024-11-15T18:27:02.281Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-3987","url":"https://www.cve.org/CVERecord?id=CVE-2021-3987","licence":"CVE Terms of Use","modified":"2024-11-15T18:28:12.925Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-fj5v-w2jp-wqvj","url":"https://github.com/advisories/GHSA-fj5v-w2jp-wqvj","licence":"CC-BY-4.0","modified":"2026-07-07T17:57:15.471Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-3987","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3987","licence":"Public domain","modified":"2026-06-17T04:06:20.773Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1229","url":"https://osv.dev/vulnerability/PYSEC-2026-1229","licence":"CC-BY-4.0","modified":"2026-07-07T17:47:33.604Z"}],"updatedAt":"2026-11-25T22:58:08.966Z","epss":{"score":0.00346,"percentile":0.30191,"date":"2026-12-01T12:00:22.000Z"}}