# CVE-2023-40303: GNU inetutils before 2.5 may allow privilege escalation because of unchecked return values of setid() family functions in ftpd, rcp, rlogin…

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- 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.41%, higher than 37% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-08-14T00:00:00.000Z
- Modified: 2026-06-17T06:17:10.047Z
- Weaknesses: CWE-252
- Assigned by: mitre

## Description

GNU inetutils before 2.5 may allow privilege escalation because of unchecked return values of set*id() family functions in ftpd, rcp, rlogin, rsh, rshd, and uucpd. This is, for example, relevant if the setuid system call fails when a process is trying to drop privileges before letting an ordinary user control the activities of the process.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- gnu inetutils: up to 2.4

## References

- <https://lists.gnu.org/archive/html/bug-inetutils/2023-07/msg00000.html> (exploit, mailing-list, patch, vendor-advisory)
- <https://git.savannah.gnu.org/cgit/inetutils.git/commit/?id=e4e65c03f4c11292a3e40ef72ca3f194c8bffdd6> (patch)
- <https://ftp.gnu.org/gnu/inetutils/> (product)
- <https://lists.debian.org/debian-lts-announce/2023/10/msg00013.html> (mailing-list)
- <http://www.openwall.com/lists/oss-security/2023/12/30/4> (mailing-list)

## Sources

- CVE List: [CVE-2023-40303](https://www.cve.org/CVERecord?id=CVE-2023-40303), CVE Terms of Use, modified 2024-08-02
- NVD: [CVE-2023-40303](https://nvd.nist.gov/vuln/detail/CVE-2023-40303), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-40303 · Whole record: https://cve.day/CVE-2023-40303.json · Rebuilt by cve.day 2026-11-25T22:58:27.098Z
