Skip to main content

mini-swe-agent CVE-2026-108592

| EUVDEUVD-2026-96402 MEDIUM
Cleartext Storage of Sensitive Information in an Environment Variable (CWE-526)
2026-10-10 VulnCheck GHSA-p449-r4wm-3hpm
6.0
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Plant prompt injection in task content
  2. Delivery
    Operator runs agent on content
  3. Exploit
    Agent spawns bwrap without --clearenv
  4. Execution
    Sandbox inherits host env secrets
  5. Persist
    Agent reads API keys
  6. Impact
    Exfiltrate keys over shared network

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A02:2025 - Security Misconfiguration
ASVS 5.0
V13 - Configuration Environment variable protection
Exploitation Conditions

Exploitation requires three concrete conditions all drawn from the description: (1) the deployment must use BubblewrapEnvironment (the bwrap-based sandbox), which is the specific component that omits --clearenv; (2) sensitive secrets such as API keys must actually be present in the host environment that bwrap inherits; and (3) attacker-controlled text must reach the agent as processed task content so that a prompt-injection payload can direct it to read and exfiltrate those variables (matching AT:P and UI:P in the CVSS 4.0 vector). Limiting factors: deployments not using the Bubblewrap sandbox, or that run the agent without real secrets in its environment, or that never feed it untrusted content, are not exploitable; outbound network egress from the sandbox is also needed for exfiltration.

Impact

This is a moderate, context-dependent risk rather than a drop-everything priority. The CVSS 4.0 base score of 6.0 is driven by network attack vector (AV:N) and high confidentiality impact (VC:H - leaked API keys), but it is meaningfully constrained by AT:P (a specific attack requirement: attacker-controlled content must reach the agent) and UI:P (the victim must run the agent against that content). No EPSS score was provided in the input, and the CVE is NOT on the CISA KEV list, so there is no evidence of active exploitation - treat exploitation status as 'no public exploit identified at time of analysis.' A detailed technical write-up exists (hackmd) and the vulnerable code region is pinpointed in the vendor repository, which lowers the research barrier for an attacker even though no packaged exploit is confirmed. The signals are internally consistent (there is no network-vs-local contradiction), but note one nuance: PR:N labels this 'unauthenticated,' yet real-world exploitation still hinges on an operator choosing to run the agent on untrusted task content under the Bubblewrap sandbox - so the unauthenticated label overstates how opportunistically this can be triggered. Net: prioritize for anyone running mini-swe-agent's BubblewrapEnvironment with real secrets in the host environment, but it is not a mass-exploitation internet-facing threat.

Exploit ScenarioDerived

An operator runs mini-swe-agent (1.10.0-2.4.6) using BubblewrapEnvironment to triage an issue, PR, or document that contains attacker-planted instructions. Because bwrap is launched without --clearenv, the sandboxed shell inherits the host's environment including API keys; the injected prompt steers the agent to read those variables and POST them to an attacker-controlled endpoint over the shared network. No packaged public exploit is identified, but a public technical write-up and the exact vulnerable source lines are available.

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

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

Alert me

AnalysisAIv1 – Oct 10, 2026

Information exposure in mini-swe-agent versions 1.10.0 through 2.4.6 allows remote attackers to read sensitive environment variables, such as API keys, from the host system when the BubblewrapEnvironment sandbox is used. The sandbox fails to clear the environment (missing --clearenv), so sandboxed commands inherit the host environment. An attacker can leverage prompt injection in processed task content to direct the agent to exfiltrate these secrets over the network. Exploitation requires the use of BubblewrapEnvironment, presence of sensitive variables in the environment, and attacker-controlled task content; it is a moderate, context-dependent risk, and no public exploit has been identified at the time of analysis.

RemediationAI

No vendor-released patch identified at time of analysis. Users should upgrade to a version that includes the --clearenv flag in the bwrap invocation if available, or manually modify the BubblewrapEnvironment configuration to pass --clearenv and explicitly set only necessary environment variables. As a workaround, avoid running mini-swe-agent with sensitive secrets in its environment when processing untrusted task content, or sanitize the environment before execution (e.g., using env -i or unsetting sensitive variables). Additionally, restrict outbound network egress from the sandbox to prevent exfiltration. Review the VulnCheck advisory at https://www.vulncheck.com/advisories/mini-swe-agent-1.10.0-through-2.4.6-environment-exposure-via-bubblewrapenvironment and the technical writeup at https://hackmd.io/@haind/minisweagent-bubblewrap-host-environment-leak for further mitigation guidance. Note that mitigations may impact functionality if the agent relies on specific environment variables; carefully test changes.

Affected VersionsENISA

mini-swe-agent 1.10.0 ≤2.4.6

Affected Packages

euvd mini_swe_agent 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

The vulnerability lies in the BubblewrapEnvironment component of mini-swe-agent, which uses Bubblewrap (bwrap) to sandbox command execution. Bubblewrap is a low-level sandboxing tool that relies on Linux namespaces, and by default it does not clear the environment unless the --clearenv flag is passed. In affected versions (1.10.0 through 2.4.6), the bwrap invocation omits --clearenv, causing sandboxed processes to inherit all environment variables from the host, including secrets like API keys. This is classified as CWE-526 (Exposure of Sensitive Information Through Environmental Variables). The attack vector is network-based (AV:N) but requires attacker-controlled text to reach the agent as processed task content, enabling prompt injection to instruct the agent to read and transmit those variables. The CVSS 4.0 vector indicates high confidentiality impact only (VC:H), with no integrity or availability impact, and requires passive user interaction (UI:P) and specific attack conditions (AT:P). The independent assessment aligns with a CVSS 3.1 vector of AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N, reflecting that exploitation is not trivial and depends on multiple preconditions.

Know when Mini Swe Agent gets its next vulnerability

  • 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 (VulnCheck) PRIMARY 6.0 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
vuln.today AI 5.3 MEDIUM

AC:H and UI:R because exploitation needs attacker content plus an operator running the Bubblewrap sandbox on it; PR:N since no authentication is required; C:H for leaked keys, I/A:N.

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

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

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

DescriptionCVE.org

mini-swe-agent 1.10.0 through 2.4.6 contains an information exposure vulnerability in BubblewrapEnvironment because bwrap omits --clearenv, so sandboxed commands inherit the host environment. Attackers using prompt injection in processed task content can make the agent read API keys from the environment and exfiltrate them over the shared network.

Threat Intelligence Overview

EPSS Score
0.3%
Top 77% exploitable
Prevalence
Low
niche open-source AI coding agent, limited production footprint
Data Quality
5 sources
Confidence: Medium

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.3%
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· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

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

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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