nday
GHSA-7xw9-549r-8jrc

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

に公開されました。修正済みバージョンは DIRAC 8.0.79、DIRAC 9.0.22 など計 3 件です。4 つの PoC ソースのいずれにも未掲載です。CISA KEV には現時点で未掲載です。

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
現在の段階
PAT
公開日時
CVSS 基本値
8.5 HIGH v3.1

ライフサイクル

横軸は UTC。点=分単位、幅広の帯=日付のみ、白抜き=不明または推定。
日時不明
DIS公開
07-13T18:38Z
PAT修正
DIRAC 8.0.79 ほか 2 件
ANA解析
記録なし
POCPoC
記録なし
ITW悪用
記録なし
KEVKEV
記録なし

概要

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

イベント履歴

+DIS公開

ghsa が公開を報告。

出典 ghsa · nday が に一括取り込み · 生データ
{
  "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
  }
}
日時不明ソースに時刻なし
+PAT修正版公開

アドバイザリ記載の修正済みバージョン:DIRAC 8.0.79、DIRAC 9.0.22、DIRAC 9.1.10。修正コミットへのリンクあり。アドバイザリの公開は 。修正版そのもののリリース日時は記録なし。

出典 ghsa · nday が に一括取り込み · 生データ
{
  "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.