Apache OFBiz
CVE-2026-71901
Authenticated internal service dispatch through SFA vCard import
Moderate (Apache) · Public source snapshot: November 12, 2026
Original portfolio report · Source reference · Source reference · Source reference · Upstream commit · Upstream commit · Source reference · Source reference
Shared credits and the scope of my investigation are documented below.
An authenticated user with access to Apache OFBiz's Sales Force Automation (SFA) component can change the internal service selected during a vCard import. The affected form supplies a hidden serviceName field, and the server uses that value as a synchronous service-call destination. The server should select the operation appropriate to a contact or lead import.
I reviewed affected releases 24.09.01 and 24.09.07, the introducing change, and the public fix in 24.09.08. I did not run an OFBiz instance or execute the trigger. The selected service's own authentication, validation, and permission checks still constrain the effects of a substituted call.
| Public record | Details |
|---|---|
| Identifier | CVE-2026-71901 |
| Apache affected range | Releases before 24.09.08 |
| Affected releases inspected | 24.09.01, 24.09.07 |
| Fixed release inspected | 24.09.08 |
| Apache severity | Moderate |
| Weakness | CWE-99, improper control of resource identifiers |
| CVE record published | November 5, 2026 |
| Reporter credit | Charles Vosburgh and Bartlomiej Dmitruk at striga.ai |
OFBiz exposes business operations through named services. SFA has separate upload forms for importing contacts and leads, intended to call createContact and createLead respectively.
Mallory starts with her own authenticated session and access to the SFA application and import route. In 24.09.07, applications/marketing/ofbiz-component.xml declares the SFA base permissions as OFBTOOLS,SFA; the import controller requires authentication. A deployment must expose and permit access to these routes. The shipped configuration does not establish deployment prevalence.
A hidden HTML field remains request data Mallory controls. It cannot enforce the choice of an internal operation after that request enters the legitimate import workflow.
In 24.09.07, applications/marketing/widget/sfa/forms/LeadForms.xml, form NewLeadFromVCard, includes:
<field name="serviceName"><hidden value="createLead"/></field>
The contact form supplies the same field with createContact. Both routes call the generic importer. The lead route in applications/marketing/webapp/sfa/WEB-INF/controller.xml begins:
<request-map uri="createLeadFromVCard">
<security https="true" auth="true"/>
<event type="service" invoke="importVCard"/>
The importVCard model in applications/marketing/servicedef/services.xml declares serviceName as a required input string. framework/webapp/src/main/java/org/apache/ofbiz/webapp/event/ServiceEventHandler.java builds declared inputs from multipart data, attributes, and request parameters, converts their types, and supplies the session's userLogin. String conversion does not restrict the selector to the operation appropriate to the route.
The upload must reach a processable vCard record. VCard.importVCard skips a previously imported record and records without a structured name. For a record reaching dispatch, applications/marketing/src/main/java/org/apache/ofbiz/sfa/vcard/VCard.java contains:
GenericValue userLogin = (GenericValue) context.get("userLogin");
serviceCtx.put("userLogin", userLogin);
String serviceName = (String) context.get("serviceName");
Map<String, Object> serviceContext = UtilGenerics.cast(context.get("serviceContext"));
if (UtilValidate.isNotEmpty(serviceContext)) {
for (Map.Entry<String, Object> entry : serviceContext.entrySet()) {
serviceCtx.put(entry.getKey(), entry.getValue());
}
}
Map<String, Object> resp = dispatcher.runSync(serviceName, serviceCtx);
The import input becomes the internal service destination without a contact/lead allowlist or route-specific selection. The optional serviceContext is merged before the call; that source observation does not establish that an HTTP client can construct every possible Java map value or replace an authenticated identity through this field.
The May 23, 2008 OFBIZ-1643 change generalized contact import to support leads. It replaced the earlier hardcoded dispatcher.runSync("createContact", serviceCtx) with a context-controlled selector and added the hidden form fields. The generalized selector remains in both 24.09.01 and 24.09.07. I did not establish the first historical release containing the 2008 change or individually inspect 24.09.02–24.09.06; the broader affected range is Apache's assessment.
The supported primitive is an authenticated SFA user selecting an internal service through an import operation whose purpose should determine that service. Completion depends on the selected service's inputs, permission model, implementation, and the context built from the vCard.
In the inspected 24.09.07 framework/service/src/main/java/org/apache/ofbiz/service/ServiceDispatcher.java, synchronous dispatch calls checkAuth, enforces required authentication, validates inputs, and invokes the service engine. checkAuth evaluates the selected service's permission service or permission rules and throws ServiceAuthException on failure or error. Effective downstream authorization can reject the call.
A particular modification, disclosure, or code-execution chain needs evidence that the chosen service is available, receives adequate inputs, and permits that operation. This source review establishes the exposed service-selection boundary without claiming a demonstrated arbitrary-code-execution chain.
No executable reproducer or runtime output is included. The source and public fix establish the request-controlled selector and its use at dispatcher.runSync; I did not execute a substituted service call.
A local regression test should instrument dispatch in a disposable installation and verify that contact and lead imports select only their respective operations despite a conflicting client selector. Controls should cover normal imports, an inaccessible import route, and a downstream service denying the caller. These are proposed checks, not observed results.
Upgrade to Apache OFBiz 24.09.08 or later. The public fix routes the uploads through dedicated server-side wrappers and removes the selector from the client-facing forms.
In 24.09.08, applications/marketing/src/main/groovy/org/apache/ofbiz/marketing/sfa/lead/LeadServices.groovy defines:
Map createPartyLeadFromVCard() {
return (run service: 'createPartyFromVCard', with: [*: parameters,
serviceName: 'createLead'])
}
The contact wrapper uses createContact. The explicit selector follows the expanded parameter map, so the wrapper controls this internal call. Each route invokes its dedicated wrapper, whose model implements a shared import interface without declaring serviceName as an input. An internal service retains the selector for reuse by the wrappers.
The Java implementation additionally filters the destination context through dctx.makeValidContext(serviceName, "IN", serviceCtx). That limits the context to declared destination inputs; the wrappers remove the HTTP caller's choice of operation. Regression coverage should verify both fixed destinations, normal imports, and continued downstream authentication and permission failures. I inspected the correction but did not execute these tests.
CVE-2026-71901 concerns who chooses an internal service during an authenticated SFA vCard import. In the inspected affected releases, a hidden request field reaches the dispatch destination without binding the operation to the contact or lead route. OFBiz 24.09.08 corrects that selection with server-side wrappers. The selected service's own checks remain relevant to the resulting operation.
Apache credits my report alongside Bartlomiej Dmitruk at striga.ai and rates the vulnerability Moderate.
Public references:
- Apache OFBiz security advisories and fixed release
- Apache CVE record, range, severity, and credit
- Public fixing change and PR #1530
- Affected 24.09.07 vCard implementation
- Affected 24.09.07 SFA controller
- Fixed 24.09.08 wrappers
- OFBIZ-1643 introducing change
Public-source report checked November 11, 2026.