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

The Global Unverify: How One Line of Python Broke SageMaker TLS

Amit Schendel
Amit Schendel
Senior Security Researcher

Feb 3, 2026·5 min read·51 visits

Executive Summary (TL;DR)

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.

The Hook: The Convenience Trap

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 Flaw: Monkeypatching Hell

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_context

This 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.

The Smoking Gun: Confession in Comments

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_context

The 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.

The Exploit: From MitM to RCE

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:

  1. Positioning: An attacker positions themselves in the network path (e.g., a compromised router, a malicious Wi-Fi hotspot, or ARP spoofing in a shared environment).
  2. Interception: The victim runs a SageMaker job that imports a Triton model. The SDK initializes and globally disables SSL verification.
  3. The Bait: The SDK attempts to download a pre-trained model (e.g., https://download.pytorch.org/models/resnet50.pth).
  4. The Switch: The attacker intercepts the request. Since verification is disabled, they present a self-signed certificate. The SDK accepts it without error.
  5. The Payload: Instead of the real ResNet50 model, the attacker serves a malicious file containing a pickled reverse shell.
  6. Execution: The SDK receives the file and loads it using 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 Fix: Trust, Don't Bypass

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:

  1. Update Root CAs: Ensure your container or OS has the latest ca-certificates package.
  2. Use Custom Contexts: If you absolutely must connect to a server with a self-signed cert (e.g., internal testing), pass the verify=False flag only to that specific request session, or create a specific SSL context with the custom CA loaded.
  3. Install the CA: Add your internal CA certificate to the system trust store so the default validation works naturally.

Global monkeypatching of security primitives is a "code smell" that should trigger immediate alarms in any code review.

Official Patches

AWSAWS Security Bulletin 2026-004-AWS

Fix Analysis (1)

Technical Appendix

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

Affected Systems

Amazon SageMaker Python SDK v3.x < 3.1.1Amazon SageMaker Python SDK v2.x < 2.256.0Triton Inference Server integrations via SageMaker

Affected Versions Detail

Product
Affected Versions
Fixed Version
SageMaker Python SDK
AWS
< 3.1.13.1.1
SageMaker Python SDK
AWS
< 2.256.02.256.0
AttributeDetail
CWE IDCWE-295
Attack VectorNetwork (MitM)
CVSS v3.15.9 (Medium)
ImpactIntegrity Loss / Remote Code Execution
Root CauseGlobal SSL Context Monkeypatching
KEV StatusNot Listed

MITRE ATT&CK Mapping

T1557Adversary-in-the-Middle
Credential Access
T1204User Execution (Malicious File)
Execution
T1059Command and Scripting Interpreter
Execution
CWE-295
Improper Certificate Validation

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.

Known Exploits & Detection

HypotheticalStandard MitM attack injecting a malicious Pickle file during model download.

Vulnerability Timeline

Version 3.1.1 Released (Fix)
2025-12-10
Version 2.256.0 Released (Fix)
2026-01-08
CVE-2026-1778 Published
2026-02-02

References & Sources

  • [1]Fix Commit on GitHub
  • [2]Python SSL Context Documentation

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