{"answers":{"affected":"3 open source packages ship an affected version, including github.com/kahiteam/kahi.","exploited":"There is no known exploitation of GHSA-55f6-4pr5-c7m5 in the wild and no public exploit code.","fix":"Upgrade github.com/kahiteam/kahi to 0.1.0-alpha.9 or later.","what":"GHSA-55f6-4pr5-c7m5 is a vulnerability in github.com/kahiteam/kahi, published on 30 Jun 2026. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-55f6-4pr5-c7m5 and fix it if it is affected.\n\nWhat it is: GHSA-55f6-4pr5-c7m5 is a vulnerability in github.com/kahiteam/kahi, published on 30 Jun 2026. 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 GHSA-55f6-4pr5-c7m5 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/kahiteam/kahi (Go): affected all versions; fixed in 0.1.0-alpha.9\n- github.com/kahiteam/kahi (Go): affected all versions; fixed in 0.1.0-alpha.9\n- github.com/kahiteam/kahi (Go): affected all versions; fixed in 0.1.0-alpha.9\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/GHSA-55f6-4pr5-c7m5/ (Markdown: https://insights.sbomify.com/GHSA-55f6-4pr5-c7m5/index.md)","id":"GHSA-55f6-4pr5-c7m5","markdown":"https://insights.sbomify.com/GHSA-55f6-4pr5-c7m5/index.md","name":"GHSA-55f6-4pr5-c7m5","record":{"aliases":["GO-2026-5847"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["privilege_escalation","security_bypass"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Go process supervisor","requires_auth":"none","summary":"Kahi process supervisor fails to drop privileges correctly and exposes sockets, allowing local attackers to escalate privileges or access services.","user_interaction":"not_required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"Kahi releases up to and including v0.1.0-alpha.8 contain three privilege/permission issues, all fixed in v0.1.0-alpha.9. They were identified in a full-codebase security review on 2026-05-26.\n\n## Affected versions\nAll releases \u003c= v0.1.0-alpha.8.\n\n## Patched version\nv0.1.0-alpha.9.\n\n## Details\n\n### 1. Per-process privilege drop not applied (High)\nA process configured with `user = \"uid:gid\"` had its credential resolved but never attached to the spawned child, so the process ran with the supervisor's inherited privileges (root, when the supervisor runs as root) instead of the configured lower-privilege user. The intended privilege isolation did not occur, and no error was raised.\n\n### 2. Privilege drop did not reset supplementary groups (Medium)\nWhen the daemon dropped privileges it set the primary gid and uid but never called setgroups(2), so the launching user's supplementary groups (for example `docker`, which is root-equivalent) remained active after the drop and were inherited by child processes.\n\n### 3. FastCGI unix socket world-accessible by default (Medium)\nA FastCGI unix-domain socket was chmod-ed only when `socket_mode` was explicitly configured. With `socket_mode` unset the socket kept the umask-dependent default (commonly world-accessible), allowing any local user to connect to it.\n\n## Remediation\nUpgrade to v0.1.0-alpha.9. Privilege handling is now fail-closed: the configured credential is applied or the process refuses to start, supplementary groups are reset via setgroups before setgid/setuid, and FastCGI unix sockets default to 0700.\n\n## Workarounds (for \u003c= v0.1.0-alpha.8)\n- Do not rely on per-process `user`; run the supervisor directly as the intended unprivileged user.\n- Set an explicit restrictive `socket_mode` on FastCGI programs.\n- Avoid running the supervisor as root where possible.","ecosystems":["Go"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Kahi has privilege-drop and socket/log permission issues","id":"GHSA-55f6-4pr5-c7m5","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Go","product":null,"products":[],"type":"privilege_escalation","year":"2026"},"n_packages":3,"n_references":null,"packages":[{"ecosystem":"Go","fixed":["0.1.0-alpha.9"],"introduced":["0"],"last_affected":[],"package":"github.com/kahiteam/kahi","purl":null,"source":"GHSA-55f6-4pr5-c7m5"},{"ecosystem":"Go","fixed":["0.1.0-alpha.9"],"introduced":["0"],"last_affected":[],"package":"github.com/kahiteam/kahi","purl":"pkg:golang/github.com/kahiteam/kahi","source":"GHSA-55f6-4pr5-c7m5"},{"ecosystem":"Go","fixed":["0.1.0-alpha.9"],"introduced":["0"],"last_affected":[],"package":"github.com/kahiteam/kahi","purl":"pkg:golang/github.com/kahiteam/kahi","source":"GO-2026-5847"}],"products":null,"published":"2026-06-30","related":[],"sources":[{"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"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Kahi process supervisor fails to drop privileges correctly and exposes sockets, allowing local attackers to escalate privileges or access services.","url":"https://insights.sbomify.com/GHSA-55f6-4pr5-c7m5/"}