Vulnerability Details : CVE-2023-29383
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.
Vulnerability category: Denial of service
Products affected by CVE-2023-29383
- cpe:2.3:a:shadow_project:shadow:4.13:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2023-29383
0.05%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 12 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2023-29383
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
3.3
|
LOW | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N |
1.8
|
1.4
|
NIST |
CWE ids for CVE-2023-29383
-
The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component.Assigned by: nvd@nist.gov (Primary)
References for CVE-2023-29383
-
https://www.trustwave.com/en-us/resources/security-resources/security-advisories/?fid=31797
Exploit;Third Party Advisory
-
https://github.com/shadow-maint/shadow/pull/687
Control character check by tomspiderlabs · Pull Request #687 · shadow-maint/shadow · GitHubIssue Tracking
-
https://www.trustwave.com/en-us/resources/blogs/spiderlabs-blog/cve-2023-29383-abusing-linux-chfn-to-misrepresent-etc-passwd/
CVE-2023-29383: Abusing Linux chfn to Misrepresent etc passwd | TrustwaveExploit;Third Party Advisory
-
https://github.com/shadow-maint/shadow/commit/e5905c4b84d4fb90aefcd96ee618411ebfac663d
Added control character check · shadow-maint/shadow@e5905c4 · GitHubPatch
Jump to