Summary
The SurveyWrapper component in Apache OFBiz 24.09 before 24.09.09 contains an external control of file name or path flaw (CWE-73) combined with improper neutralization of template engine elements (CWE-1336). A low-privileged authenticated user with catalog create and content upload permissions can set a file: survey template location on a product store survey pointing to an uploaded FreeMarker template. The template is executed on the server whenever any shopper adds the product to the cart.
Per the CVSS vector (8.8, high), the attack is network-based, low complexity, requires a low-privileged login and no victim interaction. The attacker gains server-side template execution with write access to the entity layer, enabling escalation to full administrator and complete compromise of confidentiality, integrity and availability.
The vulnerability is not currently listed in CISA KEV; the EPSS score is about 0.41%.
Who is affected
Organizations running Apache OFBiz 24.09 up to (but not including) 24.09.09, especially e-commerce deployments with multiple users holding catalog and content permissions.
What to do
- Upgrade Apache OFBiz to version 24.09.09, which fixes the issue.
- Verify your OFBiz version and whether it falls in the affected range 24.09 – < 24.09.09.
- Until upgraded, restrict and review users holding catalog create and content upload permissions.
- Review product store survey configurations for template locations using the file: prefix and for unexpected uploaded FreeMarker files.
- Check for unauthorized new or modified administrator accounts and follow the official Apache advisory (lists.apache.org).
Affected products and versions
CVSS vector, explained
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- Network (from the internet)
- Attack complexity
- Low
- Privileges required
- Regular user
- User interaction
- Not required
- Scope
- Vulnerable component only
- Confidentiality
- High impact
- Integrity
- High impact
- Availability
- High impact
Weakness type (CWE)
- CWE-73 External control of file name or path
- CWE-1336 Improper neutralization of special elements used in a template engine
References
- lists.apache.org/thread.html/8s8jf9kgtncwdnoqdmyw4m2yhnrgog98 vendor advisory
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.