Code injection in Shadow



Published: 2023-04-28
Risk Low
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2023-29383
CWE-ID CWE-74
Exploitation vector Local
Public exploit N/A
Vulnerable software
Subscribe
shadow
Universal components / Libraries / Libraries used by multiple products

Vendor Mark Florian

Security Bulletin

This security bulletin contains one low risk vulnerability.

1) Improper Neutralization of Special Elements in Output Used by a Downstream Component

EUVDB-ID: #VU75589

Risk: Low

CVSSv3.1: 2.9 [CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N/E:U/RL:O/RC:C]

CVE-ID: CVE-2023-29383

CWE-ID: CWE-74 - Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

Exploit availability: No

Description

The vulnerability allows a local user to inject arbitrary code.

The vulnerability exists due to an input validation error when processing fields provided to the SUID program chfn (change finger). A local user can inject and execute arbitrary code or misrepresent existing files.

Mitigation

Install updates from vendor's website.

Vulnerable software versions

shadow: 4.0.0 - 4.13

External links

http://github.com/shadow-maint/shadow/commit/e5905c4b84d4fb90aefcd96ee618411ebfac663d
http://www.trustwave.com/en-us/resources/security-resources/security-advisories/?fid=31797
http://github.com/shadow-maint/shadow/pull/687
http://www.trustwave.com/en-us/resources/blogs/spiderlabs-blog/cve-2023-29383-abusing-linux-chfn-to-misrepresent-etc-passwd/


Q & A

Can this vulnerability be exploited remotely?

No. This vulnerability can be exploited locally. The attacker should have authentication credentials and successfully authenticate on the system.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.



###SIDEBAR###