CVE-2025-4948
Libsoup: integer underflow in soup_multipart_new_from_message() leading to denial of service in libsoup
What happened?
A flaw was found in the soup_multipart_new_from_message() 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.
Affected software and versions
| Software | Version information | Fixed version |
|---|---|---|
| libsoup | affected: 0 to ≤ 3.6.5 | See vendor advisory |
| libsoup3Red Hat | unaffected: 0:3.6.5-3.el10_0.6 to < * | See vendor advisory |
| libsoupRed Hat | unaffected: 0:2.62.2-9.el7_9 to < * | See vendor advisory |
| libsoupRed Hat | unaffected: 0:2.62.3-9.el8_10 to < * | See vendor advisory |
| libsoupRed Hat | unaffected: 0:2.62.3-9.el8_10 to < * | See vendor advisory |
| libsoupRed Hat | unaffected: 0:2.62.3-1.el8_2.5 to < * | See vendor advisory |
| libsoupRed Hat | unaffected: 0:2.62.3-2.el8_4.5 to < * | See vendor advisory |
| libsoupRed Hat | unaffected: 0:2.62.3-2.el8_6.5 to < * | See vendor advisory |
| libsoupRed Hat | unaffected: 0:2.62.3-2.el8_6.5 to < * | See vendor advisory |
| libsoupRed Hat | unaffected: 0:2.62.3-2.el8_6.5 to < * | See vendor advisory |
| libsoupRed Hat | unaffected: 0:2.62.3-3.el8_8.5 to < * | See vendor advisory |
| libsoupRed Hat | unaffected: 0:2.72.0-10.el9_6.2 to < * | See vendor advisory |
| libsoupRed Hat | unaffected: 0:2.72.0-8.el9_0.5 to < * | See vendor advisory |
| libsoupRed Hat | unaffected: 0:2.72.0-8.el9_2.5 to < * | See vendor advisory |
| libsoupRed Hat | unaffected: 0:2.72.0-8.el9_4.5 to < * | See vendor advisory |
| libsoupRed Hat | Default status: unknown | See vendor advisory |
Version information comes from the source record and can include unaffected products and exceptions. Distribution packages may contain backported fixes: an older upstream version alone does not prove a server is affected.
Is it being exploited?
This CVE was not listed in the CISA catalogue at our last retrieval. This does not establish that exploitation is absent.
How to respond
- Confirm the product, installed package version, and any configuration requirements in the vendor advisory.
- Follow the vendor’s remediation or workaround guidance in the references below. Structured fixed-version data is unavailable here; the publisher’s description may include a fix or workaround.
- Restart affected services if required, then verify the running version. Known exploitation may warrant investigation as well as patching.
Sources and remediation references
- https://www.cve.org/CVERecord?id=CVE-2025-4948
- https://access.redhat.com/errata/RHSA-2025:21657
- https://access.redhat.com/errata/RHSA-2025:8126
- https://access.redhat.com/errata/RHSA-2025:8128
- https://access.redhat.com/errata/RHSA-2025:8132
- https://access.redhat.com/errata/RHSA-2025:8139
- https://access.redhat.com/errata/RHSA-2025:8140
- https://access.redhat.com/errata/RHSA-2025:8252
- https://access.redhat.com/errata/RHSA-2025:8480
- https://access.redhat.com/errata/RHSA-2025:8481
- https://access.redhat.com/errata/RHSA-2025:8482
- https://access.redhat.com/errata/RHSA-2025:8663
- https://access.redhat.com/security/cve/CVE-2025-4948
- https://bugzilla.redhat.com/show_bug.cgi?id=2367183
- https://gitlab.gnome.org/GNOME/libsoup/-/issues/449
- https://gitlab.gnome.org/GNOME/libsoup/-/work_items/449