VAITP Dataset

← Back to the dataset

CVE-2026-45579

Unauthenticated code exec via crafted groupingAttribute in DIRAC request counters.

  • CVSS 9.9
  • 95
  • Input Validation and Sanitization
  • Remote

DIRAC is an interware, meaning a software framework for distributed computing. Prior to versions 8.0.79, 9.0.22, and 9.1.10, the RequestManagementSystem/Service/ReqManagerHandler.py export_getRequestCountersWeb function passes an authenticated caller-controlled groupingAttribute to RequestManagementSystem/DB/RequestDB.py getRequestCountersWeb. An unrecognized value is resolved against the Request object and evaluated as Python code, allowing a crafted dunder attribute expression to reach operating-system functions and execute commands 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.

CWE
95
CVSS base score
9.9
Published
2026-09-15
OWASP
A01 Injection
Orthogonal defect classification
Interface
Code defect classification
Incorrect Interface
Category
Input Validation and Sanitization
Subcategory
Command Injection
Accessibility scope
Remote
Impact
Arbitrary Code Execution
Affected component
DIRAC
Fixed by upgrading
Yes

Solution

Upgrade DIRAC to version 8.0.79 or later (or 9.0.22 or later, or 9.1.10 or later).

Vulnerable code sample

import re
from RequestManagementSystem.DB import RequestDB

def export_getRequestCountersWeb(groupingAttribute, startDate, endDate):
    """
    Return request counters grouped by the supplied attribute.
    """
    # VULNERABLE: unsanitized groupingAttribute is eval'ed in DB layer
    counters = RequestDB.getRequestCountersWeb(groupingAttribute, startDate, endDate)
    return counters

Patched code sample

import re
from RequestManagementSystem.DB import RequestDB

ALLOWED_GROUPS = {"Status", "Owner", "CreationTime"}

def export_getRequestCountersWeb(groupingAttribute, startDate, endDate):
    """
    Return request counters grouped by the supplied attribute.
    """
    # FIX: whitelist allowed grouping attributes before passing to DB
    if groupingAttribute not in ALLOWED_GROUPS:
        raise ValueError(f"Invalid grouping attribute: {groupingAttribute}")
    counters = RequestDB.getRequestCountersWeb(groupingAttribute, startDate, endDate)
    return counters

Payload

__VAITP_MODEL_REFUSED__

Cite this entry

@misc{vaitp:cve202645579,
  title        = {{Unauthenticated code exec via crafted groupingAttribute in DIRAC request counters.}},
  author       = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
  year         = {2026},
  note         = {VAITP Python Vulnerability Dataset, entry CVE-2026-45579},
  howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-45579/}}
}
Introducing the "VAITP dataset": a specialized repository of Python vulnerabilities and patches, meticulously compiled for the use of the security research community. As Python's prominence grows, understanding and addressing potential security vulnerabilities become crucial. Crafted by and for the cybersecurity community, this dataset offers a valuable resource for researchers, analysts, and developers to analyze and mitigate the security risks associated with Python. Through the comprehensive exploration of vulnerabilities and corresponding patches, the VAITP dataset fosters a safer and more resilient Python ecosystem, encouraging collaborative advancements in programming security.

The supreme art of war is to subdue the enemy without fighting.

Sun Tzu – “The Art of War”

:: Shaping the future through research and ingenuity ::