Vulnerabilities in pkg:pypi/dirac
PACKAGECVE-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.
pkg:pypi/dirac
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
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).
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.
pip install DIRAC>=8.0.37
pip install dirac>=8.0.37
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
CVE-2024-24825 Affected DIRAC Versions
2 component(s)| 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?
Which DIRAC versions are affected?
What version fixes CVE-2024-24825?
Is DIRAC affected?
Is dirac affected?
What is the CVSS score of CVE-2024-24825?
What CWE is associated with CVE-2024-24825?
How can I check PyPI dependencies for CVE-2024-24825?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}