Skip to main content

CVE-2026-102734: CWE-693: Protection Mechanism Failure in lmfit asteval

0
Medium
VulnerabilityCVE-2026-102734cvecve-2026-102734cwe-693cwe-749cwe-913
Published: 10/13/2026 (10/13/2026, 15:29:49 UTC)
Source: CVE Database V5
Vendor/Project: lmfit
Product: asteval

Description

asteval is a Python expression evaluator designed for restricted execution. Prior to 1.0.9, in asteval/astutils.py, the default Interpreter with numpy enabled exposes a ctypes type and permits from_address memory access. safe_getattr blocks the ctypes module but not reachable ctypes type objects, while attribute assignments use unfiltered setattr instead of safe_setattr. An attacker-controlled expression can derive an address with id, read memory through from_address, and write through an attribute assignment. The expression can read or corrupt arbitrary process memory, escape the intended sandbox, execute code, disclose secrets, or crash the host process. This issue is fixed in version 1.0.9.

CVSS v3.1

Score 5.5medium

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Affected software

lmfit

asteval

Affected versions
<1.0.9
asteval
pkg:pypi/asteval
Affected versions
<1.0.9

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/13/2026, 16:04:27 UTC

Technical Analysis

The asteval Python library, used for restricted expression evaluation, had a protection mechanism failure in versions before 1.0.9. Specifically, in asteval/astutils.py, the default Interpreter with numpy enabled exposes a ctypes type that allows memory access via from_address. The safe_getattr function blocks the ctypes module but not reachable ctypes type objects, and attribute assignments use unfiltered setattr rather than safe_setattr. An attacker can craft expressions that derive memory addresses using id, read memory through from_address, and write memory via attribute assignments. This vulnerability enables reading or corrupting arbitrary process memory, escaping the sandbox, executing arbitrary code, disclosing secrets, or crashing the host process. The flaw is addressed in version 1.0.9.

Potential Impact

Exploitation of this vulnerability can result in arbitrary memory read and write within the process, leading to sandbox escape, potential arbitrary code execution, disclosure of sensitive information, or denial of service via process crash. The CVSS score is 5.5 (medium severity) with local attack vector, low attack complexity, no privileges required, user interaction required, unchanged scope, no confidentiality or integrity impact, but high availability impact.

Mitigation Recommendations

Upgrade to asteval version 1.0.9 or later, where this vulnerability is fixed. No other mitigations are indicated or required once the update is applied.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-09-29T16:19:11.295Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6ace52f62cdf04f65680e4f1

Added to database: 10/13/2026, 15:49:10 UTC

Last enriched: 10/13/2026, 16:04:27 UTC

Last updated: 10/13/2026, 21:05:52 UTC

Views: 7

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses