Home

Description

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

PUBLISHED Reserved 2026-04-22 | Published 2026-04-22 | Updated 2026-04-22 | Assigner redhat




LOW: 2.5CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N

Problem types

Incorrect Permission Assignment for Critical Resource

Product status

Default status
affected

Default status
affected

Default status
affected

Default status
affected

Default status
affected

Default status
affected

Timeline

2026-04-13:Reported to Red Hat.
2026-04-13:Made public.

Credits

Red Hat would like to thank Michał Majchrowicz, Marcin Wyczechowski (AFINE Team) for reporting this issue.

References

access.redhat.com/security/cve/CVE-2026-6842 vdb-entry

bugzilla.redhat.com/show_bug.cgi?id=2460018 (RHBZ#2460018) issue-tracking

cve.org (CVE-2026-6842)

nvd.nist.gov (CVE-2026-6842)

Download JSON