/

CVE-2026-125754

Severity:

HIGH RISK

(7.1)

IDOR (CWE-639) in Dolibarr Expense Report Payments

CVE-2026-125754

Deferred

Vulnerability type

Category:

Insecure Direct Object Reference (IDOR)

CWE:

CWE-639

Impact:

Unauthorized access to and modification of expense report payments

Severity:

HIGH RISK

(7.1)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Dolibarr's expense report payment endpoints may fail to verify that an authenticated user is authorized to access the specific report payment they request. A user with expense report read and create rights could potentially read, create, or modify payments belonging to other users, including falsifying reimbursement state.

Affected context

The issue occurs in Dolibarr's api_expensereports.class.php payment endpoints, including getAllPayments, getPayments, addPayment, and updatePayment. It may affect deployments in the stated vulnerable version ranges when these endpoints do not enforce ownership or equivalent authorization checks for each requested expense report payment.

Exploit preconditions

  • Attack surface: The expense report payment API endpoints must be reachable.
  • Required access: An authenticated account with expense report read and create rights.
  • Trigger point: A request to retrieve, add, or update a payment through an affected endpoint.
  • Why exploitation is possible: The endpoints may rely on general permissions without adequately checking whether the user is authorized for the specific report payment.

Why this happens

The underlying issue is an object-level authorization failure. When an endpoint accepts a payment or expense report identifier, it must verify that the authenticated user may perform the requested action on that specific object. Failing to make this check can allow access across users' records, mapping to CWE-639: Authorization Bypass Through User-Controlled Key.

Potential impact

  • Authenticated users may be able to view other users' expense report payments.
  • Users may be able to create or modify payment records outside their authorization scope.
  • Reimbursement status and related financial records could be falsified.
  • Organizations may face inaccurate accounting records and loss of trust in reimbursement workflows.

General mitigation guidance

Defensive patterns focus on enforcing authorization for every object-level operation, rather than relying only on endpoint-level permissions.

  • Apply ownership or role-based checks to each payment and its associated expense report.
  • Use secure-by-default authorization policies that deny access unless explicitly granted.
  • Derive object access from the authenticated user's permitted scope instead of trusting client-supplied identifiers alone.
  • Limit account privileges to the minimum required and keep payment creation and modification permissions distinct where practical.
  • Validate authorization before returning or changing payment data, and record sensitive operations for audit.

How teams detect issues like this

  • Review API handlers for payment lookups or mutations that use user-controlled identifiers without object-level authorization checks.
  • Use static analysis or code review rules to flag database access and update operations lacking a nearby permission check.
  • Test authorization policies to confirm users cannot access or change records outside their permitted scope.
  • Monitor audit logs for unusual cross-user payment access or unexpected changes to reimbursement records.

Sources

SourceLink
github.comgithub.com/Dolibarr/dolibarr/blob/24.0.1/htdocs/expensereport/class/api_expensereports.class.php#L959-L968
github.comgithub.com/Dolibarr/dolibarr/commit/322026099df5cffcca2fd45dd76193fca601cfd9
github.comgithub.com/Dolibarr/dolibarr/commit/afc12abbd24a1560aee04356e840d5819a1169fd
github.comgithub.com/Dolibarr/dolibarr/issues/40687
github.comgithub.com/Dolibarr/dolibarr/pull/40473
vulncheck.comvulncheck.com/advisories/dolibarr-20.0.0-through-23.0.4-and-24-x-before-24.0.2-idor-via-expensereport-payment-api

Frequently asked

questions

An authenticated user with the stated expense report read and create rights may be able to access or alter payments beyond their authorized scope.

The affected payment endpoints must be reachable to the user's account. The description does not establish that unauthenticated access is possible.

Check authorization for the specific payment and associated expense report on every read, create, and update operation.

Enforce default-deny object-level authorization, avoid treating client-supplied identifiers as proof of access, and test API behavior across users and roles.

Find out what's already
exploitable in your codebase.