Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-3874

bookstack is vulnerable to Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-3874
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 11:52 UTC · Revision 1

Source evidence

CVE-2021-3874

core-osv · Original source

Published 15 Oct 2021, 14:15 UTC

bookstack is vulnerable to Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

osv:CVE-2021-3874
Complete source record
{
  "id": "219200609dc3979fd4a9e19f8f5bd9d343ca1fe37214c6b990c3b43077355c98",
  "url": "https://osv.dev/vulnerability/CVE-2021-3874",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-3874",
    "summary": "bookstack is vulnerable to Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')",
    "evidence": "osv:CVE-2021-3874",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2021-3874",
      "aliases": [
        "CVE-2021-3874"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/bookstackapp/bookstack",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "dab170a6feb66986abf02b9de34c75aaf48a5373"
                },
                {
                  "fixed": "7224fbcc89f00f2b71644e36bb1b1d96addd1d5a"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:bookstackapp:bookstack:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "21.08.5"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "7224fbcc89f00f2b71644e36bb1b1d96addd1d5a"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v21.08.4",
            "v21.08.3",
            "v21.08.2",
            "v21.08.1",
            "v21.08",
            "v21.05.4",
            "v21.05.3",
            "v21.05.2",
            "v21.05.1",
            "v21.05",
            "v21.04.6",
            "v21.04.5",
            "v21.04.4",
            "v21.04.3",
            "v21.04.2",
            "v21.04.1",
            "v21.04",
            "v0.31.8",
            "v0.31.7",
            "v0.31.6",
            "v0.31.5",
            "v0.31.4",
            "v0.31.3",
            "v0.31.2",
            "v0.31.1",
            "v0.31.0",
            "v0.30.7",
            "v0.30.6",
            "v0.30.5",
            "v0.30.4",
            "v0.30.3",
            "v0.30.2",
            "v0.30.1",
            "v0.30.0",
            "v0.29.3",
            "v0.29.2",
            "v0.29.1",
            "v0.29.0",
            "v0.28.3",
            "v0.28.2",
            "v0.28.1",
            "v0.28.0",
            "v0.27.5",
            "v0.27.4",
            "v0.27.3",
            "v0.27.2",
            "v0.27.1",
            "v0.27",
            "v0.26.4",
            "v0.26.3",
            "v0.26.2",
            "v0.26.1",
            "v0.26.0",
            "v0.25.5",
            "v0.25.4",
            "v0.25.3",
            "v0.25.2",
            "v0.25.1",
            "v0.25.0",
            "v0.24.3",
            "v0.24.2",
            "v0.24.1",
            "v0.24.0",
            "v0.23.2",
            "v0.23.1",
            "v0.23.0",
            "v0.22.0",
            "v0.21.0",
            "v0.20.3",
            "v0.20.2",
            "v0.20.1",
            "v0.20.0",
            "v0.19.0",
            "v0.18.5",
            "v0.18.4",
            "v0.18.3",
            "v0.18.2",
            "v0.18.1",
            "v0.18.0",
            "v0.17.4",
            "v0.17.3",
            "v0.17.2",
            "v0.17.1",
            "v0.17.0",
            "v0.16.3",
            "v0.16.2",
            "v0.16.1",
            "v0.16.0",
            "v0.15.3",
            "v0.15.2",
            "v0.15.1",
            "v0.15.0",
            "v0.14.3",
            "v0.14.2",
            "v0.14.1",
            "v0.14.0",
            "v0.13.1",
            "v0.13.0",
            "v0.12.2",
            "v0.12.1",
            "v0.12.0",
            "v0.11.2",
            "v0.11.1",
            "v0.11.0",
            "v0.10.0",
            "v0.9.3",
            "v0.9.2",
            "v0.9.1",
            "v0.9.0",
            "v0.8.2",
            "v0.8.1",
            "v0.8.0",
            "v0.7.6",
            "v0.7.5",
            "v0.7.4",
            "v0.7.3",
            "0.7.2",
            "v.0.7.1",
            "v0.7.0",
            "v0.6.3",
            "v0.6.2",
            "v0.6.1",
            "v0.6.0",
            "v0.5.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-3874.json"
          }
        }
      ],
      "modified": "2026-10-20T10:54:52.182149375Z",
      "provider": "osv",
      "references": [
        "https://github.com/bookstackapp/bookstack/commit/7224fbcc89f00f2b71644e36bb1b1d96addd1d5a",
        "https://huntr.dev/bounties/ac268a17-72b5-446f-a09a-9945ef58607a"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-3874",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 386306,
  "published_at": "2021-10-15T14:15:07.757+00:00"
}