{"id":"CVE-2026-61667","aliases":["EUVD-2026-78896","GHSA-m4m7-4cw8-62j6","PYSEC-2026-3463"],"status":"published","title":"DIRAC: RCE in FileCatalog DatasetManager via SQL injection + eval","description":"DIRAC is an interware, meaning a software framework for distributed computing. Prior to versions 8.0.79, 9.0.22, and 9.1.10, DataManagementSystem/Service/FileCatalogHandler.py checkDataset forwards an authenticated caller-controlled datasets value to DatasetManager.py __checkDataset, where datasetName is interpolated into an FC_MetaDatasets SQL query without parameterization. The injected query can control the returned MetaQuery value, which is passed to Python eval and permits command execution as the account running the DIRAC services. Successful exploitation can expose dirac.cfg, database passwords, stored proxies, and tokens, fully compromise the DIRAC system, and allow alteration of local log evidence. This issue is fixed in versions 8.0.79, 9.0.22, and 9.1.10.","severity":{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","level":"critical","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.01213,"percentile":0.68737,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-89","CWE-95"],"published":"2026-07-13T18:37:31Z","modified":"2026-10-28T02:30:51Z","fixes":[{"ecosystem":"PyPI","package":"dirac","fixed_in":["8.0.79","9.0.22","9.1.10"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"dirac","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6"},{"fixed":"8.0.79"}]}]},{"source":"ghsa","ecosystem":"PyPI","package":"dirac","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"8.1.0a1"},{"fixed":"9.0.22"}]}]},{"source":"ghsa","ecosystem":"PyPI","package":"dirac","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"9.1.0"},{"fixed":"9.1.10"}]}]},{"source":"osv","ecosystem":"PyPI","package":"dirac","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6"},{"fixed":"8.0.79"}]}],"versions":["7.2.0","7.2.0a32","7.2.0a33","7.2.0a34","7.2.0a35","7.2.0a36","7.2.0a38","7.2.0a39","7.2.1","7.2.10","7.2.12","7.2.13","7.2.14","7.2.15","7.2.16","7.2.19","7.2.2","7.2.20","7.2.21","7.2.22","7.2.23","7.2.24","7.2.25","7.2.26","7.2.27","7.2.28","7.2.3","7.2.30","7.2.31","7.2.32","7.2.33","7.2.34","7.2.35","7.2.36","7.2.37","7.2.38","7.2.39","7.2.4","7.2.40","7.2.41","7.2.42","7.2.43","7.2.44","7.2.45","7.2.46","7.2.47","7.2.48","7.2.49","7.2.5","7.2.50","7.2.51","7.2.52","7.2.6","7.2.7","7.2.8","7.2.9","7.2a29","7.3.0a10","7.3.0a11","7.3.0a13","7.3.0a14","7.3.0a15","7.3.0a16","7.3.0a17","7.3.0a18","7.3.0a19","7.3.0a2","7.3.0a20","7.3.0a21","7.3.0a22","7.3.0a23","7.3.0a24","7.3.0a3","7.3.0a4","7.3.0a5","7.3.0a6","7.3.0a7","7.3.0a8","7.3.0a9","7.3.1","7.3.10","7.3.11","7.3.12","7.3.13","7.3.14","7.3.15","7.3.16","7.3.17","7.3.18","7.3.19","7.3.2","7.3.20","7.3.21","7.3.22","7.3.23","7.3.24","7.3.26","7.3.27","7.3.28","7.3.29","7.3.3","7.3.30","7.3.31","7.3.32","7.3.33","7.3.34","7.3.35","7.3.36","7.3.37","7.3.38","7.3.4","7.3.5","7.3.6","7.3.7","7.3.8","7.3.9","7.4.0a1","8.0.0","8.0.0a1","8.0.0a10","8.0.0a11","8.0.0a12","8.0.0a13","8.0.0a14","8.0.0a15","8.0.0a16","8.0.0a17","8.0.0a18","8.0.0a19","8.0.0a20","8.0.0a21","8.0.0a22","8.0.0a23","8.0.0a24","8.0.0a25","8.0.0a26","8.0.0a27","8.0.0a28","8.0.0a29","8.0.0a5","8.0.0a6","8.0.0a7","8.0.0a8","8.0.0a9","8.0.1","8.0.10","8.0.11","8.0.12","8.0.13","8.0.14","8.0.15","8.0.16","8.0.17","8.0.18","8.0.19","8.0.2","8.0.20","8.0.21","8.0.22","8.0.23","8.0.24","8.0.25","8.0.26","8.0.27","8.0.28","8.0.29","8.0.3","8.0.30","8.0.31","8.0.32","8.0.33","8.0.34","8.0.35","8.0.36","8.0.37","8.0.38","8.0.39","8.0.4","8.0.40","8.0.41","8.0.42","8.0.43","8.0.44","8.0.45","8.0.46","8.0.47","8.0.48","8.0.49","8.0.5","8.0.50","8.0.51","8.0.52","8.0.53","8.0.54","8.0.55","8.0.56","8.0.58","8.0.59","8.0.6","8.0.60","8.0.61","8.0.62","8.0.63","8.0.64","8.0.65","8.0.66","8.0.67","8.0.68","8.0.69","8.0.7","8.0.70","8.0.71","8.0.72","8.0.73","8.0.74","8.0.75","8.0.76","8.0.77","8.0.78","8.0.8","8.0.9"]},{"source":"osv","ecosystem":"PyPI","package":"dirac","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"8.1.0a1"},{"fixed":"9.0.22"}]}],"versions":["8.1.0a1","8.1.0a10","8.1.0a11","8.1.0a12","8.1.0a13","8.1.0a14","8.1.0a15","8.1.0a16","8.1.0a17","8.1.0a18","8.1.0a19","8.1.0a2","8.1.0a20","8.1.0a21","8.1.0a22","8.1.0a23","8.1.0a3","8.1.0a4","8.1.0a5","8.1.0a6","8.1.0a7","8.1.0a8","8.1.0a9","9.0.0","9.0.0a1","9.0.0a10","9.0.0a11","9.0.0a12","9.0.0a13","9.0.0a16","9.0.0a17","9.0.0a18","9.0.0a19","9.0.0a2","9.0.0a20","9.0.0a21","9.0.0a22","9.0.0a23","9.0.0a24","9.0.0a25","9.0.0a26","9.0.0a27","9.0.0a28","9.0.0a29","9.0.0a3","9.0.0a30","9.0.0a31","9.0.0a35","9.0.0a36","9.0.0a37","9.0.0a38","9.0.0a39","9.0.0a4","9.0.0a40","9.0.0a41","9.0.0a42","9.0.0a43","9.0.0a44","9.0.0a45","9.0.0a46","9.0.0a47","9.0.0a48","9.0.0a49","9.0.0a5","9.0.0a50","9.0.0a51","9.0.0a52","9.0.0a53","9.0.0a54","9.0.0a55","9.0.0a56","9.0.0a57","9.0.0a58","9.0.0a59","9.0.0a6","9.0.0a60","9.0.0a61","9.0.0a62","9.0.0a63","9.0.0a64","9.0.0a66","9.0.0a67","9.0.0a68","9.0.0a69","9.0.0a70","9.0.1","9.0.10","9.0.11","9.0.12","9.0.13","9.0.14","9.0.15","9.0.16","9.0.17","9.0.18","9.0.19","9.0.2","9.0.20","9.0.21","9.0.4","9.0.5","9.0.6","9.0.7","9.0.8","9.0.9"]},{"source":"osv","ecosystem":"PyPI","package":"dirac","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"9.1.0"},{"fixed":"9.1.10"}]}],"versions":["9.1.0","9.1.1","9.1.2","9.1.3","9.1.4","9.1.5","9.1.6","9.1.7","9.1.8","9.1.9"]},{"source":"osv","ecosystem":"PyPI","package":"dirac","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6"},{"fixed":"8.0.79"},{"introduced":"8.1.0a1"},{"fixed":"9.0.22"},{"introduced":"9.1.0"},{"fixed":"9.1.10"}]}],"versions":["7.2.0","7.2.0a32","7.2.0a33","7.2.0a34","7.2.0a35","7.2.0a36","7.2.0a38","7.2.0a39","7.2.1","7.2.10","7.2.12","7.2.13","7.2.14","7.2.15","7.2.16","7.2.19","7.2.2","7.2.20","7.2.21","7.2.22","7.2.23","7.2.24","7.2.25","7.2.26","7.2.27","7.2.28","7.2.3","7.2.30","7.2.31","7.2.32","7.2.33","7.2.34","7.2.35","7.2.36","7.2.37","7.2.38","7.2.39","7.2.4","7.2.40","7.2.41","7.2.42","7.2.43","7.2.44","7.2.45","7.2.46","7.2.47","7.2.48","7.2.49","7.2.5","7.2.50","7.2.51","7.2.52","7.2.6","7.2.7","7.2.8","7.2.9","7.2a29","7.3.0a10","7.3.0a11","7.3.0a13","7.3.0a14","7.3.0a15","7.3.0a16","7.3.0a17","7.3.0a18","7.3.0a19","7.3.0a2","7.3.0a20","7.3.0a21","7.3.0a22","7.3.0a23","7.3.0a24","7.3.0a3","7.3.0a4","7.3.0a5","7.3.0a6","7.3.0a7","7.3.0a8","7.3.0a9","7.3.1","7.3.10","7.3.11","7.3.12","7.3.13","7.3.14","7.3.15","7.3.16","7.3.17","7.3.18","7.3.19","7.3.2","7.3.20","7.3.21","7.3.22","7.3.23","7.3.24","7.3.26","7.3.27","7.3.28","7.3.29","7.3.3","7.3.30","7.3.31","7.3.32","7.3.33","7.3.34","7.3.35","7.3.36","7.3.37","7.3.38","7.3.4","7.3.5","7.3.6","7.3.7","7.3.8","7.3.9","7.4.0a1","8.0.0","8.0.0a1","8.0.0a10","8.0.0a11","8.0.0a12","8.0.0a13","8.0.0a14","8.0.0a15","8.0.0a16","8.0.0a17","8.0.0a18","8.0.0a19","8.0.0a20","8.0.0a21","8.0.0a22","8.0.0a23","8.0.0a24","8.0.0a25","8.0.0a26","8.0.0a27","8.0.0a28","8.0.0a29","8.0.0a5","8.0.0a6","8.0.0a7","8.0.0a8","8.0.0a9","8.0.1","8.0.10","8.0.11","8.0.12","8.0.13","8.0.14","8.0.15","8.0.16","8.0.17","8.0.18","8.0.19","8.0.2","8.0.20","8.0.21","8.0.22","8.0.23","8.0.24","8.0.25","8.0.26","8.0.27","8.0.28","8.0.29","8.0.3","8.0.30","8.0.31","8.0.32","8.0.33","8.0.34","8.0.35","8.0.36","8.0.37","8.0.38","8.0.39","8.0.4","8.0.40","8.0.41","8.0.42","8.0.43","8.0.44","8.0.45","8.0.46","8.0.47","8.0.48","8.0.49","8.0.5","8.0.50","8.0.51","8.0.52","8.0.53","8.0.54","8.0.55","8.0.56","8.0.58","8.0.59","8.0.6","8.0.60","8.0.61","8.0.62","8.0.63","8.0.64","8.0.65","8.0.66","8.0.67","8.0.68","8.0.69","8.0.7","8.0.70","8.0.71","8.0.72","8.0.73","8.0.74","8.0.75","8.0.76","8.0.77","8.0.78","8.0.8","8.0.9","8.1.0a1","8.1.0a10","8.1.0a11","8.1.0a12","8.1.0a13","8.1.0a14","8.1.0a15","8.1.0a16","8.1.0a17","8.1.0a18","8.1.0a19","8.1.0a2","8.1.0a20","8.1.0a21","8.1.0a22","8.1.0a23","8.1.0a3","8.1.0a4","8.1.0a5","8.1.0a6","8.1.0a7","8.1.0a8","8.1.0a9","9.0.0","9.0.0a1","9.0.0a10","9.0.0a11","9.0.0a12","9.0.0a13","9.0.0a16","9.0.0a17","9.0.0a18","9.0.0a19","9.0.0a2","9.0.0a20","9.0.0a21","9.0.0a22","9.0.0a23","9.0.0a24","9.0.0a25","9.0.0a26","9.0.0a27","9.0.0a28","9.0.0a29","9.0.0a3","9.0.0a30","9.0.0a31","9.0.0a35","9.0.0a36","9.0.0a37","9.0.0a38","9.0.0a39","9.0.0a4","9.0.0a40","9.0.0a41","9.0.0a42","9.0.0a43","9.0.0a44","9.0.0a45","9.0.0a46","9.0.0a47","9.0.0a48","9.0.0a49","9.0.0a5","9.0.0a50","9.0.0a51","9.0.0a52","9.0.0a53","9.0.0a54","9.0.0a55","9.0.0a56","9.0.0a57","9.0.0a58","9.0.0a59","9.0.0a6","9.0.0a60","9.0.0a61","9.0.0a62","9.0.0a63","9.0.0a64","9.0.0a66","9.0.0a67","9.0.0a68","9.0.0a69","9.0.0a70","9.0.1","9.0.10","9.0.11","9.0.12","9.0.13","9.0.14","9.0.15","9.0.16","9.0.17","9.0.18","9.0.19","9.0.2","9.0.20","9.0.21","9.0.4","9.0.5","9.0.6","9.0.7","9.0.8","9.0.9","9.1.0","9.1.1","9.1.2","9.1.3","9.1.4","9.1.5","9.1.6","9.1.7","9.1.8","9.1.9"]}],"products":[{"vendor":"diracgrid","product":"dirac"}],"references":[{"url":"https://github.com/DIRACGrid/DIRAC/security/advisories/GHSA-m4m7-4cw8-62j6","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/DIRACGrid/DIRAC/commit/106f6efb40eb7318473fc09fc48083f1f864460a","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/DIRACGrid/DIRAC/commit/55ecbd729242ddbe06251b57895873cc468f5a1a","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/DIRACGrid/DIRAC/commit/5a5def88d65a18c77af9f2900ffb5866d6489d62","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/DIRACGrid/DIRAC/commit/66cfc8bf1dc13a6d38bf0c5654d5b551d76dce9b","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/DIRACGrid/DIRAC/commit/6f6fe65f27b6913916ef77a77a09918b94029c0a","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/DIRACGrid/DIRAC/commit/fabf08a4a403fdd92d3445771528fa54b3ee902f","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/DIRACGrid/DIRAC/releases/tag/v8.0.79","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/DIRACGrid/DIRAC/releases/tag/v9.0.22","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/DIRACGrid/DIRAC/releases/tag/v9.1.10","tags":["x_refsource_MISC","web"]},{"url":"https://pypi.org/project/DIRAC/8.0.79","tags":["web"]},{"url":"https://pypi.org/project/DIRAC/9.0.22","tags":["web"]},{"url":"https://pypi.org/project/DIRAC/9.1.10","tags":["web"]},{"url":"https://github.com/advisories/GHSA-m4m7-4cw8-62j6","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/61xxx/CVE-2026-61667.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-61667","tags":["advisory"]},{"url":"https://github.com/DIRACGrid/DIRAC","tags":["package"]},{"url":"https://pypi.org/project/dirac","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2026-61667","title":"DIRAC: RCE in FileCatalog DatasetManager via SQL injection + eval","description":"DIRAC is an interware, meaning a software framework for distributed computing. Prior to versions 8.0.79, 9.0.22, and 9.1.10, DataManagementSystem/Service/FileCatalogHandler.py checkDataset forwards an authenticated caller-controlled datasets value to DatasetManager.py __checkDataset, where datasetName is interpolated into an FC_MetaDatasets SQL query without parameterization. The injected query can control the returned MetaQuery value, which is passed to Python eval and permits command execution as the account running the DIRAC services. Successful exploitation can expose dirac.cfg, database passwords, stored proxies, and tokens, fully compromise the DIRAC system, and allow alteration of local log evidence. This issue is fixed in versions 8.0.79, 9.0.22, and 9.1.10.","status":"published","published":"2026-09-15T17:26:16.456Z","modified":"2026-09-15T18:44:14.827Z","cvss":[{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","level":"critical","assessor":"cna"}],"cwes":["CWE-89","CWE-95"],"updated_at":"2026-11-02T14:19:53.786088Z"}],"euvd":[{"id":"EUVD-2026-78896","description":"DIRAC is an interware, meaning a software framework for distributed computing. Prior to versions 8.0.79, 9.0.22, and 9.1.10, DataManagementSystem/Service/FileCatalogHandler.py checkDataset forwards an authenticated caller-controlled datasets value to DatasetManager.py __checkDataset, where datasetName is interpolated into an FC_MetaDatasets SQL query without parameterization. The injected query can control the returned MetaQuery value, which is passed to Python eval and permits command execution as the account running the DIRAC services. Successful exploitation can expose dirac.cfg, database passwords, stored proxies, and tokens, fully compromise the DIRAC system, and allow alteration of local log evidence. This issue is fixed in versions 8.0.79, 9.0.22, and 9.1.10.","status":"published","published":"2026-09-15T17:26:16Z","modified":"2026-09-15T18:44:14Z","cvss":[{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T17:28:17.333425Z"}],"ghsa":[{"id":"GHSA-m4m7-4cw8-62j6","title":"DIRAC is vulnerable to RCE in FileCatalog DatasetManager via SQL injection + eval","description":"### Summary\nThe FileCatalog DatasetManager runs a query on the database and passes the result to eval. The SQL query contains an injection vulnerability which allows an authenticated user to control the parameter returned to the eval resulting in remote code execution.\n\n### Details\n\nThe FileCatalog checkDataset function passes its datasets argument directly to the backend DB handler:\nhttps://github.com/DIRACGrid/DIRAC/blob/f7e0a3ac153315030fb3520e8ca747f013758967/src/DIRAC/DataManagementSystem/Service/FileCatalogHandler.py#L591-L593\n\nWhich in turn passes it to the __checkDataset function:\nhttps://github.com/DIRACGrid/DIRAC/blob/f7e0a3ac153315030fb3520e8ca747f013758967/src/DIRAC/DataManagementSystem/DB/FileCatalogComponents/DatasetManager/DatasetManager.py#L390\n\nThis uses an f-string to create a query without escaping, resulting in an SQL injection:\nhttps://github.com/DIRACGrid/DIRAC/blob/f7e0a3ac153315030fb3520e8ca747f013758967/src/DIRAC/DataManagementSystem/DB/FileCatalogComponents/DatasetManager/DatasetManager.py#L400-L402\n\nThe result (which is user controllable due to the SQL injection) is passed into eval almost immediately on return, leading to code execution:\nhttps://github.com/DIRACGrid/DIRAC/blob/f7e0a3ac153315030fb3520e8ca747f013758967/src/DIRAC/DataManagementSystem/DB/FileCatalogComponents/DatasetManager/DatasetManager.py#L409\n\nThere are other functions in the same file which use a similar pattern and would likely be exploitable in a similar way.\n\n### Impact\nThis allows any authenticated user to run commands on the server, which allows a full compromise of the DIRAC system (they can read the local dirac.cfg, get database passwords and export all stored proxies and tokens). If local logging is used, they can also remove evidence of the exploit from the log.\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/","status":"published","published":"2026-07-13T18:37:31Z","modified":"2026-07-13T18:37:33Z","cvss":[{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-89","CWE-95"],"updated_at":"2026-11-02T14:40:42.703776Z"}],"nvd":[{"id":"CVE-2026-61667","description":"DIRAC is an interware, meaning a software framework for distributed computing. Prior to versions 8.0.79, 9.0.22, and 9.1.10, DataManagementSystem/Service/FileCatalogHandler.py checkDataset forwards an authenticated caller-controlled datasets value to DatasetManager.py __checkDataset, where datasetName is interpolated into an FC_MetaDatasets SQL query without parameterization. The injected query can control the returned MetaQuery value, which is passed to Python eval and permits command execution as the account running the DIRAC services. Successful exploitation can expose dirac.cfg, database passwords, stored proxies, and tokens, fully compromise the DIRAC system, and allow alteration of local log evidence. This issue is fixed in versions 8.0.79, 9.0.22, and 9.1.10.","status":"published","published":"2026-09-15T18:17:27.05Z","modified":"2026-09-30T17:51:56.193Z","cvss":[{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","level":"critical","assessor":"secondary"}],"cwes":["CWE-89","CWE-95"],"updated_at":"2026-11-02T14:12:47.668237Z"}],"osv":[{"id":"CVE-2026-61667","title":"DIRAC: RCE in FileCatalog DatasetManager via SQL injection + eval","description":"DIRAC is an interware, meaning a software framework for distributed computing. Prior to versions 8.0.79, 9.0.22, and 9.1.10, DataManagementSystem/Service/FileCatalogHandler.py checkDataset forwards an authenticated caller-controlled datasets value to DatasetManager.py __checkDataset, where datasetName is interpolated into an FC_MetaDatasets SQL query without parameterization. The injected query can control the returned MetaQuery value, which is passed to Python eval and permits command execution as the account running the DIRAC services. Successful exploitation can expose dirac.cfg, database passwords, stored proxies, and tokens, fully compromise the DIRAC system, and allow alteration of local log evidence. This issue is fixed in versions 8.0.79, 9.0.22, and 9.1.10.","status":"published","published":"2026-09-15T17:26:16.456Z","modified":"2026-10-28T02:30:51.622519012Z","cvss":[{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-89","CWE-95"],"updated_at":"2026-11-02T15:45:12.933503Z"},{"id":"GHSA-m4m7-4cw8-62j6","title":"DIRAC is vulnerable to RCE in FileCatalog DatasetManager via SQL injection + eval","description":"### Summary\nThe FileCatalog DatasetManager runs a query on the database and passes the result to eval. The SQL query contains an injection vulnerability which allows an authenticated user to control the parameter returned to the eval resulting in remote code execution.\n\n### Details\n\nThe FileCatalog checkDataset function passes its datasets argument directly to the backend DB handler:\nhttps://github.com/DIRACGrid/DIRAC/blob/f7e0a3ac153315030fb3520e8ca747f013758967/src/DIRAC/DataManagementSystem/Service/FileCatalogHandler.py#L591-L593\n\nWhich in turn passes it to the __checkDataset function:\nhttps://github.com/DIRACGrid/DIRAC/blob/f7e0a3ac153315030fb3520e8ca747f013758967/src/DIRAC/DataManagementSystem/DB/FileCatalogComponents/DatasetManager/DatasetManager.py#L390\n\nThis uses an f-string to create a query without escaping, resulting in an SQL injection:\nhttps://github.com/DIRACGrid/DIRAC/blob/f7e0a3ac153315030fb3520e8ca747f013758967/src/DIRAC/DataManagementSystem/DB/FileCatalogComponents/DatasetManager/DatasetManager.py#L400-L402\n\nThe result (which is user controllable due to the SQL injection) is passed into eval almost immediately on return, leading to code execution:\nhttps://github.com/DIRACGrid/DIRAC/blob/f7e0a3ac153315030fb3520e8ca747f013758967/src/DIRAC/DataManagementSystem/DB/FileCatalogComponents/DatasetManager/DatasetManager.py#L409\n\nThere are other functions in the same file which use a similar pattern and would likely be exploitable in a similar way.\n\n### Impact\nThis allows any authenticated user to run commands on the server, which allows a full compromise of the DIRAC system (they can read the local dirac.cfg, get database passwords and export all stored proxies and tokens). If local logging is used, they can also remove evidence of the exploit from the log.\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/","status":"published","published":"2026-07-13T18:37:31Z","modified":"2026-07-23T15:11:50.139294005Z","cvss":[{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-89","CWE-95"],"updated_at":"2026-11-02T15:46:51.463834Z"},{"id":"PYSEC-2026-3463","title":"DIRAC is vulnerable to RCE in FileCatalog DatasetManager via SQL injection + eval","description":"### Summary\nThe FileCatalog DatasetManager runs a query on the database and passes the result to eval. The SQL query contains an injection vulnerability which allows an authenticated user to control the parameter returned to the eval resulting in remote code execution.\n\n### Details\n\nThe FileCatalog checkDataset function passes its datasets argument directly to the backend DB handler:\nhttps://github.com/DIRACGrid/DIRAC/blob/f7e0a3ac153315030fb3520e8ca747f013758967/src/DIRAC/DataManagementSystem/Service/FileCatalogHandler.py#L591-L593\n\nWhich in turn passes it to the __checkDataset function:\nhttps://github.com/DIRACGrid/DIRAC/blob/f7e0a3ac153315030fb3520e8ca747f013758967/src/DIRAC/DataManagementSystem/DB/FileCatalogComponents/DatasetManager/DatasetManager.py#L390\n\nThis uses an f-string to create a query without escaping, resulting in an SQL injection:\nhttps://github.com/DIRACGrid/DIRAC/blob/f7e0a3ac153315030fb3520e8ca747f013758967/src/DIRAC/DataManagementSystem/DB/FileCatalogComponents/DatasetManager/DatasetManager.py#L400-L402\n\nThe result (which is user controllable due to the SQL injection) is passed into eval almost immediately on return, leading to code execution:\nhttps://github.com/DIRACGrid/DIRAC/blob/f7e0a3ac153315030fb3520e8ca747f013758967/src/DIRAC/DataManagementSystem/DB/FileCatalogComponents/DatasetManager/DatasetManager.py#L409\n\nThere are other functions in the same file which use a similar pattern and would likely be exploitable in a similar way.\n\n### Impact\nThis allows any authenticated user to run commands on the server, which allows a full compromise of the DIRAC system (they can read the local dirac.cfg, get database passwords and export all stored proxies and tokens). If local logging is used, they can also remove evidence of the exploit from the log.\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/","status":"published","published":"2026-07-23T11:41:44.938083Z","modified":"2026-07-23T15:00:11.016139434Z","cvss":[{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:52:56.847083Z"}]}}
