Buffer overflow in Apache HTTP Server - CVE-2021-39275

 

Buffer overflow in Apache HTTP Server - CVE-2021-39275

Published: September 17, 2021 / Updated: October 2, 2024


Vulnerability identifier: #VU56679
CSH Severity: Medium
CVSS v4: 6.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-39275
CWE-ID: CWE-119
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system or perform a denial of service attack.

The vulnerability exists due to a boundary error within the ap_escape_quotes()  function. A remote attacker can send a specially crafted request to the web server, trigger memory corruption and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system but requires that the Apache module passes untrusted data to the affected function.

According to vendor, No included modules pass untrusted data to these functions


Affected software

Apache HTTP Server
IBM HTTP Server
Gentoo Linux
Amazon Linux AMI
SUSE CaaS Platform
SUSE Enterprise Storage
Red Hat Enterprise Linux Workstation
Anolis OS
Red Hat Enterprise Linux Server
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux Desktop
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for Scientific Computing
Red Hat Enterprise Linux for Power, big endian
OpenStack Cloud Crowbar
SUSE OpenStack Cloud
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for ARM 64
SUSE Linux Enterprise Point of Sale
SUSE Linux Enterprise Debuginfo
SUSE Linux Enterprise Server
Slackware Linux
Ubuntu
SUSE Linux Enterprise Server for SAP
SUSE Linux Enterprise High Performance Computing
SUSE Linux Enterprise Module for Server Applications
SUSE Linux Enterprise Module for Basesystem
openEuler
Fedora
Brocade Fabric OS
SINEC NMS
IBM Hardware Management Console
jbcs-httpd24-openssl-pkcs11 (Red Hat package)
jbcs-httpd24-openssl-chil (Red Hat package)
jbcs-httpd24-brotli (Red Hat package)
jbcs-httpd24-apr-util (Red Hat package)
jbcs-httpd24-apr (Red Hat package)
jbcs-httpd24-mod_http2 (Red Hat package)
jbcs-httpd24-nghttp2 (Red Hat package)
jbcs-httpd24-mod_md (Red Hat package)
apache2 (Debian package)
httpd24-httpd (Red Hat package)
jbcs-httpd24-httpd (Red Hat package)
jbcs-httpd24-mod_security (Red Hat package)
jbcs-httpd24-jansson (Red Hat package)
jbcs-httpd24-curl (Red Hat package)
SUSE Linux Enterprise Module for Packagehub Subpackages
jbcs-httpd24-mod_proxy_cluster (Red Hat package)
mod_http2
mod_md
apache2-example-pages
apache2-prefork
apache2-utils
apache2-worker
apache2-devel
apache2-debuginfo
apache2-debugsource
apache2-doc
apache2
mod_ssl
httpd-manual
httpd
httpd-devel
httpd-tools
mod_session
mod_ldap
mod_proxy_html
httpd24 (Red Hat package)
apache2 (Ubuntu package)
apache2-bin (Ubuntu package)
apache2-worker-debuginfo
apache2-utils-debuginfo
apache2-prefork-debuginfo
httpd-filesystem
apache2-event-debuginfo
apache2-event
httpd-debuginfo
httpd-debugsource
httpd-help
www-servers/apache
app-admin/apache-tools
IBM Netezza Performance Portal
EasyApache
Dell Secure Connect Gateway
IBM Tivoli Monitoring
IBM Rational Build Forge
Oracle HTTP Server
SINEMA Server
IBM Aspera Orchestrator
EMC NetWorker Server
IBM Security SiteProtector System
Traffix SDC
Oracle ZFS Storage Appliance Kit
IBM Qradar SIEM
Zimbra Collaboration
IBM Business Automation Manager Open Editions
Watson Studio on Cloud Pak for Data
XtremIO X2
Maximo Application Suite - IoT Component
CTPView
JBoss Core Services
IBM Aspera Faspex for Windows
IBM Aspera Faspex for Linux
Dell EMC Unity Operating Environment (OE)
Dell EMC Unity XT Operating Environment (OE)
Dell EMC Unity VSA Operating Environment (OE)

How to mitigate CVE-2021-39275

Install updates from vendor's website.

Apache HTTP Server - update to 2.4.49
jbcs-httpd24-openssl-pkcs11 (Red Hat package) - addressed in versions 0.4.10-31.el7jbcs, 0.4.10-31.el8jbcs
jbcs-httpd24-openssl-chil (Red Hat package) - addressed in versions 1.0.0-16.el7jbcs, 1.0.0-16.el8jbcs
jbcs-httpd24-brotli (Red Hat package) - addressed in versions 1.0.9-2.el7jbcs, 1.0.9-2.el8jbcs
jbcs-httpd24-apr-util (Red Hat package) - addressed in versions 1.6.1-98.el7jbcs, 1.6.1-98.el8jbcs
jbcs-httpd24-apr (Red Hat package) - addressed in versions 1.7.0-6.el7jbcs, 1.7.0-6.el8jbcs
jbcs-httpd24-mod_http2 (Red Hat package) - addressed in versions 1.15.19-17.el7jbcs, 1.15.19-17.el8jbcs
jbcs-httpd24-nghttp2 (Red Hat package) - addressed in versions 1.43.0-10.el7jbcs, 1.43.0-10.el8jbcs
jbcs-httpd24-mod_md (Red Hat package) - addressed in versions 2.4.0-15.el7jbcs, 2.4.0-15.el8jbcs
IBM Netezza Performance Portal - update to 2.1.1.12
apache2 (Debian package) - addressed in versions 2.4.38-3+deb10u6, 2.4.51-1~deb11u1
httpd24-httpd (Red Hat package) - update to 2.4.34-23.el7.5
jbcs-httpd24-httpd (Red Hat package) - addressed in versions 2.4.51-28.el7jbcs, 2.4.51-28.el8jbcs
jbcs-httpd24-mod_security (Red Hat package) - addressed in versions 2.9.3-19.el7jbcs, 2.9.3-19.el8jbcs
jbcs-httpd24-jansson (Red Hat package) - addressed in versions 2.14-1.el7jbcs, 2.14-1.el8jbcs
IBM Security SiteProtector System - update to 3.1.1.17
EasyApache - update to 4 2021-9-22
Dell Secure Connect Gateway - update to 5.12.00.10
IBM Qradar SIEM - addressed in versions 7.3.3 Fix Pack 10 Interim Fix 02, 7.4.3 Fix Pack 4 Interim Fix 04, 7.5.0 Update Pack 1
jbcs-httpd24-curl (Red Hat package) - addressed in versions 7.83.1-6.el7jbcs, 7.83.1-6.el8jbcs
IBM Rational Build Forge - update to 8.0.0.21
Zimbra Collaboration - addressed in versions 8.8.15 Patch 31, 9.0.0 Patch 24
IBM Business Automation Manager Open Editions - update to 9.0.1
jbcs-httpd24-mod_proxy_cluster (Red Hat package) - addressed in versions 1.3.17-9.el7jbcs, 1.3.17-9.el8jbcs
mod_http2 - update to 1.15.7-3
mod_md - update to 2.0.8-8
apache2-example-pages - update to 2.2.34-70.38.1
apache2-prefork - addressed in versions 2.2.34-70.38.1, 2.4.33-3.55.1, 2.4.43-3.32.1
apache2-utils - addressed in versions 2.2.34-70.38.1, 2.4.33-3.55.1, 2.4.43-3.32.1
apache2-worker - addressed in versions 2.2.34-70.38.1, 2.4.33-3.55.1, 2.4.43-3.32.1
apache2-devel - addressed in versions 2.2.34-70.38.1, 2.4.33-3.55.1, 2.4.43-3.32.1
apache2-debuginfo - addressed in versions 2.2.34-70.38.1, 2.4.33-3.55.1, 2.4.43-3.32.1
apache2-debugsource - addressed in versions 2.2.34-70.38.1, 2.4.33-3.55.1, 2.4.43-3.32.1
apache2-doc - addressed in versions 2.2.34-70.38.1, 2.4.33-3.55.1, 2.4.43-3.32.1
apache2 - addressed in versions 2.2.34-70.38.1, 2.4.33-3.55.1, 2.4.43-3.32.1
mod_ssl - addressed in versions 2.4.6-97, 2.4.37-43.0.1
httpd-manual - addressed in versions 2.4.6-97, 2.4.37-43.0.1
httpd - addressed in versions 2.4.6-97, 2.4.37-43.0.1
httpd-devel - addressed in versions 2.4.6-97, 2.4.37-43.0.1
httpd-tools - addressed in versions 2.4.6-97, 2.4.37-43.0.1
mod_session - addressed in versions 2.4.6-97, 2.4.37-43.0.1
mod_ldap - addressed in versions 2.4.6-97, 2.4.37-43.0.1
mod_proxy_html - addressed in versions 2.4.6-97, 2.4.37-43.0.1
httpd24 (Red Hat package) - update to 2.4.6-97.el7_9.4
apache2 (Ubuntu package) - addressed in versions 2.4.29-1ubuntu4.17, 2.4.29-1ubuntu4.18, 2.4.41-4ubuntu3.5, 2.4.41-4ubuntu3.6, 2.4.46-4ubuntu1.2, 2.4.46-4ubuntu1.3, 2.4.182ubuntu3.17+esm2, 2.4.182ubuntu3.17+esm3
apache2-bin (Ubuntu package) - addressed in versions 2.4.29-1ubuntu4.17, 2.4.29-1ubuntu4.18, 2.4.41-4ubuntu3.5, 2.4.41-4ubuntu3.6, 2.4.46-4ubuntu1.2, 2.4.46-4ubuntu1.3, 2.4.182ubuntu3.17+esm2, 2.4.182ubuntu3.17+esm3
apache2-worker-debuginfo - addressed in versions 2.4.33-3.55.1, 2.4.43-3.32.1
apache2-utils-debuginfo - addressed in versions 2.4.33-3.55.1, 2.4.43-3.32.1
apache2-prefork-debuginfo - addressed in versions 2.4.33-3.55.1, 2.4.43-3.32.1
httpd-filesystem - update to 2.4.37-43.0.1
apache2-event-debuginfo - update to 2.4.43-3.32.1
apache2-event - update to 2.4.43-3.32.1
httpd-devel - update to 2.4.43-10
httpd - update to 2.4.43-10
mod_ldap - update to 2.4.43-10
mod_proxy_html - update to 2.4.43-10
httpd-debuginfo - update to 2.4.43-10
mod_ssl - update to 2.4.43-10
mod_md - update to 2.4.43-10
mod_session - update to 2.4.43-10
httpd-debugsource - update to 2.4.43-10
httpd-tools - update to 2.4.43-10
httpd-help - update to 2.4.43-10
httpd-filesystem - update to 2.4.43-10
httpd - addressed in versions 2.4.49-1.fc34, 2.4.49-1.fc35
JBoss Core Services - update to 2.4.51
www-servers/apache - update to 2.4.54
app-admin/apache-tools - update to 2.4.54
IBM Aspera Orchestrator - update to 4.0.1.2b9681
IBM Aspera Faspex for Windows - update to 4.4.2
IBM Aspera Faspex for Linux - update to 4.4.2
Watson Studio on Cloud Pak for Data - addressed in versions 4.8.7, 5.1.0
Dell EMC Unity Operating Environment (OE) - update to 5.2.0.0.5.173
Dell EMC Unity XT Operating Environment (OE) - update to 5.2.0.0.5.173
Dell EMC Unity VSA Operating Environment (OE) - update to 5.2.0.0.5.173
XtremIO X2 - update to 6.4.1-11
IBM HTTP Server - addressed in versions 7.0.0.45, 8.0.0.15, 8.5.5.21, 9.0.5.10
Brocade Fabric OS - addressed in versions 7.4.2j, 8.2.0 CBN5, 8.2.3c, 9.0.1e, 9.1.1
Maximo Application Suite - IoT Component - addressed in versions 8.7.20, 8.8.16, 9.0.6
CTPView - update to 9.1R5
IBM Hardware Management Console - addressed in versions 9.2.952.0, 10.1.1010.0 x86, 10.1.1010.0 ppc
EMC NetWorker Server - addressed in versions 19.5.0.4, 19.6.0

External References

Related Security Bulletins