{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-38586 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2021-38586 yet. Limit exposure of the affected software until one is available.","what":"CVE-2021-38586 is a medium-severity path traversal vulnerability in Cpanel Cpanel, published on 11 Aug 2021. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-38586 and fix it if it is affected.\n\nWhat it is: CVE-2021-38586 is a medium-severity path traversal vulnerability in Cpanel Cpanel, published on 11 Aug 2021. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-38586 in the wild and no public exploit code.\n\nAffected product: Cpanel Cpanel. 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-2021-38586/ (Markdown: https://insights.sbomify.com/CVE-2021-38586/index.md)","id":"CVE-2021-38586","markdown":"https://insights.sbomify.com/CVE-2021-38586/index.md","name":"CVE-2021-38586","record":{"aliases":["GHSA-p52w-q884-qjqv"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"cPanel control panel","requires_auth":"high_privilege","summary":"An attacker can exploit unsafe file operations in cPanel's cpan_config script to read or modify arbitrary files on the server.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"cpanel","vendor":"cpanel"}],"cvss":{"score":4.4,"severity":"medium","source":"nvd","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N","version":"3.1"},"cwes":[],"description":"In cPanel before 98.0.1, /scripts/cpan_config performs unsafe operations on files (SEC-589).","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":null,"headline":"Path traversal in n/a","id":"CVE-2021-38586","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"cpanel:cpanel","products":["cpanel:cpanel"],"type":"path_traversal","year":"2021"},"n_packages":0,"n_references":1,"next":{"headline":"Race condition in n/a","id":"CVE-2021-38587"},"packages":[],"prev":{"headline":"Deserialization in n/a","id":"CVE-2021-38585"},"products":["n/a"],"published":"2021-08-11","related":[{"cvss_score":9.3,"headline":"WebPros cPanel \u0026 WHM and WP2 (WordPress Squared) Missing Authentication for Critical Function","id":"CVE-2026-41940","kev_date_added":"2026-04-30","published":"2026-04-29"},{"cvss_score":10,"headline":"guestbook.cgi in cPanel 5.0 allows remote attackers to execute arbitrary commands via the template parameter.","id":"CVE-2003-1425","kev_date_added":null,"published":"2007-10-20"},{"cvss_score":10,"headline":"Code injection in n/a","id":"CVE-2004-1769","kev_date_added":null,"published":"2005-03-10"},{"cvss_score":10,"headline":"Command injection in n/a","id":"CVE-2004-1770","kev_date_added":null,"published":"2005-03-10"},{"cvss_score":9.8,"headline":"Command injection in n/a","id":"CVE-2020-26098","kev_date_added":null,"published":"2020-09-25"},{"cvss_score":9.8,"headline":"Privilege escalation in n/a","id":"CVE-2020-26100","kev_date_added":null,"published":"2020-09-25"},{"cvss_score":9.8,"headline":"Hardcoded credentials in n/a","id":"CVE-2020-26101","kev_date_added":null,"published":"2020-09-25"}],"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":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["n/a"]},"summary":"An attacker can exploit unsafe file operations in cPanel's cpan_config script to read or modify arbitrary files on the server.","url":"https://insights.sbomify.com/CVE-2021-38586/"}