ml-serving-optimization

Warn

Audited by Gen Agent Trust Hub on Mar 10, 2026

Risk Level: MEDIUMREMOTE_CODE_EXECUTION
Full Analysis
  • [REMOTE_CODE_EXECUTION]: The InferenceCache class in SKILL.md uses the pickle.loads() function to deserialize data fetched from a Redis instance. This is a known security vulnerability because the pickle module can execute arbitrary code during the deserialization process. If an attacker gains access to the Redis instance or if it stores untrusted data, this implementation could lead to remote code execution on the serving infrastructure.
  • Evidence: In SKILL.md, the InferenceCache.get method contains the line return pickle.loads(cached) which processes data directly from self.redis.get(key).
  • Remediation: Use a safer alternative for serialization such as json or msgpack, or ensure that data retrieved from the cache is strictly validated before use.
Audit Metadata
Risk Level
MEDIUM
Analyzed
Mar 10, 2026, 03:06 AM