SecurityContext

CVE-2026-118938: Trail of Bits fickling - Remote Code Execution

  • Cve: CVE-2026-118938
  • Name: Trail of Bits fickling - Remote Code Execution
  • Description: In Trail of Bits fickling through 0.1.12, a pickle STACK_GLOBAL operand carrying a dotted __qualname__ (for example "Values.read_file") is resolved by pickle's find_class through _getattribute to an arbitrary attribute path rather than to a module-level function. Fickling records only the leading component of the name in its import tracking and renders the operation as a plain import (for instance, 'python -m fickling' displays it as 'from optparse import Values.read_file'), so the trailing attribute reference is never analyzed as a call. The OvertlyBadEvals analysis pass does not flag it, and check_safety() returns LIKELY_SAFE with zero findings. This allows an attacker to reach a class method that performs code execution: optparse.Values.read_file executes exec(open(filename).read(), vars), achieving arbitrary code execution when the crafted pickle is loaded through fickling.load(), which chains check_safety() into pickle.loads() as an explicit security gate. optparse is present in all current CPython 3.x releases (deprecated as of Python 3.13, not removed). This weakness is in the resolution and analysis of dotted attribute-path names, and is distinct from and independently fixable from the module-origin trust weakness tracked as CVE-2026-16760: resolving or flagging dotted attribute-path imports closes this vector while leaving the module-level trust behavior unchanged. This bypass was verified to remain present on the vendor master branch at commit d011709 as of 2026-10-30, after the vendor's October blocklist additions and a new heuristic that flags private stdlib attributes; because the public class method Values.read_file is neither blocklisted nor flagged as a private attribute, it is not addressed by those remediations.
  • Impact: Attackers can execute arbitrary code remotely by loading crafted pickle files, potentially leading to full system compromise.
  • Remediation: Update to a version that properly resolves or flags dotted attribute-path imports or apply vendor patches addressing this issue.
  • Vulnerability type: insecure_deserialization
  • Vulnerability impact: remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 8.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Epss score: 0.00478
  • Epss percentile: 0.41798
  • Assignee: aa17e1a1-c329-4d6e-a1ed-8d0188aea082
  • Published at: 2026-10-30T22:16:54Z
  • Age in days: 25
  • Modified at: 2026-11-06T16:17:51Z
  • References total: 4
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-118938
  • Nvd status: awaiting_analysis
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-502Deserialization of Untrusted Data

References

Same in every row:

  • Source: nvd
  • Tags:
Url
https://bombadil.systems/advisories.html
https://github.com/trailofbits/fickling
https://github.com/trailofbits/fickling/commit/d011709
https://pypi.org/project/fickling/0.1.12/

Products

ProductAffectedPlatform boundSourcesUrl
trailofbits:fickling<= 0.1.12nocna_alias/v1/products/trailofbits/fickling

Projects

RepositoryLink kindsIndexedUrl
trailofbits/ficklingcommit, fixyes/v1/repositories/trailofbits/fickling

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts