CVE-2022-45129: Payara Payara, When Deployed To The Vulnerability

HIGH
Advisory Identifier: GHSA-q35w-85pq-rv3x
CVSS 7.5
CWE-552
Published
Advisory Summary

CVE-2022-45129 is a HIGH (CVSS 7.5) payara, when deployed to the vulnerability (CWE-552: Files or Directories Accessible to External Parties) affecting Payara libraries in the Maven ecosystem. The issue involves payara, when deployed to the root context, allows attackers to visit meta-inf and web-inf. Remediation is available by upgrading affected packages to version 6.2022.2, 5.2022.5.

CVE-2022-45129 at a Glance

CVE Identifier CVE-2022-45129
GHSA Identifier GHSA-q35w-85pq-rv3x
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-552: Files or Directories Accessible to External Parties
Affected Product Payara
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 7.5

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:N/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 None (I:N)
Availability None (A:N)

How to Fix CVE-2022-45129

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

fish.payara.distributions:payara fixed: 6.2022.2
<dependency>
    <groupId>fish.payara.distributions</groupId>
    <artifactId>payara</artifactId>
    <version>6.2022.2</version>
</dependency>
fish.payara.distributions:payara fixed: 5.2022.5
<dependency>
    <groupId>fish.payara.distributions</groupId>
    <artifactId>payara</artifactId>
    <version>5.2022.5</version>
</dependency>
fish.payara.distributions:payara fixed: Latest secure release
<dependency>
    <groupId>fish.payara.distributions</groupId>
    <artifactId>payara</artifactId>
    <version>Latest secure release</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=fish.payara.distributions

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=fish.payara.distributions

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

Note: The mvn dependency:tree -Dincludes=fish.payara.distributions 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-552: Files or Directories Accessible to External Parties, where the product makes files or directories accessible to unauthorized actors, even though they should not be. In Payara, 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

Payara before 2022-11-04, when deployed to the root context, allows attackers to visit META-INF and WEB-INF, a different vulnerability than CVE-2022-37422. This affects Payara Platform Community before 4.1.2.191.38, 5.x before 5.2022.4, and 6.x before 6.2022.1, and Payara Platform Enterprise before 5.45.0.

CVE-2022-45129 Affected Payara Versions

3 component(s)
Fixed Versions:
6.2022.25.2022.5
Product / Package Ecosystem Affected Versions Fixed Version
fish.payara.distributions:payara
Maven
≥ 6.2021.1.Alpha1
< 6.2022.2
6.2022.2
fish.payara.distributions:payara
Maven
≥ 5.0.0.Alpha1
< 5.2022.5
5.2022.5
fish.payara.distributions:payara
Maven
≤ 4.1.2.181

References

Frequently Asked Questions

What is CVE-2022-45129?
CVE-2022-45129 is a security vulnerability in Payara involving Payara, when deployed to the root context, allows attackers to visit META-INF and WEB-INF under CWE-552: Files or Directories Accessible to External Parties.
Which Payara versions are affected?
Affected versions include releases prior to 6.2022.2, 5.2022.5 across affected packages: fish.payara.distributions:payara.
What version fixes CVE-2022-45129?
Upgrading to 6.2022.2, 5.2022.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is payara affected?
Yes, fish.payara.distributions:payara is affected in releases prior to 6.2022.2, 5.2022.5, Latest secure release. Upgrade your dependency to 6.2022.2, 5.2022.5, Latest secure release or later.
What is the CVSS score of CVE-2022-45129?
CVE-2022-45129 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2022-45129?
CVE-2022-45129 is classified under CWE-552: Files or Directories Accessible to External Parties (The product makes files or directories accessible to unauthorized actors, even though they should not be.).
How can I check Maven dependencies for CVE-2022-45129?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=fish.payara.distributions'. 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-q35w-85pq-rv3x",
  "modified" : "2025-09-04T18:23:53Z",
  "published" : "2022-11-10T12:01:03Z",
  "aliases" : [ "CVE-2022-45129" ],
  "summary" : "Payara, when deployed to the root context, allows attackers to visit META-INF and WEB-INF",
  "details" : "Payara before 2022-11-04, when deployed to the root context, allows attackers to visit META-INF and WEB-INF, a different vulnerability than CVE-2022-37422. This affects Payara Platform Community before 4.1.2.191.38, 5.x before 5.2022.4, and 6.x before 6.2022.1, and Payara Platform Enterprise before 5.45.0.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "fish.payara.distributions:payara"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "6.2021.1.Alpha1"
      }, {
        "fixed" : "6.2022.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "fish.payara.distributions:payara"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.0.0.Alpha1"
      }, {
        "fixed" : "5.2022.5"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "< 5.2022.2"
    }
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "fish.payara.distributions:payara"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "4.1.2.181"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-45129"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/payara/Payara/issues/6136"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/payara/Payara/commit/cccdfddeda71c78ae7b3179db5429e1bb8a56b2e"
  }, {
    "type" : "WEB",
    "url" : "https://blog.payara.fish/whats-new-in-the-november-2022-payara-platform-release"
  }, {
    "type" : "WEB",
    "url" : "https://docs.payara.fish/community/docs/6.2022.1/Release%20Notes/Release%20Notes%206.2022.1.html"
  }, {
    "type" : "WEB",
    "url" : "https://docs.payara.fish/community/docs/Release%20Notes/Release%20Notes%205.2022.4.html"
  }, {
    "type" : "WEB",
    "url" : "https://docs.payara.fish/enterprise/docs/Release%20Notes/Release%20Notes%205.45.0.html"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/payara/Payara"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/payara/Payara/issues?q=FISH-6775"
  }, {
    "type" : "WEB",
    "url" : "http://packetstormsecurity.com/files/169864/Payara-Platform-Path-Traversal.html"
  }, {
    "type" : "WEB",
    "url" : "http://seclists.org/fulldisclosure/2022/Nov/11"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-552" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-09-04T18:23:53Z",
    "nvd_published_at" : "2022-11-10T06:15:00Z"
  }
}