Critical

ThinkPHP5 SQL Injection vulnerability

  • Disclosed: 17.12.2021
  • Updated: 11.10.2026 10:22

SQL Injection vulnerability exists in ThinkPHP5 5.0.x <=5.1.22 via the parseOrder function in Builder.php.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Composer package topthink/framework >= 5.0, <= 5.1.22 no fix

References

CVSS score 9.8/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness (CWE)
CWE-89
Platform
Composer
Package
topthink/framework
Disclosed
17.12.2021
Updated
11.10.2026 10:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-q868-c4vw-qjx3 - CC BY 4.0

Vulnerability history: topthink/framework

All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (19) in the archive
Total entries
19
First → latest
12.2021 08.2025
Without a fix
14
Exploited in attacks
0

Severity breakdown

  • Critical 15
  • High 3
  • Medium 1

Disclosures per year

  1. 2021: 3
  2. 2022: 13
  3. 2023: 0
  4. 2024: 2
  5. 2025: 1
  6. 2026: 0
Severity:
  1. Critical CVE-2025-50706 <= 5.1.41 no fix
  2. Critical · 9.8 CVE-2024-44902 >= 6.1.3, <= 8.0.4 no fix
  3. Critical · 9.8 CVE-2022-47945 < 6.0.14 6.0.14
  4. High · 8.8 CVE-2022-44289 <= 5.0.24, >= 5.1, <= 5.1.41 no fix
  5. Critical · 9.8 CVE-2022-38352 <= 6.0.13 no fix
  6. Critical · 9.8 CVE-2022-33107 <= 6.0.12 no fix
  7. Critical · 9.8 CVE-2018-10225 = 3.1.3 no fix
  8. Critical · 9.8 CVE-2018-16385 < 5.1.23 5.1.23
  9. Critical · 9.8 CVE-2018-17566 = 5.1.24 no fix
  10. Critical · 9.8 CVE-2018-18530 <= 5.1.25 no fix
  11. Critical · 9.8 CVE-2018-18529 <= 3.2.4 no fix
  12. Critical · 9.8 CVE-2018-18546 <= 3.2.4 no fix
  13. Critical · 9.8 CVE-2021-23592 < 6.0.12 6.0.12
  14. High · 7.5 CVE-2022-25481 <= 5.0.24 no fix
  15. High · 8.8 CVE-2021-44892 <= 3.2.3 no fix
  16. ThinkPHP5 SQL Injection vulnerability this entry
    Critical · 9.8 CVE-2021-44350 >= 5.0, <= 5.1.22 no fix
  17. Critical · 9.8 CVE-2021-36564 < 6.0.9 6.0.9
  18. Critical · 9.8 CVE-2021-36567 <= 6.0.8 no fix

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.