CVE-2024-52531 Memory corruption in libsoup

Medium 6.5 Published Updated

A buffer overflow in GNOME libsoup allows remote attackers to execute arbitrary code or cause denial of service via crafted HTTP headers.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-52531?

CVE-2024-52531 is a medium-severity memory corruption vulnerability in GNOME libsoup, published on 11 Nov 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

GNOME libsoup before 3.6.1 allows a buffer overflow in applications that perform conversion to UTF-8 in soup_header_parse_param_list_strict. There is a plausible way to reach this remotely via soup_message_headers_get_content_type (e.g., an application may want to retrieve the content type of a request or response).

Weakness: CWE-787

Which versions are affected by CVE-2024-52531?

It affects 1 product.

Linux distribution packages (40)
libsoup AlmaLinux:8All versions2.62.3-7.el8_10
libsoup-devel AlmaLinux:8All versions2.62.3-7.el8_10
libsoup AlmaLinux:9All versions2.72.0-8.el9_5.3
libsoup-devel AlmaLinux:9All versions2.72.0-8.el9_5.3
libsoup-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions0:2.62.3-7.el8_10
libsoup-debugsource Red Hat:enterprise_linux:8::appstreamAll versions0:2.62.3-7.el8_10
libsoup-devel Red Hat:enterprise_linux:8::appstreamAll versions0:2.62.3-7.el8_10
libsoup Red Hat:enterprise_linux:8::baseosAll versions0:2.62.3-7.el8_10
libsoup-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:2.62.3-7.el8_10
libsoup-debugsource Red Hat:enterprise_linux:8::baseosAll versions0:2.62.3-7.el8_10
libsoup Red Hat:enterprise_linux:9::appstreamAll versions0:2.72.0-8.el9_5.3
libsoup-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions0:2.72.0-8.el9_5.3
libsoup-debugsource Red Hat:enterprise_linux:9::appstreamAll versions0:2.72.0-8.el9_5.3
libsoup-devel Red Hat:enterprise_linux:9::appstreamAll versions0:2.72.0-8.el9_5.3
libsoup Red Hat:rhel_aus:8.2::baseosAll versions0:2.62.3-1.el8_2.2
libsoup-debuginfo Red Hat:rhel_aus:8.4::appstreamAll versions0:2.62.3-2.el8_4.2
libsoup-debugsource Red Hat:rhel_aus:8.4::appstreamAll versions0:2.62.3-2.el8_4.2
libsoup-devel Red Hat:rhel_aus:8.4::appstreamAll versions0:2.62.3-2.el8_4.2
libsoup Red Hat:rhel_aus:8.4::baseosAll versions0:2.62.3-2.el8_4.2
libsoup-debuginfo Red Hat:rhel_aus:8.4::baseosAll versions0:2.62.3-2.el8_4.2
libsoup-debugsource Red Hat:rhel_aus:8.4::baseosAll versions0:2.62.3-2.el8_4.2
libsoup-debuginfo Red Hat:rhel_aus:8.6::appstreamAll versions0:2.62.3-2.el8_6.2
libsoup-debugsource Red Hat:rhel_aus:8.6::appstreamAll versions0:2.62.3-2.el8_6.2
libsoup-devel Red Hat:rhel_aus:8.6::appstreamAll versions0:2.62.3-2.el8_6.2
libsoup Red Hat:rhel_aus:8.6::baseosAll versions0:2.62.3-2.el8_6.2
libsoup-debuginfo Red Hat:rhel_aus:8.6::baseosAll versions0:2.62.3-2.el8_6.2
libsoup-debugsource Red Hat:rhel_aus:8.6::baseosAll versions0:2.62.3-2.el8_6.2
libsoup-debuginfo Red Hat:rhel_e4s:8.4::appstreamAll versions0:2.62.3-2.el8_4.2
libsoup-debugsource Red Hat:rhel_e4s:8.4::appstreamAll versions0:2.62.3-2.el8_4.2
libsoup-devel Red Hat:rhel_e4s:8.4::appstreamAll versions0:2.62.3-2.el8_4.2
libsoup Red Hat:rhel_e4s:8.4::baseosAll versions0:2.62.3-2.el8_4.2
libsoup-debuginfo Red Hat:rhel_e4s:8.4::baseosAll versions0:2.62.3-2.el8_4.2
libsoup-debugsource Red Hat:rhel_e4s:8.4::baseosAll versions0:2.62.3-2.el8_4.2
libsoup-debuginfo Red Hat:rhel_e4s:8.6::appstreamAll versions0:2.62.3-2.el8_6.2
libsoup-debugsource Red Hat:rhel_e4s:8.6::appstreamAll versions0:2.62.3-2.el8_6.2
libsoup-devel Red Hat:rhel_e4s:8.6::appstreamAll versions0:2.62.3-2.el8_6.2
libsoup Red Hat:rhel_e4s:8.6::baseosAll versions0:2.62.3-2.el8_6.2
libsoup-debuginfo Red Hat:rhel_e4s:8.6::baseosAll versions0:2.62.3-2.el8_6.2
libsoup-debugsource Red Hat:rhel_e4s:8.6::baseosAll versions0:2.62.3-2.el8_6.2
libsoup Red Hat:rhel_e4s:9.0::appstreamAll versions0:2.72.0-8.el9_0.3

Products include Gnome Libsoup.

How do I fix CVE-2024-52531?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2024-52531 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-52531 exists.

Sources

Also known as ALSA-2025:0791, ALSA-2025:0838, AZL-53063, AZL-53076, CLSA-2025-1744924875, CLSA-2025-1744926275 and 18 more.

Is CVE-2024-52531 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free