CVE-2021-42013
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 · uneditedIt was found that the fix for CVE-2021-41773 in Apache HTTP Server 2.4.50 was insufficient. 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 only affects Apache 2.4.49 and Apache 2.4.50 and not earlier versions.
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 confidenceApache HTTP Server 2.4.50 contains an insufficient fix for CVE-2021-41773, allowing path traversal attacks to access files outside directories configured by Alias-like directives. If these files lack 'require all denied' protection and CGI scripts are enabled for aliased paths, remote code execution becomes possible.
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= 2.4.50= 34= 35= 17.1= 17.2= 17.3< 9.2.6.0< 18.1.0.1.0all 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 installed Apache HTTP Server versionRun 'httpd -v' or 'apache2 -v' to obtain the server version numberAffected if The version is exactly 2.4.49 or 2.4.50
-
Verify CGI module is loadedRun 'httpd -M' or 'apache2ctl -M' and look for 'cgi_module' or 'cgid_module' in the loaded modules listAffected if CGI module is present and loaded
-
Locate Alias or similar directory directives in configurationSearch httpd.conf, apache2.conf, or included configuration files for 'Alias' directives and check which document root paths they defineAffected if Alias directives map filesystem paths to URL paths without proper access controls
-
Check if CGI is enabled on aliased pathsExamine the <Directory> blocks in configuration files for aliased paths and verify if 'Options +ExecCGI' or 'Options FollowSymLinks' is set, and whether 'ScriptAlias' is usedAffected if CGI execution is permitted on aliased paths without additional restrictions
-
Verify access control restrictions on affected directoriesLook for 'Require all denied' directives within <Directory> blocks for the aliased paths; also check for 'AllowOverride None' settings that may prevent .htaccess overridesAffected if The aliased directories lack 'require all denied' statements or equivalent access restrictions
The environment is affected if running Apache HTTP Server version 2.4.49 or 2.4.50 with CGI enabled on Alias-mapped paths that do not have 'require all denied' protection, allowing path traversal to execute arbitrary CGI scripts outside the intended directory.
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 · scoped9.2.6.018.1.0.1.0
Upgrade to Apache 2.4.51 or later. Ensure all directories outside Alias directives have 'require all denied' applied, and disable CGI scripts if not required.
Apache HTTP Server 2.4.51 or later
- Identify the current Apache HTTP Server version using 'httpd -v' or 'apache2 -v'
- Download Apache HTTP Server 2.4.51 or later from the official Apache distribution (https://httpd.apache.org/)
- Backup the current Apache configuration and web content
- Install the upgraded Apache HTTP Server package
- Restart the Apache service using 'systemctl restart httpd' or 'apachectl restart'
- Verify the server is running and accessible
- Test that path traversal requests are now blocked (e.g., attempting /cgi-bin/%2e%2e/%2e%2e/%2e%2e/etc/passwd should return 403 Forbidden)
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation3.0 h
- Implementation2.0 h
- Testing3.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,832.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2021-42013 — 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- lists.apache.org
- packetstormsecurity.com
- httpd.apache.org
- lists.apache.org
- www.oracle.com
- www.oracle.com
- jvn.jp
- packetstormsecurity.com
- packetstormsecurity.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
- www.povilaika.com
- lists.fedoraproject.org
- lists.fedoraproject.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-42013 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