CVE-2024-8158 User impersonation for lib9p based 9p fileservers

High 8.8 Published Updated

An attacker with valid credentials can impersonate other users in 9p filesystems due to improper UID verification, requiring the experimental hjfs filesystem.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-8158?

CVE-2024-8158 is a high-severity authentication bypass vulnerability in 9front, published on 25 Aug 2024. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

A bug in the 9p authentication implementation within lib9p allows an attacker with an existing valid user within the configured auth server to impersonate any other valid filesystem user.

This is due to lib9p not properly verifying that the uname given in the Tauth and Tattach 9p messages matches the client UID returned from the factotum authentication handshake.

The only filesystem making use of these functions within the base 9front systems is the experimental hjfs disk filesystem, other disk filesystems (cwfs and gefs) are not affected by this bug.

This bug was inherited from Plan 9 and is present in all versions of 9front and is remedied fully in commit 9645ae07eb66a59015e3e118d0024790c37400da.

Weakness: CWE-639

Which versions are affected by CVE-2024-8158?

It affects 1 product.

Products include 9front Lib9p.

How do I fix CVE-2024-8158?

No fix has been published for CVE-2024-8158 yet. Limit exposure of the affected software until one is available.

Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.

Is CVE-2024-8158 being exploited?

There is no known exploitation of CVE-2024-8158 in the wild and no public exploit code.

Sources

Also known as GHSA-pm23-3px3-qrh7.

Is CVE-2024-8158 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free