Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. ssddanbrown/bookstack
  4. ›
  5. CVE-2020-5256

CVE-2020-5256: Unrestricted Upload of File with Dangerous Type

March 13, 2020 (updated January 8, 2021)

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.

References

  • github.com/BookStackApp/BookStack/releases/tag/v0.25.3
  • github.com/BookStackApp/BookStack/releases/tag/v0.25.4
  • github.com/BookStackApp/BookStack/releases/tag/v0.25.5
  • github.com/BookStackApp/BookStack/security/advisories/GHSA-g9rq-x4fj-f5hx
  • github.com/advisories/GHSA-g9rq-x4fj-f5hx
  • nvd.nist.gov/vuln/detail/CVE-2020-5256

Code Behaviors & Features

Detect and mitigate CVE-2020-5256 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.25.3

Fixed versions

  • 0.25.5

Solution

Upgrade to version 0.25.5 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-434: Unrestricted Upload of File with Dangerous Type
  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

packagist/ssddanbrown/bookstack/CVE-2020-5256.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:56 +0000.