# CVE-2026-16760: Fickling check\_safety() bypass: likely\_safe\_imports grants module-origin trust to unvalidated standard library callables

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.68% (percentile 48, 2026-11-26)
- **CWE:** CWE-693, CWE-502
- **Published:** 2026-10-30T21:16:31.353Z
- **Modified:** 2026-11-06T16:17:55.797Z

## Who should check

- Anyone running trailofbits fickling \<= 0.1.12

## Description

In Trail of Bits fickling through 0.1.12, the \_process\_import() method in fickle.py adds an imported name to the likely\_safe\_imports set whenever the source module is present in sys.stdlib\_module\_names and the name is absent from the UNSAFE\_IMPORTS denylist, without inspecting what the name resolves to or how it behaves. The OvertlyBadEvals analysis pass in analysis.py then unconditionally skips any call whose function name appears in likely\_safe\_imports, including calls that would otherwise be flagged as overtly dangerous. As a result, any callable reachable through a non-blocked standard library module inherits module-level trust regardless of its own behavior, and check\_safety() returns LIKELY\_SAFE with zero findings for pickle payloads that reach code execution or file write through such callables. Demonstrated primitives: dataclasses.\_create\_fn, which passes an attacker-controlled function body to exec() and yields arbitrary code execution on Python 3.7 through 3.12 (the internal \_create\_fn function was removed in Python 3.13); mailcap.findmatch, which internally calls os.system() on a test command taken from an attacker-controlled caps dictionary, yielding arbitrary code execution on Python versions through 3.12 (the mailcap module was removed in Python 3.13); and readline.add\_history() followed by readline.write\_history\_file(), which writes attacker-controlled content to an arbitrary filesystem path (POSIX platforms, where the readline module is available). fickling.load() chains check\_safety() into pickle.loads() as an explicit security gate, so a LIKELY\_SAFE verdict causes the payload to be deserialized and executed with the privileges of the victim process. The root cause is the inference of callable safety from module origin; it is independent of, and separately fixable from, the dotted \_\_qualname\_\_ resolution weakness tracked as CVE-2026-118938, which this advisory does not address. As of 2026-10-30 the three demonstrated modules were added to UNSAFE\_IMPORTS on the vendor master branch (commit d011709) pending release; released versions through 0.1.12 remain affected, and the module-origin trust root cause persists, as demonstrated by the related CVE-2026-118938 remaining exploitable on that same build.

## Affected and fixed versions

- trailofbits fickling: \<= 0.1.12 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-16760. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-16760.md
Affected: trailofbits fickling <= 0.1.12
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for trailofbits fickling: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-16760 being exploited?

There is no confirmed exploitation: CVE-2026-16760 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.68% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-16760?

High: CVSS 8.8 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2026-16760?

trailofbits fickling \<= 0.1.12.

### Is there a fix for CVE-2026-16760?

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-16760?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://github.com/trailofbits/fickling/commit/d011709>
- other: <https://bombadil.systems/advisories.html>
- other: <https://pypi.org/project/fickling/0.1.12/>
- other: <https://github.com/trailofbits/fickling>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-16760>

HTML: <https://flawdb.com/CVE-2026-16760> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-16760>
