CVE-2021-3932: Area17/twill Twill Is Vulnerable To Cross-Site Vulnerability

MODERATE
Advisory Identifier: GHSA-f99g-pg48-wrfc
CVSS 6.3
CWE-268 CWE-352
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2021-3932
GHSA Identifier GHSA-f99g-pg48-wrfc
Severity MODERATE
CVSS v3.1 Base Score 6.3
CWE Classification CWE-268: Privilege Chaining
Affected Product Area17/twill
Package Ecosystem Packagist
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability Low (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.

area17/twill fixed: 1.2.5
Upgrade area17/twill to 1.2.5
area17/twill fixed: 2.5.3
Upgrade area17/twill to 2.5.3
Verify Direct and Transitive Dependencies

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

twill is vulnerable to Cross-Site Request Forgery (CSRF).

CVE-2021-3932 Affected Area17/twill Versions

2 component(s)
Fixed Versions:
1.2.52.5.3
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?
CVE-2021-3932 is a security vulnerability in Area17/twill involving twill is vulnerable to Cross-Site Request Forgery (CSRF) under CWE-268: Privilege Chaining.
Which Area17/twill versions are affected?
Affected versions include releases prior to 1.2.5, 2.5.3 across affected packages: area17/twill.
What version fixes CVE-2021-3932?
Upgrading to 1.2.5, 2.5.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is area17/twill affected?
Yes, area17/twill is affected in releases prior to 1.2.5, 2.5.3. Upgrade your dependency to 1.2.5, 2.5.3 or later.
What is the CVSS score of CVE-2021-3932?
CVE-2021-3932 has a CVSS v3.1 base score of 6.3 (MODERATE) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2021-3932?
CVE-2021-3932 is classified under CWE-268: Privilege Chaining (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.).
How can I check Packagist dependencies for CVE-2021-3932?
Run the dependency tree command: 'inspect dependencies for area17/twill'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}