---
title: "CVE-2024-5742"
canonical_url: "https://pkgseek.com/security/CVE-2024-5742"
locale: "zh-CN"
source: "pkgseek"
entity_type: "cve"
severity: "medium"
---

# CVE-2024-5742

A vulnerability was found in GNU Nano that allows a possible privilege escalation through an insecure temporary file. If Nano is killed while editing, a file it saves to an emergency file with the permissions of the running user provides a window of opportunity for attackers to escalate privileges through a malicious symlink.

CVE-2024-5742 严重级别为 MEDIUM (6.7)，共索引 8 条受影响软件包构建记录，涉及 4 个发行版。

- **级别 / 评分**: MEDIUM (6.7)
- **受影响构建数**: 8
- **涉及发行版**: 4
- **已标明修复版本发行版**: openSUSE, Oracle Linux, Red Hat Enterprise Linux

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| openSUSE | 15.6 | nano | 7.2-bp156.2.6 | 7.2-bp156.3.3.1 |
| openSUSE | 15.6 | nano-lang | 7.2-bp156.2.6 | 7.2-bp156.3.3.1 |
| Oracle Linux | 8 | nano | 2.9.8-1.el8 | 2.9.8-3.el8_10 |
| Oracle Linux | 9 | nano | 5.6.1-5.el9 | 5.6.1-6.el9 |
| Red Hat Enterprise Linux | 9.8 | nano | 5.6.1-5.el9 | 5.6.1-6.el9 |
| Ubuntu | focal | nano | 4.8-1ubuntu1 | — |
| Ubuntu | jammy | nano | 6.2-1 | — |
| Ubuntu | noble | nano | 7.2-2build1 | — |
