CVE-2026-23838

Source
https://cve.org/CVERecord?id=CVE-2026-23838
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-23838.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-23838
Aliases
  • GHSA-g8w3-p77x-mmxh
Published
2026-01-19T18:14:55.567Z
Modified
2026-03-10T21:51:56.354631Z
Severity
  • 8.7 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N CVSS Calculator
Summary
Tandoor Recipes module allows SQLite database to be externally accessible with the default settings
Details

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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/23xxx/CVE-2026-23838.json",
    "cwe_ids": [
        "CWE-538"
    ],
    "cna_assigner": "GitHub_M"
}
References

Affected packages

Git / github.com/nixos/nixpkgs

Affected ranges

Type
GIT
Repo
https://github.com/nixos/nixpkgs
Events
Database specific
{
    "versions": [
        {
            "introduced": "23.05"
        },
        {
            "fixed": "26.05"
        }
    ]
}

Affected versions

23.*
23.05-pre
23.11-beta
23.11-pre
24.*
24.05-pre
24.11-pre
25.*
25.11-pre

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-23838.json"