Skip to main content

internment (Rust crate) EUVDEUVD-2026-63778

| CVE-2026-77649 CRITICAL
Embedded Malicious Code (CWE-506)
2026-08-21 mitre GHSA-5g4x-qgj2-956v
9.8
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

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

  1. Access
    Attacker publishes trojanized internment 0.8.7 to crates.io
  2. Delivery
    Victim resolves crate in Cargo dependency graph
  3. Exploit
    cargo build executes rogue dependency at compile time
  4. Execution
    Payload registers with C2 server
  5. Persist
    Attacker runs arbitrary code on build host
  6. Impact
    Secrets exfiltrated or backdoor implanted

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V15 - Secure Coding and Architecture Code review, malicious code detection
Exploitation Conditions

Exploitation requires that a Rust project's dependency graph resolve internment at exactly version 0.8.7 and that the project then be compiled (cargo build/test/CI), because the payload lives in the crate's build/dependency execution path and fires at compile time, not runtime. Concrete prerequisites: the crate must be present as a direct or transitive dependency, the toolchain must fetch it from crates.io (not overridden by a vendored/patched copy), and the build host must have outbound network access for the C2 registration to succeed. Limiting factors that reduce real-world exposure: only the single 0.8.7 release is malicious (any other pinned version is unaffected), a human or pipeline must actually build the project, offline or egress-restricted build environments blunt the C2 callback, and the input contains no KEV/EPSS/POC evidence indicating broad automated exploitation - impact is confined to those who specifically pulled this version.

Impact

The input CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H = 9.8) treats this as fully remote and unauthenticated, but that scoring understates the required precondition: a developer or CI pipeline must add and compile a project that resolves internment 0.8.7, which is best modeled as user interaction (UI:R). The impact is nonetheless real - arbitrary code execution on build infrastructure, which is high-value and often holds signing keys, cloud credentials, and source access. No EPSS score, no CISA KEV entry, and no public POC are provided, so quantitative exploitation-probability signals are absent; however, this is confirmed malicious code by construction, so the practical risk to anyone who actually pulled 0.8.7 is severe. The realistic risk is therefore bimodal: negligible for the majority who never depended on this crate at this exact version, and critical for the specific victims who did. Missing data to note: no SSVC decision, no EPSS, and KEV status not present in the input - do not treat absence of KEV as evidence the payload was never delivered.

Exploit ScenarioDerived

A developer adds internment as a dependency (or updates a lockfile) such that version 0.8.7 is resolved, then runs cargo build or triggers a CI pipeline. During compilation the rogue transitive dependency executes, contacts the attacker's command-and-control server, and runs arbitrary commands on the build host - for example dumping environment secrets and CI tokens or implanting a backdoor. No separate public exploit is needed because the malicious code is itself the payload; the only requirement is that the poisoned version enters the build.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
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 – Aug 21, 2026

Build-time arbitrary code execution in the internment 0.8.7 crate for Rust: this specific published version was trojanized as part of the August 2026 arrayref/proc-macro1 Rust supply-chain campaign, pulling in a rogue transitive dependency that registers with a command-and-control server and executes attacker-supplied code on the developer or CI machine that compiles any project depending on it. Any Rust build that resolves internment 0.8.7 is affected, and because the payload runs during cargo build rather than at application runtime, compromise occurs before the target program is ever executed. No CISA KEV listing or public proof-of-concept is documented in the provided data, so this is tracked as embedded malicious code (CWE-506) rather than a confirmed in-the-wild exploit chain.

RemediationAI

No vendor-released fixed version number is provided in the input, so treat this as a malicious-release removal rather than a version bump: immediately remove or pin away from internment 0.8.7, delete it from Cargo.lock, and re-resolve to a known-good version, consulting https://rustsec.org/advisories/RUSTSEC-2026-0266.html for the specific safe range once published. Purge cached copies from the local registry (~/.cargo/registry) and any CI/build caches and container layers, since a poisoned build script may already have executed. Rotate any secrets that were present on machines that built the crate - CI tokens, cloud credentials, package-signing and SSH keys - because build-time RCE means those may already be exfiltrated. Add cargo audit / cargo-deny with the RustSec database to CI to block known-bad crates going forward, and where feasible build untrusted dependencies in network-isolated sandboxes so a C2 callback cannot succeed. See https://www.stepsecurity.io/blog/arrayref-rust-crate-supply-chain-attack and https://safedep.io/arrayref-proc-macro1-rust-build-time-malware/ for indicators and detection guidance.

Affected VersionsENISA

internment 0.8.7

Affected Packages

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

internment is a Rust interning library published on crates.io under the droundy account (CPE cpe:2.3:a:droundy:internment). The issue is not a memory-safety or logic bug in interning itself but CWE-506 (Embedded Malicious Code): version 0.8.7 was altered to declare a malicious dependency that runs during compilation. Rust build scripts (build.rs) and procedural-macro crates execute arbitrary code on the build host as a normal part of the toolchain, so a hostile crate anywhere in the dependency graph can beacon to a C2 and run commands with the privileges of the building user. Per the referenced Rust Security Response and RustSec RUSTSEC-2026-0266 write-ups, internment 0.8.7 is one of several crates (alongside arrayref and a rogue proc-macro1) implicated in the same campaign, indicating account or release-pipeline compromise rather than an isolated typosquat.

Know when Internment 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 (mitre) PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 8.8 HIGH

Delivered via crates.io (AV:N) but only fires when a developer/CI adds and compiles the crate, so UI:R; full code execution on the build host gives C:H/I:H/A:H.

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

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

The internment crate 0.8.7 for Rust can trigger execution of malicious code when compiling a project that uses the crate, because it has a rogue dependency that registers with a command-and-control server to offer arbitrary code execution.

Executive ViewAI

Why It Matters

The internment 0.8.7 Rust crate-a direct or transitive dependency in many build pipelines-was compromised with command-and-control malware that executes during cargo build on developer and CI machines before any application code runs. Any organization using Rust projects depending on this version faces immediate compromise of build infrastructure and potential propagation to binary artifacts. Without remediation within hours, attackers gain persistent code execution on every build.

Business Impact: Severe
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: immediately downgrade affected projects to internment 0.8.6 or earlier; implement network egress filtering on build systems to block known or suspicious C2 domains; assume any compiled binaries or dynamic libraries built with internment 0.8.7 present may contain injected code and require re-compilation post-remediation; enable build audit logging and code signing verification on all CI/CD infrastructure; apply principle of least privilege to build system service accounts.

Threat Intelligence Overview

EPSS Score
0.4%
Top 64% exploitable
Prevalence
Low
niche Rust interning utility crate, not core infrastructure
Social Media
2
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL 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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.4%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
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
Out-of-Cycle
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

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

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

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