CVE-2020-5256
Remote Code Execution Through Image Uploads in BookStack
- Published
- Updated
- Reserved
- 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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | High7.9 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:L |
| NVDNVD · Modified | 3.1 | High8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 2.0% · top 20% of all CVEs (6 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.9.
Weakness
Affected products
- affected < 0.25.5
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Packagistssddanbrown/bookstackGHSA-g9rq-x4fj-f5hx (opens in a new tab)
References (4)
- https://github.com/BookStackApp/BookStack/security/advisories/GHSA-g9rq-x4fj-f5hx (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://github.com/BookStackApp/BookStack/releases/tag/v0.25.3 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/BookStackApp/BookStack/releases/tag/v0.25.4 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/BookStackApp/BookStack/releases/tag/v0.25.5 (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-g9rq-x4fj-f5hx (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2020-5256)Record last updated .