Security Flaw in Kamailio Package: Vulnerability in Administrative Utility
Summary
DEBIAN-CVE-2015-1590: The kamcmd administrative utility and default configuration in kamailio before 4.3.0 use /tmp/kamailio_ctl. Affects kamailio versions < 4.2.0-2. Fixed in 4.2.0-2. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
Kamailio is an open-source SIP server that enables the handling of voice over IP (VoIP) communications. It is widely used for building scalable and robust telephony applications. The package provides various functionalities, including routing, registration, and user authentication. However, prior to version 4.3.0, Kamailio's administrative utility, kamcmd, and its default configuration were found to be vulnerable due to improper handling of temporary files.
Vulnerability Detail
The vulnerability identified as DEBIAN-CVE-2015-1590 arises from the kamcmd administrative utility and its default configuration using the /tmp/kamailio_ctl file. This can lead to potential security risks, such as unauthorized access or manipulation of the Kamailio server, as the temporary file may be exploited by malicious users. The vulnerability affects versions of Kamailio before 4.3.0 and can have serious implications for the integrity and security of VoIP communications.
How To Fix
Minimum fixed version
4.2.0-2
This is the first release that contains the fix.
sudo apt-get install --only-upgrade kamailio
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
As a temporary workaround, users can change the default configuration to use a different directory for the kamcmd utility, ensuring that the /tmp directory is not used for sensitive operations. This can be done by modifying the configuration files to point to a secure location for temporary files.
Conclusion
The Kamailio package has a critical vulnerability that can compromise the security of VoIP communications. It is crucial for users to update to the latest patched version to mitigate risks. Additionally, utilizing tools like Vulert can help in monitoring and managing open-source vulnerabilities effectively.
See every vulnerability recorded for kamailio →
FAQ
Kamailio is an open-source SIP server used for managing VoIP communications, providing functionalities such as call routing and user authentication.
This vulnerability involves the kamcmd utility using a temporary file in an insecure manner, which could allow unauthorized access to the Kamailio server.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
Upgrade to the patched version of Kamailio (4.2.0-2 or later) and consider changing the default configuration to enhance security.
Yes, Vulert provides a service that monitors and alerts in real-time for open-source vulnerabilities using just a manifest file like package-lock.json.
References
Related vulnerabilities
Recent vulnerabilities recorded for kamailio.
Follow Vulert in Google
Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.