CVE-2023-4813
NixOS vulnerability analysis and mitigation

Overview

A flaw was found in glibc (CVE-2023-4813) where in an uncommon situation, the gaih_inet function may use memory that has been freed, resulting in an application crash. This vulnerability was discovered in September 2023 and affects glibc versions prior to 2.36. The issue is only exploitable when the getaddrinfo function is called and the hosts database in /etc/nsswitch.conf is configured with SUCCESS=continue or SUCCESS=merge (NVD, Red Hat).

Technical details

The vulnerability occurs in the gaih_inet function when processing getaddrinfo calls. The issue manifests when the hosts database in /etc/nsswitch.conf has specific configuration settings (SUCCESS=continue or SUCCESS=merge). The CVSS v3.1 base score is 5.9 (Medium) with the vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H (Red Hat).

Impact

When successfully exploited, this vulnerability can result in an application crash due to the use-after-free condition. The impact is limited to denial of service (DoS) with no confidentiality or integrity impacts reported (NetApp).

Mitigation and workarounds

The immediate workaround is to remove the 'SUCCESS=continue' or 'SUCCESS=merge' options from the hosts line in nsswitch.conf, as these options are not officially supported on the hosts database. For a permanent fix, users should upgrade to glibc version 2.36 or later which contains the security patch (Bugzilla).

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