CVE-2026-42866

Source
https://cve.org/CVERecord?id=CVE-2026-42866
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-42866.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-42866
Aliases
  • GHSA-rp68-wfv6-3cq3
Published
2026-05-11T18:23:19.395Z
Modified
2026-07-15T01:48:50.081046799Z
Severity
  • 6.7 (Medium) CVSS_V4 - CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N CVSS Calculator
Summary
Tookie: Arbitrary file write via path traversal in -u username / -U userfile output filename
Details

Tookie is a advanced OSINT information gathering tool. Prior to 4.1fix, modules/modules.py's writetxt, writecsv, writejson, and (commented-but-shipping) scanfile helpers open their output as open(f"{user}.<ext>"), where user comes unsanitized from the -u CLI flag or any line of a -U usernames file. A username that contains path-separator sequences (.., /, \, or an absolute path) causes tookie-osint to write the scan output to an arbitrary path the invoking user has write permission for. This vulnerability is fixed in 4.1fix.

Database specific
{
    "cwe_ids": [
        "CWE-22",
        "CWE-73"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42866.json",
    "cna_assigner": "GitHub_M"
}
References

Affected packages

Git / github.com/alfredredbird/tookie-osint

Affected ranges

Type
GIT
Repo
https://github.com/alfredredbird/tookie-osint
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
{
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "4.1fix"
        }
    ],
    "source": "AFFECTED_FIELD"
}

Affected versions

beta_v2.*
beta_v2.0(b)
v2.*
v2.0(a)
v2.0(b)
v2.0(c)
v2.0(d)
v2.1(b)
v2.1(c)
v2.1(d)
v2.1(e)Pre(2)
v2.5(a)
v2.7(a)
v2.8(a)
v2.8(b)
v2.8(c)
Other
v4
v4.*
v4.1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-42866.json"