Vulnerabilities / CVE-2021-39275

critical

CVE-2021-39275

httpd: Out-of-bounds write in ap_escape_quotes() via malicious input

Published Modified CWE 787
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat8.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Bitnami9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD, Bitnami, CBL-Mariner, Photon OS. Rated lower by Amazon (high), Oracle (high), Red Hat (medium), AlmaLinux (medium), Rocky Linux (medium), Ubuntu (medium).

Description

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.

Affected packages and fixed versions

SourcePackageFixed in
bitnami::Bitnami Vulnerability Databaseapache2.4.49
CBL-Mariner 1.0httpd0:2.4.49-1.cm1
CBL-Mariner 2.0httpd0:2.4.52-1.cm2
Photon OS 1.0httpd2.4.48-4.ph1
Photon OS 2.0httpd2.4.48-4.ph2
Photon OS 3.0httpd2.4.48-4.ph3
alma 8httpd:2.4::httpd, httpd:2.4::httpd-devel, httpd:2.4::httpd-filesystem and 7 more2.4.37-43.module_el8.5.0+2630+51c6d843.2.alma and 2 more
alpine 3.11apache22.4.49-r0
alpine 3.12apache22.4.49-r0
alpine 3.13apache22.4.49-r0
alpine 3.14apache22.4.49-r0
alpine 3.15apache22.4.49-r0
Show all 105 entries from 46 sources
SourcePackageFixed in
bitnami::Bitnami Vulnerability Databaseapache2.4.49
CBL-Mariner 1.0httpd0:2.4.49-1.cm1
CBL-Mariner 2.0httpd0:2.4.52-1.cm2
Photon OS 1.0httpd2.4.48-4.ph1
Photon OS 2.0httpd2.4.48-4.ph2
Photon OS 3.0httpd2.4.48-4.ph3
alma 8httpd:2.4::httpd2.4.37-43.module_el8.5.0+2630+51c6d843.2.alma
alma 8httpd:2.4::httpd-devel2.4.37-43.module_el8.5.0+2630+51c6d843.2.alma
alma 8httpd:2.4::httpd-filesystem2.4.37-43.module_el8.5.0+2630+51c6d843.2.alma
alma 8httpd:2.4::httpd-manual2.4.37-43.module_el8.5.0+2630+51c6d843.2.alma
alma 8httpd:2.4::httpd-tools2.4.37-43.module_el8.5.0+2630+51c6d843.2.alma
alma 8httpd:2.4::mod_ldap2.4.37-43.module_el8.5.0+2630+51c6d843.2.alma
alma 8httpd:2.4::mod_md1:2.0.8-8.module_el8.6.0+2872+fe0ff7aa
alma 8httpd:2.4::mod_proxy_html1:2.4.37-43.module_el8.5.0+2630+51c6d843.2.alma
alma 8httpd:2.4::mod_session2.4.37-43.module_el8.5.0+2630+51c6d843.2.alma
alma 8httpd:2.4::mod_ssl1:2.4.37-43.module_el8.5.0+2630+51c6d843.2.alma
alpine 3.11apache22.4.49-r0
alpine 3.12apache22.4.49-r0
alpine 3.13apache22.4.49-r0
alpine 3.14apache22.4.49-r0
alpine 3.15apache22.4.49-r0
alpine 3.16apache22.4.49-r0
alpine 3.17apache22.4.49-r0
alpine 3.18apache22.4.49-r0
alpine 3.19apache22.4.49-r0
alpine 3.20apache22.4.49-r0
alpine 3.21apache22.4.49-r0
alpine 3.22apache22.4.49-r0
alpine 3.23apache22.4.49-r0
alpine 3.24apache22.4.49-r0
alpine edgeapache22.4.49-r0
amazon linux 1httpd242.4.51-1.94.amzn1
amazon linux 1httpd24-debuginfo2.4.51-1.94.amzn1
amazon linux 1httpd24-devel2.4.51-1.94.amzn1
amazon linux 1httpd24-manual2.4.51-1.94.amzn1
amazon linux 1httpd24-tools2.4.51-1.94.amzn1
amazon linux 1mod24_ldap2.4.51-1.94.amzn1
amazon linux 1mod24_md2.4.51-1.94.amzn1
amazon linux 1mod24_proxy_html1:2.4.51-1.94.amzn1
amazon linux 1mod24_session2.4.51-1.94.amzn1
amazon linux 1mod24_ssl1:2.4.51-1.94.amzn1
amazon linux 2httpd2.4.51-1.amzn2
amazon linux 2httpd-debuginfo2.4.51-1.amzn2
amazon linux 2httpd-devel2.4.51-1.amzn2
amazon linux 2httpd-filesystem2.4.51-1.amzn2
amazon linux 2httpd-manual2.4.51-1.amzn2
amazon linux 2httpd-tools2.4.51-1.amzn2
amazon linux 2mod_ldap2.4.51-1.amzn2
amazon linux 2mod_md2.4.51-1.amzn2
amazon linux 2mod_proxy_html1:2.4.51-1.amzn2
amazon linux 2mod_session2.4.51-1.amzn2
amazon linux 2mod_ssl1:2.4.51-1.amzn2
debian 10apache22.4.38-3+deb10u6
debian 11apache22.4.51-1~deb11u1
debian 12apache22.4.49-1
debian 13apache22.4.49-1
debian 14apache22.4.49-1
debian 9apache22.4.25-3+deb9u11
echoapache22.4.49-1
Oracle Linux 7httpd2.4.6-97.0.5.el7_9.4
Oracle Linux 7httpd-devel2.4.6-97.0.5.el7_9.4
Oracle Linux 7httpd-manual2.4.6-97.0.5.el7_9.4
Oracle Linux 7httpd-tools2.4.6-97.0.5.el7_9.4
Oracle Linux 7mod_ldap2.4.6-97.0.5.el7_9.4
Oracle Linux 7mod_proxy_html1:2.4.6-97.0.5.el7_9.4
Oracle Linux 7mod_session2.4.6-97.0.5.el7_9.4
Oracle Linux 7mod_ssl1:2.4.6-97.0.5.el7_9.4
Oracle Linux 8httpd2.4.37-43.0.2.module+el8.5.0+20518+d9453e37.2
Oracle Linux 8httpd-devel2.4.37-43.0.2.module+el8.5.0+20518+d9453e37.2
Oracle Linux 8httpd-filesystem2.4.37-43.0.2.module+el8.5.0+20518+d9453e37.2
Oracle Linux 8httpd-manual2.4.37-43.0.2.module+el8.5.0+20518+d9453e37.2
Oracle Linux 8httpd-tools2.4.37-43.0.2.module+el8.5.0+20518+d9453e37.2
Oracle Linux 8mod_http21.15.7-3.module+el8.4.0+20024+b87b2deb
Oracle Linux 8mod_ldap2.4.37-43.0.2.module+el8.5.0+20518+d9453e37.2
Oracle Linux 8mod_md1:2.0.8-8.module+el8.5.0+20475+4f6a8fd5
Oracle Linux 8mod_proxy_html1:2.4.37-43.0.2.module+el8.5.0+20518+d9453e37.2
Oracle Linux 8mod_session2.4.37-43.0.2.module+el8.5.0+20518+d9453e37.2
Oracle Linux 8mod_ssl1:2.4.37-43.0.2.module+el8.5.0+20518+d9453e37.2
Red Hathttpdno fix listed
Red Hathttpd-develno fix listed
Red Hathttpd-manualno fix listed
Red Hathttpd-toolsno fix listed
Red Hatmod_sslno fix listed
rocky 8httpd:2.4::httpd2.4.37-43.module+el8.5.0+714+5ec56ee8
rocky 8httpd:2.4::httpd-devel2.4.37-43.module+el8.5.0+714+5ec56ee8
rocky 8httpd:2.4::httpd-filesystem2.4.37-43.module+el8.5.0+714+5ec56ee8
rocky 8httpd:2.4::httpd-manual2.4.37-43.module+el8.5.0+714+5ec56ee8
rocky 8httpd:2.4::httpd-tools2.4.37-43.module+el8.5.0+714+5ec56ee8
rocky 8httpd:2.4::mod_http21.15.7-3.module+el8.5.0+695+1fa8055e
rocky 8httpd:2.4::mod_ldap2.4.37-43.module+el8.5.0+714+5ec56ee8
rocky 8httpd:2.4::mod_md1:2.0.8-8.module+el8.5.0+695+1fa8055e
rocky 8httpd:2.4::mod_proxy_html1:2.4.37-43.module+el8.5.0+714+5ec56ee8
rocky 8httpd:2.4::mod_session2.4.37-43.module+el8.5.0+714+5ec56ee8
rocky 8httpd:2.4::mod_ssl1:2.4.37-43.module+el8.5.0+714+5ec56ee8
root.io debian 12rootio-apache22.4.49-1
root.io debian 13rootio-apache22.4.49-1
ubuntu 14.04-ESMapache22.4.7-1ubuntu4.22+esm2
ubuntu 16.04-ESMapache22.4.18-2ubuntu3.17+esm2
ubuntu 18.04apache22.4.29-1ubuntu4.17
ubuntu 18.04-ESMapache22.4.29-1ubuntu4.17
ubuntu 20.04apache22.4.41-4ubuntu3.5
ubuntu 20.04-ESMapache22.4.41-4ubuntu3.5
ubuntu 21.04apache22.4.46-4ubuntu1.2
ubuntu 21.10apache22.4.48-3.1ubuntu2
ubuntu 22.04apache22.4.48-3.1ubuntu2

References

All 29 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.