Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker publishes trojanized internment 0.8.7 to crates.io
-
DeliveryVictim resolves crate in Cargo dependency graph
-
Exploitcargo build executes rogue dependency at compile time
-
ExecutionPayload registers with C2 server
-
PersistAttacker runs arbitrary code on build host
-
ImpactSecrets 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
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.
Primary rating from Vendor (mitre).
CVSS VectorVendor: mitre
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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
More in Internment
View allAn issue was discovered in the internment crate through 2020-05-28 for Rust. Rated high severity (CVSS 8.1), this vulner
An issue was discovered in the internment crate before 0.4.2 for Rust. Rated critical severity (CVSS 9.8), this vulnerab
EUVD-2026-63778
GHSA-5g4x-qgj2-956v
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB