CVE-2021-29451: Portofino dispatcher Missing Validation Of JWT Signature Vulnerability

CRITICAL
Advisory Identifier: GHSA-6g3c-2mh5-7q6x
CVSS 9.1
CWE-347
Published
Advisory Summary

CVE-2021-29451 is a CRITICAL (CVSS 9.1) missing validation of jwt signature vulnerability (CWE-347: Improper Verification of Cryptographic Signature) affecting Portofino dispatcher libraries in the Maven ecosystem. The issue involves missing validation of jwt signature in `manydesigns/portofino`. Remediation is available by upgrading affected packages to version 5.2.1.

CVE-2021-29451 at a Glance

CVE Identifier CVE-2021-29451
GHSA Identifier GHSA-6g3c-2mh5-7q6x
Severity CRITICAL
CVSS v3.1 Base Score 9.1
CWE Classification CWE-347: Improper Verification of Cryptographic Signature
Affected Product Portofino dispatcher
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 9.1

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:H/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2021-29451

To remediate this vulnerability, upgrade all affected Portofino dispatcher dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

com.manydesigns:portofino-dispatcher fixed: 5.2.1
<dependency>
    <groupId>com.manydesigns</groupId>
    <artifactId>portofino-dispatcher</artifactId>
    <version>5.2.1</version>
</dependency>
com.manydesigns:portofino-core fixed: 5.2.1
<dependency>
    <groupId>com.manydesigns</groupId>
    <artifactId>portofino-core</artifactId>
    <version>5.2.1</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=com.manydesigns

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2021-29451, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=com.manydesigns

Analyze the terminal output to locate any version of Portofino dispatcher in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.2.1), your application is affected.

Note: The mvn dependency:tree -Dincludes=com.manydesigns command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-347: Improper Verification of Cryptographic Signature, where the product does not verify, or incorrectly verifies, the cryptographic signature for data. In Portofino dispatcher, 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

### Impact [Portofino](https://github.com/ManyDesigns/Portofino) is an open source web development framework. Portofino before version 5.2.1 did not properly verify the signature of JSON Web Tokens. This allows forging a valid JWT. ### Patches The issue will be patched in the upcoming 5.2.1 release. ### For more information If you have any questions or comments about this advisory: * Open an issue in [https://github.com/ManyDesigns/Portofino](https://github.com/ManyDesigns/Portofino)

CVE-2021-29451 Affected Portofino dispatcher Versions

2 component(s)
Fixed Versions:
5.2.1
Product / Package Ecosystem Affected Versions Fixed Version
com.manydesigns:portofino-dispatcher
Maven
≥ 5.0.0
< 5.2.1
5.2.1
com.manydesigns:portofino-core
Maven
≥ 5.0.0
< 5.2.1
5.2.1

References

Frequently Asked Questions

What is CVE-2021-29451?
CVE-2021-29451 is a security vulnerability in Portofino dispatcher involving Missing validation of JWT signature in `ManyDesigns/Portofino` under CWE-347: Improper Verification of Cryptographic Signature.
Which Portofino dispatcher versions are affected?
Affected versions include releases prior to 5.2.1 across affected packages: com.manydesigns:portofino-dispatcher, com.manydesigns:portofino-core.
What version fixes CVE-2021-29451?
Upgrading to 5.2.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is portofino-dispatcher affected?
Yes, com.manydesigns:portofino-dispatcher is affected in releases prior to 5.2.1. Upgrade your dependency to 5.2.1 or later.
Is portofino-core affected?
Yes, com.manydesigns:portofino-core is affected in releases prior to 5.2.1. Upgrade your dependency to 5.2.1 or later.
What is the CVSS score of CVE-2021-29451?
CVE-2021-29451 has a CVSS v3.1 base score of 9.1 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2021-29451?
CVE-2021-29451 is classified under CWE-347: Improper Verification of Cryptographic Signature (The product does not verify, or incorrectly verifies, the cryptographic signature for data.).
How can I check Maven dependencies for CVE-2021-29451?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=com.manydesigns'. 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-6g3c-2mh5-7q6x",
  "modified" : "2023-09-25T16:03:47Z",
  "published" : "2021-04-19T14:56:33Z",
  "aliases" : [ "CVE-2021-29451" ],
  "summary" : "Missing validation of JWT signature in `ManyDesigns/Portofino`",
  "details" : "### Impact\n[Portofino](https://github.com/ManyDesigns/Portofino) is an open source web development framework. Portofino before version 5.2.1 did not properly verify the signature of JSON Web Tokens.\nThis allows forging a valid JWT.\n\n### Patches\nThe issue will be patched in the upcoming 5.2.1 release.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [https://github.com/ManyDesigns/Portofino](https://github.com/ManyDesigns/Portofino)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.manydesigns:portofino-dispatcher"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.0.0"
      }, {
        "fixed" : "5.2.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.manydesigns:portofino-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.0.0"
      }, {
        "fixed" : "5.2.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/ManyDesigns/Portofino/security/advisories/GHSA-6g3c-2mh5-7q6x"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-29451"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ManyDesigns/Portofino/commit/8c754a0ad234555e813dcbf9e57d637f9f23d8fb"
  }, {
    "type" : "WEB",
    "url" : "https://mvnrepository.com/artifact/com.manydesigns/portofino"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-347" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-04-16T22:57:13Z",
    "nvd_published_at" : "2021-04-16T22:15:00Z"
  }
}