{"answers":{"affected":"9 open source packages ship an affected version, including k8s.io/kubernetes.","exploited":"There is no known exploitation of CVE-2024-5321 in the wild and no public exploit code.","fix":"Upgrade k8s.io/kubernetes to a fixed version for your release line: 1.27.16, 1.28.12, 1.29.7 or 1.30.3.","what":"CVE-2024-5321 is a medium-severity missing authorization vulnerability in Kubernetes, published on 18 Jul 2024. 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-2024-5321 and fix it if it is affected.\n\nWhat it is: CVE-2024-5321 is a medium-severity missing authorization vulnerability in Kubernetes, published on 18 Jul 2024. 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-2024-5321 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- k8s.io/kubernetes (Go): affected all versions; fixed in 1.27.16, 1.28.12, 1.29.7, 1.30.3\n- k8s.io/kubernetes (Go): affected all versions; fixed in 1.27.16\n- k8s.io/kubernetes (Go): affected all versions; fixed in 1.27.16\n- k8s.io/kubernetes (Go): affected from 1.28.0; fixed in 1.28.12\n- k8s.io/kubernetes (Go): affected from 1.28.0; fixed in 1.28.12\n- k8s.io/kubernetes (Go): affected from 1.29.0; fixed in 1.29.7\n- k8s.io/kubernetes (Go): affected from 1.29.0; fixed in 1.29.7\n- k8s.io/kubernetes (Go): affected from 1.30.0; fixed in 1.30.3\n- k8s.io/kubernetes (Go): affected from 1.30.0; fixed in 1.30.3\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-5321/ (Markdown: https://insights.sbomify.com/CVE-2024-5321/index.md)","id":"CVE-2024-5321","markdown":"https://insights.sbomify.com/CVE-2024-5321/index.md","name":"CVE-2024-5321","record":{"aliases":["AZL-45436","CLEANSTART-2026-PI46891","CLEANSTART-2026-SA69447","ECHO-ff7b-4bc1-46e0","GHSA-82m2-cv7p-4m75","GO-2024-2994","MINI-32w9-2p3x-xq77"],"analysis":{"component_type":"container_or_infrastructure","fix_type":"patch","impacts":["data_read","data_modify"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"Kubernetes Windows nodes","requires_auth":"low_privilege","summary":"Attackers on Windows Kubernetes nodes can read or modify container logs due to incorrect file permissions.","user_interaction":"not_required","vuln_class":"missing_authorization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"kubernetes","cpe":[],"cvss":{"score":6.1,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-276","name":"Incorrect Default Permissions"}],"description":"A security issue was discovered in Kubernetes clusters with Windows nodes where BUILTIN\\Users may be able to read container logs and NT AUTHORITY\\Authenticated Users may be able to modify container logs.","ecosystems":["Go"],"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":"Incorrect permissions on Windows containers logs","id":"CVE-2024-5321","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"missing_authorization","year":"2024"},"n_packages":9,"n_references":2,"next":{"headline":"N-central Authentication Bypass via Session Rebinding","id":"CVE-2024-5322"},"packages":[{"ecosystem":"Go","fixed":["1.27.16","1.28.12","1.29.7","1.30.3"],"introduced":["0","1.28.0","1.29.0","1.30.0"],"last_affected":[],"package":"k8s.io/kubernetes","purl":"pkg:golang/k8s.io/kubernetes","source":"GO-2024-2994"},{"ecosystem":"Go","fixed":["1.27.16"],"introduced":["0"],"last_affected":[],"package":"k8s.io/kubernetes","purl":null,"source":"GHSA-82m2-cv7p-4m75"},{"ecosystem":"Go","fixed":["1.27.16"],"introduced":["0"],"last_affected":[],"package":"k8s.io/kubernetes","purl":"pkg:golang/k8s.io/kubernetes","source":"GHSA-82m2-cv7p-4m75"},{"ecosystem":"Go","fixed":["1.28.12"],"introduced":["1.28.0"],"last_affected":[],"package":"k8s.io/kubernetes","purl":null,"source":"GHSA-82m2-cv7p-4m75"},{"ecosystem":"Go","fixed":["1.28.12"],"introduced":["1.28.0"],"last_affected":[],"package":"k8s.io/kubernetes","purl":"pkg:golang/k8s.io/kubernetes","source":"GHSA-82m2-cv7p-4m75"},{"ecosystem":"Go","fixed":["1.29.7"],"introduced":["1.29.0"],"last_affected":[],"package":"k8s.io/kubernetes","purl":null,"source":"GHSA-82m2-cv7p-4m75"},{"ecosystem":"Go","fixed":["1.29.7"],"introduced":["1.29.0"],"last_affected":[],"package":"k8s.io/kubernetes","purl":"pkg:golang/k8s.io/kubernetes","source":"GHSA-82m2-cv7p-4m75"},{"ecosystem":"Go","fixed":["1.30.3"],"introduced":["1.30.0"],"last_affected":[],"package":"k8s.io/kubernetes","purl":null,"source":"GHSA-82m2-cv7p-4m75"},{"ecosystem":"Go","fixed":["1.30.3"],"introduced":["1.30.0"],"last_affected":[],"package":"k8s.io/kubernetes","purl":"pkg:golang/k8s.io/kubernetes","source":"GHSA-82m2-cv7p-4m75"}],"prev":{"headline":"Missing Authorization in GitLab","id":"CVE-2024-5318"},"products":["Kubernetes"],"published":"2024-07-18","related":[],"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":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"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":"partial"},"state":"PUBLISHED","updated":"2024-09-13","vendors":["Kubernetes"]},"summary":"Attackers on Windows Kubernetes nodes can read or modify container logs due to incorrect file permissions.","url":"https://insights.sbomify.com/CVE-2024-5321/"}