Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

GHSA-m3m2-42jg-grrv

The built-in GitHub and working-directory policies classify an agent's shell commands before allowing them, but the parsing is incomplete. split_command_segments splits the command string on chaining operators with a regular expression that ignores quoting, grouping, command substitution, heredocs and comments, and the _classify_git functions read the first token after git as the subcommand, so global options such as -C, -c or --git-dir hide a push or fetch, and --work-tree=<dir> is not treated as a directory change. An attacker who influences the input of an agent with shell access can craft a command that the policy treats as harmless, so it runs outside the configured repository, branch or working-directory limits.
Back to all
CVE

GHSA-m3m2-42jg-grrv

The built-in GitHub and working-directory policies classify an agent's shell commands before allowing them, but the parsing is incomplete. split_command_segments splits the command string on chaining operators with a regular expression that ignores quoting, grouping, command substitution, heredocs and comments, and the _classify_git functions read the first token after git as the subcommand, so global options such as -C, -c or --git-dir hide a push or fetch, and --work-tree=<dir> is not treated as a directory change. An attacker who influences the input of an agent with shell access can craft a command that the policy treats as harmless, so it runs outside the configured repository, branch or working-directory limits.

Package Versions Affected

Package Version
patch Availability
No items found.

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
-
C
H
U
-
C
H
U
9.1
-
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Related Resources

No items found.

References

https://github.com/omnigent-ai/omnigent/security/advisories/GHSA-m3m2-42jg-grrv, https://github.com/omnigent-ai/omnigent/pull/9844, https://github.com/omnigent-ai/omnigent/commit/d2e077a1e3d502748ec0d792dfdede7319ccb968

Severity

9.1

CVSS Score
0
10

Basic Information

Base CVSS
9.1
EPSS Probability
0%
EPSS Percentile
0%
Introduced Version
0.3.0rc1,0.1.0rc1,0.0.1rc2
Fix Available
0.18.0

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading