CVE-2023-2797 Path traversal in GitHub plugin's code preview feature

Low 3.1 Published Updated

Attackers can read code from private repositories by posting crafted permalinks in Mattermost channels due to insufficient sanitization.

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-2023-2797?

CVE-2023-2797 is a low-severity path traversal vulnerability in Mattermost Mattermost, published on 16 Jun 2023. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Mattermost fails to sanitize code permalinks, allowing an attacker to preview code from private repositories by posting a specially crafted permalink on a channel.

Weakness: CWE-74

Which versions are affected by CVE-2023-2797?

It affects 1 product.

Products include Mattermost Mattermost.

How do I fix CVE-2023-2797?

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

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2023-2797 being exploited?

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

All Mattermost Mattermost vulnerabilities

Sources

Also known as GHSA-w6f5-pv84-q7wv.

Is CVE-2023-2797 in your software?

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

Check your SBOMs for free