{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2018-10870 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2018-10870 is a critical path traversal vulnerability in redhat-certification rhcertstore.py, published on 19 Jul 2018. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2018-10870 and fix it if it is affected.\n\nWhat it is: CVE-2018-10870 is a critical path traversal vulnerability in redhat-certification rhcertstore.py, published on 19 Jul 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2018-10870 in the wild and no public exploit code.\n\nAffected product: redhat-certification rhcertstore.py. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-10870/ (Markdown: https://insights.sbomify.com/CVE-2018-10870/index.md)","id":"CVE-2018-10870","markdown":"https://insights.sbomify.com/CVE-2018-10870/index.md","name":"CVE-2018-10870","record":{"aliases":["GHSA-3v7r-5qj8-2v68"],"analysis":{"component_type":"server_software","fix_type":"patch","impacts":["code_execution","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Red Hat certification tool","requires_auth":"none","summary":"A remote attacker can exploit improper path sanitization to overwrite arbitrary files, potentially achieving remote code execution.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"certification","vendor":"redhat"}],"cvss":{"score":9.8,"severity":"critical","source":"cna","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","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":"redhat-certification does not properly sanitize paths in rhcertStore.py:__saveResultsFile. A remote attacker could use this flaw to overwrite any file, potentially gaining remote code execution.","ecosystems":[],"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":"Path traversal in rhcertstore.py","id":"CVE-2018-10870","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"path_traversal","year":"2018"},"n_packages":0,"n_references":3,"next":{"headline":"Information disclosure in 389-ds-base","id":"CVE-2018-10871"},"packages":[],"prev":{"headline":"Path traversal in redhat-certification","id":"CVE-2018-10869"},"products":["rhcertstore.py"],"published":"2018-07-19","related":[{"cvss_score":9.1,"headline":"Missing authorization in redhat-certification","id":"CVE-2018-10866","kev_date_added":null,"published":"2021-05-26"},{"cvss_score":9.1,"headline":"Path traversal in redhat-certification","id":"CVE-2018-10867","kev_date_added":null,"published":"2021-05-26"},{"cvss_score":7.5,"headline":"Information disclosure in redhat-certification","id":"CVE-2018-10863","kev_date_added":null,"published":"2021-05-26"},{"cvss_score":7.5,"headline":"Missing authorization in redhat-certification","id":"CVE-2018-10865","kev_date_added":null,"published":"2021-05-26"},{"cvss_score":7.5,"headline":"Denial of service in redhat-certification","id":"CVE-2018-10868","kev_date_added":null,"published":"2021-05-26"},{"cvss_score":7.5,"headline":"Path traversal in redhat-certification","id":"CVE-2018-10869","kev_date_added":null,"published":"2018-07-19"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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":["redhat-certification"]},"summary":"A remote attacker can exploit improper path sanitization to overwrite arbitrary files, potentially achieving remote code execution.","url":"https://insights.sbomify.com/CVE-2018-10870/"}