# CVE-2024-52531: Memory corruption in libsoup

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

- **Severity:** Medium 6.5 (`CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:L`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 11 Nov 2024
- **Updated:** 3 Nov 2025
- **Also known as:** ALSA-2025:0791, ALSA-2025:0838, AZL-53063, AZL-53076, CLSA-2025-1744924875, CLSA-2025-1744926275, CLSA-2025-1745955704, DEBIAN-CVE-2024-52531, GHSA-5mc3-gwcr-mgc3, JLSEC-2026-1278, OESA-2024-2601, RHSA-2025:0791, RHSA-2025:0838, RHSA-2025:0847, RHSA-2025:0848, RHSA-2025:0882, RHSA-2025:0889, RHSA-2025:0903, RHSA-2025:0949, RHSA-2025:1047, RHSA-2025:1075, RLSA-2025:0791, RLSA-2025:0838, UBUNTU-CVE-2024-52531

## 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 (Out-of-bounds Write)

## Which versions are affected by CVE-2024-52531?

It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `libsoup` | AlmaLinux:8 | All versions | 2.62.3-7.el8_10 |
| `libsoup-devel` | AlmaLinux:8 | All versions | 2.62.3-7.el8_10 |
| `libsoup` | AlmaLinux:9 | All versions | 2.72.0-8.el9_5.3 |
| `libsoup-devel` | AlmaLinux:9 | All versions | 2.72.0-8.el9_5.3 |
| `libsoup-debuginfo` | Red Hat:enterprise_linux:8::appstream | All versions | 0:2.62.3-7.el8_10 |
| `libsoup-debugsource` | Red Hat:enterprise_linux:8::appstream | All versions | 0:2.62.3-7.el8_10 |
| `libsoup-devel` | Red Hat:enterprise_linux:8::appstream | All versions | 0:2.62.3-7.el8_10 |
| `libsoup` | Red Hat:enterprise_linux:8::baseos | All versions | 0:2.62.3-7.el8_10 |
| `libsoup-debuginfo` | Red Hat:enterprise_linux:8::baseos | All versions | 0:2.62.3-7.el8_10 |
| `libsoup-debugsource` | Red Hat:enterprise_linux:8::baseos | All versions | 0:2.62.3-7.el8_10 |
| `libsoup` | Red Hat:enterprise_linux:9::appstream | All versions | 0:2.72.0-8.el9_5.3 |
| `libsoup-debuginfo` | Red Hat:enterprise_linux:9::appstream | All versions | 0:2.72.0-8.el9_5.3 |
| `libsoup-debugsource` | Red Hat:enterprise_linux:9::appstream | All versions | 0:2.72.0-8.el9_5.3 |
| `libsoup-devel` | Red Hat:enterprise_linux:9::appstream | All versions | 0:2.72.0-8.el9_5.3 |
| `libsoup` | Red Hat:rhel_aus:8.2::baseos | All versions | 0:2.62.3-1.el8_2.2 |
| `libsoup-debuginfo` | Red Hat:rhel_aus:8.4::appstream | All versions | 0:2.62.3-2.el8_4.2 |
| `libsoup-debugsource` | Red Hat:rhel_aus:8.4::appstream | All versions | 0:2.62.3-2.el8_4.2 |
| `libsoup-devel` | Red Hat:rhel_aus:8.4::appstream | All versions | 0:2.62.3-2.el8_4.2 |
| `libsoup` | Red Hat:rhel_aus:8.4::baseos | All versions | 0:2.62.3-2.el8_4.2 |
| `libsoup-debuginfo` | Red Hat:rhel_aus:8.4::baseos | All versions | 0:2.62.3-2.el8_4.2 |
| `libsoup-debugsource` | Red Hat:rhel_aus:8.4::baseos | All versions | 0:2.62.3-2.el8_4.2 |
| `libsoup-debuginfo` | Red Hat:rhel_aus:8.6::appstream | All versions | 0:2.62.3-2.el8_6.2 |
| `libsoup-debugsource` | Red Hat:rhel_aus:8.6::appstream | All versions | 0:2.62.3-2.el8_6.2 |
| `libsoup-devel` | Red Hat:rhel_aus:8.6::appstream | All versions | 0:2.62.3-2.el8_6.2 |
| `libsoup` | Red Hat:rhel_aus:8.6::baseos | All versions | 0:2.62.3-2.el8_6.2 |
| `libsoup-debuginfo` | Red Hat:rhel_aus:8.6::baseos | All versions | 0:2.62.3-2.el8_6.2 |
| `libsoup-debugsource` | Red Hat:rhel_aus:8.6::baseos | All versions | 0:2.62.3-2.el8_6.2 |
| `libsoup-debuginfo` | Red Hat:rhel_e4s:8.4::appstream | All versions | 0:2.62.3-2.el8_4.2 |
| `libsoup-debugsource` | Red Hat:rhel_e4s:8.4::appstream | All versions | 0:2.62.3-2.el8_4.2 |
| `libsoup-devel` | Red Hat:rhel_e4s:8.4::appstream | All versions | 0:2.62.3-2.el8_4.2 |
| `libsoup` | Red Hat:rhel_e4s:8.4::baseos | All versions | 0:2.62.3-2.el8_4.2 |
| `libsoup-debuginfo` | Red Hat:rhel_e4s:8.4::baseos | All versions | 0:2.62.3-2.el8_4.2 |
| `libsoup-debugsource` | Red Hat:rhel_e4s:8.4::baseos | All versions | 0:2.62.3-2.el8_4.2 |
| `libsoup-debuginfo` | Red Hat:rhel_e4s:8.6::appstream | All versions | 0:2.62.3-2.el8_6.2 |
| `libsoup-debugsource` | Red Hat:rhel_e4s:8.6::appstream | All versions | 0:2.62.3-2.el8_6.2 |
| `libsoup-devel` | Red Hat:rhel_e4s:8.6::appstream | All versions | 0:2.62.3-2.el8_6.2 |
| `libsoup` | Red Hat:rhel_e4s:8.6::baseos | All versions | 0:2.62.3-2.el8_6.2 |
| `libsoup-debuginfo` | Red Hat:rhel_e4s:8.6::baseos | All versions | 0:2.62.3-2.el8_6.2 |
| `libsoup-debugsource` | Red Hat:rhel_e4s:8.6::baseos | All versions | 0:2.62.3-2.el8_6.2 |
| `libsoup` | Red Hat:rhel_e4s:9.0::appstream | All versions | 0:2.72.0-8.el9_0.3 |

Products: Gnome Libsoup.

## How do I fix CVE-2024-52531?

Upgrade to a fixed version.

## Is CVE-2024-52531 being exploited?

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

## Other vulnerabilities in GNOME libsoup

- [CVE-2026-102556](https://insights.sbomify.com/CVE-2026-102556/): Libsoup: libsoup: heap buffer overflow from websocket pong signal type confusion (high 8.6)
- [CVE-2026-102557](https://insights.sbomify.com/CVE-2026-102557/): Libsoup: libsoup: heap buffer overflow during websocket message reassembly (high 8.6)
- [CVE-2026-102558](https://insights.sbomify.com/CVE-2026-102558/): Libsoup: libsoup: heap buffer overflow during websocket receive-buffer growth (high 8.6)
- [CVE-2026-102559](https://insights.sbomify.com/CVE-2026-102559/): Libsoup: libsoup: heap buffer overflow during websocket client-frame masking (high 8.6)
- [CVE-2026-102560](https://insights.sbomify.com/CVE-2026-102560/): Libsoup: libsoup: heap buffer overflow during outgoing permessage-deflate buffer growth (high 8.6)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2024-52531 and fix it if it is affected.

What it is: 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.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-52531 exists.

Affected product: GNOME libsoup. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2024-52531/ (Markdown: https://insights.sbomify.com/CVE-2024-52531/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2024-52531
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2024-52531
- OSV: https://osv.dev/vulnerability/CVE-2024-52531

---
From sbomify Insights: https://insights.sbomify.com/CVE-2024-52531/
Summaries are generated and may contain mistakes; the official description above is the record.
