CVE-2026-23838 Details
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`.
A vulnerability in Tandoor Recipes, a recipe manager that can be installed via the Nix package manager, allows for the unintentional exposure of the SQLite database file over the internet. This issue affects Tandoor Recipes versions 23.05, 23.11, 24.05, 24.11, 25.05, and 25.11. The vulnerability arises because the default configuration sets both the working directory and the 'MEDIA_ROOT' to '/var/lib/tandoor-recipes'. As a result, the 'db.sqlite3' database file is created in a publicly accessible directory, where it can be accessed without authentication through HTTP, similar to other media files. This exposure occurs when 'GUNICORN_MEDIA' is enabled or when a web server like Nginx is used to serve media files.
Users can move the 'MEDIA_ROOT' to a subdirectory within '/var/lib/tandoor-recipes' to prevent the database from being exposed. After relocating the media files, update the Tandoor Recipes configuration to reflect the new 'MEDIA_ROOT' path. For NixOS versions 26.05 and later, this adjustment is not necessary as the default 'MEDIA_ROOT' is already set to a subfolder of the data directory. NixOS 25.11 also includes the patch, but it requires user intervention to implement.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jan 19, 2026CISA-ADP
Assessed Jan 20, 2026References 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.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/NixOS/nixpkgs/issues/338339 | [email protected] | Issue TrackingTechnical DescriptionVendor |
| https://github.com/NixOS/nixpkgs/pull/427845 | [email protected] | Issue TrackingVendor |
| https://github.com/NixOS/nixpkgs/pull/481140 | [email protected] | Vendor |
| https://github.com/NixOS/nixpkgs/security/advisories/GHSA-g8w3-p77x-mmxh | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-538 | Insertion of Sensitive Information into Externally-Accessible File or Directory | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| NixOS | All versions |
CPE
Remediation
| |
| Tandoor Recipes | 23.05 23.11 24.05 24.11 25.05 25.11 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jan 19, 2026 | New CVE Received | [email protected] |
Volerion