Skip to content

Database and filestore publicly accessible with default Odoo configuration

Critical
LeSuisse published GHSA-cwmq-6wv5-f3px Jan 31, 2026

Package

nixos/odoo (nixos)

Affected versions

21.11, 22.05, 22.11, 23.05, 23.11, 24.05, 24.11, 25.05

Patched versions

25.11, 26.05

Description

Impact

Every NixOS based Odoo setup publicly exposes the database manager without any authentication. This allows unauthorized actors to delete and download the entire database, including Odoos file store.

Unauthorized access is evident from http requests. If kept, searching access logs and/or Odoos log for requests to /web/database can give indicators, if this has been actively exploited.

The database manager is a featured intended for development and not meant to be publicly reachable. On other setups, a master password acts as 2nd line of defence. However, due to the nature of NixOS, Odoo is not able to modify its own configuration file and thus unable to persist the auto-generated password. This also applies when manually setting a master password in the web-UI. This means, the password is lost when restarting Odoo.

When no password is set, the user is prompted to set one directly via the database manager. This requires no authentication or action by any authorized user or the system administrator. Thus, the database is effectively world readable by anyone able to reach Odoo.

Patches

NixOS unstable/26.05: #485310
NixOS 25.11: #485454

Workarounds / Remediations

The recommended fix is to entirely disable the database manager by setting services.odoo.settings.options.list_db = false;.

If an immediate update to configuration is not possible, blocking all requests targeting /web/database may be used in the meantime. Disabling the database manager entirely is still the preferred long-term fix, this is also recommended by the Odoo developers.

Given how the Odoo module is made, setting a master password is no appropriate fix. If set via the web-UI, it will be lost when restarting Odoo. Setting one via services.odoo.settings is also not recommended, since the module currently has no way to properly handle secrets (thus the password would land in the nix store). The production documentation for Odoo also recommends entirely disabling the database manager on any internet facing system.

References

Severity

Critical

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
High

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

CVE ID

CVE-2026-25137

Weaknesses

Missing Authentication for Critical Function

The product does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources. Learn more on MITRE.

Files or Directories Accessible to External Parties

The product makes files or directories accessible to unauthorized actors, even though they should not be. Learn more on MITRE.

Credits