CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-140014

CVE-2026-140014: AES-256-GCM Nonce Reuse Across Forked Processes in Rust cookie-rs PrivateJar

Alon Barad
Alon Barad
Software Engineer

Dec 1, 2026·12 min read·1 visit

Executive Summary (TL;DR)

The Rust cookie crate (versions 0.11.3 to <0.12.0 and 0.14.0 to <0.18.3) uses a buffered userspace thread-local RNG to generate AES-256-GCM nonces for PrivateJar cookies. Across Unix fork() boundaries, child processes inherit identical RNG state buffers, resulting in nonce reuse that allows attackers to decrypt cookie plaintexts and forge arbitrary authenticated cookies.

CVE-2026-140014 (also tracked as GHSA-8wcq-xq25-7fhm and RUSTSEC-2026-0594) is a cryptographic weakness in the Rust cookie library (cookie-rs). Affected versions use userspace thread-local pseudo-random number generators (rand::thread_rng() or rand::rng()) to generate 96-bit nonces for AES-256-GCM encrypted cookies in PrivateJar. Because these generators buffer entropy in userspace memory, invoking a Unix fork() system call without exec() clones the internal RNG buffer into child processes. When sibling or parent-child processes subsequently seal private cookies on the same thread using a shared key, they emit identical nonces. This nonce reuse under AES-GCM compromises ciphertext confidentiality via keystream XOR recovery and enables arbitrary cookie forgery via polynomial GHASH authentication key recovery.

Vulnerability Overview

The cookie crate (cookie-rs) is a foundational HTTP cookie parsing and cookie jar management library in the Rust ecosystem, used directly by web developers and integrated into web frameworks such as Rocket and Axum. In addition to standard plaintext cookies and HMAC-signed cookies (SignedJar), the library provides PrivateJar for authenticated encryption of sensitive client-side state. PrivateJar encrypts and authenticates cookie payloads using AES-256-GCM, where the cookie name serves as Additional Authenticated Data (AAD) and a 96-bit (12-byte) random nonce is prepended to the resulting ciphertext and 128-bit authentication tag before Base64 encoding.

In versions 0.11.3 through < 0.12.0 and 0.14.0 through < 0.18.3, PrivateJar generates its 96-bit AES-GCM nonces using the rand crate's thread-local pseudo-random number generator (rand::thread_rng() in older rand releases, or rand::rng() in rand 0.10). This generator is implemented as a userspace cryptographically secure pseudo-random number generator (CSPRNG), typically based on ChaCha12, which caches a block of generated random bytes in thread-local storage (TLS) to avoid invoking kernel system calls on every individual read.

This userspace buffering introduces a cryptographic flaw classified under CWE-323 (Reusing a Nonce, Key Pair in Encryption) when an application utilizes Unix process forking (fork()) without replacing the process image (exec()). When a process calls fork(), the operating system kernel clones the parent process's virtual memory space—including any already-initialized thread-local RNG buffers—into the child process via copy-on-write semantics.

If the thread invoking fork() previously initialized its thread-local RNG, the parent and child processes (or multiple forked worker processes) retain identical unconsumed byte sequences in their userspace RNG buffers. When these processes subsequently invoke PrivateJar::add or PrivateJar::add_original on that same thread using a shared encryption key, they draw identical 12-byte nonces. Reusing a $(Key, Nonce)$ pair in AES-256-GCM allows a remote attacker who intercepts the colliding cookies to recover plaintext contents via ciphertext XORing and to extract the internal GHASH authentication subkey, enabling arbitrary cookie forgery.

Root Cause Analysis

The root cause of CVE-2026-140014 lies in the interaction between userspace CSPRNG buffering in the rand crate, POSIX fork() memory inheritance rules, and the strict uniqueness invariance of AES-GCM nonces. AES-GCM (Galois/Counter Mode) is an Authenticated Encryption with Associated Data (AEAD) scheme that pairs Counter (CTR) mode encryption with a Galois field Carter-Wegman universal hash function ($ ext{GHASH}$) over the binary field $ ext{GF}(2^{128})$.

In AES-256-GCM, the 96-bit nonce $N$ initializes the counter block $J_0$. The plaintext $P$ is encrypted by XORing it with a keystream $S$ derived from encrypting sequential counter increments starting from $J_0$ under the 256-bit key $K$. Simultaneously, the 128-bit authentication tag $T$ is computed over the Additional Authenticated Data $A$ (the cookie name) and the ciphertext $C$ using the polynomial evaluation function $ ext{GHASH}_H(A, C)$, masked with $ ext{AES}_K(J_0)$, where $H = ext{AES}_K(0^{128})$ is the secret hash subkey.

To minimize syscall overhead, rand::thread_rng() (and rand::rng()) maintains a per-thread byte buffer in userspace memory. The generator only queries the operating system kernel for fresh seed material when initializing a thread for the first time or when the internal buffer is completely depleted. In earlier versions of the rand crate, this internal buffer stored 256 bytes; in rand 0.10, architectural changes expanded the effective buffered state prior to reseeding to approximately 64 KB.

When a Unix application executes fork(), the kernel duplicates the calling thread's state, including its thread-local storage pages. Unlike some C standard library facilities that register pthread_atfork handlers to zero or reseed userspace PRNG state upon forking, the Rust rand thread-local generator does not automatically detect process ID changes or register fork handlers across all target platforms. Consequently, if the main thread touches thread_rng() prior to forking—for example, by calling cookie::Key::generate() or generating an initial token—the partially filled buffer is copied verbatim into every child process.

Each 96-bit nonce requires 12 bytes from the RNG buffer. Under earlier rand versions with a 256-byte buffer, child processes sharing a pre-warmed buffer emit up to 21 identical nonces ($\lfloor 256 / 12 \rfloor = 21$) before exhausting the cloned buffer and triggering an independent kernel reseed. Under rand 0.10, the expanded buffer causes up to approximately 5,400 consecutive cookies generated on the forked thread across worker processes to reuse identical nonces.

Code Analysis

The vulnerable logic resides in src/secure/private.rs within the PrivateJar::encrypt helper method, which is invoked whenever a cookie is added to a PrivateJar via PrivateJar::add or PrivateJar::add_original. In affected releases, the method allocates a buffer containing space for the 12-byte nonce (NONCE_LEN), the plaintext payload, and the 16-byte authentication tag (TAG_LEN), and then populates the leading 12-byte slice using the thread-local RNG.

In cookie-rs versions prior to 0.18.3, the implementation filled the nonce buffer as follows:

// Vulnerable implementation in src/secure/private.rs (prior to 0.18.3)
let (nonce, in_out) = data.split_at_mut(NONCE_LEN);
let (in_out, tag) = in_out.split_at_mut(cookie_val.len());
in_out.copy_from_slice(cookie_val);
 
// Fill nonce piece with random data using thread-local buffered RNG.
// VULNERABILITY: If the process forked after initializing this thread's RNG,
// child processes read identical bytes from their cloned TLS buffer.
let mut rng = rand::rng(); // or self::rand::thread_rng() in earlier commits
rng.fill_bytes(nonce);
let nonce = Nonce::try_from(&*nonce).expect("nonce len");

The maintainer remediated this defect in version 0.18.3 across two commits: 4a5e0f31fa18731cb8270090f1d173679bca913c (targeting the rand 0.10 branch using SysRng) and 98de6032defb10ad5e49d83fa1a9bbed1873cbe4 (targeting the 0.18.x release line using OsRng). Both commits remove the userspace buffered generator and replace it with a direct stateless handle to the operating system's entropy source.

// Patched implementation in src/secure/private.rs (commit 4a5e0f31fa18731cb8270090f1d173679bca913c)
let (nonce, in_out) = data.split_at_mut(NONCE_LEN);
let (in_out, tag) = in_out.split_at_mut(cookie_val.len());
in_out.copy_from_slice(cookie_val);
 
// Fill nonce piece with random data from the OS. We don't use a
// userspace RNG as it may yield the same nonces after a process forks.
let mut rng = rand::rngs::SysRng; // or self::rand::rngs::OsRng in commit 98de6032defb10ad5e49d83fa1a9bbed1873cbe4
rng.try_fill_bytes(nonce).expect("couldn't random fill nonce");
let nonce = Nonce::try_from(&*nonce).expect("nonce len");

In addition to modifying src/secure/private.rs, commit 4a5e0f31fa18731cb8270090f1d173679bca913c updates Cargo.toml to disable default features on rand (dropping the userspace chacha20 dependency) and explicitly require version 0.10.1 with only the sys_rng feature enabled:

# Cargo.toml diff from commit 4a5e0f31fa18731cb8270090f1d173679bca913c
-rand = { version = "0.10", optional = true }
+rand = { version = "0.10.1", default-features = false, features = ["sys_rng"], optional = true }

> [!NOTE] > Assessment of Fix Completeness: The fix is complete and eliminates the vulnerability class for nonce generation. Both OsRng and SysRng are zero-sized types that do not maintain any userspace memory state; instead, every call to try_fill_bytes invokes the underlying operating system kernel primitive directly (such as the getrandom(2) syscall on Linux or arc4random_buf(3) on BSD/macOS). Because the kernel CSPRNG operates outside userspace address space, process forking cannot duplicate entropy state across worker processes. Furthermore, cookie::Key::generate() already utilized OS-backed entropy directly, meaning key generation was not susceptible to post-fork duplication unless it had side-effects on a shared userspace RNG.

Exploitation

Exploiting CVE-2026-140014 requires a specific set of architectural prerequisites on the target server, followed by active collection of HTTP cookies and offline cryptanalysis using Joux's "Forbidden Attack" against AES-GCM. Because standard Rust web frameworks such as Rocket and default multi-threaded Axum deployments spawn worker threads via Tokio rather than calling fork(), exploitation is restricted to applications executing on Unix-like operating systems that implement a pre-fork worker model.

Specifically, five conditions must hold simultaneously:

  1. The server runs on a POSIX operating system supporting fork() (Linux, macOS, BSD; Windows is unaffected).
  2. The application forks worker processes without calling execve().
  3. The thread invoking fork() previously called rand::thread_rng() or rand::rng() prior to forking.
  4. Two or more resulting processes (parent and child, or sibling workers) handle HTTP requests and call PrivateJar::add on the initial forked thread (for example, using Tokio's single-threaded current_thread runtime in each forked worker).
  5. All worker processes share the same cookie::Key to encrypt private cookies.

When these conditions are met, an unauthenticated remote attacker initiates exploitation by sending concurrent HTTP requests to the server so that separate worker processes respond with Set-Cookie headers containing newly encrypted private cookies. In cookie-rs, a sealed private cookie is Base64-encoded from the structure [12-byte Nonce || Ciphertext || 16-byte Tag]. The attacker Base64-decodes the collected cookies and inspects the first 12 bytes of each value to identify two distinct cookies $C_1$ and $C_2$ that share an identical 12-byte nonce $N$.

Once a colliding pair $(C_1, T_1)$ and $(C_2, T_2)$ encrypted under the same key $K$ and nonce $N$ is obtained, the attacker achieves two objectives:

  1. Plaintext Recovery via Keystream Cancellation: Because AES-CTR uses the nonce to produce an identical keystream $S$ for both messages ($C_1 = P_1 \oplus S$ and $C_2 = P_2 \oplus S$), the attacker computes: $$C_1 \oplus C_2 = P_1 \oplus P_2$$ If $C_1$ corresponds to the attacker's own session cookie whose plaintext $P_1$ is known or predictable (e.g., user_id=attacker), XORing $P_1$ against $C_1 \oplus C_2$ directly recovers the victim's plaintext cookie $P_2$ up to $\min(|P_1|, |P_2|)$.

  2. Authentication Key Recovery and Cookie Forgery: In AES-GCM, the authentication tags are defined as: $$T_1 = \text{GHASH}_H(A_1, C_1) \oplus \text{AES}_K(J_0)$$ $$T_2 = \text{GHASH}_H(A_2, C_2) \oplus \text{AES}_K(J_0)$$ Because both cookies share the same key and nonce, the encrypted counter mask $\text{AES}_K(J_0)$ is identical. XORing the two equations eliminates $\text{AES}_K(J_0)$: $$T_1 \oplus T_2 = \text{GHASH}_H(A_1, C_1) \oplus \text{GHASH}_H(A_2, C_2)$$ In $\text{GF}(2^{128})$, addition is bitwise XOR, and $\text{GHASH}_H$ is a polynomial in the unknown authentication key $H$ whose coefficients are the 128-bit blocks of the AAD (cookie name), ciphertext, and length block. This yields a univariate polynomial equation $P(H) = 0$ over $\text{GF}(2^{128})$ of degree proportional to the cookie block length. Using Cantor-Zassenhaus polynomial factorization over $\text{GF}(2^{128})$, the attacker solves for the roots of $P(H)$ in milliseconds, narrowing $H$ down to a small set of candidates (or a single unique root if a third colliding cookie is captured). With $H$ recovered, the attacker computes the mask $\text{AES}_K(J_0) = T_1 \oplus \text{GHASH}_H(A_1, C_1)$ and can forge a valid authentication tag for any arbitrary ciphertext under nonce $N$.

Impact Assessment

CVE-2026-140014 is assigned a CVSS v3.1 base score of 6.5 (Medium) with the vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N. The Attack Vector is Network (AV:N) with No Privileges Required (PR:N) and No User Interaction (UI:N), reflecting that HTTP cookies are exposed directly to unauthenticated web clients. However, the Attack Complexity is rated High (AC:H) because exploitation depends on non-default pre-fork multiprocessing architectures and requires the attacker to capture colliding nonces generated before the per-process RNG buffer reseeds.

The primary security impact is upon Integrity (I:H). In web applications that rely on PrivateJar to store client-side session state, user identifiers, role claims, or permission flags without server-side database verification, recovering the GHASH subkey $H$ allows an attacker to craft arbitrary valid cookies. By encrypting a chosen payload (using the recovered keystream $S = C_1 \oplus P_1$ for nonce $N$) and computing a valid 128-bit GHASH authentication tag, the attacker can escalate privileges, impersonate arbitrary users, or bypass authentication controls entirely.

The Confidentiality impact (C:L) is rated Low because decrypting another user's private cookie requires the attacker to either intercept a victim's cookie that was encrypted with the exact same nonce as one of the attacker's known cookies, or apply crib-dragging techniques against $P_1 \oplus P_2$. Furthermore, keystream recovery is bounded by the length of the known plaintext cookie.

> [!NOTE] > Scope of Unaffected Deployments: Applications using SignedJar (HMAC-SHA256) are completely unaffected, as HMAC verification is deterministic and does not rely on nonces. Additionally, versions of cookie prior to 0.11.3 and versions in the range >= 0.12.0, < 0.14.0 are unaffected because they relied on the ring cryptography crate, which invokes operating system entropy directly.

Remediation

To remediate CVE-2026-140014, update the cookie crate dependency to version 0.18.3 or later. Version 0.18.3 replaces the userspace thread-local RNG with rand::rngs::OsRng (and rand::rngs::SysRng in upcoming branches), ensuring that every 96-bit nonce is filled directly from the operating system kernel's entropy pool.

Update Cargo.toml to require at least version 0.18.3:

[dependencies]
cookie = { version = "0.18.3", features = ["private"] }

Alternatively, run cargo update -p cookie within the workspace and verify that Cargo.lock resolves cookie to 0.18.3 or higher.

Mandatory Post-Patch Action (Key Rotation): If an application operated in a vulnerable configuration (Unix fork() worker architecture where thread_rng() was initialized prior to forking), upgrading the library alone is insufficient if an attacker previously recorded colliding cookies from the server. Once the GHASH subkey $H$ and keystream mask $\text{AES}_K(J_0)$ for a given $(Key, Nonce)$ pair are compromised, they remain valid for the lifetime of that key. Administrators of affected deployments must immediately rotate the master cookie::Key used to initialize PrivateJar.

Workarounds for Unpatched Environments: If an immediate version upgrade is not possible, developers can prevent nonce collisions across forks by applying one or more of the following architectural controls:

  • Eliminate Pre-Fork RNG Usage: Ensure that the thread invoking fork() never calls rand::thread_rng() or rand::rng() prior to the fork. Do not invoke cookie::Key::generate() before forking; instead, load the key from an environment variable or configuration file via Key::from() or Key::derive_from().
  • Force Post-Fork Buffer Exhaustion: Immediately after fork() returns in each child worker process, read and discard at least 256 bytes (or 64 KB if linked against rand 0.10) from rand::thread_rng() before processing any HTTP requests to force a kernel reseed.
  • Delegate Request Handling to Post-Fork Threads: Spawn new worker threads (such as a multi-threaded Tokio runtime) after calling fork(), and ensure all PrivateJar operations execute exclusively on those newly spawned threads.

Official Patches

cookie-rs (GitHub Security Advisory)Official GitHub Security Advisory GHSA-8wcq-xq25-7fhm for CVE-2026-140014
cookie-rs (GitHub Release)Release notes and patched source archive for cookie v0.18.3
RustSec Advisory DatabaseRustSec advisory record RUSTSEC-2026-0594 via Google OSV

Fix Analysis (2)

Technical Appendix

CVSS Score
6.5/ 10
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N
EPSS Probability
0.43%
Top 60% most exploited

Affected Systems

Rust cookie crate (cookie-rs) versions >= 0.11.3, < 0.12.0Rust cookie crate (cookie-rs) versions >= 0.14.0, < 0.18.3Unix-like applications (Linux, macOS, FreeBSD, NetBSD, OpenBSD, Solaris, Illumos) using cookie::PrivateJar across fork() boundaries

Affected Versions Detail

Product
Affected Versions
Fixed Version
cookie
rwf2 (Sergio Benitez)
>= 0.11.3, < 0.12.00.12.0
cookie
rwf2 (Sergio Benitez)
>= 0.14.0, < 0.18.30.18.3
AttributeDetail
CVE / Advisory IDsCVE-2026-140014 / GHSA-8wcq-xq25-7fhm / RUSTSEC-2026-0594
Weakness ClassCWE-323: Reusing a Nonce, Key Pair in Encryption
CVSS v3.1 Score6.5 Medium (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N)
EPSS Score0.435% (39.54th Percentile)
Affected Componentcookie::PrivateJar::add & PrivateJar::add_original (Rust cookie crate)
Cryptographic ImpactAES-256-GCM Plaintext XOR Recovery & GHASH Key Recovery (Cookie Forgery)
Patched Versioncookie >= 0.18.3 (and >= 0.12.0, < 0.14.0)
CISA KEV StatusNot Listed

MITRE ATT&CK Mapping

T1600Weaken Encryption
Defense Evasion
T1539Steal Web Session Cookie
Credential Access
T1552Unsecured Credentials
Credential Access
CWE-323
Reusing a Nonce, Key Pair in Encryption

The program uses a nonce more than once with the same cryptographic key in a cryptographic operation, allowing cryptanalytic attacks that compromise both confidentiality and authentication tag integrity in AEAD modes such as AES-GCM.

Vulnerability Timeline

Fix commits 4a5e0f31fa18731cb8270090f1d173679bca913c and 98de6032defb10ad5e49d83fa1a9bbed1873cbe4 authored by Sergio Benitez; cookie version 0.18.3 released.
2026-11-23
CVE-2026-140014 and GitHub Security Advisory GHSA-8wcq-xq25-7fhm officially published and ingested by NVD.
2026-11-30
Advisory metadata updated in Google OSV and RustSec Advisory Database (RUSTSEC-2026-0594).
2026-12-01

References & Sources

  • [1]GitHub Security Advisory: GHSA-8wcq-xq25-7fhm
  • [2]Fix Commit 4a5e0f31fa18731cb8270090f1d173679bca913c (SysRng transition)
  • [3]Fix Commit 98de6032defb10ad5e49d83fa1a9bbed1873cbe4 (OsRng transition)
  • [4]cookie-rs Release v0.18.3
  • [5]NIST National Vulnerability Database: CVE-2026-140014
  • [6]CVE.org Official Record: CVE-2026-140014
  • [7]OSV Database Entry: RUSTSEC-2026-0594
  • [8]RustSec Advisory Markdown Source: RUSTSEC-2026-0594
  • [9]CVEProject cvelistV5 Record: CVE-2026-140014.json
  • [10]Wiz Vulnerability Database: CVE-2026-140014
  • [11]MITRE CWE-323: Reusing a Nonce, Key Pair in Encryption

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•about 2 hours ago•CVE-2026-140008
8.7

CVE-2026-140008: Algorithmic Complexity Denial of Service in minimatch mergeRows()

An algorithmic complexity vulnerability (CWE-407) in the JavaScript glob-matching package minimatch affects versions 11.0.0 through 11.0.6. The flaw originates in the mergeRows() optimization method in src/index.ts, which repeatedly clones and joins entire pattern arrays across every wildcard segment position. This creates quadratic O(N^2) compilation overhead for patterns containing repeated slash-separated wildcards, blocking the single-threaded Node.js event loop and resulting in an unauthenticated Denial of Service.

Alon Barad
Alon Barad
3 views•11 min read
•about 3 hours ago•GHSA-8R27-MM5G-38WW
7.5

GHSA-8r27-mm5g-38ww: Denial of Service via Negative Archive Member Size in github.com/blakesmith/ar

A denial-of-service vulnerability exists in the Go library github.com/blakesmith/ar across all released versions. The archive header parser fails to validate that the 10-byte decimal size field of an archive member is non-negative. When an application processes a crafted Unix ar archive (such as a .deb package or .rlib archive) containing a negative member size, a subsequent read operation attempts to reslice an internal byte buffer using the negative integer as the upper bound. This triggers an unhandled Go runtime slice bounds out-of-range panic, terminating the calling process.

Alon Barad
Alon Barad
3 views•11 min read
•about 7 hours ago•CVE-2026-137191
7.8

CVE-2026-137191: Arbitrary Code Execution via Unverified Package Manager Bootstrap in Vite+ (vp)

Vite+ (vp) versions 0.2.9 through 1.5.0 contain an integrity verification flaw (CWE-494) in the internal package manager bootstrap mechanism. When initializing in an environment where the pinned pnpm distribution is not cached, the runtime queries the registry specified in the local workspace's .npmrc file and validates the downloaded tarball exclusively against the self-reported integrity digest provided by that same registry. An attacker who supplies a repository with a malicious .npmrc pointing to an attacker-controlled registry can achieve arbitrary code execution when a developer or CI runner invokes basic vp commands.

Alon Barad
Alon Barad
2 views•9 min read
•about 8 hours ago•CVE-2026-137190
7.0

CVE-2026-137190: Shell Command Injection in Vite+ Global CLI via Unvalidated Registry Version String

A local OS command injection and dynamic code evaluation vulnerability (CWE-78 / CWE-95) exists in the Vite+ global command-line interface (vp) across versions 0.3.3 through 1.5.0. When resolving package manager dist-tags such as 'latest' with the '--no-install' flag enabled, Vite+ queries the npm registry defined in the local workspace's '.npmrc' file and returns the raw version string without semantic version validation. Because this unvalidated string is interpolated directly into shell environment export statements evaluated by the user's shell wrapper, an attacker controlling the registry can inject shell metacharacters to achieve arbitrary command execution in the developer's local terminal context.

Alon Barad
Alon Barad
4 views•10 min read
•about 9 hours ago•CVE-2026-137196
6.3

CVE-2026-137196: Synchronous Event-Loop Denial of Service via Unbounded Ignore Pattern Expansion in node-glob

CVE-2026-137196 (also tracked as GHSA-qxr8-q827-836c) is an asymmetric resource consumption and denial-of-service vulnerability affecting the npm package glob (node-glob) in versions 13.0.5 through 14.0.5. When processing primary search patterns, node-glob relies on the minimatch engine with a default safeguard parameter (braceExpandMax: 10_000) to prevent combinatorial explosions during shell brace and directory traversal expansion. However, the Ignore class in src/ignore.ts instantiated its internal minimatch options with optimizationLevel: 2 while omitting the braceExpandMax configuration property. Consequently, applications that pass untrusted input into the ignore option allow attackers to trigger unbounded pattern expansion and quadratic O(n^2) preprocessing loops inside secondPhasePreProcess(), leading to single-threaded Node.js event-loop starvation.

Alon Barad
Alon Barad
7 views•10 min read
•about 10 hours ago•GHSA-R48V-R4VW-H9V8
5.5

GHSA-r48v-r4vw-h9v8: Arbitrary Build-Host File Disclosure via Path Traversal in Hugo Vendored Module Metadata

Hugo versions prior to 0.170.0 contain a path traversal and improper symlink resolution vulnerability in the module resolution and vendoring subsystem. By supplying relative traversal sequences in `_vendor/modules.txt` or crafting symbolic links within vendored directory hierarchies, an untrusted third-party theme or Hugo module can bind its module root to an arbitrary directory on the build host. During site compilation, template functions such as `readFile` can access and render sensitive files from the host filesystem into the generated static output.

Alon Barad
Alon Barad
5 views•9 min read