CVE-2022-28391
NixOS vulnerability analysis and mitigation

Overview

BusyBox through version 1.35.0 contains a vulnerability (CVE-2022-28391) that allows remote attackers to execute arbitrary code when netstat is used to print a DNS PTR record's value to a VT compatible terminal. The vulnerability was discovered and disclosed on April 3, 2022, affecting BusyBox installations, particularly when running on musl instead of glibc (NVD, Debian Tracker).

Technical details

The vulnerability exists in BusyBox's netstat functionality when handling DNS PTR records. When netstat is used to display network connections in a VT-compatible terminal, maliciously crafted PTR records containing escape sequences can be executed. The vulnerability has been assigned a CVSS v3.1 base score of 8.8 (HIGH) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H, indicating a high-severity issue requiring user interaction (NVD).

Impact

The exploitation of this vulnerability can lead to arbitrary code execution on affected systems. Additionally, attackers could manipulate terminal colors through escape sequence injection. The vulnerability specifically affects systems where netstat is used to display network connection information in VT-compatible terminals (Alpine Issue).

Mitigation and workarounds

Patches have been released to address this vulnerability, including fixes for ensuring only printable characters in sockaddr2str and sanitizing printed strings in nslookup. Various Linux distributions have released updated packages to address this issue (Alpine Patches).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management