CVE-2021-41773
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedA flaw was found in a change made to path normalization in Apache HTTP Server 2.4.49. An attacker could use a path traversal attack to map URLs to files outside the directories configured by Alias-like directives. If files outside of these directories are not protected by the usual default configuration "require all denied", these requests can succeed. If CGI scripts are also enabled for these aliased pathes, this could allow for remote code execution. This issue is known to be exploited in the wild. This issue only affects Apache 2.4.49 and not earlier versions. The fix in Apache HTTP Server 2.4.50 was found to be incomplete, see CVE-2021-42013.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceA path traversal vulnerability in Apache HTTP Server 2.4.49's path normalization allows attackers to access files outside directories configured by Alias-like directives. If these directories lack 'require all denied' protection and CGI scripts are enabled, attackers can achieve remote code execution. This flaw was actively exploited in the wild.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data= 2.4.49= 34= 35= 17.1= 17.2= 17.3all versionsCVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify Apache HTTP Server versionRun 'httpd -v' or 'apache2 -v' to determine the installed Apache versionAffected if The version is exactly 2.4.49 (earlier versions are not affected by this specific CVE)
-
Locate Apache configuration filesFind httpd.conf, apache2.conf, or included configuration files - typically in /etc/httpd/, /etc/apache2/, or the server rootAffected if Configuration files exist and the server is running (vulnerability applies to the HTTP server configuration)
-
Check for Alias or ScriptAlias directivesSearch configuration files for 'Alias' or 'ScriptAlias' directives using 'grep -r "Alias" /etc/httpd/' or similarAffected if Alias directives are present - the vulnerability exploits these to access files outside the intended directories
-
Verify CGI is enabled for aliased pathsLook for 'Options +ExecCGI' in <Directory> blocks matching aliased paths, or check if ScriptAlias is used instead of AliasAffected if CGI scripts are enabled for paths defined by Alias directives - this creates the RCE possibility when combined with path traversal
-
Inspect access controls on parent directoriesReview <Directory> blocks in configuration to check if directories outside Alias paths have 'Require all denied' or equivalent restrictionsAffected if Directories outside Alias paths lack 'require all denied' protection - this allows the path traversal to reach sensitive files or execute code
If the Apache version is 2.4.49 and the server uses Alias directives with CGI enabled on paths lacking proper 'require all denied' access controls, the environment is vulnerable to CVE-2021-41773.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedImmediately upgrade to Apache HTTP Server 2.4.51 or later. Additionally, verify all directory configurations have 'require all denied' and disable CGI for any aliased paths not requiring it, as a defense-in-depth measure.
Apache HTTP Server 2.4.51 or later
- Upgrade Apache HTTP Server from version 2.4.49 to version 2.4.51 or later (2.4.50 had an incomplete fix for this issue)
- Verify the upgrade was successful by checking the server version (e.g., apachectl -v or httpd -v)
- Test that path traversal requests are no longer successful
- If using CGI scripts with aliased paths, ensure they are properly protected by 'Require all denied' directives in the configuration
- Restart the Apache service after upgrade
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation3.0 h
- Implementation6.0 h
- Testing8.0 h
- Review / QA3.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $5,472.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2021-41773 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sources- www.openwall.com
- packetstormsecurity.com
- httpd.apache.org
- www.openwall.com
- www.openwall.com
- lists.apache.org
- www.oracle.com
- packetstormsecurity.com
- packetstormsecurity.com
- packetstormsecurity.com
- packetstormsecurity.com
- www.openwall.com
- www.openwall.com
- www.openwall.com
- www.openwall.com
- www.openwall.com
- www.openwall.com
- www.openwall.com
- www.openwall.com
- www.openwall.com
- www.openwall.com
- www.openwall.com
- security.gentoo.org
- security.netapp.com
- tools.cisco.com
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- www.cisa.gov
- nvd.nist.gov
Practitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2021-41773 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data