CVE-2022-42188: Lavalite/cms Path Traversal Vulnerability
HIGHCVE-2022-42188 is a HIGH (CVSS 7.5) path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Lavalite/cms libraries in the Packagist ecosystem. The issue involves lavalite vulnerable to arbitrary file read via directory traversal. Remediation is available in the latest vendor maintenance releases.
CVE-2022-42188 at a Glance
Security Impact
CVSS: 7.5
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:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2022-42188
To remediate this vulnerability, upgrade all affected Lavalite/cms 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 lavalite/cms to Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for lavalite/cms
How to Check if You Are Affected
To determine whether your application is affected by CVE-2022-42188, inspect your project dependencies for Lavalite/cms:
inspect dependencies for lavalite/cms
Analyze the terminal output to locate any version of Lavalite/cms in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), 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-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Lavalite/cms, 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-2022-42188 Affected Lavalite/cms Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
lavalite/cms
|
Packagist |
9.0.0
All 1 versions
9.0.0
|
None specified
|
References
Frequently Asked Questions
What is CVE-2022-42188?
Which Lavalite/cms versions are affected?
What version fixes CVE-2022-42188?
Is lavalite/cms affected?
What is the CVSS score of CVE-2022-42188?
What CWE is associated with CVE-2022-42188?
How can I check Packagist dependencies for CVE-2022-42188?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-cm22-88qr-7ffh",
"modified" : "2023-07-07T21:10:52Z",
"published" : "2022-10-19T12:00:23Z",
"aliases" : [ "CVE-2022-42188" ],
"summary" : "Lavalite vulnerable to Arbitrary File Read via Directory Traversal",
"details" : "In Lavalite 9.0.0, the XSRF-TOKEN cookie is vulnerable to path traversal attacks, enabling read access to arbitrary files on the server.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "lavalite/cms"
},
"versions" : [ "9.0.0" ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-42188"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/LavaLite/cms"
}, {
"type" : "WEB",
"url" : "https://github.com/nu11secur1ty/CVE-nu11secur1ty/tree/main/vendors/LavaLite"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-07-07T21:10:52Z",
"nvd_published_at" : "2022-10-18T19:15:00Z"
}
}