Vulnerabilities in pkg:maven/com.codenameone/codenameone-core

PACKAGE
Advisory Identifier: GHSA-p6xq-9h8r-v544
Advisory Summary

CVE-2022-4903 is a CRITICAL (CVSS 9.8) codenameone pending intent vulnerability vulnerability (CWE-668: Exposure of Resource to Wrong Sphere) affecting Codenameone core libraries in the Maven ecosystem. The issue involves codenameone pending intent vulnerability. Remediation is available by upgrading affected packages to version 7.0.71.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/com.codenameone/codenameone-core

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/com.codenameone/codenameone-core. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-p6xq-9h8r-v544 CVE-2022-4903 CRITICAL CodenameOne Pending Intent vulnerability

CVE-2022-4903 at a Glance

CVE Identifier CVE-2022-4903
GHSA Identifier GHSA-p6xq-9h8r-v544
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-668: Exposure of Resource to Wrong Sphere
Affected Product Codenameone core
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 9.8

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

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 High (A:H)

How to Fix CVE-2022-4903

To remediate this vulnerability, upgrade all affected Codenameone core 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.codenameone:codenameone-core fixed: 7.0.71
<dependency>
    <groupId>com.codenameone</groupId>
    <artifactId>codenameone-core</artifactId>
    <version>7.0.71</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.codenameone

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=com.codenameone

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

Note: The mvn dependency:tree -Dincludes=com.codenameone 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 Codenameone core, 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 was found in CodenameOne 7.0.70. The manipulation leads to use of implicit intent for sensitive communication. It is possible to launch the attack remotely. Upgrading to version 7.0.71 is able to address this issue. The name of the patch is dad49c9ef26a598619fc48d2697151a02987d478. It is recommended to upgrade the affected component.

CVE-2022-4903 Affected Codenameone core Versions

1 component(s)
Fixed Versions:
7.0.71
Product / Package Ecosystem Affected Versions Fixed Version
com.codenameone:codenameone-core
Maven
< 7.0.71
7.0.71

References

Frequently Asked Questions

What is CVE-2022-4903?
CVE-2022-4903 is a security vulnerability in Codenameone core involving CodenameOne Pending Intent vulnerability under CWE-668: Exposure of Resource to Wrong Sphere.
Which Codenameone core versions are affected?
Affected versions include releases prior to 7.0.71 across affected packages: com.codenameone:codenameone-core.
What version fixes CVE-2022-4903?
Upgrading to 7.0.71 (or the latest patched release for your respective branch) resolves the vulnerability.
Is codenameone-core affected?
Yes, com.codenameone:codenameone-core is affected in releases prior to 7.0.71. Upgrade your dependency to 7.0.71 or later.
What is the CVSS score of CVE-2022-4903?
CVE-2022-4903 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2022-4903?
CVE-2022-4903 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-4903?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=com.codenameone'. 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-p6xq-9h8r-v544",
  "modified" : "2024-01-16T15:57:57Z",
  "published" : "2023-02-10T15:30:28Z",
  "aliases" : [ "CVE-2022-4903" ],
  "summary" : "CodenameOne Pending Intent vulnerability",
  "details" : "A vulnerability was found in CodenameOne 7.0.70. The manipulation leads to use of implicit intent for sensitive communication. It is possible to launch the attack remotely. Upgrading to version 7.0.71 is able to address this issue. The name of the patch is dad49c9ef26a598619fc48d2697151a02987d478. It is recommended to upgrade the affected component. ",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.codenameone:codenameone-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "7.0.71"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-4903"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/codenameone/CodenameOne/issues/3583"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/codenameone/CodenameOne/commit/dad49c9ef26a598619fc48d2697151a02987d478"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/codenameone/CodenameOne"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/codenameone/CodenameOne/releases/tag/7.0.71"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?ctiid.220470"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?id.220470"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-668", "CWE-927" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-01-16T15:57:57Z",
    "nvd_published_at" : "2023-02-10T15:15:00Z"
  }
}