CVE-2021-39275: ap_escape_quotes buffer overflow

CVE-2021-39275 affects 74 listed versions of Apache HTTP Server in the Dawnsentry catalogue.

9.8CVSS critical
None knownexploitation
41%EPSS (next 30 days)
16 September 2021published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

Apache HTTP Server

74 of 89 listed versions are affected. Fixed in 2.4.49. The newest release, 2.4.71, is not affected.

2.3.7 2.3.6 2.3.5 2.3.4 2.3.0 2.2.34 2.2.33 2.2.32 2.2.31 2.2.30 2.2.29 2.2.27 2.2.26 2.2.25 2.2.24 2.2.23 2.2.22 2.2.21 2.2.20 2.2.19 2.1.9 2.1.8 2.1.7 2.1.6 2.1.5 2.1.4 2.1.3 2.1.2 2.1.1 2.1 2.0.65 2.0.64 2.0.63 2.0.61 2.0.60 2.0.59 2.0.58 2.0.57 2.0.56 2.0.55 2.0.54 2.0.53 2.0.52 2.0.51 2.0.50 1.4.0 1.3.68 1.3.65 1.3.42 1.3.41 1.3.40 1.3.39 1.3.38 1.3.37 1.3.36 1.3.35 1.3.34 1.3.33 1.3.32 1.3.31 and 14 more

What it is

ap_escape_quotes() may write beyond the end of a buffer when given malicious input. No included modules pass untrusted data to these functions, but third-party / external modules may. This issue affects Apache HTTP Server 2.4.48 and earlier.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (NVD)

Published by Apache Software Foundation on 16 September 2021. Last changed 17 June 2026.

Sources

Check one version you run: look CVE-2021-39275 up, or pick a product and version in the quick lookup.

Updated 2 December 2026.