{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2024-6840 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2024-6840 is a medium-severity missing authorization vulnerability in Red Hat Ansible Automation Platform 2.4 for RHEL 8, published on 12 Sep 2024. An attacker needs administrator access to exploit it, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-6840 and fix it if it is affected.\n\nWhat it is: CVE-2024-6840 is a medium-severity missing authorization vulnerability in Red Hat Ansible Automation Platform 2.4 for RHEL 8, published on 12 Sep 2024. An attacker needs administrator access to exploit it, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-6840 in the wild and no public exploit code.\n\nAffected product: Red Hat Ansible Automation Platform 2.4 for RHEL 8. 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-2024-6840/ (Markdown: https://insights.sbomify.com/CVE-2024-6840/index.md)","id":"CVE-2024-6840","markdown":"https://insights.sbomify.com/CVE-2024-6840/index.md","name":"CVE-2024-6840","record":{"aliases":["GHSA-64w6-7xrg-vmhg"],"analysis":{"component_type":"cloud_service","fix_type":"patch","impacts":["privilege_escalation"],"network_reachable":"yes","non_default_config":true,"product_category":"Ansible Automation Controller","requires_auth":"high_privilege","summary":"Attackers can escalate privileges to a service account by exploiting improper authorization in Ansible Automation Controller when service account tokens are automatically mounted.","user_interaction":"not_required","vuln_class":"missing_authorization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[],"cvss":{"score":6.6,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-285","name":"Improper Authorization"}],"description":"An improper authorization flaw exists in the Ansible Automation Controller. This flaw allows an attacker using the k8S API server to send an HTTP request with a service account token mounted via `automountServiceAccountToken: true`, resulting in privilege escalation to a service account.","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":"Automation-controller: gain access to the k8s api server via job execution with container group","id":"CVE-2024-6840","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"missing_authorization","year":"2024"},"n_packages":0,"n_references":3,"next":{"headline":"CSRF in vanna-ai/vanna","id":"CVE-2024-6841"},"packages":[],"prev":{"headline":"Improper Regex Path Matching in corydolphin/flask-cors","id":"CVE-2024-6839"},"products":["Red Hat Ansible Automation Platform 2.4 for RHEL 8","Red Hat Ansible Automation Platform 2.4 for RHEL 9"],"published":"2024-09-12","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-11-20","vendors":["Red Hat"]},"summary":"Attackers can escalate privileges to a service account by exploiting improper authorization in Ansible Automation Controller when service account tokens are automatically mounted.","url":"https://insights.sbomify.com/CVE-2024-6840/"}