CVE-2024-29905: DIRAC Unauthorized Users Can Read Proxy Vulnerability

HIGH
Advisory Identifier: GHSA-v6f3-gh5h-mqwx
CVSS 8.1
CWE-668
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2024-29905
GHSA Identifier GHSA-v6f3-gh5h-mqwx
Severity HIGH
CVSS v3.1 Base Score 8.1
CWE Classification CWE-668: Exposure of Resource to Wrong Sphere
Affected Product DIRAC
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:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:L).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability Low (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.

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

### Impact During 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. This vulnerability only exists for a short period of time (sub-millsecond) during the generation process. ### Patches _Has the problem been patched? What versions should users upgrade to?_ ### Workarounds Setting 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`). ### References

CVE-2024-29905 Affected DIRAC Versions

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

References

Frequently Asked Questions

What is CVE-2024-29905?
CVE-2024-29905 is a security vulnerability in DIRAC involving Unauthorized users can read proxy contents during generation under CWE-668: Exposure of Resource to Wrong Sphere.
Which DIRAC versions are affected?
Affected versions include releases prior to 8.0.41 across affected packages: DIRAC.
What version fixes CVE-2024-29905?
Upgrading to 8.0.41 (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.41. Upgrade your dependency to 8.0.41 or later.
What is the CVSS score of CVE-2024-29905?
CVE-2024-29905 has a CVSS v3.1 base score of 8.1 (HIGH) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:L.
What CWE is associated with CVE-2024-29905?
CVE-2024-29905 is classified under CWE-668: Exposure of Resource to Wrong Sphere (The product exposes a resource to the wrong control sphere, providing unintended actors with inappropriate access to the resource.).
How can I check PyPI dependencies for CVE-2024-29905?
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-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"
  }
}