CVE-2026-6842

NameCVE-2026-6842
DescriptionA flaw was found in nano. In environments with permissive umask settings, a local attacker can exploit incorrect directory permissions (0777 instead of 0700) for the `~/.local` directory. This allows the attacker to inject a malicious `.desktop` launcher, which could lead to unintended actions or information disclosure if the launcher is subsequently processed.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
nano (PTS)bullseye5.4-2+deb11u3vulnerable
bookworm7.2-1+deb12u1vulnerable
trixie8.4-1vulnerable
forky8.7.1-1vulnerable
sid9.0-1vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
nanosource(unstable)(unfixed)

Notes

https://bugzilla.redhat.com/show_bug.cgi?id=2460018
https://bugzilla.redhat.com/show_bug.cgi?id=2455314
check reported upstream?

Search for package or bug name: Reporting problems