CVE-2026-8274 npitre cramfs-tools Directory cramfsck.c do_directory path traversal

Medium 4.8 Published Updated

Local attackers can exploit a path traversal flaw in cramfs-tools to read or modify files outside the intended directory.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2026-8274?

CVE-2026-8274 is a medium-severity path traversal vulnerability in npitre cramfs-tools, published on 11 May 2026. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

A security vulnerability has been detected in npitre cramfs-tools up to 2.1. Affected is the function do_directory of the file cramfsck.c of the component Directory Handler. Such manipulation leads to path traversal. The attack can only be performed from a local environment. The exploit has been disclosed publicly and may be used. Upgrading to version 2.2 is able to address this issue. The name of the patch is 2fc492747115b24d8a07eddd27a2d45229cb273c. Upgrading the affected component is recommended.

Weakness: CWE-22

Which versions are affected by CVE-2026-8274?

Linux distribution packages (1)
cramfs-tools openSUSE:TumbleweedAll versions2.2-1.1

How do I fix CVE-2026-8274?

Upgrade to a fixed version.

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

Is CVE-2026-8274 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-8274 exists.

Sources

Also known as GHSA-2x6r-r8j5-prxm, openSUSE-SU-2026:12210-1.

Is CVE-2026-8274 in your software?

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

Check your SBOMs for free