CVE-2024-3187: Goahead - Use After Free & Double Free
- Cve: CVE-2024-3187
- Name: Goahead - Use After Free & Double Free
- Description: This issue tracks two CWE-416 Use After Free (UAF) and one CWE-415 Double Free vulnerabilities in Goahead versions <= 6.0.0. These are caused by JST values not being nulled when freed during parsing of JST templates. If the ME_GOAHEAD_JAVASCRIPT flag is enabled, a remote attacker with the privileges to modify JavaScript template (JST) files could exploit this by providing malicious templates. This may lead to memory corruption, potentially causing a Denial of Service (DoS) or, in rare cases, code execution, though the latter is highly context-dependent.
- Impact: Memory corruption leading to potential Denial of Service or, in rare cases, code execution.
- Remediation: Update to the latest version of Goahead where these issues are fixed.
- Vulnerability type: use_after_free
- Vulnerability impact: denial_of_service, remote_code_execution
- Requirement type: logged_in
- Requirements: Attacker needs privileges to modify JavaScript template files
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.9
- Cvss vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H
- Epss score: 0.00498
- Epss percentile: 0.43571
- Assignee: [email protected]
- Published at: 2024-10-17T08:15:02Z
- Age in days: 768
- Modified at: 2026-06-17T07:43:29Z
- References total: 1
- Products total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-3187
- Nvd status: deferred
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-415 | Double Free |
References
| Url | Source | Tags |
|---|---|---|
| https://www.nozominetworks.com/labs/vulnerability-advisories-cve-2024-3187 | nvd |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| embedthis:goahead | <= 6.0.0 | no | cna_alias | /v1/products/embedthis/goahead |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Authentication required: yes
- Exposed hosts: 511179
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports