Apache vulnerabilities
16 real-world CVEs in Apache. Each one is a short hands-on exercise in Hexret: find the vulnerable line, follow the exploit and learn the fix.
- CVE-2025-24813critical 9.82025
Apache Tomcat partial PUT path-equivalence RCE
Tomcat derived partial-PUT temporary filenames from the request path by replacing separators with dots, allowing a predictable file collision that can place attacker-controlled serialized bytes where file-backed session persistence later deserializes them.
- CVE-2024-50379critical 9.82024
Apache Tomcat case-folding JSP compilation race
Concurrent resource reads and writes were not serialized, so differently cased paths that resolve to one file on a case-insensitive filesystem could race Tomcat's resource metadata and let content uploaded through the default servlet be compiled as JSP.
- CVE-2024-53677critical 9.52024
Apache Struts OGNL upload-parameter traversal
The legacy upload interceptor removed only filename parameters with an equal name, allowing an OGNL-qualified request parameter to survive and overwrite the action's trusted filename property.
- CVE-2023-50164critical 9.82023
Apache Struts case-collision upload traversal
Case-sensitive HTTP parameter storage let trusted upload metadata and an attacker parameter coexist, while later property binding treated their names as equivalent.
- CVE-2023-46604critical 9.82023
Apache ActiveMQ OpenWire reflective class instantiation RCE
The OpenWire protocol marshaller rebuilds an exception by reflectively instantiating an attacker-named class with an attacker-supplied string, so a crafted frame can construct a gadget class and run code on the broker.
- CVE-2023-25690critical 9.82023
Apache HTTP Server rewrite-to-proxy request splitting
A broad rewrite capture could decode percent-encoded control characters and reinsert them into a proxied request target, turning one frontend request into multiple backend requests.
- CVE-2022-42889critical 9.82022
Text4Shell: default script lookup in string interpolation
A string-interpolation helper enables every built-in lookup by default, including one that evaluates scripts, so untrusted input containing an interpolation reference runs code.
- CVE-2021-44228critical 10.02021
Log4Shell: JNDI lookup in logged input (CVE-2021-44228)
A string logged by Log4j with message lookups enabled can carry a JNDI reference, making the logger resolve an attacker-controlled name through JNDI and load a remote class. Nicknamed Log4Shell (Log4j plus shell), it scored a perfect 10.0, was reported by Chen Zhaojun of Alibaba Cloud, and became one of the most widely exploited vulnerabilities ever.
- CVE-2021-42013critical 9.82021
Apache path traversal (incomplete fix of CVE-2021-41773)
The 2.4.50 fix for the 2.4.49 traversal only decoded one layer, so a double-encoded dot-segment slips past it and re-traverses.
- CVE-2021-41773critical 9.82021
Apache HTTP Server mixed-encoding path traversal
Apache 2.4.49 decoded and normalized a path in one pass, allowing a literal dot plus an encoded dot to evade parent-directory removal.
- CVE-2020-1957critical 9.82020
Apache Shiro path-confusion authentication bypass
A security filter derives its match path from the raw request URI, which the app's router resolves differently, so a crafted path skips the auth filter yet still reaches the protected controller.
- CVE-2020-1938critical 9.82020
Ghostcat: AJP request-attribute injection in Apache Tomcat
A trusted binary connector maps any attribute name it receives onto the request, so a client can set the internal include attributes and make the server serve files it should never expose, such as WEB-INF.
- CVE-2018-11776high 8.12018
Apache Struts request-namespace OGNL evaluation
Under specific namespace and result settings, a request-derived action namespace entered a result location that Struts parsed as an OGNL expression.
- CVE-2017-9798high 7.52017
Optionsbleed: a request-pool method enters a global table
An unrecognized method in a per-directory Limit directive was registered globally using memory owned by temporary `.htaccess` processing. After that pool was freed, an OPTIONS response walked stale method-name pointers and could reflect process memory in its Allow header.
- CVE-2017-9805high 8.12017
Apache Struts REST plugin XStream deserialization RCE (S2-052)
The REST plugin deserializes an XML request body with a default XStream instance that has no type allowlist, so a crafted gadget-chain document instantiates arbitrary classes and runs commands on the server.
- CVE-2017-5638critical 9.82017
Apache Struts Jakarta parser OGNL injection (S2-045)
An invalid Content-Type on a multipart upload makes the Jakarta parser throw an exception whose message carries the raw header, and Struts passes that message to an error formatter that evaluates OGNL, so a crafted expression in the header runs commands on the server.