CVE-2022-2525: Calibreweb Improper Restriction Of Excessive Authentication Vulnerability

MODERATE
Advisory Identifier: GHSA-jg8w-wgx2-g7q4
CWE-307
Published
Advisory Summary

CVE-2022-2525 is a MODERATE improper restriction of excessive authentication vulnerability (CWE-307: Improper Restriction of Excessive Authentication Attempts) affecting Calibreweb libraries in the PyPI ecosystem. The issue involves improper restriction of excessive authentication attempts in calibreweb. Remediation is available by upgrading affected packages to version 0.6.20.

CVE-2022-2525 at a Glance

CVE Identifier CVE-2022-2525
GHSA Identifier GHSA-jg8w-wgx2-g7q4
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-307: Improper Restriction of Excessive Authentication Attempts
Affected Product Calibreweb
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix CVE-2022-2525

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.

calibreweb fixed: 0.6.20
pip install calibreweb>=0.6.20
Verify Direct and Transitive Dependencies

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-2022-2525, 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.20), 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-307: Improper Restriction of Excessive Authentication Attempts, where the product does not implement sufficient measures to prevent multiple failed authentication attempts within a short time frame. 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

Improper Restriction of Excessive Authentication Attempts in GitHub repository janeczku/calibre-web prior to 0.6.20.

CVE-2022-2525 Affected Calibreweb Versions

1 component(s)
Fixed Versions:
0.6.20
Product / Package Ecosystem Affected Versions Fixed Version
calibreweb
PyPI
< 0.6.20
0.6.20

References

Frequently Asked Questions

What is CVE-2022-2525?
CVE-2022-2525 is a security vulnerability in Calibreweb involving Improper Restriction of Excessive Authentication Attempts in calibreweb under CWE-307: Improper Restriction of Excessive Authentication Attempts.
Which Calibreweb versions are affected?
Affected versions include releases prior to 0.6.20 across affected packages: calibreweb.
What version fixes CVE-2022-2525?
Upgrading to 0.6.20 (or the latest patched release for your respective branch) resolves the vulnerability.
Is calibreweb affected?
Yes, calibreweb is affected in releases prior to 0.6.20. Upgrade your dependency to 0.6.20 or later.
What CWE is associated with CVE-2022-2525?
CVE-2022-2525 is classified under CWE-307: Improper Restriction of Excessive Authentication Attempts (The product does not implement sufficient measures to prevent multiple failed authentication attempts within a short time frame.).
How can I check PyPI dependencies for CVE-2022-2525?
Run the dependency tree command: 'pip show calibreweb'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-jg8w-wgx2-g7q4",
  "modified" : "2023-04-24T22:41:31Z",
  "published" : "2023-04-15T15:30:15Z",
  "aliases" : [ "CVE-2022-2525" ],
  "summary" : "Improper Restriction of Excessive Authentication Attempts in calibreweb",
  "details" : "Improper Restriction of Excessive Authentication Attempts in GitHub repository janeczku/calibre-web prior to 0.6.20.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "calibreweb"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.6.20"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-2525"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/janeczku/calibre-web/commit/49e4f540c9b204c7e39b3c27ceadecd83ed60e7e"
  }, {
    "type" : "WEB",
    "url" : "https://huntr.dev/bounties/9ff87820-c14c-4454-9764-406496254ef0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-307" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-04-24T22:41:31Z",
    "nvd_published_at" : "2023-04-15T13:15:00Z"
  }
}