Vulnerability · Published Apr 14, 2023 · Assigned by mitre
CVE-2023-29383
Low 3.3
In plain English
A low-severity out-of-bounds read in the shadow package (Alpine). Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 37% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
In Shadow 4.13, it is possible to inject control characters into fields provided to the SUID program chfn (change finger). Although it is not possible to exploit this directly (e.g., adding a new user fails because \n is in the block list), it is possible to misrepresent the /etc/passwd file when viewed. Use of \r manipulations and Unicode characters to work around blocking of the : character make it possible to give the impression that a new user has been added. In other words, an adversary may be able to convince a system administrator to take the system offline (an indirect, social-engineered denial of service) by demonstrating that "cat /etc/passwd" shows a rogue user account.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | shadow | 4.13-r4 | ALPINE-CVE-2023-29383 |
| Alpine:v3.21 | shadow | 4.13-r4 | ALPINE-CVE-2023-29383 |
| Alpine:v3.22 | shadow | 4.13-r4 | ALPINE-CVE-2023-29383 |
| Alpine:v3.23 | shadow | 4.13-r4 | ALPINE-CVE-2023-29383 |
| Alpine:v3.24 | shadow | 4.13-r4 | ALPINE-CVE-2023-29383 |
| Debian:12 | shadow | 1:4.13+dfsg1-1+deb12u1 | DEBIAN-CVE-2023-29383 |
| Debian:13 | shadow | 1:4.13+dfsg1-2 | DEBIAN-CVE-2023-29383 |
| Debian:14 | shadow | 1:4.13+dfsg1-2 | DEBIAN-CVE-2023-29383 |
| Ubuntu:22.04:LTS | shadow | no fix listed | UBUNTU-CVE-2023-29383 |
Affected products (as reported)
Weakness: CWE-125
References
- https://github.com/shadow-maint/shadow/pull/687
- https://github.com/shadow-maint/shadow/commit/e5905c4b84d4fb90aefcd96ee618411ebfac663d
- https://www.trustwave.com/en-us/resources/security-resources/security-advisories/?fid=31797
- https://www.trustwave.com/en-us/resources/blogs/spiderlabs-blog/cve-2023-29383-abusing-linux-chfn-to-misrepresent-etc-passwd/
- https://lists.debian.org/debian-lts-announce/2025/04/msg00026.html
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html
- https://cert-portal.siemens.com/productcert/html/ssa-202008.html