CVE-2021-24374: Automattic/jetpack Remote Code Execution Vulnerability
MODERATECVE-2021-24374 is a MODERATE (CVSS 5.3) remote code execution vulnerability (CWE-668: Exposure of Resource to Wrong Sphere) affecting Automattic/jetpack libraries in the Packagist ecosystem. The issue involves jetpack exposure of resource to wrong sphere. Remediation is available by upgrading affected packages to version 9.8.
CVE-2021-24374 at a Glance
Security Impact
CVSS: 5.3
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:L/I:N/A:N).
How to Fix CVE-2021-24374
To remediate this vulnerability, upgrade all affected Automattic/jetpack 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 automattic/jetpack to 9.8
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for automattic/jetpack
How to Check if You Are Affected
To determine whether your application is affected by CVE-2021-24374, inspect your project dependencies for Automattic/jetpack:
inspect dependencies for automattic/jetpack
Analyze the terminal output to locate any version of Automattic/jetpack in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 9.8), 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-668: Exposure of Resource to Wrong Sphere, where the product exposes a resource to the wrong control sphere, providing unintended actors with inappropriate access to the resource. In Automattic/jetpack, 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-2021-24374 Affected Automattic/jetpack Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
automattic/jetpack
|
Packagist |
< 9.8
|
9.8
|
References
Frequently Asked Questions
What is CVE-2021-24374?
Which Automattic/jetpack versions are affected?
What version fixes CVE-2021-24374?
Is automattic/jetpack affected?
What is the CVSS score of CVE-2021-24374?
What CWE is associated with CVE-2021-24374?
How can I check Packagist dependencies for CVE-2021-24374?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-5hr6-r8h6-wh22",
"modified" : "2024-04-23T17:09:16Z",
"published" : "2022-05-24T19:05:47Z",
"aliases" : [ "CVE-2021-24374" ],
"summary" : "JetPack Exposure of Resource to Wrong Sphere",
"details" : "The Jetpack Carousel module of the JetPack WordPress plugin before 9.8 allows users to create a \"carousel\" type image gallery and allows users to comment on the images. A security vulnerability was found within the Jetpack Carousel module by nguyenhg_vcs that allowed the comments of non-published page/posts to be leaked.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "automattic/jetpack"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "9.8"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-24374"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/Automattic/jetpack-production"
}, {
"type" : "WEB",
"url" : "https://jetpack.com/2021/06/01/jetpack-9-8-engage-your-audience-with-wordpress-stories"
}, {
"type" : "WEB",
"url" : "https://wpscan.com/vulnerability/08a8a51c-49d3-4bce-b7e0-e365af1d8f33"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-284", "CWE-639", "CWE-668" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-04-23T17:09:16Z",
"nvd_published_at" : "2021-06-21T20:15:00Z"
}
}