CVE-2024-29905: DIRAC Unauthorized Users Can Read Proxy Vulnerability
HIGHCVE-2024-29905 is a HIGH (CVSS 8.1) unauthorized users can read proxy vulnerability (CWE-668: Exposure of Resource to Wrong Sphere) affecting DIRAC libraries in the PyPI ecosystem. The issue involves unauthorized users can read proxy contents during generation. Remediation is available by upgrading affected packages to version 8.0.41.
CVE-2024-29905 at a Glance
Security Impact
CVSS: 8.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:L).
How to Fix CVE-2024-29905
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.41
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-29905, 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.41), 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-668: Exposure of Resource to Wrong Sphere, where the product exposes a resource to the wrong control sphere, providing unintended actors with inappropriate access to the resource. 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-29905 Affected DIRAC Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
DIRAC
|
PyPI |
< 8.0.41
|
8.0.41
|
References
Frequently Asked Questions
What is CVE-2024-29905?
Which DIRAC versions are affected?
What version fixes CVE-2024-29905?
Is DIRAC affected?
What is the CVSS score of CVE-2024-29905?
What CWE is associated with CVE-2024-29905?
How can I check PyPI dependencies for CVE-2024-29905?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-v6f3-gh5h-mqwx",
"modified" : "2026-01-05T19:05:03Z",
"published" : "2024-04-09T15:52:17Z",
"aliases" : [ "CVE-2024-29905" ],
"summary" : "DIRAC: Unauthorized users can read proxy contents during generation",
"details" : "### Impact\n\nDuring the proxy generation process (e.g., when using `dirac-proxy-init`) it is possible for unauthorized users on the same machine to gain read access to the proxy. This allows the user to then perform any action that is possible with the original proxy.\n\nThis vulnerability only exists for a short period of time (sub-millsecond) during the generation process.\n\n### Patches\n\n_Has the problem been patched? What versions should users upgrade to?_\n\n### Workarounds\n\nSetting the `X509_USER_PROXY` environment variable to a path that is inside a directory that is only readable to the current user avoids the potential risk. After the file has been written it can be safely copied to the standard location (`/tmp/x509up_uNNNN`).\n\n### References",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "DIRAC"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "8.0.41"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/DIRACGrid/DIRAC/security/advisories/GHSA-v6f3-gh5h-mqwx"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-29905"
}, {
"type" : "WEB",
"url" : "https://github.com/DIRACGrid/DIRAC/commit/1faa709341969a6321e29c843ca94039d33b2c3d"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/DIRACGrid/DIRAC"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-668" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-04-09T15:52:17Z",
"nvd_published_at" : "2024-04-09T17:16:00Z"
}
}