mcp-server-semgrep
Version:
MCP Server for Semgrep Integration - static code analysis with AI
34 lines (33 loc) • 958 B
YAML
rules:
- id: marshal-usage
languages:
- python
message: >-
The marshal module is not intended to be secure against erroneous or maliciously
constructed data.
Never unmarshal data received from an untrusted or unauthenticated source.
See more details: https://docs.python.org/3/library/marshal.html?highlight=security
metadata:
cwe:
- 'CWE-502: Deserialization of Untrusted Data'
owasp:
- A08:2017 - Insecure Deserialization
- A08:2021 - Software and Data Integrity Failures
references:
- https://docs.python.org/3/library/marshal.html?highlight=security
category: security
technology:
- python
cwe2022-top25: true
cwe2021-top25: true
subcategory:
- audit
likelihood: LOW
impact: MEDIUM
confidence: LOW
pattern-either:
- pattern: marshal.dump(...)
- pattern: marshal.dumps(...)
- pattern: marshal.load(...)
- pattern: marshal.loads(...)
severity: WARNING