Skip to content
MediumVulnerability

GHSA-mhc9-48gj-9gp3: Fickling has safety check bypass via REDUCE+BUILD opcode sequence

Published
Record updated
View JSON
Affected
  • fickling <= 0.1.7
Fixed in
0.1.8
  • released February 20, 2026, 4 days before disclosure

Summary

The Fickling pickle analyzer's five safety interfaces (is_likely_safe(), check_safety(), the --check-safety CLI flag, always_check_safety(), and the check_safety() context manager) report LIKELY_SAFE for pickle files that call dangerous stdlib functions when a REDUCE opcode is followed by a BUILD opcode. The reporter shows this enables a backdoor network listener, process persistence, outbound exfiltration via smtplib.SMTP, and file creation, and that appending a trivial BUILD opcode eliminates detection. Affected versions are all versions through 0.1.7.

Mitigation

The source states: "It is believed that the analysis pass works as intended, `REDUCE` and `BUILD` are not at fault here. The few potentially unsafe modules have been added to the blocklist (https://github.com/trailofbits/fickling/commit/0c4558d950daf70e134090573450ddcedaf10400)."