CVE-2022-45474 in serverinfo

Summary

by MITRE • 11/18/2022

drachtio-server 0.8.18 has a request-handler.cpp event_cb use-after-free for any request.

Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Analysis

by VulDB Data Team • 04/30/2025

The vulnerability identified as CVE-2022-45474 affects drachtio-server version 0.8.18 and represents a critical use-after-free condition within the request-handler.cpp file. This flaw manifests in the event_cb function where memory that has been freed is subsequently accessed, creating a potential avenue for arbitrary code execution or system instability. The vulnerability stems from improper memory management practices within the server's request handling mechanism, specifically when processing events associated with SIP requests.

The technical implementation of this vulnerability occurs within the event callback handler where the server maintains references to memory objects that are prematurely deallocated. When a SIP request is processed, the event_cb function may attempt to access memory that has already been freed, leading to undefined behavior. This use-after-free condition can be exploited by malicious actors who craft specific SIP requests designed to trigger the vulnerable code path. The flaw exists in the server's event handling architecture where object lifecycle management fails to properly account for all potential access patterns, particularly in concurrent request processing scenarios.

From an operational impact perspective, this vulnerability poses significant risks to systems utilizing drachtio-server for SIP signaling. An attacker could potentially execute arbitrary code on the affected server, leading to complete system compromise, data exfiltration, or service disruption. The vulnerability affects any environment where the server processes incoming SIP requests, making it particularly dangerous in telecommunications infrastructure where reliability and security are paramount. The use-after-free condition could also result in denial of service attacks that crash the server process, disrupting legitimate communications.

Mitigation strategies for this vulnerability should prioritize immediate patching of the drachtio-server software to version 0.8.19 or later, which contains the necessary memory management fixes. Organizations should implement network segmentation to limit access to the affected server and monitor for suspicious SIP traffic patterns that might indicate exploitation attempts. Additionally, deploying intrusion detection systems capable of identifying crafted SIP requests designed to trigger use-after-free conditions can provide early warning of potential attacks. The vulnerability aligns with CWE-416, which specifically addresses use-after-free conditions, and represents a critical threat under the ATT&CK framework category of privilege escalation through memory corruption techniques. Security teams should also consider implementing automated memory debugging tools and regular security assessments to identify similar memory management issues in other components of their telecommunications infrastructure.

Reservation

11/18/2022

Disclosure

11/18/2022

Moderation

accepted

CPE

ready

EPSS

0.00939

KEV

no

Activities

very low

Sources

Want to stay up to date on a daily basis?

Enable the mail alert feature now!