{"answers":{"affected":"2 open source packages ship an affected version, including SharpCompress. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-44788 exists.","fix":"Upgrade SharpCompress to 0.48.0 or later.","what":"CVE-2026-44788 is a medium-severity path traversal vulnerability in adamhathcock sharpcompress, published on 26 May 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-44788 and fix it if it is affected.\n\nWhat it is: CVE-2026-44788 is a medium-severity path traversal vulnerability in adamhathcock sharpcompress, published on 26 May 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-44788 exists.\n\nAffected packages and fixed versions:\n- SharpCompress (NuGet): affected all versions; fixed in 0.48.0\n- SharpCompress (NuGet): affected all versions; fixed in 0.48.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-44788/ (Markdown: https://insights.sbomify.com/CVE-2026-44788/index.md)","id":"CVE-2026-44788","markdown":"https://insights.sbomify.com/CVE-2026-44788/index.md","name":"CVE-2026-44788","record":{"aliases":["ECHO-f93c-a222-1d5f","GHSA-6c8g-7p36-r338"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_modify","code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"C# compression library","requires_auth":"none","summary":"Attackers can exploit path traversal in SharpCompress to write arbitrary files outside the extraction directory, potentially leading to code execution.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"sharpcompress","vendor":"adamhathcock"}],"cvss":{"score":5.9,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:L","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"SharpCompress is a fully managed C# library to deal with many compression types and formats. In 0.47.4 and earlier, a path traversal vulnerability in IArchive.WriteToDirectory() allows a malicious archive to create directories outside the intended extraction root. For TAR archives, this can be escalated to arbitrary file writes by chaining with a symlink entry, giving a full write primitive on the target filesystem subject to the permissions of the running process.","ecosystems":["NuGet"],"exploits":{"exploitdb":0,"first_seen":"2026-06-26","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-06-26T11:18:57Z","kind":"github_poc","ref":"https://github.com/e-corp-demo/CVE-2026-44788","stars":0,"title":null}],"tier":"weaponised"},"has_fix":true,"headline":"SharpCompress: Directory traversal via directory entries in WriteToDirectory (zip slip variant)","id":"CVE-2026-44788","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"NuGet","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":2,"n_references":1,"next":{"headline":"n8n: HTTP Request Node Pagination Prototype Pollution to RCE","id":"CVE-2026-44789"},"packages":[{"ecosystem":"NuGet","fixed":["0.48.0"],"introduced":["0"],"last_affected":[],"package":"SharpCompress","purl":null,"source":"GHSA-6c8g-7p36-r338"},{"ecosystem":"NuGet","fixed":["0.48.0"],"introduced":["0"],"last_affected":[],"package":"SharpCompress","purl":"pkg:nuget/SharpCompress","source":"GHSA-6c8g-7p36-r338"}],"prev":{"headline":"Discourse: Signup-time primary_group_id assignment grants whisperer access","id":"CVE-2026-44787"},"products":["sharpcompress"],"published":"2026-05-26","related":[{"cvss_score":5.5,"headline":"Directory Traversal in SharpCompress","id":"CVE-2018-1002206","kev_date_added":null,"published":"2018-07-25"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-05-27","vendors":["adamhathcock"]},"summary":"Attackers can exploit path traversal in SharpCompress to write arbitrary files outside the extraction directory, potentially leading to code execution.","url":"https://insights.sbomify.com/CVE-2026-44788/"}