CVE-2024-49381: Github.com/plentico/plenti Plenti Arbitrary File Deletion Vulnerability Vulnerability
HIGHCVE-2024-49381 is a HIGH plenti arbitrary file deletion vulnerability vulnerability (CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')) affecting Github.com/plentico/plenti libraries in the Go ecosystem. The issue involves plenti arbitrary file deletion vulnerability. Remediation is available by upgrading affected packages to version 0.7.2.
CVE-2024-49381 at a Glance
How to Fix CVE-2024-49381
To remediate this vulnerability, upgrade all affected Github.com/plentico/plenti 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 github.com/plentico/plenti to 0.7.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/plentico/plenti
How to Check if You Are Affected
To determine whether your application is affected by CVE-2024-49381, inspect your project dependencies for Github.com/plentico/plenti:
inspect dependencies for github.com/plentico/plenti
Analyze the terminal output to locate any version of Github.com/plentico/plenti in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.7.2), 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-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection'), where the product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component. In Github.com/plentico/plenti, 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-49381 Affected Github.com/plentico/plenti Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/plentico/plenti
|
Go |
< 0.7.2
|
0.7.2
|
References
Frequently Asked Questions
What is CVE-2024-49381?
Which Github.com/plentico/plenti versions are affected?
What version fixes CVE-2024-49381?
Is github.com/plentico/plenti affected?
What CWE is associated with CVE-2024-49381?
How can I check Go dependencies for CVE-2024-49381?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-6h8w-hrfp-pffx",
"modified" : "2024-10-31T21:49:42Z",
"published" : "2024-10-31T21:49:42Z",
"aliases" : [ "CVE-2024-49381" ],
"summary" : "Plenti arbitrary file deletion vulnerability",
"details" : "Plenti, a static site generator, has an arbitrary file deletion vulnerability in versions prior to 0.7.2. The `/postLocal` endpoint is vulnerable to an arbitrary file write deletion when a plenti user serves their website. This issue may lead to information loss. Version 0.7.2 fixes the vulnerability.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/plentico/plenti"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.7.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-49381"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/plentico/plenti"
}, {
"type" : "WEB",
"url" : "https://github.com/plentico/plenti/blob/01825e0dcd3505fac57adc2edf29f772d585c008/cmd/serve.go#L205"
}, {
"type" : "WEB",
"url" : "https://github.com/plentico/plenti/releases/tag/v0.7.2"
}, {
"type" : "ADVISORY",
"url" : "https://securitylab.github.com/advisories/GHSL-2024-297_GHSL-2024-298_plenti"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-74" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-10-31T21:49:42Z",
"nvd_published_at" : "2024-10-25T14:15:12Z"
}
}