{"answers":{"affected":"6 open source packages ship an affected version, including DIRAC and dirac.","exploited":"There is no known exploitation of GHSA-7xw9-549r-8jrc in the wild and no public exploit code.","fix":"Upgrade DIRAC to a fixed version for your release line: 8.0.79, 9.0.22 or 9.1.10.","what":"GHSA-7xw9-549r-8jrc is a SQL injection vulnerability in DIRAC, published on 13 Jul 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-7xw9-549r-8jrc and fix it if it is affected.\n\nWhat it is: GHSA-7xw9-549r-8jrc is a SQL injection vulnerability in DIRAC, published on 13 Jul 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-7xw9-549r-8jrc in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- DIRAC (PyPI): affected from 6; fixed in 8.0.79\n- DIRAC (PyPI): affected from 8.1.0a1; fixed in 9.0.22\n- DIRAC (PyPI): affected from 9.1.0; fixed in 9.1.10\n- dirac (PyPI): affected from 6; fixed in 8.0.79\n- dirac (PyPI): affected from 8.1.0a1; fixed in 9.0.22\n- dirac (PyPI): affected from 9.1.0; fixed in 9.1.10\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-7xw9-549r-8jrc/ (Markdown: https://insights.sbomify.com/GHSA-7xw9-549r-8jrc/index.md)","id":"GHSA-7xw9-549r-8jrc","markdown":"https://insights.sbomify.com/GHSA-7xw9-549r-8jrc/index.md","name":"GHSA-7xw9-549r-8jrc","record":{"aliases":[],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"DIRAC grid framework","requires_auth":"low_privilege","summary":"Authenticated users can exploit SQL injection and missing access controls in PilotManager to read or modify arbitrary pilot job data.","user_interaction":"not_required","vuln_class":"sql_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### Details\nA 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:\nhttps://github.com/DIRACGrid/DIRAC/blob/1738e7c6d2f31d26f1364255d9d2e87b4896c922/src/DIRAC/WorkloadManagementSystem/Service/PilotManagerHandler.py#L343-L349\n\nhttps://github.com/DIRACGrid/DIRAC/blob/1738e7c6d2f31d26f1364255d9d2e87b4896c922/src/DIRAC/WorkloadManagementSystem/DB/PilotAgentsDB.py#L117\n\nThis 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.\n\nFurther 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:\nhttps://github.com/DIRACGrid/DIRAC/blob/1738e7c6d2f31d26f1364255d9d2e87b4896c922/src/DIRAC/WorkloadManagementSystem/ConfigTemplate.cfg#L111-L118\n\nThis 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.\n\n### Patched versions:\nhttps://pypi.org/project/DIRAC/8.0.79/\nhttps://pypi.org/project/DIRAC/9.0.22/\nhttps://pypi.org/project/DIRAC/9.1.10/","ecosystems":["PyPI"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"DIRAC: SQL injection and lack of access control in PilotManager service","id":"GHSA-7xw9-549r-8jrc","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"sql_injection","year":"2026"},"n_packages":6,"n_references":null,"packages":[{"ecosystem":"PyPI","fixed":["8.0.79"],"introduced":["6"],"last_affected":[],"package":"DIRAC","purl":null,"source":"GHSA-7xw9-549r-8jrc"},{"ecosystem":"PyPI","fixed":["9.0.22"],"introduced":["8.1.0a1"],"last_affected":[],"package":"DIRAC","purl":null,"source":"GHSA-7xw9-549r-8jrc"},{"ecosystem":"PyPI","fixed":["9.1.10"],"introduced":["9.1.0"],"last_affected":[],"package":"DIRAC","purl":null,"source":"GHSA-7xw9-549r-8jrc"},{"ecosystem":"PyPI","fixed":["8.0.79"],"introduced":["6"],"last_affected":[],"package":"dirac","purl":"pkg:pypi/dirac","source":"GHSA-7xw9-549r-8jrc"},{"ecosystem":"PyPI","fixed":["9.0.22"],"introduced":["8.1.0a1"],"last_affected":[],"package":"dirac","purl":"pkg:pypi/dirac","source":"GHSA-7xw9-549r-8jrc"},{"ecosystem":"PyPI","fixed":["9.1.10"],"introduced":["9.1.0"],"last_affected":[],"package":"dirac","purl":"pkg:pypi/dirac","source":"GHSA-7xw9-549r-8jrc"}],"products":null,"published":"2026-07-13","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Authenticated users can exploit SQL injection and missing access controls in PilotManager to read or modify arbitrary pilot job data.","url":"https://insights.sbomify.com/GHSA-7xw9-549r-8jrc/"}