{"id":"CVE-2026-6842","summary":"Nano: nano: local attacker can inject malicious .desktop launcher due to insecure directory permissions","details":"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.","modified":"2026-09-02T03:30:56.678280373Z","published":"2026-04-22T07:34:26.360Z","related":["openSUSE-SU-2026:10851-1","openSUSE-SU-2026:21166-1"],"database_specific":{"cwe_ids":["CWE-732"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/6xxx/CVE-2026-6842.json","cna_assigner":"redhat"},"references":[{"type":"WEB","url":"https://access.redhat.com/downloads/content/package-browser/"},{"type":"ADVISORY","url":"https://access.redhat.com/security/cve/CVE-2026-6842"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/6xxx/CVE-2026-6842.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-6842"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2460018"},{"type":"PACKAGE","url":"https://git.savannah.gnu.org/git/nano.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://https.git.savannah.gnu.org/git/nano.git/","events":[{"introduced":"d646a3b97b7d2fddcc1c98a59db0c753edf5e4c8"},{"fixed":"c7276e58c98bfcc51ae5714e0154bd68bc67c40a"}],"database_specific":{"extracted_events":[{"introduced":"2.9.1"},{"fixed":"9.0"}],"source":"AFFECTED_FIELD"}}],"versions":["v8.7","v8.6","v8.5","v8.4","v8.3","v8.2","v8.1","v8.0","v7.2","v7.1","v7.0","v6.4","v6.3","v6.2","v6.1","v6.0","v5.9","v5.8","v5.7","v5.6.1","v5.6","v5.5","v5.4","v5.3","v5.2","v5.1","v5.0","v4.9","v4.8","v4.7","v4.6","v4.5","v4.4","v4.3","v4.2","v4.1","v4.0","v3.2","v3.1","v3.0","v2.9.8","v2.9.7","v2.9.6","v2.9.5","v2.9.4","v2.9.3","v2.9.2","v2.9.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-6842.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N"}]}