nday
GHSA-7xw9-549r-8jrc

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

CVE 공개: . 해결 버전: DIRAC 8.0.79, DIRAC 9.0.22 외 1개. PoC 출처 4곳 모두 미등재. 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.

이벤트 로그

+DISCVE 공개

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.