CVE-2021-3932: Area17/twill Twill Is Vulnerable To Cross-Site Vulnerability
MODERATECVE-2021-3932 is a MODERATE (CVSS 6.3) twill is vulnerable to cross-site vulnerability (CWE-268: Privilege Chaining) affecting Area17/twill libraries in the Packagist ecosystem. The issue involves twill is vulnerable to cross-site request forgery (csrf). Remediation is available by upgrading affected packages to version 1.2.5, 2.5.3.
CVE-2021-3932 at a Glance
Security Impact
CVSS: 6.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L).
How to Fix CVE-2021-3932
To remediate this vulnerability, upgrade all affected Area17/twill 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 area17/twill to 1.2.5
Upgrade area17/twill to 2.5.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for area17/twill
How to Check if You Are Affected
To determine whether your application is affected by CVE-2021-3932, inspect your project dependencies for Area17/twill:
inspect dependencies for area17/twill
Analyze the terminal output to locate any version of Area17/twill in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.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-268: Privilege Chaining, where two distinct privileges, roles, capabilities, or rights can be combined in a way that allows an entity to perform unsafe actions that would not be allowed without that combination. In Area17/twill, 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-3932 Affected Area17/twill Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
area17/twill
|
Packagist |
< 1.2.5
|
1.2.5
|
|
area17/twill
|
Packagist |
≥ 2.0.0
< 2.5.3
|
2.5.3
|
References
Frequently Asked Questions
What is CVE-2021-3932?
Which Area17/twill versions are affected?
What version fixes CVE-2021-3932?
Is area17/twill affected?
What is the CVSS score of CVE-2021-3932?
What CWE is associated with CVE-2021-3932?
How can I check Packagist dependencies for CVE-2021-3932?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-f99g-pg48-wrfc",
"modified" : "2021-11-17T21:13:01Z",
"published" : "2021-11-15T23:19:26Z",
"aliases" : [ "CVE-2021-3932" ],
"summary" : "twill is vulnerable to Cross-Site Request Forgery (CSRF)",
"details" : "twill is vulnerable to Cross-Site Request Forgery (CSRF).",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "area17/twill"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.2.5"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "area17/twill"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.0"
}, {
"fixed" : "2.5.3"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-3932"
}, {
"type" : "WEB",
"url" : "https://github.com/area17/twill/commit/5cded9fc"
}, {
"type" : "WEB",
"url" : "https://github.com/area17/twill/commit/81d80d1fbbdd8bb73c020f03c623fd4487bd9b78"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/area17/twill"
}, {
"type" : "WEB",
"url" : "https://github.com/area17/twill/commits/bab94c1e"
}, {
"type" : "WEB",
"url" : "https://github.com/area17/twill/releases/tag/1.2.5"
}, {
"type" : "WEB",
"url" : "https://github.com/area17/twill/releases/tag/2.5.3"
}, {
"type" : "WEB",
"url" : "https://huntr.dev/bounties/6ef21e34-f6d9-445a-b657-375c53dc2b43"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-268", "CWE-352" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2021-11-15T21:56:41Z",
"nvd_published_at" : "2021-11-13T09:15:00Z"
}
}