{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-29186 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2022-29186 yet. Limit exposure of the affected software until one is available.","what":"CVE-2022-29186 is a critical vulnerability in rundeck, published on 20 May 2022. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-29186 and fix it if it is affected.\n\nWhat it is: CVE-2022-29186 is a critical vulnerability in rundeck, published on 20 May 2022. 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-2022-29186 in the wild and no public exploit code.\n\nAffected product: rundeck. 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-2022-29186/ (Markdown: https://insights.sbomify.com/CVE-2022-29186/index.md)","id":"CVE-2022-29186","markdown":"https://insights.sbomify.com/CVE-2022-29186/index.md","name":"CVE-2022-29186","record":{"aliases":["GHSA-qxjx-xr2m-hgqx"],"analysis":{"component_type":"container_or_infrastructure","fix_type":"patch","impacts":["privilege_escalation","account_takeover"],"network_reachable":"yes","non_default_config":true,"product_category":"Rundeck Docker image","requires_auth":"none","summary":"Attackers can gain unauthorized SSH access to remote hosts if they use the pre-generated SSH keypair included in the Rundeck Docker image.","user_interaction":"not_required","vuln_class":"hardcoded_credentials"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"rundeck","vendor":"pagerduty"}],"cvss":{"score":9.1,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-798","name":"Use of Hard-coded Credentials"},{"id":"CWE-321","name":"Use of Hard-coded Cryptographic Key"}],"description":"Rundeck is an open source automation service with a web console, command line tools and a WebAPI. Rundeck community and rundeck-enterprise docker images contained a pre-generated SSH keypair. If the id_rsa.pub public key of the keypair was copied to authorized_keys files on remote host, those hosts would allow access to anyone with the exposed private credentials. This misconfiguration only impacts Rundeck Docker instances of PagerDuty® Process Automation On Prem (formerly Rundeck) version 4.0 and earlier, not Debian, RPM or .WAR. Additionally, the id_rsa.pub file would have to be copied from the Docker image filesystem contents without overwriting it and used to configure SSH access on a host. A patch on Rundeck's `main` branch has removed the pre-generated SSH key pair, but it does not remove exposed keys that have been configured. To patch, users must run a script on hosts in their environment to search for exposed keys and rotate them. Two workarounds are available: Do not use any pre-existing public key file from the rundeck docker images to allow SSH access by adding it to authorized_keys files and, if you have copied the public key file included in the docker image, remove it from any authorized_keys files.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":false,"headline":"Use of Hard-coded Cryptographic Key in rundeck/rundeck, rundeckpro/enterprise","id":"CVE-2022-29186","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"hardcoded_credentials","year":"2022"},"n_packages":0,"n_references":2,"next":{"headline":"Bypass of safe.directory protections in Git","id":"CVE-2022-29187"},"packages":[],"prev":{"headline":"Observable Timing Discrepancy in totp-rs","id":"CVE-2022-29185"},"products":["rundeck"],"published":"2022-05-20","related":[{"cvss_score":8.8,"headline":"YAML deserialization can run untrusted code","id":"CVE-2021-39132","kev_date_added":null,"published":"2021-08-30"},{"cvss_score":8.1,"headline":"Authenticated users can view or delete jobs they do not have authorization for in Rundeck","id":"CVE-2023-48222","kev_date_added":null,"published":"2023-11-16"},{"cvss_score":8.1,"headline":"Missing Authorization in Rundeck","id":"CVE-2021-41112","kev_date_added":null,"published":"2022-02-28"},{"cvss_score":7.5,"headline":"Plaintext Storage of Keys and Passwords in Rundeck and PagerDuty Process Automation","id":"CVE-2022-31044","kev_date_added":null,"published":"2022-06-15"},{"cvss_score":7.2,"headline":"Cross-Site Request Forgery (CSRF) can run untrusted code on Rundeck server","id":"CVE-2021-39133","kev_date_added":null,"published":"2021-08-30"},{"cvss_score":6.5,"headline":"IDOR can reveal execution data and logs to unauthorized user in Rundeck","id":"CVE-2020-11009","kev_date_added":null,"published":"2020-04-29"}],"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":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-04-23","vendors":["rundeck"]},"summary":"Attackers can gain unauthorized SSH access to remote hosts if they use the pre-generated SSH keypair included in the Rundeck Docker image.","url":"https://insights.sbomify.com/CVE-2022-29186/"}