CVE-2021-3986: Calibreweb Generation Of Error Message Containing Vulnerability
MODERATECVE-2021-3986 is a MODERATE (CVSS 4.3) generation of error message containing vulnerability (CWE-209: Generation of Error Message Containing Sensitive Information) affecting Calibreweb libraries in the PyPI ecosystem. The issue involves generation of error message containing sensitive information in janeczku/calibre-web. Remediation is available by upgrading affected packages to version 0.6.15.
CVE-2021-3986 at a Glance
Security Impact
CVSS: 4.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N).
How to Fix CVE-2021-3986
To remediate this vulnerability, upgrade all affected Calibreweb dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install calibreweb>=0.6.15
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show calibreweb
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2021-3986, inspect your installed packages using pip:
pip show calibreweb
Analyze the terminal output to locate any version of Calibreweb in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.6.15), your application is affected.
Note: The pip show calibreweb command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-209: Generation of Error Message Containing Sensitive Information, where the product generates an error message that includes sensitive information about its environment, users, or associated data. In Calibreweb, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2021-3986 Affected Calibreweb Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
calibreweb
|
PyPI |
< 0.6.15
|
0.6.15
|
References
Frequently Asked Questions
What is CVE-2021-3986?
Which Calibreweb versions are affected?
What version fixes CVE-2021-3986?
Is calibreweb affected?
What is the CVSS score of CVE-2021-3986?
What CWE is associated with CVE-2021-3986?
How can I check PyPI dependencies for CVE-2021-3986?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-m982-h4f8-g4hf",
"modified" : "2024-11-19T20:46:56Z",
"published" : "2024-11-15T12:31:44Z",
"aliases" : [ "CVE-2021-3986" ],
"summary" : "Generation of Error Message Containing Sensitive Information in janeczku/calibre-web",
"details" : "A vulnerability in janeczku/calibre-web allows unauthorized users to view the names of private shelves belonging to other users. This issue occurs in the file shelf.py at line 221, where the name of the shelf is exposed in an error message when a user attempts to remove a book from a shelf they do not own. This vulnerability discloses private information and affects all versions prior to the fix.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "calibreweb"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.6.15"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-3986"
}, {
"type" : "WEB",
"url" : "https://github.com/janeczku/calibre-web/commit/6f5390ead5df9779ac81fadefffb476e03f93548"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/janeczku/calibre-web"
}, {
"type" : "WEB",
"url" : "https://huntr.com/bounties/394af194-61a7-4e33-b373-877d4c766fca"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-209" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-11-15T20:43:52Z",
"nvd_published_at" : "2024-11-15T11:15:06Z"
}
}