Vulnerabilities in pkg:pypi/Radicale

PACKAGE
Advisory Identifier: GHSA-rpv4-63g3-9x23
Advisory Summary

CVE-2017-8342 is a HIGH (CVSS 8.1) remote code execution vulnerability (CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')) affecting Radicale libraries in the PyPI ecosystem. The issue involves radicale is vulnerable to timing oracles and simple bruteforce attacks. Remediation is available by upgrading affected packages to version 1.1.2, 2.0.0rc2.

4 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/Radicale

4 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/Radicale. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-rpv4-63g3-9x23 CVE-2017-8342 HIGH Radicale is vulnerable to timing oracles and simple bruteforce attacks
GHSA-fgqv-96v9-w23m CVE-2015-8747 CRITICAL Radicale vulnerable to arbitrary file read or write
GHSA-6w8c-6jrg-qwj2 CVE-2015-8748 MODERATE Radicale regex metacharacters injection in the user name
GHSA-84cw-mxhv-qvv4 CVE-2016-1505 CRITICAL Radicale is vulnerable to directory traversal on Windows Filesystem Storage Backend component

CVE-2017-8342 at a Glance

CVE Identifier CVE-2017-8342
GHSA Identifier GHSA-rpv4-63g3-9x23
Severity HIGH
CVSS v3.1 Base Score 8.1
CWE Classification CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
Affected Product Radicale
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 8.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2017-8342

To remediate this vulnerability, upgrade all affected Radicale dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

Radicale fixed: 1.1.2
pip install Radicale>=1.1.2
Radicale fixed: 2.0.0rc2
pip install Radicale>=2.0.0rc2
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 Radicale

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2017-8342, inspect your installed packages using pip:

pip show Radicale

Analyze the terminal output to locate any version of Radicale in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.2), your application is affected.

Note: The pip show Radicale command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition'), where the product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently. In Radicale, 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

Radicale before 1.1.2 and 2.0.0rc1 is prone to timing oracles and simple brute-force attacks when using the htpasswd authentication method.

CVE-2017-8342 Affected Radicale Versions

2 component(s)
Fixed Versions:
1.1.22.0.0rc2
Product / Package Ecosystem Affected Versions Fixed Version
Radicale
PyPI
< 1.1.2
1.1.2
Radicale
PyPI
≥ 2.0.0rc1
< 2.0.0rc2
All 1 versions
2.0.0rc1
2.0.0rc2

References

Frequently Asked Questions

What is CVE-2017-8342?
CVE-2017-8342 is a security vulnerability in Radicale involving Radicale is vulnerable to timing oracles and simple bruteforce attacks under CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition').
Which Radicale versions are affected?
Affected versions include releases prior to 1.1.2, 2.0.0rc2 across affected packages: Radicale.
What version fixes CVE-2017-8342?
Upgrading to 1.1.2, 2.0.0rc2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is Radicale affected?
Yes, Radicale is affected in releases prior to 1.1.2, 2.0.0rc2. Upgrade your dependency to 1.1.2, 2.0.0rc2 or later.
What is the CVSS score of CVE-2017-8342?
CVE-2017-8342 has a CVSS v3.1 base score of 8.1 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2017-8342?
CVE-2017-8342 is classified under CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') (The product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently.).
How can I check PyPI dependencies for CVE-2017-8342?
Run the dependency tree command: 'pip show Radicale'. 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-rpv4-63g3-9x23",
  "modified" : "2024-10-16T21:22:27Z",
  "published" : "2022-05-13T01:27:10Z",
  "aliases" : [ "CVE-2017-8342" ],
  "summary" : "Radicale is vulnerable to timing oracles and simple bruteforce attacks",
  "details" : "Radicale before 1.1.2 and 2.0.0rc1 is prone to timing oracles and simple brute-force attacks when using the htpasswd authentication method.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "Radicale"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.1.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "Radicale"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0rc1"
      }, {
        "fixed" : "2.0.0rc2"
      } ]
    } ],
    "versions" : [ "2.0.0rc1" ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-8342"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Kozea/Radicale/commit/059ba8dec1f22ccbeab837e288b3833a099cee2d"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Kozea/Radicale/commit/190b1dd795f0c552a4992445a231da760211183b"
  }, {
    "type" : "WEB",
    "url" : "https://bugs.debian.org/861514"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/Kozea/Radicale"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Kozea/Radicale/blob/1.1.2/NEWS.rst"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/radicale/PYSEC-2017-102.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://lists.debian.org/debian-lts-announce/2020/04/msg00019.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-362" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-08-04T21:49:50Z",
    "nvd_published_at" : "2017-04-30T15:59:00Z"
  }
}