Crítica

DIRAC is vulnerable to RCE in FileCatalog DatasetManager via SQL injection + eval

  • Publicada: 13.07.2026
  • Actualizado: 11.10.2026 14:18

Summary

The FileCatalog DatasetManager runs a query on the database and passes the result to eval. The SQL query contains an injection vulnerability which allows an authenticated user to control the parameter returned to the eval resulting in remote code execution.

Details

The FileCatalog checkDataset function passes its datasets argument directly to the backend DB handler: https://github.com/DIRACGrid/DIRAC/blob/f7e0a3ac153315030fb3520e8ca747f013758967/src/DIRAC/DataManagementSystem/Service/FileCatalogHandler.py#L591-L593

Which in turn passes it to the __checkDataset function: https://github.com/DIRACGrid/DIRAC/blob/f7e0a3ac153315030fb3520e8ca747f013758967/src/DIRAC/DataManagementSystem/DB/FileCatalogComponents/DatasetManager/DatasetManager.py#L390

This uses an f-string to create a query without escaping, resulting in an SQL injection: https://github.com/DIRACGrid/DIRAC/blob/f7e0a3ac153315030fb3520e8ca747f013758967/src/DIRAC/DataManagementSystem/DB/FileCatalogComponents/DatasetManager/DatasetManager.py#L400-L402

The result (which is user controllable due to the SQL injection) is passed into eval almost immediately on return, leading to code execution: https://github.com/DIRACGrid/DIRAC/blob/f7e0a3ac153315030fb3520e8ca747f013758967/src/DIRAC/DataManagementSystem/DB/FileCatalogComponents/DatasetManager/DatasetManager.py#L409

There are other functions in the same file which use a similar pattern and would likely be exploitable in a similar way.

Impact

This allows any authenticated user to run commands on the server, which allows a full compromise of the DIRAC system (they can read the local dirac.cfg, get database passwords and export all stored proxies and tokens). If local logging is used, they can also remove evidence of the exploit from the log.

Patched versions:

https://pypi.org/project/DIRAC/8.0.79/ https://pypi.org/project/DIRAC/9.0.22/ https://pypi.org/project/DIRAC/9.1.10/

Software afectado

Haz clic en una tecnología para ver todas sus vulnerabilidades.

PlataformaPaqueteVersiones vulnerablesCorregida en
Python (PyPI) dirac >= 6, < 8.0.79, >= 8.1.0a1, < 9.0.22, >= 9.1.0, < 9.1.10 8.0.79, 9.0.22, 9.1.10

Referencias

Puntuación CVSS 9.9/10
Vector CVSS
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Debilidad (CWE)
CWE-89, CWE-95
Plataforma
Python (PyPI)
Paquete
dirac
Publicada
13.07.2026
Actualizado
11.10.2026 14:18

Fuentes y licencias

OSV / GitHub Advisory Database - PYSEC-2026-3463 - PyPA Advisory Database; CC BY 4.0

OSV / GitHub Advisory Database - GHSA-m4m7-4cw8-62j6 - CC BY 4.0

Historial de vulnerabilidades: dirac

Todas las vulnerabilidades publicadas de este paquete (Python (PyPI)), de la más reciente a la más antigua. Muestra si es un fallo aislado o un paquete que hay que vigilar.

Entradas en total
6
Primera → última
02.2024 07.2026
Sin corrección
0
Explotada en ataques
0

Distribución por gravedad

  • Crítica 3
  • Alta 3

Divulgaciones por año

  1. 2024: 2
  2. 2025: 0
  3. 2026: 4
  1. Alta · 8.5 ghsa-7xw9-549r-8jrc >= 6, < 8.0.79, >= 8.1.0a1, < 9.0.22, >= 9.1.0, < 9.1.10 8.0.79, 9.0.22, 9.1.10
  2. Alta · 8.1 CVE-2026-61668 >= 6.20.1, < 8.0.79, >= 8.1.0a1, < 9.0.22, >= 9.1.0, < 9.1.10 8.0.79, 9.0.22, 9.1.10
  3. DIRAC is vulnerable to RCE in FileCatalog DatasetManager via SQL injection + eval esta entrada
    Crítica · 9.9 CVE-2026-61667 >= 6, < 8.0.79, >= 8.1.0a1, < 9.0.22, >= 9.1.0, < 9.1.10 8.0.79, 9.0.22, 9.1.10
  4. Crítica · 9.9 CVE-2026-45579 >= 6, < 8.0.79, >= 8.1.0a1, < 9.0.22, >= 9.1.0, < 9.1.10 8.0.79, 9.0.22, 9.1.10
  5. Alta · 8.1 CVE-2024-29905 < 8.0.41 8.0.41
  6. Crítica · 9.1 CVE-2024-24825 >= 8.0.0, < 8.0.37, < 8.0.37 8.0.37

Identifica las vulnerabilidades de tu aplicación

Con la integración de DockRay y el inventario de software activado, DockRay compara las versiones notificadas de los componentes con las vulnerabilidades conocidas y avisa de las coincidencias confirmadas. La cobertura depende de la tecnología compatible y de los avisos disponibles.

Conectar tu aplicación
Newsletter DockRay

La seguridad de tus aplicaciones en tu correo

Vulnerabilidades importantes, recomendaciones concretas y consejos prácticos para tus aplicaciones. Elige tus tecnologías y sigue lo que importa para tu proyecto.

  • Un resumen diario de nuevas vulnerabilidades, también las críticas.
  • Avisos sobre actualizaciones importantes.
  • Consejos prácticos sobre seguridad y monitorización de aplicaciones.

Déjalo vacío para recibir avisos de todas las tecnologías.

Suscripción gratuita. Date de baja con un clic en cualquier correo.