CVE-2025-4948: Libsoup: integer underflow in soup_multipart_new_from_message() leading to denial of service in libsoup
A flaw was found in the soupmultipartnewfrommessage() function of the libsoup HTTP library, which is commonly used by GNOME and other applications to handle web communications. The issue occurs when the library processes specially crafted multipart messages. Due to improper validation, an internal calculation can go wrong, leading to an integer underflow. This can cause the program to access invalid memory and crash. As a result, any application or server using libsoup could be forced to exit unexpectedly, creating a denial-of-service (DoS) risk.
Other sources
Integer Underflow (Wraparound) vulnerability in the multipart message parser of the libsoup HTTP library. The flaw is caused by an unsafe arithmetic operation in the soupmultipartnewfrommessage() function. When a specially crafted multipart message is processed, the length calculation (end - 2 - split) can underflow, leading to invalid memory access and application crash. This can be exploited remotely without any authentication or user interaction, allowing attackers to disrupt the availability of applications or services using libsoup.
— Red Hat
Libsoup: integer underflow in soupmultipartnewfrommessage() leading to denial of service in libsoup
— Microsoft
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2025-4948?
CVE-2025-4948 has been classified as a medium severity vulnerability due to its impact on processing multipart messages in the libsoup HTTP library.
How do I fix CVE-2025-4948?
To address CVE-2025-4948, update the libsoup library to the latest version provided by your operating system vendor.
What applications are affected by CVE-2025-4948?
CVE-2025-4948 affects applications that utilize the libsoup HTTP library, commonly used in GNOME environments.
What type of vulnerability is CVE-2025-4948?
CVE-2025-4948 is a vulnerability related to improper message processing in the libsoup library.
Can CVE-2025-4948 be exploited remotely?
Yes, CVE-2025-4948 can potentially be exploited remotely if an attacker sends specially crafted multipart messages to the affected application.