# CVE-2026-6842: Nano: nano: local attacker can inject malicious .desktop launcher due to insecure directory permissions

- Severity: Low 2.5 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.11%, higher than 1% of CVEs (2026-12-01)
- Published: 2026-04-22T07:34:26.360Z
- Modified: 2026-11-25T17:17:59.750Z
- Weaknesses: CWE-732
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: redhat

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

(As written by CVE List.)

## Affected

- nano: from 2.9.1 before 9.0
- openshift/ose-rhel-coreos-8: no versions given
- openshift/ose-rhel-coreos-9: no versions given

## References

- <https://access.redhat.com/security/cve/CVE-2026-6842> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2460018> (issue-tracking)

## Sources

- CVE List: [CVE-2026-6842](https://www.cve.org/CVERecord?id=CVE-2026-6842), CVE Terms of Use, modified 2026-11-25
- NVD: [CVE-2026-6842](https://nvd.nist.gov/vuln/detail/CVE-2026-6842), Public domain, modified 2026-11-25

---

Page: https://cve.day/CVE-2026-6842 · Whole record: https://cve.day/CVE-2026-6842.json · Rebuilt by cve.day 2026-11-25T23:18:17.070Z
