Vulnerability · Published Jun 16, 2025 · Assigned by VulDB
CVE-2025-6140spdlog pattern_formatter-inl.h scoped_padder resource consumption
Low 3.3
In plain English
A low-severity uncontrolled resource consumption in spdlog. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 16% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | spdlog | no fix listed | DEBIAN-CVE-2025-6140 |
| Debian:13 | spdlog | 1:1.15.2+ds-1 | DEBIAN-CVE-2025-6140 |
| Debian:14 | spdlog | 1:1.15.2+ds-1 | DEBIAN-CVE-2025-6140 |
| Ubuntu:22.04:LTS | spdlog | no fix listed | UBUNTU-CVE-2025-6140 |
| Ubuntu:24.04:LTS | spdlog | no fix listed | UBUNTU-CVE-2025-6140 |
Affected products (as reported)
Weakness: CWE-400, CWE-404 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L/E:P/RL:O/RC:C
References
- VDB-312609 | spdlog pattern_formatter-inl.h scoped_padder resource consumption vdb-entry, technical-description
- VDB-312609 | CTI Indicators (IOB, IOC, IOA) signature, permissions-required
- Submit #592999 | spdlog spdlog 1.15.1 (commit 3335c38) Uncontrolled Memory Allocation third-party-advisory
- https://github.com/gabime/spdlog/issues/3360 exploit, issue-tracking
- https://github.com/gabime/spdlog/issues/3360#issuecomment-2729579422 issue-tracking
- https://github.com/gabime/spdlog/commit/10320184df1eb4638e253a34b1eb44ce78954094 patch
- https://github.com/gabime/spdlog/releases/tag/v1.15.2 patch