Vulnerabilities in pkg:maven/org.wso2.carbon.apimgt/org.wso2.carbon.apimgt.rest.api.admin.v1

PACKAGE
Advisory Identifier: GHSA-p6jf-79j3-33f3
Advisory Summary

CVE-2025-13590 is a CRITICAL (CVSS 9.1) carbon-apimgt does not properly restrict vulnerability (CWE-434: Unrestricted Upload of File with Dangerous Type) affecting Org.wso2.carbon.apimgt.rest.api.admin.v1 libraries in the Maven ecosystem. The issue involves carbon-apimgt does not properly restrict uploaded files. Remediation is available by upgrading affected packages to version 9.32.167.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.wso2.carbon.apimgt/org.wso2.carbon.apimgt.rest.api.admin.v1

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.wso2.carbon.apimgt/org.wso2.carbon.apimgt.rest.api.admin.v1. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-p6jf-79j3-33f3 CVE-2025-13590 CRITICAL carbon-apimgt does not properly restrict uploaded files

CVE-2025-13590 at a Glance

CVE Identifier CVE-2025-13590
GHSA Identifier GHSA-p6jf-79j3-33f3
Severity CRITICAL
CVSS v3.1 Base Score 9.1
CWE Classification CWE-434: Unrestricted Upload of File with Dangerous Type
Affected Product Org.wso2.carbon.apimgt.rest.api.admin.v1
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:H/UI:N/S:C/C:H/I:H/A:H).

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

How to Fix CVE-2025-13590

To remediate this vulnerability, upgrade all affected Org.wso2.carbon.apimgt.rest.api.admin.v1 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.rest.api.admin.v1 fixed: 9.32.167
<dependency>
    <groupId>org.wso2.carbon.apimgt</groupId>
    <artifactId>org.wso2.carbon.apimgt.rest.api.admin.v1</artifactId>
    <version>9.32.167</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=org.wso2.carbon.apimgt

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.wso2.carbon.apimgt

Analyze the terminal output to locate any version of Org.wso2.carbon.apimgt.rest.api.admin.v1 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 9.32.167), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.wso2.carbon.apimgt 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-434: Unrestricted Upload of File with Dangerous Type, where the product allows the upload or transfer of dangerous file types that are automatically processed within its environment. In Org.wso2.carbon.apimgt.rest.api.admin.v1, 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 malicious actor with administrative privileges can upload an arbitrary file to a user-controlled location within the deployment via a system REST API. Successful uploads may lead to remote code execution. By leveraging the vulnerability, a malicious actor may perform Remote Code Execution by uploading a specially crafted payload.

CVE-2025-13590 Affected Org.wso2.carbon.apimgt.rest.api.admin.v1 Versions

1 component(s)
Fixed Versions:
9.32.167
Product / Package Ecosystem Affected Versions Fixed Version
org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.rest.api.admin.v1
Maven
< 9.32.167
9.32.167

References

Frequently Asked Questions

What is CVE-2025-13590?
CVE-2025-13590 is a security vulnerability in Org.wso2.carbon.apimgt.rest.api.admin.v1 involving carbon-apimgt does not properly restrict uploaded files under CWE-434: Unrestricted Upload of File with Dangerous Type.
Which Org.wso2.carbon.apimgt.rest.api.admin.v1 versions are affected?
Affected versions include releases prior to 9.32.167 across affected packages: org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.rest.api.admin.v1.
What version fixes CVE-2025-13590?
Upgrading to 9.32.167 (or the latest patched release for your respective branch) resolves the vulnerability.
Is org.wso2.carbon.apimgt.rest.api.admin.v1 affected?
Yes, org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.rest.api.admin.v1 is affected in releases prior to 9.32.167. Upgrade your dependency to 9.32.167 or later.
What is the CVSS score of CVE-2025-13590?
CVE-2025-13590 has a CVSS v3.1 base score of 9.1 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H.
What CWE is associated with CVE-2025-13590?
CVE-2025-13590 is classified under CWE-434: Unrestricted Upload of File with Dangerous Type (The product allows the upload or transfer of dangerous file types that are automatically processed within its environment.).
How can I check Maven dependencies for CVE-2025-13590?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.wso2.carbon.apimgt'. 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-p6jf-79j3-33f3",
  "modified" : "2026-08-14T19:51:53Z",
  "published" : "2026-02-19T18:31:54Z",
  "aliases" : [ "CVE-2025-13590" ],
  "summary" : "carbon-apimgt does not properly restrict uploaded files",
  "details" : "A malicious actor with administrative privileges can upload an arbitrary file to a user-controlled location within the deployment via a system REST API. Successful uploads may lead to remote code execution. \n\n By leveraging the vulnerability, a malicious actor may perform Remote Code Execution by uploading a specially crafted payload.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.rest.api.admin.v1"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "9.32.167"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-13590"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/wso2/carbon-apimgt/pull/13560"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/wso2/carbon-apimgt/commit/49a6427b39a5d9552ce97430858bb4b1912a3044"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/wso2/carbon-apimgt"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/wso2/carbon-apimgt/releases/tag/v9.32.167"
  }, {
    "type" : "WEB",
    "url" : "https://security.docs.wso2.com/en/latest/security-announcements/security-advisories/2026/WSO2-2025-4849"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-434" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-02-19T22:11:44Z",
    "nvd_published_at" : "2026-02-19T10:16:11Z"
  }
}