CVE-2026-133467
Received Received - Intake

Code Execution via Bypassed AST Validation in CodeSafe

Vulnerability report for CVE-2026-133467, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-25

Last updated on: 2026-11-25

Assigner: GitHub, Inc.

Description

CodeSafe is an open-source Python library for code encryption, decryption, and safe evaluation using Python's AST module. From versions 0.0.1 through 0.0.4, the safe_eval() function can be bypassed with indirect subscript calls such as builtins'exec', because AST validation blocks only direct calls to dangerous built-ins. An attacker who controls an expression passed to safe_eval() can execute arbitrary Python code with the permissions of the host application. This issue is fixed in version 0.0.5.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-25
Last Modified
2026-11-25
Generated
2026-11-25
AI Q&A
2026-11-25
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
codesafe codesafe From 0.0.1 (inc) to 0.0.4 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-693 The product does not use or incorrectly uses a protection mechanism that provides sufficient defense against directed attacks against the product.
CWE-95 The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes code syntax before using the input in a dynamic evaluation call (e.g. "eval").

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

CodeSafe versions 0.0.1 through 0.0.4 have a flaw in the safe_eval() function where indirect subscript calls like builtins' exec can bypass AST validation. This allows attackers who control input expressions to execute arbitrary Python code with the host application's permissions.

Detection Guidance

Check if CodeSafe versions 0.0.1 through 0.0.4 are installed by running: pip show codesafe. If installed, verify if safe_eval() is used in your codebase and test for indirect subscript calls like builtins' exec.

Impact Analysis

If you use CodeSafe versions 0.0.1 to 0.0.4, an attacker could exploit this to run malicious code on your system, potentially stealing data, installing malware, or taking control of your application. The impact is severe as it grants full code execution rights.

Compliance Impact

This vulnerability could lead to unauthorized data access or exfiltration, violating GDPR's data protection requirements and HIPAA's safeguards for protected health information. Non-compliance risks include fines, legal penalties, and reputational damage.

Mitigation Strategies

Upgrade CodeSafe to version 0.0.5 or later immediately. Review all usages of safe_eval() in your code to ensure no indirect subscript calls are present. If safe_eval() is not required, consider removing it entirely.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-133467. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...