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-25577

Crumbs in the Gearbox: Crashing Emmett Framework with Malformed Cookies

Amit Schendel
Amit Schendel
Senior Security Researcher

Feb 10, 2026·6 min read·48 visits

Executive Summary (TL;DR)

Emmett < 1.3.11 crashes when parsing malformed cookies. An attacker can send a request with a cookie key containing characters like '(' or '[' to trigger an unhandled `CookieError`, resulting in a 500 Internal Server Error. Trivial to exploit for DoS.

A classic input validation oversight in the Emmett Python web framework allows unauthenticated attackers to trigger unhandled exceptions by sending malformed HTTP Cookie headers. By leveraging the strict parsing logic of Python's standard library `http.cookies`, an attacker can force the application to crash (HTTP 500) on every request containing specific illegal characters. While not a Remote Code Execution (RCE) vector, this vulnerability presents a trivial, low-cost method for Denial of Service (DoS) attacks against any application running affected versions of Emmett.

The Hook: When Lazy Evaluation Gets Energetic

In the world of Python web frameworks, performance is often a game of "don't compute it until you need it." Emmett, a framework known for its simplicity and speed, follows this philosophy. One of the things it evaluates lazily is the request.cookies property. The framework assumes that until your application logic actually asks for a cookie, there's no need to spend CPU cycles parsing that messy Cookie header string coming from the browser.

But here is the catch: lazy evaluation is a double-edged sword. If the mechanism that parses that data is fragile, and the parsing happens implicitly deep within the framework's request lifecycle, a crash there doesn't just return None or an empty dictionary. It propagates an unhandled exception all the way up the stack.

CVE-2026-25577 is exactly this scenario. It is a reminder that the boundary between your application and the wild, untrusted internet is often thinner than you think. It relies on the interaction between Emmett's wrapper logic and Python's notoriously strict standard library http.cookies. The result? You can take down a request thread with a single character.

The Flaw: Trusting the Standard Library

The root cause of this vulnerability lies in a mismatch of expectations. Emmett delegates the heavy lifting of cookie parsing to Python's built-in http.cookies.SimpleCookie. Now, if you have ever worked with Python's SimpleCookie, you know it is somewhat of a pedant. It adheres strictly to older cookie specifications.

If you feed SimpleCookie.load() a string that contains characters it deems "illegal" in a key (such as spaces, square brackets [], or parentheses ()), it does not just ignore the bad segment. It screams. It raises a CookieError.

In a robust web server, you expect the framework to act as a blast shield. It should catch the shrapnel coming from the network, filter it, and hand you clean objects. Emmett, in versions prior to 1.3.11, failed to put up that shield. It took the raw Cookie header, split it by semicolons, and fed each chunk directly into the maw of SimpleCookie.load(). Because there was no try...except block wrapping this operation, a single malformed cookie sent by a malicious client would cause the parser to throw an exception that the framework wasn't expecting, leading directly to an HTTP 500 Internal Server Error.

The Code: Anatomy of a Crash

Let's look at the smoking gun in emmett_core/http/wrappers/__init__.py. This is where the framework tries to convert the raw header string into a nice dictionary-like object.

The Vulnerable Code:

# emmett_core/http/wrappers/__init__.py
 
def cookies(self) -> SimpleCookie:
    cookies: SimpleCookie = SimpleCookie()
    # Split the header by semicolon and process blindly
    for cookie in self.headers.get("cookie", "").split(";"):
        cookies.load(cookie) # <--- The Kill Switch
    return cookies

It looks innocent, right? Standard Python. But cookies.load(cookie) is a ticking time bomb if cookie is something like session_id(=123. The ( character is illegal in a cookie key.

The Fix (Commit c126757133e118119a280b58f3bb345b1c9a8a2a):

The maintainers patched this by wrapping the load operation in a try...except block. This is the definition of defensive programming.

# emmett_core/http/wrappers/__init__.py
 
def cookies(self) -> SimpleCookie:
    cookies: SimpleCookie = SimpleCookie()
    for cookie in self.headers.get("cookie", "").split(";"):
        try:
            cookies.load(cookie)
        except Exception:
            continue # Just skip the bad crumb
    return cookies

Now, if a user sends garbage, Emmett simply shrugs, discards the malformed segment, and continues parsing the rest. The application stays alive.

The Exploit: Crushing with a Curl

Exploiting this is trivially easy. You don't need shellcode, you don't need memory addresses, and you don't need authentication. You just need curl.

The attack vector relies on sending a header that passes the web server (like Nginx) but fails in the application logic. Most reverse proxies are surprisingly lenient about what characters sit in a Cookie header, passing them through to the backend app.

Here is the attack flow:

Proof of Concept:

curl -v \
  -H "Cookie: session=deadbeef; crash_me(=now" \
  http://target.emmett-app.local/

When the server receives this, the ( in crash_me(=now triggers the exception. The unhandled error propagates, the request handler dies, and the server returns a 500 error. If you put this in a loop, you can flood the server's logs and potentially exhaust worker threads if the error handling is resource-intensive.

The Impact: Why Availability Matters

It is easy to dismiss this as "just a 500 error." But in a security context, availability is critical. A single attacker with a basic script can effectively take a service offline for all legitimate users.

Consider the implications:

  1. Resource Exhaustion: While Python exceptions are relatively fast, processing thousands of requests that all stack-trace requires CPU and I/O (for logging).
  2. Log Flooding: Every crash generates a traceback in the error logs. An attacker can fill disk space or blind the security team to other attacks by generating gigabytes of noise.
  3. Bot Breaking: If the application relies on cookies for logic (e.g., "if cookie X exists, do Y"), this vulnerability allows an attacker to bypass that logic by crashing the parser before it even checks the cookie values.

This is a low-skill, high-yield attack for anyone looking to cause disruption.

The Fix: Sweeping Up

The remediation is straightforward. If you are using emmett-framework/core, you need to upgrade immediately.

Primary Mitigation:

  • Upgrade: Install version 1.3.11 or higher.
    pip install --upgrade emmett-core

Defense in Depth (WAF):

If you cannot upgrade immediately (perhaps you are stuck in dependency hell), you can mitigate this at the network edge. Configure your WAF or Load Balancer to drop requests containing non-RFC compliant characters in the Cookie header.

For example, an Nginx rule or a Cloudflare WAF rule regex matching Cookie headers with ( or [ can block the attack before it hits the Python code. However, relying on edge filtering is always riskier than patching the code itself.

Official Patches

Emmett FrameworkGitHub Commit fixing the unhandled exception

Fix Analysis (1)

Technical Appendix

CVSS Score
7.5/ 10
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected Systems

Emmett Framework Core < 1.3.11Python web applications using Emmett

Affected Versions Detail

Product
Affected Versions
Fixed Version
emmett-core
emmett-framework
< 1.3.111.3.11
AttributeDetail
CWECWE-248 (Uncaught Exception)
CVSS v3.17.5 (High)
Attack VectorNetwork (Remote)
ImpactDenial of Service (DoS)
Exploit ComplexityLow (Trivial)
StatusPatched

MITRE ATT&CK Mapping

T1499Endpoint Denial of Service
Impact
T1499.003Application or System Exploitation
Impact
CWE-248
Uncaught Exception

The software does not correctly catch or handle exceptions, leading to a denial of service or unexpected state.

Known Exploits & Detection

ManualTrivial curl command: curl -H 'Cookie: bad(=cookie' http://target

Vulnerability Timeline

Vulnerability patched in source code
2026-02-09
GitHub Advisory Published
2026-02-10
CVE Published
2026-02-10

References & Sources

  • [1]GitHub Advisory GHSA-x6cr-mq53-cc76
  • [2]NIST NVD Entry

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-63304
8.1

CVE-2026-63304: OS Command Injection in WWBN AVideo via listFFmpegProcesses

WWBN AVideo versions through 29.0 contain an OS command injection vulnerability (CWE-78) in the standalone API utility function listFFmpegProcesses(). The function constructs a shell pipeline to monitor active FFmpeg processes by interpolating a user-controlled keyword parameter directly into a single-quoted grep argument without sanitization or shell escaping. An attacker capable of crafting or submitting a valid encrypted codeToExec payload can break out of the single-quoted argument context and execute arbitrary operating system commands with the privileges of the web server user.

Alon Barad
Alon Barad
3 views•9 min read
•about 3 hours ago•CVE-2026-59726
10.0

CVE-2026-59726: Unauthenticated Remote Code Execution in Ruflo MCP Bridge

Ruflo versions prior to 3.16.3 expose the Model Context Protocol (MCP) bridge HTTP endpoints (`POST /mcp` and `POST /mcp/:group`) on all network interfaces (`0.0.0.0:3001`) without authentication. Because the primary JSON-RPC tool dispatcher (`executeTool()`) bypasses existing tool blocklists, an unauthenticated network attacker can invoke the `terminal_execute` tool to achieve arbitrary command execution inside the bridge container. This initial access permits full exfiltration of third-party LLM provider API keys, unauthorized access to the co-located MongoDB instance, and manipulation of the AgentDB learning store.

Alon Barad
Alon Barad
6 views•2 min read
•about 4 hours ago•CVE-2026-59818
6.5

CVE-2026-59818: Improper Certificate Revocation List (CRL) Validation on Split gRPC Listeners in etcd

In etcd versions prior to 3.5.32 and 3.6.13, configuring the server with --listen-client-http-urls decouples HTTP and gRPC traffic onto distinct network listeners. Due to an implementation flaw in how TLS configurations are passed to the gRPC server instance, the Certificate Revocation List (CRL) defined by --client-crl-file is enforced exclusively on the HTTP listener and omitted entirely on the dedicated gRPC listener. This allows an adversary possessing a revoked, CA-signed client certificate to bypass mutual TLS (mTLS) revocation checks and authenticate directly to the gRPC interface.

Amit Schendel
Amit Schendel
6 views•10 min read
•about 5 hours ago•CVE-2026-59831
4.4

CVE-2026-59831: Remote Code Execution via Unvalidated URL Scheme Handling in GitHub CLI

GitHub CLI (gh) versions 2.10.0 through 2.95.0 contain an input validation vulnerability in the `gh codespace jupyter` command path. When connecting to a remote Codespace to launch a JupyterLab session, the CLI retrieves a server URL via a remote procedure call (RPC) and passes it directly to the host operating system's default URL dispatcher without validating the scheme or target host. A compromised or malicious Codespace can return a custom protocol URI, such as `vscode://` or `vscode-insiders://`, allowing an attacker to invoke local desktop application handlers and achieve arbitrary command execution on the developer's workstation.

Alon Barad
Alon Barad
11 views•9 min read
•about 6 hours ago•CVE-2026-59191
6.9

CVE-2026-59191: Path Traversal and Arbitrary File Read in CakePHP TwigView FileLoader

A path traversal vulnerability exists in the cakephp/twig-view plugin for the CakePHP framework prior to versions 1.3.3 and 2.1.2. The Cake\TwigView\Twig\FileLoader::findTemplate() method verifies template existence using PHP's native file_exists() function without ensuring the target path resides within configured application or plugin template directories. When user-controlled input is passed to template inclusion mechanisms, an unauthenticated remote attacker can read arbitrary local files accessible to the PHP runtime.

Alon Barad
Alon Barad
5 views•9 min read
•about 7 hours ago•CVE-2026-64855
8.2

CVE-2026-64855: Cryptographic Signature Verification Bypass in soapbar WS-Security Implementation

CVE-2026-64855 (GHSA-859w-52fx-hcm6) is a cryptographic signature verification and authentication bypass vulnerability in the soapbar Python library prior to version 0.13.0. In vulnerable versions, the verify_envelope_bsp() function derives its trust anchor directly from the incoming SOAP message by extracting an untrusted X.509 certificate embedded inside the wsse:BinarySecurityToken header. Because the function checks only the temporal validity of the extracted certificate without performing Certificate Authority (CA) chain validation or certificate pinning, an unauthenticated network attacker can generate a self-signed certificate, sign an arbitrary SOAP payload, and pass verification.

Amit Schendel
Amit Schendel
9 views•10 min read