LiveActive security incident?Get immediate response
CVE Record

CVE-2021-3987: Improper Access Control in janeczku/calibre-web

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.

MediumCVSS 5.4Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

CVE-2021-3987 lets an authenticated calibre-web user create public shelves even when they lack public shelf permissions. This can cause unauthorized content organization or exposure decisions inside the application, but the cited severity is medium and no source indicates active exploitation.

Executive priority

Treat as a medium-priority access-control issue. Prioritize internet-facing or shared-user calibre-web deployments, especially where public shelves can disclose sensitive library metadata or content organization.

Technical view

The flaw is improper access control in janeczku/calibre-web. The create_shelf method in shelf.py did not verify whether the current user had permission to create a public shelf. CVSS 3.0 is 5.4 with low attack complexity, low privileges required, no user interaction, and limited confidentiality and integrity impact.

Likely exposure

Exposure is likely limited to deployments of janeczku/calibre-web with authenticated users who should not be able to create public shelves. The source bundle does not identify exact affected versions.

Exploitation context

Sources indicate this is remotely reachable by a logged-in low-privileged user. KEV is false, and the provided sources do not claim active exploitation in the wild.

Researcher notes

Evidence is narrow but consistent: the reported issue is a missing authorization check in create_shelf. Affected versions are unspecified in the provided bundle, so version-scoped conclusions should come from vendor or repository history.

Mitigation direction

  • Review upstream calibre-web guidance for affected versions and remediation.
  • Apply the upstream fix represented by the referenced GitHub commit where applicable.
  • Limit account creation and authenticated access until patched.
  • Audit shelf permissions for unintended public shelves.

Validation and detection

  • Inventory all janeczku/calibre-web deployments and deployed versions.
  • Confirm whether shelf.py includes a permission check before public shelf creation.
  • Test in a controlled environment that low-privileged users cannot create public shelves.
  • Review logs and shelf records for unauthorized public shelf creation.
Prepared
Confidence
medium
Sources
4

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-284: Authorization and privilege behavior lookup

Authorization weaknesses can support privilege escalation and valid-account review, depending on exploit path. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-3987 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Medium
CVSS
5.4 (3.0)
Known Exploited
No
Published

Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
3Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
5.4CVSS 3.0MediumCVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N2.82.5Primary CVE score

Vulnerability scoring details

Base CVSS 3.0 score

5.4Medium
CVSS 3.0 vector shape for CVE-2021-3987Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
janeczkujaneczku/calibre-webunspecifiedListed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-284 · source CWE mapping

Improper Access Control

Improper Access Control represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.