topthink/framework vulnerabilities

The ThinkPHP Framework.

Registry
Composer
Latest
8.1.4
License
Apache-2.0

19 known advisories

The latest version, 8.1.4, is not affected by any of them. Projects on older versions may be.

Update to the latest version:composer require topthink/framework:^8.1.4

Is your project on an affected topthink/framework?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Laravel or PHP apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Security advisories for topthink/framework

  • CriticalCVE-2025-50706GHSA-mrwc-mvr8-9xq55 Aug 2025

    ThinkPHP Path Traversal Vulnerability

    Affected
    <=5.1.41
    Fixed in
    No fix released
  • CriticalCVE-2024-44902GHSA-f4wh-359g-4pq79 Sept 2024

    ThinkPHP deserialization vulnerability

    Affected
    >=6.1.3 <=8.0.4
    Fixed in
    No fix released
  • MediumCVE-2024-34467GHSA-969f-v7jv-pgj34 May 2024

    ThinkPHP Cross-Site Scripting Vulnerability

    Affected
    >=8.0.0 <8.0.4 · >=6.1.0 <6.1.5 · <6.0.17
    Fixed in
    6.0.17, 6.1.5, 8.0.4
  • CriticalCVE-2022-47945GHSA-p4qr-vq2g-22wp23 Dec 2022

    ThinkPHP Framework vulnerable to remote code execution

    Affected
    <6.0.14
    Fixed in
    6.0.14
  • HighCVE-2022-44289GHSA-59fh-rjq3-xq7j6 Dec 2022

    Thinkphp has a code logic error

    Affected
    <=5.0.24 · >=5.1 <=5.1.41
    Fixed in
    No fix released
  • CriticalCVE-2022-38352GHSA-qjjj-7g7h-54v316 Sept 2022

    ThinkPHP deserialization vulnerability

    Affected
    <=6.0.13
    Fixed in
    No fix released
  • CriticalCVE-2022-33107GHSA-g377-x8rg-c9mf30 Jun 2022

    Deserialization of Untrusted Data in topthink/framework

    Affected
    <=6.0.12
    Fixed in
    No fix released
  • CriticalCVE-2018-10225GHSA-xvhr-7q4q-qjgp14 May 2022

    thinkphp SQL Injection via the index.php s parameter

    Affected
    3.1.3
    Fixed in
    No fix released
  • CriticalCVE-2018-16385GHSA-vcm7-88jx-3r3914 May 2022

    ThinkPHP SQL Injection vulnerability

    Affected
    <5.1.23
    Fixed in
    5.1.23
  • CriticalCVE-2018-17566GHSA-75fm-52mm-q5rm14 May 2022

    ThinkPHP SQL injection vulnerability

    Affected
    5.1.24
    Fixed in
    No fix released
  • CriticalCVE-2018-18529GHSA-78q9-24gv-g28814 May 2022

    ThinkPHP SQLi Vulnerability

    Affected
    <=3.2.4
    Fixed in
    No fix released
  • CriticalCVE-2018-18530GHSA-7xfj-4jpg-58vf14 May 2022

    ThinkPHP SQLi Vulnerability

    Affected
    <=5.1.25
    Fixed in
    No fix released
  • CriticalCVE-2018-18546GHSA-j7g8-3qqg-8cvm14 May 2022

    ThinkPHP SQLi Vulnerability

    Affected
    <=3.2.4
    Fixed in
    No fix released
  • CriticalCVE-2021-23592GHSA-3fpv-54ff-wqfj7 May 2022

    Deserialization of Untrusted Data in topthink/framework

    Affected
    <6.0.12
    Fixed in
    6.0.12
  • HighCVE-2022-25481GHSA-69wp-xwm7-69wm22 Mar 2022

    Exposure of Resource to Wrong Sphere in ThinkPHP Framework

    Affected
    <=5.0.24
    Fixed in
    No fix released
  • HighCVE-2021-44892GHSA-75jp-87w2-c6x211 Feb 2022

    ThinkPHP Remote Code Execution (RCE) vulnerability

    Affected
    <=3.2.3
    Fixed in
    No fix released
  • CriticalCVE-2021-44350GHSA-q868-c4vw-qjx317 Dec 2021

    ThinkPHP5 SQL Injection vulnerability

    Affected
    >=5.0 <=5.1.22
    Fixed in
    No fix released
  • CriticalCVE-2021-36564GHSA-33gc-6cw9-w3g410 Dec 2021

    Deserialization of Untrusted Data in topthink/framework

    Affected
    <6.0.9
    Fixed in
    6.0.9
  • CriticalCVE-2021-36567GHSA-qrvj-274h-hfcg7 Dec 2021

    Deserialization of Untrusted Data in topthink/framework

    Affected
    <=6.0.8
    Fixed in
    No fix released

Is your topthink/framework version vulnerable?

Which of your client projects still run an old topthink/framework?

NPMscan reads the composer.lock in every GitHub repo you pick and checks each installed version against these advisories, including the packages your packages pull in. Each finding comes with the command that fixes it.

Other Composer packages

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily. Package details from the Composer registry.