Skip to main content

Boteraser | Website and Server Security Solutions

🛡️ GHSA-55f6-4pr5-c7m5 — kahi

🟠 CVSS 8.0 — High ✅ No Known Exploit CWE-271 OSV
8.0
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

Kahi has privilege-drop and socket/log permission issues

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.

Affected versions

All releases <= v0.1.0-alpha.8.

Patched version

v0.1.0-alpha.9.

Details

1. Per-process privilege drop not applied (High)

A 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.

2. Privilege drop did not reset supplementary groups (Medium)

When 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.

3. FastCGI unix socket world-accessible by default (Medium)

A 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.

Remediation

Upgrade 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.

Workarounds (for <= v0.1.0-alpha.8)

  • Do not rely on per-process user; run the supervisor directly as the intended unprivileged user.
  • Set an explicit restrictive socket_mode on FastCGI programs.
  • Avoid running the supervisor as root where possible.

Weakness class

GHSA-55f6-4pr5-c7m5 is classified as CWE-271: Privilege Dropping / Lowering Errors. The product does not drop privileges before passing control of a resource to an actor that does not have those privileges.

Affected software

GHSA-55f6-4pr5-c7m5 is recorded against 1 package.

  • github.com/kahiteam/kahi

Timeline and source

Published on 30 June 2026 and last revised on 7 July 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.

References

github.com (Web)
github.com (Package)

Other advisories for this package

github.com/kahiteam/kahi has other advisories on record. If you are patching this one, these are worth checking on the same host:

Same weakness in other software

These advisories are the same class of weakness (CWE-271: Privilege Dropping / Lowering Errors) in other software:

Details

Severity HIGH
CVSS Score 8.0
CVSS Vector N/A
CWE CWE-271
Public Exploit ✅ No
Source OSV
Published 2026-06-30
Updated 2026-08-20
Modified 2026-07-07
Fix URL N/A

Affected Packages

Software From version Fixed in
github.com/kahiteam/kahi

Similar Threats

Site Security Check

Is kahi part of your stack?

GHSA-55f6-4pr5-c7m5 is rated CVSS 8.0 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesGitHub AdvisoryGitHub Advisory Undated