{"answers":{"affected":"6 open source packages ship an affected version, including github.com/gravitational/teleport. It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-36633 in the wild and no public exploit code.","fix":"Upgrade github.com/gravitational/teleport to a fixed version for your release line: 8.3.17, 10.1.2 or 9.3.13.","what":"CVE-2022-36633 is a high-severity command injection vulnerability in n/a, published on 24 Aug 2022. 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-2022-36633 and fix it if it is affected.\n\nWhat it is: CVE-2022-36633 is a high-severity command injection vulnerability in n/a, published on 24 Aug 2022. 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-2022-36633 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/gravitational/teleport (Go): affected all versions; fixed in 8.3.17\n- github.com/gravitational/teleport (Go): affected all versions; fixed in 8.3.17\n- github.com/gravitational/teleport (Go): affected from 10.0.0; fixed in 10.1.2\n- github.com/gravitational/teleport (Go): affected from 10.0.0; fixed in 10.1.2\n- github.com/gravitational/teleport (Go): affected from 9.0.0; fixed in 9.3.13\n- github.com/gravitational/teleport (Go): affected from 9.0.0; fixed in 9.3.13\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-2022-36633/ (Markdown: https://insights.sbomify.com/CVE-2022-36633/index.md)","id":"CVE-2022-36633","markdown":"https://insights.sbomify.com/CVE-2022-36633/index.md","name":"CVE-2022-36633","record":{"aliases":["GHSA-6xf3-5hp7-xqqg"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Teleport access platform","requires_auth":"none","summary":"Attackers can achieve remote code execution via command injection in Teleport's SSH agent installation link handling.","user_interaction":"required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"teleport","vendor":"goteleport"}],"cvss":{"score":8.8,"severity":"high","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"description":"Teleport 9.3.6 is vulnerable to Command injection leading to Remote Code Execution. An attacker can craft a malicious ssh agent installation link by URL encoding a bash escape with carriage return line feed. This url encoded payload can be used in place of a token and sent to a user in a social engineering attack. This is fully unauthenticated attack utilizing the trusted teleport server to deliver the payload.","ecosystems":["Go"],"exploits":{"exploitdb":1,"first_seen":"2022-09-23","github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[{"date":"2022-09-23","kind":"exploitdb","ref":"51019","stars":null,"title":"Teleport v10.1.1 - Remote Code Execution (RCE)"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Improper token validation leading to code execution in Teleport","id":"CVE-2022-36633","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"command_injection","year":"2022"},"n_packages":6,"n_references":3,"next":{"headline":"Missing authorization in n/a","id":"CVE-2022-36634"},"packages":[{"ecosystem":"Go","fixed":["8.3.17"],"introduced":["0"],"last_affected":[],"package":"github.com/gravitational/teleport","purl":null,"source":"GHSA-6xf3-5hp7-xqqg"},{"ecosystem":"Go","fixed":["8.3.17"],"introduced":["0"],"last_affected":[],"package":"github.com/gravitational/teleport","purl":"pkg:golang/github.com/gravitational/teleport","source":"GHSA-6xf3-5hp7-xqqg"},{"ecosystem":"Go","fixed":["10.1.2"],"introduced":["10.0.0"],"last_affected":[],"package":"github.com/gravitational/teleport","purl":null,"source":"GHSA-6xf3-5hp7-xqqg"},{"ecosystem":"Go","fixed":["10.1.2"],"introduced":["10.0.0"],"last_affected":[],"package":"github.com/gravitational/teleport","purl":"pkg:golang/github.com/gravitational/teleport","source":"GHSA-6xf3-5hp7-xqqg"},{"ecosystem":"Go","fixed":["9.3.13"],"introduced":["9.0.0"],"last_affected":[],"package":"github.com/gravitational/teleport","purl":null,"source":"GHSA-6xf3-5hp7-xqqg"},{"ecosystem":"Go","fixed":["9.3.13"],"introduced":["9.0.0"],"last_affected":[],"package":"github.com/gravitational/teleport","purl":"pkg:golang/github.com/gravitational/teleport","source":"GHSA-6xf3-5hp7-xqqg"}],"prev":{"headline":"Null dereference in n/a","id":"CVE-2022-36622"},"products":["n/a"],"published":"2022-08-24","related":[{"cvss_score":9.8,"headline":"Security feature bypass in n/a","id":"CVE-2021-41393","kev_date_added":null,"published":"2021-09-18"},{"cvss_score":6.5,"headline":"Information disclosure in n/a","id":"CVE-2022-38599","kev_date_added":null,"published":"2022-12-08"},{"cvss_score":6.5,"headline":"Other in n/a","id":"CVE-2021-41395","kev_date_added":null,"published":"2021-09-18"},{"cvss_score":5.3,"headline":"Supply chain in n/a","id":"CVE-2021-41394","kev_date_added":null,"published":"2021-09-18"}],"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":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["n/a"]},"summary":"Attackers can achieve remote code execution via command injection in Teleport's SSH agent installation link handling.","url":"https://insights.sbomify.com/CVE-2022-36633/"}