CVE-2022-24727: Duplicate Advisory Command Injection Vulnerability
HIGHCVE-2022-24727 is a HIGH command injection vulnerability (CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')) affecting Duplicate Advisory libraries in the PyPI ecosystem. The issue involves command injection in weblate. Remediation is available by upgrading affected packages to version 4.11.1.
CVE-2022-24727 at a Glance
How to Fix CVE-2022-24727
To remediate this vulnerability, upgrade all affected Duplicate Advisory dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install Weblate>=4.11.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show Weblate
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2022-24727, inspect your installed packages using pip:
pip show Weblate
Analyze the terminal output to locate any version of Duplicate Advisory in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.11.1), your application is affected.
Note: The pip show Weblate command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection'), where the product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component. In Duplicate Advisory, 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-24727 Affected Duplicate Advisory Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
Weblate
|
PyPI |
< 4.11.1
|
4.11.1
|
References
Frequently Asked Questions
What is CVE-2022-24727?
Which Duplicate Advisory versions are affected?
What version fixes CVE-2022-24727?
Is Weblate affected?
What CWE is associated with CVE-2022-24727?
How can I check PyPI dependencies for CVE-2022-24727?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-h2g5-2rhx-ffgj",
"modified" : "2026-01-23T22:29:40Z",
"published" : "2022-03-05T00:00:44Z",
"withdrawn" : "2026-01-23T22:29:40Z",
"aliases" : [ "CVE-2022-24727" ],
"summary" : "Duplicate Advisory: Command injection in Weblate",
"details" : "## Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-3872-f48p-pxqj. This link is maintained to preserve external references.\n\n## Original Description\nWeblate is a web based localization tool with tight version control integration. Prior to version 4.11.1, Weblate didn't properly sanitize some arguments passed to Git and Mercurial, allowing them to change their behavior in an unintended way. Instances where untrusted users cannot create new components are not affected. The issues were fixed in the 4.11.1 release.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "Weblate"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.11.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/WeblateOrg/weblate/security/advisories/GHSA-3872-f48p-pxqj"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-24727"
}, {
"type" : "WEB",
"url" : "https://github.com/WeblateOrg/weblate/commit/35d59f1f040541c358cece0a8d4a63183ca919b8"
}, {
"type" : "WEB",
"url" : "https://github.com/WeblateOrg/weblate/commit/d83672a3e7415da1490334e2c9431e5da1966842"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/WeblateOrg/weblate"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-77" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-03-14T23:12:25Z",
"nvd_published_at" : "2022-03-04T17:15:00Z"
}
}