# CVE-2025-6140: spdlog pattern_formatter-inl.h scoped_padder resource consumption

- Severity: Medium 4.8 (CVSS:4.0, scored by VulDB) `CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 18% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2025-06-16T21:31:06.961Z
- Modified: 2026-06-17T10:01:14.897Z
- Weaknesses: CWE-400, CWE-404
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulDB

## 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.

(As written by CVE List.)

## Affected

- spdlog: 1.15.0; 1.15.1 (not affected: 1.15.2)
- gabime spdlog: before 1.15.2

## Every score

- VulDB: CVSS:4.0 4.8 Medium `CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P`
- VulDB: CVSS:3.1 3.3 Low `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`
- VulDB: CVSS:3.0 3.3 Low `CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L/E:P/RL:O/RC:C`
- VulDB: CVSS:2.0 1.7 Low `AV:L/AC:L/Au:S/C:N/I:N/A:P/E:POC/RL:OF/RC:C`

## References

- <https://github.com/gabime/spdlog/issues/3360> (exploit, issue-tracking)
- <https://github.com/gabime/spdlog/issues/3360#issuecomment-2729579422> (exploit, issue-tracking)
- <https://vuldb.com/?id.312609> (technical-description, third-party-advisory, vdb-entry)
- <https://vuldb.com/?ctiid.312609> (permissions-required, signature, vdb-entry)
- <https://vuldb.com/?submit.592999> (third-party-advisory, vdb-entry)
- <https://github.com/gabime/spdlog/commit/10320184df1eb4638e253a34b1eb44ce78954094> (patch)
- <https://github.com/gabime/spdlog/releases/tag/v1.15.2> (patch, release-notes)

## Sources

- CVE List: [CVE-2025-6140](https://www.cve.org/CVERecord?id=CVE-2025-6140), CVE Terms of Use, modified 2025-06-17
- NVD: [CVE-2025-6140](https://nvd.nist.gov/vuln/detail/CVE-2025-6140), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-6140 · Whole record: https://cve.day/CVE-2025-6140.json · Rebuilt by cve.day 2026-11-25T22:58:59.266Z
