Out-of-Bounds Read Vulnerability in libXpm - CVE-2023-43788
Summary
ALPINE-CVE-2023-43788: A vulnerability was found in libXpm due to a boundary condition within the XpmCreateXpmImageFromBuffer() function. Affects libxpm versions < 3.5.17-r0. Fixed in 3.5.17-r0. 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
libXpm is a library used for handling X PixMap (XPM) image files, which are commonly utilized in X Window System applications. The library facilitates the creation, manipulation, and display of XPM images, making it a vital component for graphical applications in Unix-like operating systems. However, it has been found to contain a vulnerability that could be exploited by local attackers.
Vulnerability Detail
A vulnerability was discovered in libXpm due to a boundary condition within the XpmCreateXpmImageFromBuffer() function. This flaw allows a local attacker to trigger an out-of-bounds read error, potentially leading to unauthorized access to sensitive information stored in memory. The vulnerability arises from improper handling of input data, which can result in memory leaks or exposure of confidential data. The CVSS score for this vulnerability is 5.5, indicating a moderate level of risk.
How To Fix
Minimum fixed version
3.5.17-r0
This is the first release that contains the fix.
sudo apk add --upgrade libxpm
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
As a temporary workaround, users can restrict access to the affected library or run applications that depend on libXpm in a controlled environment to limit exposure. However, the best course of action is to apply the patch as soon as possible.
Conclusion
The discovery of CVE-2023-43788 in libXpm highlights the importance of maintaining up-to-date software libraries to protect against potential vulnerabilities. By following the recommended steps to update the package, users can safeguard their systems from possible exploitation.
See every vulnerability recorded for libxpm →
FAQ
CVE-2023-43788 is a vulnerability in the libXpm library that allows local attackers to exploit an out-of-bounds read error.
You can use the Vulert playground at Vulert Scanner to check if your application is impacted by this vulnerability without needing to sign up.
The primary risk is unauthorized access to sensitive information in memory, which could lead to data breaches or further exploitation.
Yes, the patched version of libXpm is 3.5.17-r0. Updating to this version will resolve the vulnerability.
If immediate updating is not possible, consider restricting access to the library or running affected applications in a secure environment until the update can be applied.
References
Related vulnerabilities
Recent vulnerabilities recorded for libxpm.