nday
GHSA-7xw9-549r-8jrc

DIRAC: SQL injection and lack of access control in PilotManager service

Fecha de divulgación: . Versiones corregidas: DIRAC 8.0.79, DIRAC 9.0.22 y 1 más. Ninguna de las cuatro fuentes de PoC la recoge. No figura en el KEV de CISA.

why these tags

nday derives these tags by fixed rules from the facts below; NVD, the CNA and other sources do not assign them. Vocabulary and rules: ~/tags.

SQL injection
CWE-89, stated by GitHub advisory GHSA-7xw9-549r-8jrc
broken access control
CWE-284, stated by GitHub advisory GHSA-7xw9-549r-8jrc
network
AV:N in CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:N (CVSS 3.1) from GitHub advisory GHSA-7xw9-549r-8jrc
no user interaction
UI:N in CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:N (CVSS 3.1) from GitHub advisory GHSA-7xw9-549r-8jrc
PyPI
GHSA-7xw9-549r-8jrc: pip packages DIRAC
etapa
PAT
divulgación
cvss
8.5 HIGH v3.1

Ciclo de vida

Eje x en UTC; punto = minuto exacto, barra ancha = solo fecha, hueco = desconocida o inferida.
fecha desconocida
DISdivulgada
07-13T18:38Z
PATparcheada
DIRAC 8.0.79 +2 más
ANAanalizada
sin registro aún
POCPoC
sin registro aún
ITWexplotada
sin registro aún
KEVen KEV
sin registro aún

Descripción

### Details A number of the functions in PilotManager pass parameters directly through to the database layer, which then does not do any escaping on the parameters. For example setPilotStatus: https://github.com/DIRACGrid/DIRAC/blob/1738e7c6d2f31d26f1364255d9d2e87b4896c922/src/DIRAC/WorkloadManagementSystem/Service/PilotManagerHandler.py#L343-L349

https://github.com/DIRACGrid/DIRAC/blob/1738e7c6d2f31d26f1364255d9d2e87b4896c922/src/DIRAC/WorkloadManagementSystem/DB/PilotAgentsDB.py#L117

This won't accept multiple statements separated by a semicolon, but a carefully crafted set of parameters containing SQL escapes would likely be able to change or return other database entries.

Further to this, the PilotManager access control is only set to "authenticated"; this allows these functions to be called by any user. This allows any user to manage (e.g. delete, read output of) any pilot pilot job: https://github.com/DIRACGrid/DIRAC/blob/1738e7c6d2f31d26f1364255d9d2e87b4896c922/src/DIRAC/WorkloadManagementSystem/ConfigTemplate.cfg#L111-L118

This is fixed by changing the SQL statements to use proper parameter substitution and providing a suitable set of access rules for the exported pilot management functions.

### 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/

Original text of GitHub advisory GHSA-7xw9-549r-8jrc, shown as published.

Exploit conditions

What an attack needs, read from the CVSS vector.
Attack vector AV:N
Network: the attacker only needs to reach it over the network
Attack complexity AC:L
Low: no special conditions; the attacker can expect repeatable success
Privileges required PR:L
Low: ordinary user privileges
User interaction UI:N
None: no action by anyone other than the attacker

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:N

CVSS 3.1 vector from GitHub advisory GHSA-7xw9-549r-8jrc.

Registro de eventos

+DISdivulgación

ghsa notificó una divulgación.

fuente ghsa · nday , importación masiva · en bruto
{
  "id": 473998,
  "type": "disclosed",
  "source": "ghsa",
  "url": "https://github.com/advisories/GHSA-7xw9-549r-8jrc",
  "occurred_at": "2026-07-13T18:38:13Z",
  "observed_at": "2026-11-16T19:07:30.503253Z",
  "is_backfill": true,
  "dedupe_key": "GHSA-7xw9-549r-8jrc",
  "detail": {
    "state": "PUBLISHED",
    "ghsa_id": "GHSA-7xw9-549r-8jrc",
    "withdrawn_at": null
  }
}
se desconocela fuente no indica fecha
+PATparche registrado

Versiones corregidas según el aviso: DIRAC 8.0.79, DIRAC 9.0.22 y DIRAC 9.1.10. El aviso enlaza los commits de la corrección. Aviso publicado el ; no consta cuándo se publicó el parche en sí.

fuente ghsa · nday , importación masiva · en bruto
{
  "id": 473999,
  "type": "patch_released",
  "source": "ghsa",
  "url": "https://github.com/advisories/GHSA-7xw9-549r-8jrc",
  "occurred_at": null,
  "observed_at": "2026-11-16T19:07:30.503253Z",
  "is_backfill": true,
  "dedupe_key": "GHSA-7xw9-549r-8jrc",
  "detail": {
    "cvss": {
      "cvss_v3": {
        "score": 8.5,
        "vector_string": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:N"
      },
      "cvss_v4": {
        "score": 0.0,
        "vector_string": null
      }
    },
    "cwes": [
      {
        "name": "Improper Neutralization of Special Elements used in an SQL Command",
        "cwe_id": "CWE-89"
      },
      {
        "name": "Improper Access Control",
        "cwe_id": "CWE-284"
      }
    ],
    "ghsa_id": "GHSA-7xw9-549r-8jrc",
    "packages": [
      {
        "name": "DIRAC",
        "ecosystem": "pip",
        "first_patched_version": "8.0.79",
        "vulnerable_version_range": ">= 6, < 8.0.79"
      },
      {
        "name": "DIRAC",
        "ecosystem": "pip",
        "first_patched_version": "9.0.22",
        "vulnerable_version_range": ">= 8.1.0a1, < 9.0.22"
      },
      {
        "name": "DIRAC",
        "ecosystem": "pip",
        "first_patched_version": "9.1.10",
        "vulnerable_version_range": ">= 9.1.0, < 9.1.10"
      }
    ],
    "severity": "high",
    "references": [
      "https://github.com/DIRACGrid/DIRAC/security/advisories/GHSA-7xw9-549r-8jrc",
      "https://pypi.org/project/DIRAC/8.0.79",
      "https://pypi.org/project/DIRAC/9.0.22",
      "https://pypi.org/project/DIRAC/9.1.10",
      "https://github.com/DIRACGrid/DIRAC/commit/8731de576cf96826dbbf505508526ada31efb927",
      "https://github.com/DIRACGrid/DIRAC/commit/f67f754d4eef5bf40a8223dab77cf2591808031f",
      "https://github.com/advisories/GHSA-7xw9-549r-8jrc"
    ],
    "fix_commit_urls": [
      "https://github.com/DIRACGrid/DIRAC/commit/8731de576cf96826dbbf505508526ada31efb927",
      "https://github.com/DIRACGrid/DIRAC/commit/f67f754d4eef5bf40a8223dab77cf2591808031f"
    ],
    "github_reviewed_at": "2026-07-13T18:38:13Z",
    "advisory_updated_at": "2026-11-10T19:38:10Z",
    "source_code_location": "https://github.com/DIRACGrid/DIRAC",
    "advisory_published_at": "2026-07-13T18:38:13Z"
  }
}

Report an error

report an error or omission

Something on this page wrong or missing? Tell the editors; if they accept it, this page's revision log says so publicly. Upstream data is not changed.

Discussion

0 comments

No comments yet.