GHSA-6p55-qr3j-mpgq

Suggest an improvement
Source
https://github.com/advisories/GHSA-6p55-qr3j-mpgq
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/11/GHSA-6p55-qr3j-mpgq/GHSA-6p55-qr3j-mpgq.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-6p55-qr3j-mpgq
Aliases
Published
2024-11-05T00:31:28Z
Modified
2026-05-20T08:11:12Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
  • 8.9 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P CVSS Calculator
Summary
AgentScope uses `eval`
Details

In agentscope <=v0.0.4, the file agentscope\web\workstation\workflow_utils.py has the function is_callable_expression. Within this function, the line result = eval(s) poses a security risk as it can directly execute user-provided commands.

Database specific
{
    "cwe_ids":  [
        "CWE-94",
        "CWE-95"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2024-11-05T16:10:09Z",
    "nvd_published_at":  "2024-11-04T23:15:04Z",
    "severity":  "HIGH"
}
References

Affected packages

PyPI / agentscope

Package

Name
agentscope
View open source insights on deps.dev
Purl
pkg:pypi/agentscope

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Last Affected
0.1.0

Affected versions

0.*
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5a1
0.0.5
0.0.6a1
0.0.6a2
0.1.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/11/GHSA-6p55-qr3j-mpgq/GHSA-6p55-qr3j-mpgq.json"