CVE-2025-4945Libsoup: integer overflow in cookie expiration date handling in libsoup
A flaw was found in the cookie parsing logic of the libsoup HTTP library, used in GNOME applications and other software. The vulnerability arises when processing the expiration date of cookies, where a specially crafted value can trigger an integer overflow. This may result in undefined behavior, allowing an attacker to bypass cookie expiration logic, causing persistent or unintended cookie behavior. The issue stems from improper validation of large integer inputs during date arithmetic operations within the cookie parsing routines.
What to do
Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | libsoup2.4 | Fixed | 2.74.3-10.1ubuntu4 | UBUNTU-CVE-2025-4945 |
| Ubuntu 25.10 | libsoup2.4 | Fixed | 2.74.3-10.1ubuntu4 | UBUNTU-CVE-2025-4945 |
| Ubuntu 25.10 | libsoup3 | Fixed | 3.6.5-3 | UBUNTU-CVE-2025-4945 |
| Ubuntu 24.04 | libsoup2.4 | Fixed | 2.74.3-6ubuntu1.6 | UBUNTU-CVE-2025-4945 |
| Ubuntu 24.04 | libsoup3 | Fixed | 3.4.4-5ubuntu0.5 | UBUNTU-CVE-2025-4945 |
| Ubuntu 22.04 | libsoup2.4 | Fixed | 2.74.2-3ubuntu0.6 | UBUNTU-CVE-2025-4945 |
| Ubuntu 22.04 | libsoup3 | Fix pending | 3.0.7-0ubuntu1+esm5 (Ubuntu Pro) | UBUNTU-CVE-2025-4945 |
| Ubuntu 20.04 | libsoup2.4 | Fix pending | 2.70.0-1ubuntu0.5+esm1 (Ubuntu Pro) | UBUNTU-CVE-2025-4945 |
| Ubuntu 18.04 | libsoup2.4 | Fix pending | 2.62.1-1ubuntu0.4+esm6 (Ubuntu Pro) | UBUNTU-CVE-2025-4945 |
| Ubuntu 16.04 | libsoup2.4 | Fix pending | 2.52.2-1ubuntu0.3+esm5 (Ubuntu Pro) | UBUNTU-CVE-2025-4945 |
| Debian 13 | libsoup2.4 | Fix pending | DEBIAN-CVE-2025-4945 | |
| Debian 13 | libsoup3 | Fixed | 3.6.5-2 | DEBIAN-CVE-2025-4945 |
| Debian 12 | libsoup2.4 | Fix pending | DEBIAN-CVE-2025-4945 | |
| Debian 12 | libsoup3 | Fix pending | DEBIAN-CVE-2025-4945 | |
| Red Hat Enterprise Linux 10 | libsoup3 | Fixed | 0:3.6.5-3.el10_0.9 | RHSA-2025:21032 |
| Red Hat Enterprise Linux 10 | libsoup3-devel | Fixed | 0:3.6.5-3.el10_0.9 | RHSA-2025:21032 |
| Red Hat Enterprise Linux 10 | libsoup3-doc | Fixed | 0:3.6.5-3.el10_0.9 | RHSA-2025:21032 |
| Red Hat Enterprise Linux 9 | libsoup | Fixed | 0:2.72.0-10.el9_6.3 | RHSA-2025:20959 |
| Red Hat Enterprise Linux 9 | libsoup-devel | Fixed | 0:2.72.0-12.el9_7.1 | RHSA-2025:19713 |
| Red Hat Enterprise Linux 8 | libsoup | Fixed | 0:2.62.3-10.el8_10 | RHSA-2025:19714 |
| Red Hat Enterprise Linux 8 | libsoup-devel | Fixed | 0:2.62.3-10.el8_10 | RHSA-2025:19714 |
| Red Hat Enterprise Linux 6 | libsoup | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | libsoup-devel | Will not fix Out of support scope | ||
| AlmaLinux 10 | libsoup3 | Fixed | 3.6.5-3.el10_1.6 | ALSA-2025:21032 |
| AlmaLinux 10 | libsoup3-devel | Fixed | 3.6.5-3.el10_1.6 | ALSA-2025:21032 |
| AlmaLinux 10 | libsoup3-doc | Fixed | 3.6.5-3.el10_1.6 | ALSA-2025:21032 |
| AlmaLinux 9 | libsoup | Fixed | 2.72.0-12.el9_7.1 | ALSA-2025:20959 |
| AlmaLinux 9 | libsoup-devel | Fixed | 2.72.0-12.el9_7.1 | ALSA-2025:20959 |
| AlmaLinux 8 | libsoup | Fixed | 2.62.3-10.el8_10 | ALSA-2025:19714 |
| AlmaLinux 8 | libsoup-devel | Fixed | 2.62.3-10.el8_10 | ALSA-2025:19714 |
| Rocky Linux 10 | libsoup3 | Fixed | 0:3.6.5-3.el10_1.6 | RLSA-2025:19720 |
| Rocky Linux 9 | libsoup | Fixed | 0:2.72.0-12.el9_7.1 | RLSA-2025:19713 |
| Rocky Linux 8 | libsoup | Fixed | 0:2.62.3-10.el8_10 | RLSA-2025:19714 |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- libsoup: affected: up to 3.6.5
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 7 Extended Lifecycle Support
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 8.2 Advanced Update Support
- Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
- Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On
- Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
- Red Hat Enterprise Linux 8.6 Telecommunications Update Service
- Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions
- Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions
- Red Hat Enterprise Linux 9
Workaround: To mitigate the risk associated with this libsoup vulnerability, Red Hat recommends avoiding interactions between client applications using the libsoup library and untrusted or compromised HTTP servers until a patched version of libsoup is deployed. Users and administrators should monitor their systems for suspicious HTTP activity and apply vendor updates as soon as a fix becomes available to prevent manipulation of cookie expiration logic that could lead to unexpected behavior or policy circumvention.
Vendor advisories:
- https://access.redhat.com/errata/RHSA-2025:19713 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2025:19714 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2025:19720 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2025:20959 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2025:21032 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2025:21655 (vendor-advisory)
References
- https://access.redhat.com/errata/RHSA-2025:19713
- https://access.redhat.com/errata/RHSA-2025:19714
- https://access.redhat.com/errata/RHSA-2025:19720
- https://access.redhat.com/errata/RHSA-2025:20959
- https://access.redhat.com/errata/RHSA-2025:21032
- https://access.redhat.com/errata/RHSA-2025:21655
- https://access.redhat.com/errata/RHSA-2025:21656
- https://access.redhat.com/errata/RHSA-2025:21657
- https://access.redhat.com/errata/RHSA-2025:21664
- https://access.redhat.com/errata/RHSA-2025:21665
- https://access.redhat.com/errata/RHSA-2025:21666
- https://access.redhat.com/errata/RHSA-2025:21772
- https://access.redhat.com/errata/RHSA-2025:22013
- https://access.redhat.com/security/cve/CVE-2025-4945
- https://bugzilla.redhat.com/show_bug.cgi?id=2367175
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.