{"answers":{"affected":"3 open source packages ship an affected version, including github.com/openshift/source-to-image. It affects 1 product.","exploited":"There is no known exploitation of CVE-2018-1103 in the wild and no public exploit code.","fix":"Upgrade github.com/openshift/source-to-image to 1.1.10-0.20180427153919-f5cbcbc5cc6f or later.","what":"CVE-2018-1103 is a medium-severity path traversal vulnerability in Openshift Enterprise unsanitized paths in tar.go, published on 12 Jun 2018. 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-2018-1103 and fix it if it is affected.\n\nWhat it is: CVE-2018-1103 is a medium-severity path traversal vulnerability in Openshift Enterprise unsanitized paths in tar.go, published on 12 Jun 2018. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2018-1103 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/openshift/source-to-image (Go): affected all versions; fixed in 1.1.10-0.20180427153919-f5cbcbc5cc6f\n- github.com/openshift/source-to-image (Go): affected all versions; fixed in 1.1.10-0.20180427153919-f5cbcbc5cc6f\n- github.com/openshift/source-to-image (Go): affected all versions; fixed in 1.1.10-0.20180427153919-f5cbcbc5cc6f\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-2018-1103/ (Markdown: https://insights.sbomify.com/CVE-2018-1103/index.md)","id":"CVE-2018-1103","markdown":"https://insights.sbomify.com/CVE-2018-1103/index.md","name":"CVE-2018-1103","record":{"aliases":["GHSA-w55j-f7vx-6q37","GO-2020-0026"],"analysis":{"component_type":"container_or_infrastructure","fix_type":"upgrade","impacts":["data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"OpenShift source-to-image","requires_auth":"none","summary":"An attacker can trick a user into copying files from a pod to override files outside the target directory via improper input validation.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"source-to-image","vendor":"redhat"}],"cvss":{"score":6.1,"severity":"medium","source":"cna","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:H/A:N","version":"3.0"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"},{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"Openshift Enterprise source-to-image before version 1.1.10 is vulnerable to an improper validation of user input. An attacker who could trick a user into using the command to copy files locally, from a pod, could override files outside of the target directory of the command.","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":"Openshift Enterprise source-to-image vulnerable to Arbitrary File Write via Archive Extraction (Zip Slip)","id":"CVE-2018-1103","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"path_traversal","year":"2018"},"n_packages":3,"n_references":1,"next":{"headline":"Code injection in Ansible Tower","id":"CVE-2018-1104"},"packages":[{"ecosystem":"Go","fixed":["1.1.10-0.20180427153919-f5cbcbc5cc6f"],"introduced":["0"],"last_affected":[],"package":"github.com/openshift/source-to-image","purl":null,"source":"GHSA-w55j-f7vx-6q37"},{"ecosystem":"Go","fixed":["1.1.10-0.20180427153919-f5cbcbc5cc6f"],"introduced":["0"],"last_affected":[],"package":"github.com/openshift/source-to-image","purl":"pkg:golang/github.com/openshift/source-to-image","source":"GHSA-w55j-f7vx-6q37"},{"ecosystem":"Go","fixed":["1.1.10-0.20180427153919-f5cbcbc5cc6f"],"introduced":["0"],"last_affected":[],"package":"github.com/openshift/source-to-image","purl":"pkg:golang/github.com/openshift/source-to-image","source":"GO-2020-0026"}],"prev":{"headline":"Path traversal in atomic-openshift","id":"CVE-2018-1102"},"products":["unsanitized paths in tar.go"],"published":"2018-06-12","related":[],"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":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-05","vendors":["Openshift Enterprise"]},"summary":"An attacker can trick a user into copying files from a pod to override files outside the target directory via improper input validation.","url":"https://insights.sbomify.com/CVE-2018-1103/"}