Vulnerabilities / CVE-2021-42013

critical

CVE-2021-42013

httpd: path traversal and remote code execution (incomplete fix of CVE-2021-41773)

Published Modified CWE 22
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat8.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Bitnami9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD, Bitnami, Photon OS. Rated lower by Red Hat (high), Amazon (high).

Description

It 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.

Affected packages and fixed versions

SourcePackageFixed in
bitnami::Bitnami Vulnerability Databaseapache2.4.50, 2.4.51
Photon OS 4.0httpd, httpd-devel, httpd-docs and 1 more2.4.51-1.ph4
alpine 3.11apache22.4.51-r0
alpine 3.12apache22.4.51-r0
alpine 3.13apache22.4.51-r0
alpine 3.14apache22.4.51-r0
alpine 3.15apache22.4.51-r0
alpine 3.16apache22.4.51-r0
alpine 3.17apache22.4.51-r0
alpine 3.18apache22.4.51-r0
alpine 3.19apache22.4.51-r0
alpine 3.20apache22.4.51-r0
Show all 47 entries from 25 sources
SourcePackageFixed in
bitnami::Bitnami Vulnerability Databaseapache2.4.50, 2.4.51
Photon OS 4.0httpd2.4.51-1.ph4
Photon OS 4.0httpd-devel2.4.51-1.ph4
Photon OS 4.0httpd-docs2.4.51-1.ph4
Photon OS 4.0httpd-tools2.4.51-1.ph4
alpine 3.11apache22.4.51-r0
alpine 3.12apache22.4.51-r0
alpine 3.13apache22.4.51-r0
alpine 3.14apache22.4.51-r0
alpine 3.15apache22.4.51-r0
alpine 3.16apache22.4.51-r0
alpine 3.17apache22.4.51-r0
alpine 3.18apache22.4.51-r0
alpine 3.19apache22.4.51-r0
alpine 3.20apache22.4.51-r0
alpine 3.21apache22.4.51-r0
alpine 3.22apache22.4.51-r0
alpine 3.23apache22.4.51-r0
alpine 3.24apache22.4.51-r0
alpine edgeapache22.4.51-r0
amazon linux 1httpd242.4.51-1.94.amzn1
amazon linux 1httpd24-debuginfo2.4.51-1.94.amzn1
amazon linux 1httpd24-devel2.4.51-1.94.amzn1
amazon linux 1httpd24-manual2.4.51-1.94.amzn1
amazon linux 1httpd24-tools2.4.51-1.94.amzn1
amazon linux 1mod24_ldap2.4.51-1.94.amzn1
amazon linux 1mod24_md2.4.51-1.94.amzn1
amazon linux 1mod24_proxy_html1:2.4.51-1.94.amzn1
amazon linux 1mod24_session2.4.51-1.94.amzn1
amazon linux 1mod24_ssl1:2.4.51-1.94.amzn1
amazon linux 2httpd2.4.51-1.amzn2
amazon linux 2httpd-debuginfo2.4.51-1.amzn2
amazon linux 2httpd-devel2.4.51-1.amzn2
amazon linux 2httpd-filesystem2.4.51-1.amzn2
amazon linux 2httpd-manual2.4.51-1.amzn2
amazon linux 2httpd-tools2.4.51-1.amzn2
amazon linux 2mod_ldap2.4.51-1.amzn2
amazon linux 2mod_md2.4.51-1.amzn2
amazon linux 2mod_proxy_html1:2.4.51-1.amzn2
amazon linux 2mod_session2.4.51-1.amzn2
amazon linux 2mod_ssl1:2.4.51-1.amzn2
debian 12apache22.4.51-1
debian 13apache22.4.51-1
debian 14apache22.4.51-1
echoapache22.4.51-1
root.io debian 12rootio-apache22.4.51-1
root.io debian 13rootio-apache22.4.51-1

References

All 35 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.