CVE-2012-1207: Forkcms/forkcms Path Traversal Vulnerability
MODERATECVE-2012-1207 is a MODERATE path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Forkcms/forkcms libraries in the Packagist ecosystem. The issue involves forkcms directory traversal vulnerability. Remediation is available by upgrading affected packages to version 3.2.5.
CVE-2012-1207 at a Glance
How to Fix CVE-2012-1207
To remediate this vulnerability, upgrade all affected Forkcms/forkcms 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 forkcms/forkcms to 3.2.5
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for forkcms/forkcms
How to Check if You Are Affected
To determine whether your application is affected by CVE-2012-1207, inspect your project dependencies for Forkcms/forkcms:
inspect dependencies for forkcms/forkcms
Analyze the terminal output to locate any version of Forkcms/forkcms in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.2.5), 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 Forkcms/forkcms, 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-2012-1207 Affected Forkcms/forkcms Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
forkcms/forkcms
|
Packagist |
< 3.2.5
|
3.2.5
|
References
Frequently Asked Questions
What is CVE-2012-1207?
Which Forkcms/forkcms versions are affected?
What version fixes CVE-2012-1207?
Is forkcms/forkcms affected?
What CWE is associated with CVE-2012-1207?
How can I check Packagist dependencies for CVE-2012-1207?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-4x28-j85r-668q",
"modified" : "2024-01-12T18:02:51Z",
"published" : "2022-05-17T01:48:24Z",
"aliases" : [ "CVE-2012-1207" ],
"summary" : "ForkCMS Directory Traversal vulnerability",
"details" : "Directory traversal vulnerability in `frontend/core/engine/javascript.php` in Fork CMS 3.2.4 and possibly other versions before 3.2.5 allows remote attackers to read arbitrary files via a `..` (dot dot) in the module parameter to `frontend/js.php`.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "forkcms/forkcms"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.2.5"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 3.2.4"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2012-1207"
}, {
"type" : "WEB",
"url" : "https://github.com/forkcms/forkcms/commit/a9986b86c53de0582248b39605660fbba0c21a29"
}, {
"type" : "WEB",
"url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/73169"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/forkcms/forkcms"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20120401204340/http://www.securityfocus.com/bid/51972"
}, {
"type" : "WEB",
"url" : "http://packetstormsecurity.org/files/109709/Fork-CMS-3.2.4-Cross-Site-Scripting-Local-File-Inclusion.html"
}, {
"type" : "WEB",
"url" : "http://www.fork-cms.com/blog/detail/fork-cms-3-2-5-released"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-01-12T18:02:51Z",
"nvd_published_at" : "2012-02-24T13:55:00Z"
}
}