Not a U.S. government website. NDD is an independent vulnerability database by Volerion and is not affiliated with or endorsed by NIST or NVD.
VOLERION
Volerion Security Research

NOT DEFERRED DATABASE

VULNERABILITIES

CVE-2026-23838 Details

ANALYZED


This CVE record has been analyzed and enriched by NVDAPI.com as an independent party.

Description

Tandoor Recipes is a recipe manager than can be installed with the Nix package manager. Starting in version 23.05 and prior to version 26.05, when using the default configuration of Tandoor Recipes, specifically using SQLite and default `MEDIA_ROOT`, the full database file may be externally accessible, potentially on the Internet. The root cause is that the NixOS module configures the working directory of Tandoor Recipes, as well as the value of `MEDIA_ROOT`, to be `/var/lib/tandoor-recipes`. This causes Tandoor Recipes to create its `db.sqlite3` database file in the same directory as `MEDIA_ROOT` causing it to be accessible without authentication through HTTP like any other media file. This is the case when using `GUNICORN_MEDIA=1` or when using a web server like nginx to serve media files. NixOS 26.05 changes the default value of `MEDIA_ROOT` to a sub folder of the data directory. This only applies to configurations with `system.stateVersion` >= 26.05. For older configurations, one of the workarounds should be applied instead. NixOS 25.11 has received a backport of this patch, though it doesn't fix this vulnerability without user intervention. A recommended workaround is to move `MEDIA_ROOT` into a subdirectory. Non-recommended workarounds include switching to PostgreSQL or disallowing access to `db.sqlite3`.

Metrics

CVSS 3.x Severity and Vector Strings:

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.

Weakness Enumeration

CWE-IDCWE NameSource
CWE-538Insertion of Sensitive Information into Externally-Accessible File or Directory[email protected]

Affected Products

ProductVersions
NixOS
All versions

CPE

  • cpe:2.3:o:nixos:nixos:*:*:*:*:*:*:*:*

Remediation

  • No remediation found in references.
Tandoor Recipes
23.05
23.11
24.05
24.11
25.05

CPE

  • cpe:2.3:a:tandoor:recipes:*:*:*:*:*:*:*:*

Remediation

  • Upgrade: 26.05moderate effort
  • Workaround:moderate effort

    Move `MEDIA_ROOT` into a subdirectory of `/var/lib/tandoor-recipes`: 1. Stop the currently running service: `systemctl stop tandoor-recipes.service` 2. Create a media folder: `mkdir -p /var/lib/tandoor-recipes/media` 3. Move existing media to the new path: `mv /var/lib/tandoor-recipes/{files,recipes} /var/lib/tandoor-recipes/media` 4. Set `services.tandoor-recipes.extraConfig.MEDIA_ROOT = "/var/lib/tandoor-recipes/media"` in your NixOS configuration (not needed if `system.stateVersion >= 26.05`). 5. If not using `GUNICORN_MEDIA`, update your reverse proxy / web server configuration accordingly. 6. Rebuild and switch!

  • Workaround:high effort

    Switch to PostgreSQL as the database. This requires migrating the existing database to PostgreSQL. Refer to the upstream documentation for the migration procedure. After migration, delete or move the `db.sqlite3` file out of the media path.

  • Mitigation:low effort

    Disable access to `db.sqlite3` when using a web server like nginx.

Change History

3 change records found show changes


QUICK INFO

CVE Dictionary Entry:
CVE-2026-23838
NVD Published Date:
Jan 19, 2026
NVD Last Modified:
Jun 17, 2026
Source:
[email protected]
CVE-2026-23838 Details - Not Deferred