Skip to content
CriticalVulnerability

GHSA-r6hf-g5x6-7pv9: Guardrails AI contains a code injection vulnerability in its Hub package installation mechanism

Published
Record updated
View JSON
Affected
  • guardrails-ai <= 0.6.7
Fixed in
No fixed version was stated when the source was last read.

Summary

Guardrails AI through 0.6.7 contains a code injection vulnerability (CWE-94) in its Hub package installation mechanism. During `guardrails hub install`, the system fetches a manifest from the Guardrails Hub and executes the script named in its post_install field, but the script path is built from untrusted manifest data and run without validation or sanitization, allowing remote code execution. An attacker who can publish malicious packages to the Hub can run arbitrary code on any system where a victim installs that package.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.