Skip to content

[SECURITY][Critical] Unsafe dynamic script execution in backend plugin handlers #749

@lhy8888

Description

@lhy8888

Summary

Backend plugin/script parsing used direct Python exec on user-provided script content, enabling remote code execution risk.

Severity

Critical

Affected Files

cmdb-api/api/lib/cmdb/auto_discovery/auto_discovery.py, cmdb-api/api/lib/cmdb/attribute.py

Recommended Remediation

Introduce restricted AST-based script validation/execution and replace direct exec paths.

Patch Branch

codex/sec-rce-restricted-script

Patch Commit

48448ee

Fork Branch URL

https://github.com/lhy8888/cmdb-security-fork/tree/codex/sec-rce-restricted-script

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions