CVE-2025-6140spdlog pattern_formatter-inl.h scoped_padder resource consumption
A vulnerability, which was classified as problematic, was found in spdlog up to 1.15.1. This affects the function scoped_padder in the library include/spdlog/pattern_formatter-inl.h. The manipulation leads to resource consumption. It is possible to launch the attack on the local host. The exploit has been disclosed to the public and may be used. Upgrading to version 1.15.2 is able to address this issue. The identifier of the patch is 10320184df1eb4638e253a34b1eb44ce78954094. It is recommended to upgrade the affected component.
What to do
Fixed builds are available from Debian: 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 | spdlog | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | spdlog | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | spdlog | Under investigation | UBUNTU-CVE-2025-6140 | |
| Ubuntu 22.04 | spdlog | Under investigation | UBUNTU-CVE-2025-6140 | |
| Ubuntu 20.04 | spdlog | Fix pending | UBUNTU-CVE-2025-6140 | |
| Ubuntu 18.04 | spdlog | Fix pending | UBUNTU-CVE-2025-6140 | |
| Ubuntu 16.04 | spdlog | Fix pending | UBUNTU-CVE-2025-6140 | |
| Debian 14 | spdlog | Fixed | 1:1.15.2+ds-1 | DEBIAN-CVE-2025-6140 |
| Debian 13 | spdlog | Fixed | 1:1.15.2+ds-1 | DEBIAN-CVE-2025-6140 |
| Debian 12 | spdlog | Fix pending | DEBIAN-CVE-2025-6140 |
What the vendor says
As published in the CVE record by VulDB, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- spdlog: affected: 1.15.0, 1.15.1, 1.15.2 not affected
Vendor advisories:
- https://github.com/gabime/spdlog/commit/10320184df1eb4638e253a34b1eb44ce78954094 (patch)
- https://github.com/gabime/spdlog/releases/tag/v1.15.2 (patch)
References
- https://vuldb.com/?id.312609
- https://vuldb.com/?ctiid.312609
- https://vuldb.com/?submit.592999
- https://github.com/gabime/spdlog/issues/3360
- https://github.com/gabime/spdlog/issues/3360#issuecomment-2729579422
- https://github.com/gabime/spdlog/commit/10320184df1eb4638e253a34b1eb44ce78954094
- https://github.com/gabime/spdlog/releases/tag/v1.15.2
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.