{"answers":{"affected":"3 open source packages ship an affected version, including github.com/chainguard-dev/malcontent. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-24846 in the wild and no public exploit code.","fix":"Upgrade github.com/chainguard-dev/malcontent to 1.20.3 or later.","what":"CVE-2026-24846 is a medium-severity path traversal vulnerability in chainguard-dev malcontent, published on 29 Jan 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-24846 and fix it if it is affected.\n\nWhat it is: CVE-2026-24846 is a medium-severity path traversal vulnerability in chainguard-dev malcontent, published on 29 Jan 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-24846 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/chainguard-dev/malcontent (Go): affected from 1.8.0; fixed in 1.20.3\n- github.com/chainguard-dev/malcontent (Go): affected from 1.8.0; fixed in 1.20.3\n- github.com/chainguard-dev/malcontent (Go): affected from 1.8.0; fixed in 1.20.3\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-24846/ (Markdown: https://insights.sbomify.com/CVE-2026-24846/index.md)","id":"CVE-2026-24846","markdown":"https://insights.sbomify.com/CVE-2026-24846/index.md","name":"CVE-2026-24846","record":{"aliases":["GHSA-923j-vrcg-hxwh","GO-2026-4391"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Go supply-chain scanner","requires_auth":"none","summary":"Attackers can write files outside the extraction directory via crafted archives, potentially leading to code execution or privilege escalation.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"malcontent","vendor":"chainguard"}],"cvss":{"score":5.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-683","name":"Function Call With Incorrect Order of Arguments"},{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"malcontent discovers supply-chain compromises through. context, differential analysis, and YARA. Starting in version 1.8.0 and prior to version 1.20.3, malcontent could be made to create symlinks outside the intended extraction directory when scanning a specially crafted tar or deb archive. The `handleSymlink` function received arguments in the wrong order, causing the symlink target to be used as the symlink location. Additionally, symlink targets were not validated to ensure they resolved within the extraction directory. Version 1.20.3 introduces fixes that swap handleSymlink arguments, validate symlink location, and validate symlink targets that resolve within an extraction directory.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"malcontent's archive extraction could write outside extraction directory","id":"CVE-2026-24846","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":3,"n_references":3,"next":{"headline":"OpenEMR has Open Redirect in Eye Exam Form","id":"CVE-2026-24847"},"packages":[{"ecosystem":"Go","fixed":["1.20.3"],"introduced":["1.8.0"],"last_affected":[],"package":"github.com/chainguard-dev/malcontent","purl":null,"source":"GHSA-923j-vrcg-hxwh"},{"ecosystem":"Go","fixed":["1.20.3"],"introduced":["1.8.0"],"last_affected":[],"package":"github.com/chainguard-dev/malcontent","purl":"pkg:golang/github.com/chainguard-dev/malcontent","source":"GHSA-923j-vrcg-hxwh"},{"ecosystem":"Go","fixed":["1.20.3"],"introduced":["1.8.0"],"last_affected":[],"package":"github.com/chainguard-dev/malcontent","purl":"pkg:golang/github.com/chainguard-dev/malcontent","source":"GO-2026-4391"}],"prev":{"headline":"malcontent's OCI image scanning could expose registry credentials","id":"CVE-2026-24845"},"products":["malcontent"],"published":"2026-01-29","related":[{"cvss_score":6.9,"headline":"malcontent's nested archive extraction failure can drop content from scan inputs","id":"CVE-2026-28407","kev_date_added":null,"published":"2026-02-27"},{"cvss_score":6.5,"headline":"malcontent's OCI image scanning could expose registry credentials","id":"CVE-2026-24845","kev_date_added":null,"published":"2026-01-29"}],"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":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"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)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-01-29","vendors":["chainguard-dev"]},"summary":"Attackers can write files outside the extraction directory via crafted archives, potentially leading to code execution or privilege escalation.","url":"https://insights.sbomify.com/CVE-2026-24846/"}