# CVE-2021-3874: Path Traversal in bookstackapp/bookstack

- Severity: Medium 4.3 (CVSS:3.0, scored by @huntrdev) `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.20%, higher than 69% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-10-15T13:40:18.000Z
- Modified: 2026-06-17T04:05:55.700Z
- Weaknesses: CWE-22
- Assigned by: @huntrdev

## Description

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

(As written by CVE List.)

## Affected

- bookstackapp bookstackapp/bookstack: from unspecified before 21.08.5
- bookstackapp bookstack: before 21.08.5

## Every score

- @huntrdev: CVSS:3.0 4.3 Medium `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 4.0 Medium `AV:N/AC:L/Au:S/C:P/I:N/A:N`

## References

- <https://huntr.dev/bounties/ac268a17-72b5-446f-a09a-9945ef58607a> (exploit, patch, third-party-advisory)
- <https://github.com/bookstackapp/bookstack/commit/7224fbcc89f00f2b71644e36bb1b1d96addd1d5a> (patch, third-party-advisory)

## Sources

- CVE List: [CVE-2021-3874](https://www.cve.org/CVERecord?id=CVE-2021-3874), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-3874](https://nvd.nist.gov/vuln/detail/CVE-2021-3874), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-3874 · Whole record: https://cve.day/CVE-2021-3874.json · Rebuilt by cve.day 2026-11-25T22:58:04.509Z
