PortGate

Advisories · Web servers

CVE-2021-42013 Critical CVSS 9.8 Actively exploited

Apache httpd incomplete path-traversal fix

Disclosed 2021 · Last reviewed 2 Dec 2026

The 2.4.50 fix for the path traversal was incomplete. Encoded paths still escaped the document root, and CGI could run code.

What happened

A second encoding form still passed the checks added in 2.4.50.

Affected and patched versions

Affected
Apache HTTP Server 2.4.49 and 2.4.50.
Patched
Apache httpd 2.4.51 and later.

How to check your server

Check

apachectl -v

How to fix and harden

  1. Upgrade to 2.4.51 or later.
  2. Do not stop at 2.4.50.

Fix

apachectl -v

Sources

Version ranges and fixes follow the vendor advisory. When a distribution backports a fix, trust its security tracker over the upstream version number. New advisories: RSS · JSON