Skip to main content

CowAgent EUVDEUVD-2026-42789

| CVE-2026-15331 MEDIUM
Path Traversal (CWE-22)
2026-07-10 cna@vuldb.com GHSA-c3mj-x5cv-cphr
5.3
CVSS 4.0 · Vendor: vuldb
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain low-privilege CowAgent account
  2. Delivery
    Call skill installation API endpoint
  3. Exploit
    Supply crafted Name with path traversal sequences
  4. Execution
    Unsanitized path written outside skills directory
  5. Persist
    Write attacker-controlled file to sensitive OS location
  6. Impact
    Leverage written file for persistence or privilege escalation

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the attacker to possess a valid low-privilege account on the CowAgent instance, as confirmed by PR:L in the CVSS 4.0 vector. The attacker must be able to invoke the Skill Installation Handler - specifically the _add_url or _add_package function in agent/skills/service.py - which is the feature used to dynamically load new agent capabilities. No user interaction is required once the attacker is authenticated (UI:N). No non-default configuration is described as necessary; the skill installation feature appears to be part of standard product operation. Exploitation is limited to CowAgent versions up to and including 2.1.0; instances running version 2.1.2 or later are not affected. The primary limiting factor is the low-privilege authentication barrier (PR:L), which prevents unauthenticated remote exploitation.

Impact

The CVSS 4.0 base score of 5.3 (Medium) reflects network accessibility (AV:N), low attack complexity (AC:L), low-privilege authentication requirement (PR:L), and limited integrity and availability impact (VI:L, VA:L) with no confidentiality exposure (VC:N) and no lateral impact on subsequent systems (SC/SI/SA:N). The authentication prerequisite (PR:L) is the primary real-world constraint: exploitation is not possible by unauthenticated actors, significantly reducing the attack surface compared to a PR:N flaw. No EPSS score is provided in the available data, so exploitation probability cannot be quantified numerically. No CISA KEV listing exists and no public proof-of-concept exploit has been identified at time of analysis. CWE-22 is a well-understood class that can be chained for persistence or privilege escalation when the process runs with elevated OS permissions, but standalone impact is bounded by VI:L and VA:L. Risk is most relevant in multi-tenant or SaaS-style CowAgent deployments where untrusted low-privilege users can access the skill installation API; risk is substantially lower where skill installation is restricted to administrators.

Exploit ScenarioDerived

An attacker with a valid low-privilege CowAgent account submits a skill installation request to the API endpoint backed by _add_url or _add_package, supplying a crafted Name value containing traversal sequences such as ../../etc/cron.d/malicious. The unsanitized name is used to construct a target path outside the skills directory, writing an attacker-controlled file to a sensitive system location. Depending on the process's OS permissions, this could enable persistent code execution or service disruption. No public proof-of-concept exploit has been identified, but the attack pattern is straightforward for any attacker familiar with CWE-22 exploitation.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 10, 2026

Path traversal in zhayujie CowAgent versions up to 2.1.0 allows remote low-privilege authenticated attackers to write files outside the intended skill installation directory by manipulating the Name argument in the Skill Installation Handler. The flaw resides in the _add_url and _add_package functions within agent/skills/service.py, which fail to sanitize path components before constructing filesystem paths during skill installation. No public exploit or active exploitation confirmed (no CISA KEV listing); a vendor-released patch exists in version 2.1.2.

RemediationAI

Upgrade CowAgent to version 2.1.2 or later, which is confirmed by the vendor via the GitHub release at https://github.com/zhayujie/CowAgent/releases/tag/2.1.2. The fix is implemented in commit e85290cddcbb5ffc9c235927f4c92e5b4c3ec264 (referenced in pull request https://github.com/zhayujie/CowAgent/pull/2886) and addresses unsafe path construction in the _add_url and _add_package functions. If an immediate upgrade is not possible, the most effective compensating control is to disable the external skill installation feature entirely if not required in your deployment - this eliminates the vulnerable code path at the cost of losing dynamic skill loading capability. Alternatively, restrict access to the Skill Installation Handler to trusted high-privilege administrators only, and apply OS-level filesystem containment (e.g., run CowAgent in a chroot jail or container with a read-only root filesystem and a narrowly scoped writable volume) to limit the directories the process can write to, reducing the blast radius of a successful traversal.

Affected VersionsENISA

CowAgent 2.0
CowAgent 2.1.0

Affected Packages

euvd cowagent no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

CowAgent is an open-source Python-based AI agent framework maintained by zhayujie that supports dynamic skill installation - allowing users to extend agent capabilities at runtime by loading new modules via URL or package name. The vulnerability is classified as CWE-22 (Improper Limitation of a Pathname to a Restricted Directory). The _add_url and _add_package functions in agent/skills/service.py accept a user-supplied Name argument and use it to construct a target filesystem path without stripping or rejecting directory traversal sequences such as ../. This allows an attacker to escape the designated skills directory and write to arbitrary locations accessible by the process. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N) confirms the attack is remotely reachable, requires no special conditions, and demands only low-level authentication - consistent with a web-accessible API endpoint gating skill installation behind a user account.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (vuldb) PRIMARY 5.3 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N
vuln.today AI 5.4 MEDIUM

Network-reachable skill installer requires low-privilege authentication (PR:L); path traversal enables limited out-of-bounds file writes (I:L) and potential disruption (A:L) with no confidentiality impact.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (vuldb).

CVSS VectorVendor: vuldb

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

A vulnerability was identified in zhayujie CowAgent up to 2.1.0. The affected element is the function _add_url/_add_package of the file agent/skills/service.py of the component Skill Installation Handler. The manipulation of the argument Name leads to path traversal. The attack may be initiated remotely. Upgrading to version 2.1.2 is sufficient to fix this issue. The identifier of the patch is e85290cddcbb5ffc9c235927f4c92e5b4c3ec264. It is advisable to upgrade the affected component.

Threat Intelligence Overview

EPSS Score
0.4%
Top 70% exploitable
Prevalence
Rare
niche open-source AI agent framework, limited enterprise production footprint
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy