python-asteval — security advisory
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.
- Products
- python-asteval
- Affected versions
- 0.9.28-1, 0.9.30-1, 0.9.31-1, 1.0.6-1, 1.0.6-2
- Fixed versions
- Not specified
- CVEs
- CVE-2026-102734
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 23:03 UTC · Revision 1
Source evidence
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.
osv:DEBIAN-CVE-2026-102734
python-asteval
Fixed versions: Not specified
python-asteval
Fixed versions: Not specified
python-asteval
Fixed versions: Not specified
Complete source record
{
"id": "79eaa73c2f00d161b2903b9e3a18ab0dd10307f62858615171af20cf3e5d75cb",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2026-102734",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2026-102734",
"summary": "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.",
"evidence": "osv:DEBIAN-CVE-2026-102734",
"products": [
{
"name": {
"value": "python-asteval",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.9.28-1",
"evidence": "/affected/0/versions"
},
{
"value": "0.9.30-1",
"evidence": "/affected/0/versions"
},
{
"value": "0.9.31-1",
"evidence": "/affected/0/versions"
},
{
"value": "1.0.6-1",
"evidence": "/affected/0/versions"
},
{
"value": "1.0.6-2",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "python-asteval",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.0.6-2",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "python-asteval",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.0.6-2",
"evidence": "/affected/2/versions"
}
]
}
],
"severity": "medium",
"structured": {
"id": "DEBIAN-CVE-2026-102734",
"aliases": [
"DEBIAN-CVE-2026-102734"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "python-asteval",
"purl": "pkg:deb/debian/python-asteval?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"versions": [
"0.9.28-1",
"0.9.30-1",
"0.9.31-1",
"1.0.6-1",
"1.0.6-2"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-102734.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "python-asteval",
"purl": "pkg:deb/debian/python-asteval?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"versions": [
"1.0.6-2"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-102734.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "python-asteval",
"purl": "pkg:deb/debian/python-asteval?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"versions": [
"1.0.6-2"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-102734.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-23T17:47:33.286753565Z",
"provider": "osv",
"upstream": [
"CVE-2026-102734"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2026-102734"
]
},
"related_cves": [
{
"value": "CVE-2026-102734",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 417588,
"published_at": "2026-10-13T16:17:09.82+00:00"
}