Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. DIRAC
  4. ›
  5. GHSA-7xw9-549r-8jrc

GHSA-7xw9-549r-8jrc: DIRAC: SQL injection and lack of access control in PilotManager service

July 13, 2026

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/

References

  • github.com/DIRACGrid/DIRAC/security/advisories/GHSA-7xw9-549r-8jrc
  • github.com/advisories/GHSA-7xw9-549r-8jrc
  • pypi.org/project/DIRAC/8.0.79
  • pypi.org/project/DIRAC/9.0.22
  • pypi.org/project/DIRAC/9.1.10

Code Behaviors & Features

Detect and mitigate GHSA-7xw9-549r-8jrc with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 6.0.0 before 8.0.79, all versions starting from 8.1.0-a.1 before 9.0.22, all versions starting from 9.1.0 before 9.1.10

Fixed versions

  • 8.0.79
  • 9.0.22
  • 9.1.10

Solution

Upgrade to versions 8.0.79, 9.0.22, 9.1.10 or above.

Impact 8.5 HIGH

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

Learn more about CVSS

Weakness

  • CWE-284: Improper Access Control
  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Source file

pypi/DIRAC/GHSA-7xw9-549r-8jrc.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 08 Aug 2026 00:19:07 +0000.