CVE-2008-2168
NoneCVSS
—
EPSS
54.9%
Published
May 13, 2008
CISA due date
—
Cloudanix analysis
Attackers can trick a web server into showing error pages that secretly run harmful code in visitors' browsers.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Moderate
- Impact
- Data Tampering
- Component
- Network Service
- Class
- XSS
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Remote attackers can inject arbitrary web script or HTML into the 403 Forbidden error page by supplying UTF-7 encoded URLs that are not sanitized before display.
Why it matters to the business
Attackers may trick users into executing malicious code in their browsers through crafted error pages, leading to potential session hijacking, phishing, or data theft that disrupts user trust and requires incident response.
How an attack unfolds
An attacker crafts a URL containing UTF-7 encoded script, requests a nonexistent resource to trigger a 403 response, and the server reflects the payload in the error page, executing the script in victims' browsers when they view the page.
How to fix it
Upgrade to a fixed version such as boring-registry-fips 0.14.0-r4 or later; apply vendor patches that properly sanitize UTF-7 encoded input in error pages; consider disabling or customizing default error pages if immediate upgrade is not feasible.
How to confirm the fix worked
Confirm the server version is updated beyond 2.2.6; test by sending UTF-7 encoded URLs and verifying that scripts are no longer reflected or executed in 403 responses; review changelog entries for error-page handling fixes.
Typical attack path
- Identify a target server running an affected Apache version
- Craft a request with a UTF-7 encoded payload in the URL path
- Trigger a 403 Forbidden response by requesting a protected or nonexistent resource
- Observe the payload reflected and executed in the error page rendered to the victim
How to detect it
Review web server access logs for 403 responses triggered by URLs containing UTF-7 markers such as +ADw- or +AD4-; inspect error page rendering code for unsanitized input; correlate with unusual script execution in client-side logs if available.
- 403 responses containing +ADw-script or similar UTF-7 sequences
- URLs with %2B%41%44%77%2D patterns in access logs
What your security team should do
- Prioritize patching affected Apache instances to the fixed release within standard change windows given the public exploit availability
- Implement web application firewall rules to block UTF-7 encoded sequences in URLs
- Audit custom error page configurations for proper output encoding
- Monitor EPSS trend stability and reassess if new exploit code emerges
The record
Cross-site scripting (XSS) vulnerability in Apache 2.2.6 and earlier allows remote attackers to inject arbitrary web script or HTML via UTF-7 encoded URLs that are not properly handled when displaying the 403 Forbidden error page.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Chainguard | apache2 | 0 | 0 |
| Chainguard | apache2-compat | 0 | 0 |
| Chainguard | apache2-config | 0 | 0 |
| Chainguard | apache2-config-compat | 0 | 0 |
| Chainguard | apache2-data | 0 | 0 |
| Chainguard | apache2-dev | 0 | 0 |
| Chainguard | apache2-doc | 0 | 0 |
| Chainguard | apache2-oci-entrypoint | 0 | 0 |
| Chainguard | apache2-utils | 0 | 0 |
| Debian:10 | apache2 | 0 | 2.2.8-1 |
| Debian:11 | apache2 | 0 | 2.2.8-1 |
| Debian:12 | apache2 | 0 | 2.2.8-1 |
| Debian:13 | apache2 | 0 | 2.2.8-1 |
| Wolfi | apache2 | 0 | 0 |
| Wolfi | apache2-compat | 0 | 0 |
| Wolfi | apache2-config | 0 | 0 |
| Wolfi | apache2-config-compat | 0 | 0 |
| Wolfi | apache2-data | 0 | 0 |
| Wolfi | apache2-dev | 0 | 0 |
| Wolfi | apache2-doc | 0 | 0 |
| Wolfi | apache2-oci-entrypoint | 0 | 0 |
| Wolfi | apache2-utils | 0 | 0 |
Related vulnerabilities
- CVE-2025-23048 In some mod_ssl configurations on Apache HTTP Server 2.4.35 through to 2.4.63, an access… Also affects apache2
- CVE-2007-0450 Directory traversal vulnerability in Apache HTTP Server and Tomcat 5.x before 5.5.22 and… Also affects apache2
- CVE-2007-0086 The Apache HTTP Server, when accessed through a TCP connection with a large window size… Also affects apache2
- CVE-1999-1412 A possible interaction between Apple MacOS X release 1.0 and Apache HTTP server allows… Also affects apache2
- CVE-1999-0678 A default configuration of Apache on Debian GNU/Linux sets the ServerRoot to /usr/doc… Also affects apache2
- CVE-1999-0236 ScriptAlias directory in NCSA and Apache httpd allowed attackers to read CGI programs. Also affects apache2
- CVE-2015-0228 The lua_websocket_read function in lua_request.c in the mod_lua module in the Apache HTTP… Also affects apache2
- CVE-2014-3583 The handle_headers function in mod_proxy_fcgi.c in the mod_proxy_fcgi module in the… Also affects apache2