CVE-2026-31233

Published May 12, 2026 CVSS 3.1 · 9.8 Critical EPSS < 1% KEV · Not listed
Description
Guardrails AI thru 0.6.7 contains a code injection vulnerability (CWE-94) in its Hub package installation mechanism. When installing validator packages via guardrails hub install, the system retrieves a manifest from the Guardrails Hub and dynamically executes a script specified in the post_install field. The script path is constructed from untrusted manifest data and executed without proper validation or sanitization, allowing remote code execution. An attacker who can publish malicious packages to the Hub can inject arbitrary code that will be executed on any system where a victim installs the malicious package.

Analysis

AI-generated

Technical impact

Guardrails AI versions up to and including 0.6.7 allow an attacker who can publish a package to the Hub to inject arbitrary code during the installation of that package. The vulnerability arises in the Hub package installation mechanism where manifest data is used to construct a script path that is then executed without validation or sanitization. This flaw is classified as CWE-94, enabling remote execution of malicious code by any system that installs the compromised package.

Affected Systems

The vulnerability affects Guardrails AI’s Hub installation process for package versions 0.6.7 and earlier, with no specific version sublist provided. Any environment that uses guardrails AI to install packages from the Hub is potentially impacted.

Risk and Exploitability

The CVSS score is 9.8, indicating a critical severity, but the impact remains severe because it permits execution of arbitrary code on the target system. EPSS data is <1%, and the vulnerability is not listed in the CISA KEV catalog. The likely attack vector is an attacker who can publish or push a malicious package to the Hub; once a user installs that package, the crafted post_install script runs with no restrictions. The overall risk is high, with the potential for complete compromise of the affected machine.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to a Guardrails AI version that includes a fix for the dynamic script execution flaw, if one is released by the vendor.
  • Limit Hub package installations to trusted, manually verified packages and audit the manifest data before execution to prevent untrusted scripts from running.
  • If a patch is not yet available, disable the post_install execution mechanism or remove the post_install entry from the manifest until a fix is applied.
  • Keep monitoring the Hub for unauthorized or unexpected package submissions and revoke or remove any suspicious packages promptly.

Generated by OpenCVE AI on May 14, 2026 at 22:17 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-r6hf-g5x6-7pv9 Guardrails AI contains a code injection vulnerability in its Hub package installation mechanism
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Title Remote Code Injection in Guardrails AI Hub Package Installation
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
First Time appeared Guardrailsai
Guardrailsai guardrails
Vendors & Products Guardrailsai
Guardrailsai guardrails
Type Values Removed Values Added
Title Remote Code Injection in Guardrails AI Hub Package Installation
Weaknesses CWE-94
Type Values Removed Values Added
Description Guardrails AI thru 0.6.7 contains a code injection vulnerability (CWE-94) in its Hub package installation mechanism. When installing validator packages via guardrails hub install, the system retrieves a manifest from the Guardrails Hub and dynamically executes a script specified in the post_install field. The script path is constructed from untrusted manifest data and executed without proper validation or sanitization, allowing remote code execution. An attacker who can publish malicious packages to the Hub can inject arbitrary code that will be executed on any system where a victim installs the malicious package.
References
Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
May 14, 2026, 7:54 PM
Reserved
Mar 9, 2026, 12:00 AM
Status
Deferred
Published
May 12, 2026, 6:16 PM
Modified
Jun 17, 2026, 10:33 AM