Feb 3, 2026·5 min read·26 visits
The Amazon SageMaker Python SDK (< 3.1.1, < 2.256.0) globally disabled SSL certificate verification to suppress errors when downloading models. This allows attackers to intercept HTTPS traffic, inject malicious models, and achieve Remote Code Execution (RCE) via insecure deserialization.
Developers hate SSL errors. They hate them so much that sometimes, rather than fixing the certificate chain, they simply turn off validation for the entire process. This is exactly what happened in the Amazon SageMaker Python SDK. A 'quick fix' to suppress errors from the `ssl` library resulted in a global disablement of certificate verification, leaving machine learning pipelines wide open to Man-in-the-Middle (MitM) attacks and malicious model injection.
We have all been there. You are writing a script, trying to download a resource, and Python throws a tantrum: SSL: CERTIFICATE_VERIFY_FAILED. It is annoying. It halts development. And the top answer on StackOverflow usually involves a magical incantation that makes the error go away.
But there is a massive difference between pasting a hack into a throwaway script and embedding it into a production-grade SDK used by thousands of enterprises to manage their AI infrastructure. In CVE-2026-1778, the Amazon SageMaker Python SDK fell into the 'Convenience Trap'.
To support the Triton Inference Server, the SDK needs to download model weights (like ResNet or BERT) from repositories like torchvision. Apparently, these downloads were failing validation in certain environments. Rather than debugging the root trust store issue, the code opted for the nuclear option: telling the Python interpreter to stop caring about certificates entirely.
The vulnerability lies in how Python handles SSL contexts. The ssl module provides a default context used by urllib, http.client, and by extension, higher-level libraries like requests and boto3 (if they rely on the standard library's context). Ideally, this context is secure by default.
The flaw in SageMaker was a classic case of "Monkeypatching." Monkeypatching is the dynamic modification of a class or module at runtime. It is a powerful feature of dynamic languages like Python, but it is also a loaded gun pointed at your foot.
The SDK included this snippet:
ssl._create_default_https_context = ssl._create_unverified_contextThis single line overwrites the global default HTTPS context factory with one that performs no verification. Crucially, this doesn't just affect the code downloading the model. Once this line executes, any subsequent HTTPS connection made by that Python process—whether it's talking to AWS S3, a third-party API, or an internal microservice—will blindly trust whatever certificate it is presented with.
It is the digital equivalent of unlocking your front door to let a delivery driver in, and then welding the lock open for the rest of eternity.
Nothing tells a story quite like a developer's comment explaining exactly why they introduced a security vulnerability. The diff for the fix reveals the thought process behind the bug. It wasn't malice; it was just an attempt to make the error messages stop.
Here is the code removed in commit 5e7a3efa7bec0a161194ffa0cef346dda93bf2c6:
# Otherwise it will complain SSL: CERTIFICATE_VERIFY_FAILED
# When trying to download models from torchvision
- ssl._create_default_https_context = ssl._create_unverified_contextThe comment "Otherwise it will complain" is the smoking gun. It admits that the security controls were working as intended (blocking untrusted connections) and that the "fix" was to silence the complaint rather than solve the trust issue.
> [!NOTE] > The fix was simple: Delete the lines. By removing the override, the SDK reverts to using the system's default, secure SSL context, which validates certificates against the OS trust store.
Why is an SSL bypass so dangerous in an ML context? Because of Pickles. Machine learning models (PyTorch .pth files, Scikit-learn models) are frequently serialized using Python's pickle module. pickle is notoriously insecure; unpickling a malicious file executes arbitrary code.
Here is the attack chain:
https://download.pytorch.org/models/resnet50.pth).torch.load() (which uses pickle). The payload triggers, and the attacker gains a shell inside the SageMaker container.Once inside, the attacker can steal AWS credentials (often stored in environment variables like AWS_ACCESS_KEY_ID), pivot to other AWS services, or poison the training data.
The remediation is straightforward: update your SDK. AWS released versions 3.1.1 and 2.256.0 to address this.
However, the lesson here extends beyond just upgrading a package. If you are a developer facing CERTIFICATE_VERIFY_FAILED errors, do not disable verification. Instead:
ca-certificates package.verify=False flag only to that specific request session, or create a specific SSL context with the custom CA loaded.Global monkeypatching of security primitives is a "code smell" that should trigger immediate alarms in any code review.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N| Product | Affected Versions | Fixed Version |
|---|---|---|
SageMaker Python SDK AWS | < 3.1.1 | 3.1.1 |
SageMaker Python SDK AWS | < 2.256.0 | 2.256.0 |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-295 |
| Attack Vector | Network (MitM) |
| CVSS v3.1 | 5.9 (Medium) |
| Impact | Integrity Loss / Remote Code Execution |
| Root Cause | Global SSL Context Monkeypatching |
| KEV Status | Not Listed |
The software does not validate, or incorrectly validates, a certificate. This allows an attacker to spoof a trusted entity by using a man-in-the-middle (MITM) attack.
CVE-2026-48861 is a client-side HTTP request-line CRLF (Carriage Return Line Feed) injection vulnerability in the popular Elixir HTTP client library, Mint. The vulnerability permits HTTP Request Splitting and HTTP Request Smuggling when an application forwards untrusted, attacker-controlled inputs to Mint's HTTP client requests as either the HTTP request method or target. By embedding CRLF characters within these parameters, an attacker can terminate the request line prematurely, inject malicious headers, or pipeline entirely independent requests. These smuggled requests are then processed by upstream or downstream proxy servers as separate HTTP queries on the same TCP connection. While Mint version 1.7.0 introduced target validation to secure the request target, the HTTP request method parameter remained completely unvalidated. This flaw allows attackers to bypass routing filters, access restricted internal APIs, or poison HTTP caches under default configurations.
An Inconsistent Interpretation of HTTP Requests (HTTP Request/Response Smuggling) vulnerability in the Elixir Mint HTTP client allows attacker-controlled HTTP/1 servers to desynchronize response framing on shared connections due to over-lenient parsing of sign-prefixed Content-Length headers.
An allocation of resources without limits or throttling vulnerability in Elixir Mint allows an attacker-controlled HTTP/2 server to exhaust memory in a Mint client. The vulnerability is exploited by sending a HEADERS frame without the END_HEADERS flag followed by an infinite stream of CONTINUATION frames. Because the client lacks limits on the incoming header-block accumulator, the client continuously consumes memory until an out-of-memory crash occurs.
CVE-2026-48596 is an Improper Neutralization of CRLF Sequences in HTTP Headers (HTTP Request/Response Splitting, CWE-113) in the Elixir Tesla HTTP client. The flaw resides in how multipart content-type parameters are joined and serialized, enabling attackers to inject arbitrary headers or split HTTP requests when applications pass untrusted inputs to the parameters of multipart uploads.
An improper handling of highly compressed data (decompression bomb) vulnerability exists in the Elixir Tesla HTTP client when utilizing response decompression middlewares. By serving highly compressed responses or stacked content-encoding headers, a malicious server can cause arbitrary heap exhaustion, leading to a denial of service (DoS) crash in the BEAM virtual machine.
A high-severity security vulnerability in Elixir's Tesla HTTP client library (CVE-2026-48595) allows unauthenticated remote attackers to harvest sensitive credentials, including Authorization headers and cookies. The flaw resides in the 'Tesla.Middleware.FollowRedirects' component, which performs case-sensitive lookups when stripping credentials during cross-origin redirects. Because HTTP headers are case-insensitive by RFC specifications, standard canonical casing (e.g., 'Authorization') bypasses the lowercase-only blocklist, leaking tokens to untrusted external redirect destinations.