Vulnerabilities in pkg:pypi/dirac

PACKAGE
Advisory Identifier: GHSA-59qj-jcjv-662j
Advisory Summary

CVE-2024-24825 is a CRITICAL (CVSS 9.1) dirac's tokenmanager does not check vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting DIRAC libraries in the PyPI ecosystem. The issue involves dirac's tokenmanager does not check permissions on cached tokens. Remediation is available by upgrading affected packages to version 8.0.37.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/dirac

1 Known Advisory Record(s)

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

Advisory ID CVE / NVD Severity Summary
GHSA-59qj-jcjv-662j CVE-2024-24825 CRITICAL DIRAC's TokenManager does not check permissions on cached tokens

CVE-2024-24825 at a Glance

CVE Identifier CVE-2024-24825
GHSA Identifier GHSA-59qj-jcjv-662j
Severity CRITICAL
CVSS v3.1 Base Score 9.1
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product DIRAC
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 9.1

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

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

How to Fix CVE-2024-24825

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

DIRAC fixed: 8.0.37
pip install DIRAC>=8.0.37
dirac fixed: 8.0.37
pip install dirac>=8.0.37
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 DIRAC

How to Check if You Are Affected

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

pip show DIRAC

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

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

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In DIRAC, 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

### Impact Any user could get a token that has been requested by another user/agent ### Patches The vulnerability is fixed in version 8.0.37. ### Workarounds None ### References

CVE-2024-24825 Affected DIRAC Versions

2 component(s)
Fixed Versions:
8.0.37
Product / Package Ecosystem Affected Versions Fixed Version
DIRAC
PyPI
≥ 8.0.0
< 8.0.37
8.0.37
dirac
PyPI
< 8.0.37
8.0.37

References

Frequently Asked Questions

What is CVE-2024-24825?
CVE-2024-24825 is a security vulnerability in DIRAC involving DIRAC's TokenManager does not check permissions on cached tokens under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which DIRAC versions are affected?
Affected versions include releases prior to 8.0.37 across affected packages: DIRAC, dirac.
What version fixes CVE-2024-24825?
Upgrading to 8.0.37 (or the latest patched release for your respective branch) resolves the vulnerability.
Is DIRAC affected?
Yes, DIRAC is affected in releases prior to 8.0.37. Upgrade your dependency to 8.0.37 or later.
Is dirac affected?
Yes, dirac is affected in releases prior to 8.0.37. Upgrade your dependency to 8.0.37 or later.
What is the CVSS score of CVE-2024-24825?
CVE-2024-24825 has a CVSS v3.1 base score of 9.1 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2024-24825?
CVE-2024-24825 is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check PyPI dependencies for CVE-2024-24825?
Run the dependency tree command: 'pip show DIRAC'. 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-59qj-jcjv-662j",
  "modified" : "2024-11-21T21:40:27Z",
  "published" : "2024-02-08T15:32:51Z",
  "aliases" : [ "CVE-2024-24825" ],
  "summary" : "DIRAC's TokenManager does not check permissions on cached tokens",
  "details" : "### Impact\n\nAny user could get a token that has been requested by another user/agent\n\n### Patches\nThe vulnerability is fixed in version 8.0.37.\n\n### Workarounds\n\nNone\n\n### References\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "DIRAC"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "8.0.0"
      }, {
        "fixed" : "8.0.37"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "dirac"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "8.0.37"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/DIRACGrid/DIRAC/security/advisories/GHSA-59qj-jcjv-662j"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-24825"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/DIRACGrid/DIRAC/commit/9487921684e2925b4cf72d6c423718cf4950f3fe"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/DIRACGrid/DIRAC/commit/f9ddab755b9a69acb85e14d2db851d8ac0c9648c"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/DIRACGrid/DIRAC"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/dirac/PYSEC-2024-125.yaml"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-02-08T15:32:51Z",
    "nvd_published_at" : "2024-02-09T00:15:08Z"
  }
}