CVE-2022-3952: Portofino ManyDesigns Portofino Subject To Creation Vulnerability

HIGH
Advisory Identifier: GHSA-925r-r6rp-2jj7
CVSS 7.1
CWE-668 CWE-377
Published
Advisory Summary

CVE-2022-3952 is a HIGH (CVSS 7.1) manydesigns portofino subject to creation vulnerability (CWE-668: Exposure of Resource to Wrong Sphere) affecting Portofino libraries in the Maven ecosystem. The issue involves manydesigns portofino subject to creation of insecure temporary file. Remediation is available by upgrading affected packages to version 5.3.3.

CVE-2022-3952 at a Glance

CVE Identifier CVE-2022-3952
GHSA Identifier GHSA-925r-r6rp-2jj7
Severity HIGH
CVSS v3.1 Base Score 7.1
CWE Classification CWE-668: Exposure of Resource to Wrong Sphere
Affected Product Portofino
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 7.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
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-2022-3952

To remediate this vulnerability, upgrade all affected Portofino 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 fixed: 5.3.3
<dependency>
    <groupId>com.manydesigns</groupId>
    <artifactId>portofino</artifactId>
    <version>5.3.3</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-2022-3952, 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 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.3.3), 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-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 Portofino, 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

A vulnerability has been found in ManyDesigns Portofino 5.3.2. Affected by this vulnerability is the function createTempDir of the file WarFileLauncher.java. The manipulation leads to creation of temporary file in directory with insecure permissions. Upgrading to version 5.3.3 is able to address this issue. The name of the patch is 94653cb357806c9cf24d8d294e6afea33f8f0775. It is recommended to upgrade the affected component.

CVE-2022-3952 Affected Portofino Versions

1 component(s)
Fixed Versions:
5.3.3
Product / Package Ecosystem Affected Versions Fixed Version
com.manydesigns:portofino
Maven
< 5.3.3
5.3.3

References

Frequently Asked Questions

What is CVE-2022-3952?
CVE-2022-3952 is a security vulnerability in Portofino involving ManyDesigns Portofino subject to creation of insecure temporary file under CWE-668: Exposure of Resource to Wrong Sphere.
Which Portofino versions are affected?
Affected versions include releases prior to 5.3.3 across affected packages: com.manydesigns:portofino.
What version fixes CVE-2022-3952?
Upgrading to 5.3.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is portofino affected?
Yes, com.manydesigns:portofino is affected in releases prior to 5.3.3. Upgrade your dependency to 5.3.3 or later.
What is the CVSS score of CVE-2022-3952?
CVE-2022-3952 has a CVSS v3.1 base score of 7.1 (HIGH) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2022-3952?
CVE-2022-3952 is classified under CWE-668: Exposure of Resource to Wrong Sphere (The product exposes a resource to the wrong control sphere, providing unintended actors with inappropriate access to the resource.).
How can I check Maven dependencies for CVE-2022-3952?
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-925r-r6rp-2jj7",
  "modified" : "2022-11-16T21:44:44Z",
  "published" : "2022-11-11T19:00:31Z",
  "aliases" : [ "CVE-2022-3952" ],
  "summary" : "ManyDesigns Portofino subject to creation of insecure temporary file",
  "details" : "A vulnerability has been found in ManyDesigns Portofino 5.3.2. Affected by this vulnerability is the function createTempDir of the file WarFileLauncher.java. The manipulation leads to creation of temporary file in directory with insecure permissions. Upgrading to version 5.3.3 is able to address this issue. The name of the patch is 94653cb357806c9cf24d8d294e6afea33f8f0775. It is recommended to upgrade the affected component. ",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.manydesigns:portofino"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "5.3.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-3952"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ManyDesigns/Portofino/pull/580"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ManyDesigns/Portofino/commit/94653cb357806c9cf24d8d294e6afea33f8f0775"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ManyDesigns/Portofino"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ManyDesigns/Portofino/releases/tag/v5.3.3"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?id.213457"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-377", "CWE-668" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-11-16T00:00:50Z",
    "nvd_published_at" : "2022-11-11T14:15:00Z"
  }
}