# CVE-2021-24295: Time-based Blind SQL Injection in Spam protection, AntiSpam, FireWall by CleanTalk < 5.153.4

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- 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): 5.61%, higher than 93% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-05-17T16:48:53.000Z
- Modified: 2026-06-17T03:39:47.027Z
- Weaknesses: CWE-89
- Assigned by: WPScan

## Description

It was possible to exploit an Unauthenticated Time-Based Blind SQL Injection vulnerability in the Spam protection, AntiSpam, FireWall by CleanTalk WordPress Plugin before 5.153.4. The update_log function in lib/Cleantalk/ApbctWP/Firewall/SFW.php included a vulnerable query that could be injected via the User-Agent Header by manipulating the cookies set by the Spam protection, AntiSpam, FireWall by CleanTalk WordPress plugin before 5.153.4, sending an initial request to obtain a ct_sfw_pass_key cookie and then manually setting a separate ct_sfw_passed cookie and disallowing it from being reset.

(As written by CVE List.)

## Affected

- СleanTalk Spam protection, AntiSpam, FireWall by CleanTalk: from 5.153.4 before 5.153.4
- cleantalk spam_protection,_antispam,_firewall: before 5.153.4

## Every score

- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:P/I:N/A:N`

## References

- <https://www.wordfence.com/blog/2021/05/sql-injection-vulnerability-patched-in-cleantalk-antispam-plugin/> (exploit, third-party-advisory)
- <https://wpscan.com/vulnerability/152171fc-888c-4275-a118-5a1e664ef28b> (third-party-advisory)

## Sources

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

---

Page: https://cve.day/CVE-2021-24295 · Whole record: https://cve.day/CVE-2021-24295.json · Rebuilt by cve.day 2026-11-25T22:58:01.442Z
