CVE-2024-58401Webkul Bagisto template injection
CVSS score
5.1
Medium
CVSS 4.0 from vulncheck.com
Exploit probability (EPSS)
0.32%
0.32% chance of exploitation in the next 30 days, higher than 25.9% of all CVEs.
CISA KEV
Not in KEV
No confirmed exploitation reported by CISA so far.
Official description
Bagisto 2.1.0 before 2.2.1 contains a client-side template injection vulnerability in the search page where the 'query' parameter is rendered unescaped inside a Vue app root. Unauthenticated attackers can send crafted VueJS template expressions to the /bagisto-common/search endpoint via the 'query' parameter to execute arbitrary JavaScript in victims' browsers. Exploitation evidence was first observed by the Shadowserver Foundation on 2024-07-30.
Source: NVD · CNA: disclosure@vulncheck.com
How to fix it, step by step
Check whether you're affected
Find every system running Webkul Bagisto and compare its version with the affected versions.
Update to a fixed version
- Update Bagisto to 2.2.1 or later.
Confirm the fix
Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.
Was this useful?
How it can be exploited
- Attack vector
- Network
- Attack complexity
- Low
- Attack requirements
- None
- Privileges required
- None
- User interaction
- Active
- Confidentiality
- None
- Integrity
- None
- Availability
- None
Values in red make the vulnerability easier to exploit or more damaging. CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Affected products
| Affected products | Versions |
|---|---|
| Webkul Bagisto | ≥ 2.1.0, < 2.2.1 |
Weakness
- CWE-1336 template injection
Timeline
- Published:
- Last modified:
Frequently asked questions
Is CVE-2024-58401 being exploited?
There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.3% probability of exploitation in the next 30 days.
What is the CVSS score of CVE-2024-58401?
CVE-2024-58401 has a CVSS 4.0 base score of 5.1 (medium).
Which versions are affected?
Webkul Bagisto (≥ 2.1.0, < 2.2.1)
Is there a patch for CVE-2024-58401?
The official record links to vendor advisories or patches; see “What to do” above.
References
- github.com/bagisto/bagisto/commit/31234e710c81670b0025eabdc847786e19eb4f65
- github.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/other/bagisto-csti.yaml
- packetstorm.news/files/id/179153/
- www.vulncheck.com/advisories/bagisto-2.1.0-2.2.1-client-side-template-injection-via-search-query
- www.vulncheck.com/advisories/bagisto-2.1.0-before-2.2.1-client-side-template-injection-via-search-query
Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.