cve.bz

CVE-2023-40303 gnu inetutils: Unchecked Return Value

7.8 highExploit referenceEPSS 0.4%Fix available

High (7.8) in gnu inetutils. EPSS 0.4% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 36th percentile. Scored 2026-11-23. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-252 Unchecked Return Value
OWASP Top 10
A10:2025 Mishandling of Exceptional Conditions
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-40303 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-40303?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-40303?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-40303 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
gnu:inetutilsthrough 2.4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10inetutils2:1.9.4-7+deb10u3DLA-3611-1
Debian12inetutils2:2.4-2+deb12u1DEBIAN-CVE-2023-40303
Debian13, 14inetutils2:2.4-3DEBIAN-CVE-2023-40303
Ubuntu20.04:LTSinetutils2:1.9.4-11ubuntu0.2UBUNTU-CVE-2023-40303 USN-6304-1
Ubuntu22.04:LTSinetutils2:2.2-2ubuntu0.1UBUNTU-CVE-2023-40303 USN-6304-1
Ubuntu24.04:LTSinetutils2:2.4-3ubuntu1UBUNTU-CVE-2023-40303
UbuntuPro:14.04:LTSinetutils2:1.9.2-1ubuntu0.1~esm2UBUNTU-CVE-2023-40303 USN-7781-1
UbuntuPro:16.04:LTSinetutils2:1.9.4-1ubuntu0.1~esm3UBUNTU-CVE-2023-40303 USN-7781-1
UbuntuPro:18.04:LTSinetutils2:1.9.4-3ubuntu0.1+esm2UBUNTU-CVE-2023-40303 USN-7781-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

References

Check your stackJSON