Out-of-bounds Write Vulnerability in Apache HTTP Server (CVE-2022-23943)

apache2 Updated 02 Oct 2025

Summary

14/03/2022
N/A
Yes i
Critical
9.8

CVE-2022-23943: Out-of-bounds Write vulnerability in mod_sed of Apache HTTP Server allows an attacker to overwrite heap memory with possibly attacker provided data. Affects apache2 across 2 version ranges.

< 2.4.53-r0 >= da5873e80d6eee7a0838793bf68f1d0254745fbb, < 4654faee107e0c3a830c204a1dc94700705e8e86

Fixed in 2.4.53-r0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Apache HTTP Server is a widely used open-source web server software. It provides a reliable and secure platform for hosting websites and applications. The mod_sed module in Apache HTTP Server allows users to modify the response content using sed-like expressions. However, a vulnerability has been discovered in versions 2.4.52 and prior, which could allow an attacker to overwrite heap memory with potentially malicious data.

Vulnerability Detail

The CVE-2022-23943 vulnerability in Apache HTTP Server arises from an out-of-bounds write issue in the mod_sed module. By exploiting this vulnerability, an attacker can overwrite heap memory, potentially leading to remote code execution or denial of service attacks. This vulnerability has a CVSS score of 9.8, indicating its critical severity.

How To Fix

Minimum fixed version

2.4.53-r0

This is the first release that contains the fix.

sudo apk add --upgrade apache2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users can disable the mod_sed module in Apache HTTP Server. This can be achieved by commenting out or removing the corresponding 'LoadModule' directive in the server configuration file. However, disabling the module may impact any functionality that relies on mod_sed for response content modification.

Conclusion

The CVE-2022-23943 vulnerability in Apache HTTP Server poses a significant risk to the security and stability of affected systems. It is crucial to promptly update to the latest version of Apache HTTP Server and apply the provided patch to mitigate this vulnerability. For further assistance and support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for apache2 →

Share this vulnerability

FAQ

Apache HTTP Server is an open-source web server software that provides a reliable and secure platform for hosting websites and applications.

mod_sed is a module in Apache HTTP Server that allows users to modify the response content using sed-like expressions.

An out-of-bounds write vulnerability occurs when a program writes data beyond the boundaries of a buffer or allocated memory, potentially leading to memory corruption and security issues.

Exploiting this vulnerability can result in remote code execution or denial of service attacks, allowing an attacker to take control of the affected server or disrupt its normal operation.

You can use Vulert's playground at Vulert Scanner to check if your Apache HTTP Server version is affected by this vulnerability. Simply upload your package-lock.json file to the playground, and it will provide real-time alerts for open-source vulnerabilities.

Related vulnerabilities

Recent vulnerabilities recorded for apache2.

How To Fix

Minimum fixed version

2.4.53-r0

This is the first release that contains the fix.

sudo apk add --upgrade apache2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback