# CVE-2020-5256: Remote Code Execution Through Image Uploads in BookStack

- Severity: High 7.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:L`
- 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.95%, higher than 80% of CVEs (2026-12-01)
- Published: 2020-03-09T15:50:22.000Z
- Modified: 2026-07-08T06:29:09.557Z
- Also known as: GHSA-g9rq-x4fj-f5hx
- Weaknesses: CWE-95, CWE-434
- Assigned by: GitHub_M

## Description

BookStack before version 0.25.5 has a vulnerability where a user could upload PHP files through image upload functions, which would allow them to execute code on the host system remotely. They would then have the permissions of the PHP process. This most impacts scenarios where non-trusted users are given permission to upload images in any area of the application. The issue was addressed in a series of patches in versions 0.25.3, 0.25.4 and 0.25.5. Users should upgrade to at least v0.25.5 to avoid this vulnerability.

(As written by CVE List.)

## Affected

- BookStackApp BookStack: < 0.25.5; before 0.25.3
- ssddanbrown/bookstack (Packagist): before 0.25.5

## Every score

- GitHub_M: CVSS:3.1 7.9 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:L`
- GitHub: CVSS:3.1 7.9 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:L`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 9.0 High `AV:N/AC:L/Au:S/C:C/I:C/A:C`

## References

- <https://github.com/BookStackApp/BookStack/security/advisories/GHSA-g9rq-x4fj-f5hx> (third-party-advisory, web)
- <https://github.com/BookStackApp/BookStack/releases/tag/v0.25.3> (release-notes, web)
- <https://github.com/BookStackApp/BookStack/releases/tag/v0.25.4> (release-notes, web)
- <https://github.com/BookStackApp/BookStack/releases/tag/v0.25.5> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-5256> (advisory)

## Sources

- CVE List: [CVE-2020-5256](https://www.cve.org/CVERecord?id=CVE-2020-5256), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-g9rq-x4fj-f5hx](https://github.com/advisories/GHSA-g9rq-x4fj-f5hx), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2020-5256](https://nvd.nist.gov/vuln/detail/CVE-2020-5256), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-5256 · Whole record: https://cve.day/CVE-2020-5256.json · Rebuilt by cve.day 2026-11-25T22:57:51.074Z
