{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2020-5256","id":"CVE-2020-5256","title":"Remote Code Execution Through Image Uploads in BookStack","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 seri","descriptionLong":"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.","published":"2020-03-09T15:50:22.000Z","updated":"2026-10-20T10:54:22.501682794Z","reserved":"2020-01-02T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":7.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:L","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":7.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:L","rating":"high","source":"GitHub_M"},{"version":"3.1","score":7.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:L","rating":"high","source":"github.com"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":7.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:L","rating":"high","source":"GitHub"},{"version":"2.0","score":9,"vector":"AV:N/AC:L/Au:S/C:C/I:C/A:C","rating":"critical","source":"NVD"}],"rating":"high","products":["BookStackApp BookStack"],"affectedProducts":[{"vendor":"BookStackApp","product":"BookStack","defaultStatus":null,"versions":[{"status":"affected","version":"< 0.25.5"}],"platforms":[]}],"packages":[{"ecosystem":"Packagist","name":"ssddanbrown/bookstack","purl":"pkg:composer/ssddanbrown/bookstack","ranges":["<0.25.5"],"fixed":["0.25.5"],"advisory":"GHSA-g9rq-x4fj-f5hx"}],"cwes":["CWE-95","CWE-434"],"aliases":["GHSA-g9rq-x4fj-f5hx"],"references":[{"url":"https://github.com/BookStackApp/BookStack/security/advisories/GHSA-g9rq-x4fj-f5hx","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://github.com/BookStackApp/BookStack/releases/tag/v0.25.3","tags":["x_refsource_MISC","x_transferred","Release Notes","advisory","web"]},{"url":"https://github.com/BookStackApp/BookStack/releases/tag/v0.25.4","tags":["x_refsource_MISC","x_transferred","Release Notes","advisory","web"]},{"url":"https://github.com/BookStackApp/BookStack/releases/tag/v0.25.5","tags":["x_refsource_MISC","x_transferred","Release Notes","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-5256","tags":["advisory"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.01969,"epssPercentile":0.80837,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2020-5256","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-5256","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2020-5256","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-g9rq-x4fj-f5hx","ok":true,"note":"GHSA-g9rq-x4fj-f5hx"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2020-5256","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}