CVE-2024-34467: Topthink/framework Cross-Site Scripting Vulnerability
MODERATECVE-2024-34467 is a MODERATE (CVSS 6.1) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Topthink/framework libraries in the Packagist ecosystem. The issue involves thinkphp cross-site scripting vulnerability. Remediation is available by upgrading affected packages to version 8.0.4, 6.1.5, 6.0.17.
CVE-2024-34467 at a Glance
Security Impact
CVSS: 6.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N).
How to Fix CVE-2024-34467
To remediate this vulnerability, upgrade all affected Topthink/framework dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade topthink/framework to 8.0.4
Upgrade topthink/framework to 6.1.5
Upgrade topthink/framework to 6.0.17
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for topthink/framework
How to Check if You Are Affected
To determine whether your application is affected by CVE-2024-34467, inspect your project dependencies for Topthink/framework:
inspect dependencies for topthink/framework
Analyze the terminal output to locate any version of Topthink/framework in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 8.0.4), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Topthink/framework, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-34467 Affected Topthink/framework Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
topthink/framework
|
Packagist |
≥ 8.0.0
< 8.0.4
|
8.0.4
|
|
topthink/framework
|
Packagist |
≥ 6.1.0
< 6.1.5
|
6.1.5
|
|
topthink/framework
|
Packagist |
< 6.0.17
|
6.0.17
|
References
Frequently Asked Questions
What is CVE-2024-34467?
Which Topthink/framework versions are affected?
What version fixes CVE-2024-34467?
Is topthink/framework affected?
What is the CVSS score of CVE-2024-34467?
What CWE is associated with CVE-2024-34467?
How can I check Packagist dependencies for CVE-2024-34467?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-969f-v7jv-pgj3",
"modified" : "2024-08-16T22:17:54Z",
"published" : "2024-05-04T21:30:33Z",
"aliases" : [ "CVE-2024-34467" ],
"summary" : "ThinkPHP Cross-Site Scripting Vulnerability",
"details" : "ThinkPHP 8.0.3 allows remote attackers to exploit XSS due to inadequate filtering of function argument values in think_exception.tpl.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "topthink/framework"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "8.0.0"
}, {
"fixed" : "8.0.4"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "topthink/framework"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "6.1.0"
}, {
"fixed" : "6.1.5"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "topthink/framework"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "6.0.17"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-34467"
}, {
"type" : "WEB",
"url" : "https://github.com/top-think/framework/issues/2996"
}, {
"type" : "WEB",
"url" : "https://github.com/top-think/framework/commit/403358cd3e510e2fdab63f951930bdd093314eee"
}, {
"type" : "WEB",
"url" : "https://github.com/top-think/framework/commit/57d1950a1844ef8d3098ea290032aeb92e2e32c3"
}, {
"type" : "WEB",
"url" : "https://github.com/top-think/framework/commit/d3904e51e279c3b72ee206192aeccf9b1cffb534"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/top-think/framework"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-05-06T14:24:22Z",
"nvd_published_at" : "2024-05-04T20:15:07Z"
}
}