CVE-2021-3987
Python vulnerability analysis and mitigation

Overview

An improper access control vulnerability (CVE-2021-3987) exists in janeczku/calibre-web that allows users without public shelf permissions to create public shelves. The vulnerability was discovered and disclosed on November 15, 2024, affecting versions up to (excluding) 0.6.15. The issue stems from the create_shelf method in shelf.py not verifying if the user has the necessary permissions to create a public shelf (NVD, Huntr).

Technical details

The vulnerability exists in the create_shelf method within shelf.py, which fails to validate user permissions before allowing the creation of public shelves. The CVSS v3.1 base score is 4.3 (MEDIUM) with a vector string of CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N according to NVD, while Huntr.dev assessed it with a score of 5.4 (MEDIUM) and vector string CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N (NVD).

Impact

This vulnerability allows unauthorized users to perform actions beyond their assigned permissions by creating public shelves despite lacking the necessary privileges. This can lead to unauthorized actions being performed by users who should not have such capabilities (NVD, Huntr).

Mitigation and workarounds

The vulnerability has been fixed in version 0.6.15 of calibre-web through a patch that adds proper permission validation checks before allowing the creation of public shelves. The fix was implemented in commit bcdc97641447965af486964537f3821f47b28874 (Github Patch).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66471HIGH8.9
  • PythonPython
  • py3-urllib3
NoYesDec 05, 2025
CVE-2025-66418HIGH8.9
  • PythonPython
  • python-urllib3
NoYesDec 05, 2025
CVE-2025-65958HIGH8.5
  • PythonPython
  • cpe:2.3:a:openwebui:open_webui
NoYesDec 04, 2025
CVE-2025-56427HIGH7.5
  • PythonPython
  • composio
NoNoDec 04, 2025
CVE-2025-63681MEDIUM4.3
  • PythonPython
  • open-webui
NoNoDec 04, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management