pydantic-ai-backend is vulnerable to Improper Access Control
59
Medium Risk
The LocalBackend permission ruleset only consulted deny rules on the read, write, and edit operations and the execute command-pattern check, while content-returning paths ignored the ruleset. read_bytes, grep_raw, and ls_info/glob_info returned file bytes, search matches, and directory listings for paths a configured deny rule was meant to block, so a rule such as **/restricted/** or **/.env* could be bypassed to read, search, or list restricted files. The fix applies the same read/grep/ls/glob deny checks on every content-returning path and adds a best-effort path guard on the execute paths. Denied reads now return empty bytes, denied grep matches are hidden, and denied listing entries are omitted.
You are affected if you are using a version that falls within the vulnerable range and have configured a permission ruleset with deny rules on a LocalBackend.
pydantic-ai-backend is vulnerable to Improper Access Control in versions 0.1.2 - 0.2.15.
Upgrade the pydantic-ai-backend library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant