Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-108592-poc — CVE-2026-108592 — Environment Variable Exposure PoC in mini-swe-agent | Kitploit
Tools/GitHubGitHub/asvorg/cve-2026-108592-poc
Container SecurityVulnerability AnalysisExploitationData ExfiltrationSecurity VirtualizationLearning & Education
GitHubasvorg/cve-2026-108592-poc

CVE-2026-108592-poc

CVE-2026-108592 — Environment Variable Exposure PoC in mini-swe-agent

View Repository
1 month agoNot yet reviewed
Share

CVE-2026-108592 — Environment Variable Exposure PoC in mini-swe-agent version 1.10.0-2.4.6

A proof of concept (PoC) for testing environment-variable inheritance in the BubblewrapEnvironment sandbox used by mini-swe-agent. At the time of release, this is the only PoC publicly available.

Overview

CVE-2026-108592 describes a potential security issue in which commands running inside a Bubblewrap sandbox may inherit environment variables from the host environment (CWE-526).

This repository contains a minimal proof-of-concept for checking whether a command executed inside a Bubblewrap sandbox inherits environment variables from the host process.

This is a detection test only. It does not prove the full attack path described by the CVE, nor does it confirm that real credentials are present. The goal is to determine whether a harmless dummy variable is visible from inside the sandbox.

Environment variables sometimes contain sensitive information, such as API keys, access tokens, and service credentials. If a sandbox exposes these values to commands that should not have access to them, sensitive information could be at risk.

The root cause is that the sandbox is inheriting environment variables from the host process instead of starting with a sanitized environment. In the PoC, the host sets CVE_TEST_MARKER via os.environ, then creates BubblewrapEnvironment with env={}; however, the sandbox still exposes that variable to commands executed inside it. As a result, a command such as printf "%s\n" "$CVE_TEST_MARKER" can read the host variable from inside the sandbox, which is the vulnerability.

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.

This PoC uses a harmless dummy environment variable to test whether a value defined in the host environment is visible inside the sandbox.

Affected Software

  • Project: mini-swe-agent
  • Reported affected versions: 1.10.0 through 2.4.6
  • Relevant component: BubblewrapEnvironment
  • Vulnerability category: Environment-variable exposure
  • CVE: CVE-2026-108592

Verify the affected version range and available fixes against the project's official advisories.

Requirements

  • Linux environment
  • Python 3
  • mini-swe-agent with the relevant BubblewrapEnvironment implementation
  • Bubblewrap (bwrap) installed
  • A disposable test environment

Installation

Follow the official installation instructions for the version of mini-swe-agent you intend to test.

Verify that Bubblewrap is installed:

bwrap --version

Save the PoC as:

poc.py

Usage

Run the test from the Python environment where mini-swe-agent is installed:

python3 poc.py

Create a dummy marker:

export CVE_TEST_MARKER="dummy-value-12345"

The test marker is:

CVE_TEST_MARKER=dummy-test-value-108592

No real credentials are required.

Expected Results

Marker is visible

Example output:

Sandbox exit code: 0
Marker output: 'dummy-test-value-108592\n'
CONFIRMED: dummy marker inherited by sandbox.

This indicates that the tested sandbox configuration allowed the command to observe the dummy host environment variable.

Marker is not visible

If the marker does not appear, the test did not confirm inheritance under the tested configuration. Review the sandbox implementation and environment configuration before drawing a conclusion.

Sandbox execution fails

An unsuccessful execution is inconclusive. Check Bubblewrap availability, Linux sandbox requirements, package compatibility, and the Python environment.

Technical Background

A sandbox may restrict filesystem access and process capabilities without automatically removing environment variables inherited from its parent process.

If sensitive values remain accessible inside the sandbox, untrusted commands or agent-generated code may be able to read them. The practical impact depends on the execution context, available credentials, network restrictions, and other controls.

A common mitigation is to clear the inherited environment and explicitly allowlist the variables required by the sandbox.

Limitations

This PoC tests whether a dummy environment variable is visible to a command executed through the tested sandbox.

It does not independently establish:

  • That every affected version is exploitable.
  • That an attacker can inject instructions into an agent.
  • That real credentials are present or accessible.
  • That credentials can be exfiltrated.
  • That a particular version is vulnerable or patched without additional verification.

A positive result demonstrates environment inheritance in the tested configuration, not necessarily the entire CVE attack chain.

Mitigation

  1. Upgrade to a release confirmed to contain the security fix.
  2. Clear inherited environment variables when creating the sandbox.
  3. Explicitly pass only the environment variables needed by sandboxed commands.
  4. Avoid exposing production credentials to agents that process untrusted input.
  5. Restrict outbound network access where appropriate.
  6. Repeat the test after applying the fix.

References

  • CVEFeed — CVE-2026-108592
  • mini-swe-agent source repository
  • BubblewrapEnvironment source, version 2.4.6

Disclaimer

This PoC is intended for authorized security testing, debugging, and educational use. Run it only in an environment you control, and use dummy values rather than actual credentials.

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    899
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    831
  • 3

    wifit3

    derv82/wifit3

    Wifite but USB-only & cross-platform.

    661
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServer is an open-source Privileged Access Management (PAM) platform that provides DevOps and IT teams with on-demand and secure access to SSH, RDP, Kubernetes, Database and RemoteApp endpoints through a web browser.

    444
  • 5

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    443
  • 6

    SafeLine

    chaitin/safeline

    Self-hosted WAF and reverse proxy that filters malicious HTTP traffic, blocks SQL injection, XSS, and bot attacks, with rate limiting and dynamic HTML/JS encryption.

    395

Explore all tools

Browse our collection of tools

View all tools →