CVE-2013-2027: Jython standalone Jython Improper Access Restrictions Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-9347-9w64-q5wp
CWE-281
Published
Advisory Summary

CVE-2013-2027 is a MODERATE jython improper access restrictions vulnerability vulnerability (CWE-281: Improper Preservation of Permissions) affecting Jython standalone libraries in the Maven ecosystem. The issue involves jython improper access restrictions vulnerability. Remediation is available by upgrading affected packages to version 2.7.2b3.

CVE-2013-2027 at a Glance

CVE Identifier CVE-2013-2027
GHSA Identifier GHSA-9347-9w64-q5wp
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-281: Improper Preservation of Permissions
Affected Product Jython standalone
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2013-2027

To remediate this vulnerability, upgrade all affected Jython standalone 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.python:jython-standalone fixed: 2.7.2b3
<dependency>
    <groupId>org.python</groupId>
    <artifactId>jython-standalone</artifactId>
    <version>2.7.2b3</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.python

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.python

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

Note: The mvn dependency:tree -Dincludes=org.python 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-281: Improper Preservation of Permissions, where the product does not preserve permissions or incorrectly preserves permissions when copying, restoring, or sharing objects, which can cause them to have less restrictive permissions than intended. In Jython standalone, 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

Jython before 2.7.2b3 uses the current umask to set the privileges of the class cache files, which allows local users to bypass intended access restrictions via unspecified vectors.

CVE-2013-2027 Affected Jython standalone Versions

1 component(s)
Fixed Versions:
2.7.2b3
Product / Package Ecosystem Affected Versions Fixed Version
org.python:jython-standalone
Maven
< 2.7.2b3
2.7.2b3

References

Frequently Asked Questions

What is CVE-2013-2027?
CVE-2013-2027 is a security vulnerability in Jython standalone involving Jython Improper Access Restrictions vulnerability under CWE-281: Improper Preservation of Permissions.
Which Jython standalone versions are affected?
Affected versions include releases prior to 2.7.2b3 across affected packages: org.python:jython-standalone.
What version fixes CVE-2013-2027?
Upgrading to 2.7.2b3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is jython-standalone affected?
Yes, org.python:jython-standalone is affected in releases prior to 2.7.2b3. Upgrade your dependency to 2.7.2b3 or later.
What CWE is associated with CVE-2013-2027?
CVE-2013-2027 is classified under CWE-281: Improper Preservation of Permissions (The product does not preserve permissions or incorrectly preserves permissions when copying, restoring, or sharing objects, which can cause them to have less restrictive permissions than intended.).
How can I check Maven dependencies for CVE-2013-2027?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.python'. 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-9347-9w64-q5wp",
  "modified" : "2023-08-17T22:33:35Z",
  "published" : "2022-05-14T02:05:10Z",
  "aliases" : [ "CVE-2013-2027" ],
  "summary" : "Jython Improper Access Restrictions vulnerability",
  "details" : "Jython before 2.7.2b3 uses the current umask to set the privileges of the class cache files, which allows local users to bypass intended access restrictions via unspecified vectors.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.python:jython-standalone"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.7.2b3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2013-2027"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jython/frozen-mirror/commit/053949e66d307168fd70b39725f4d3e6b642acc1"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=947949"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jython/frozen-mirror/blob/b8d7aa4cee50c0c0fe2f4b235dd62922dd0f3f99/NEWS#L25C8-L25C15"
  }, {
    "type" : "WEB",
    "url" : "http://advisories.mageia.org/MGASA-2015-0096.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-updates/2015-02/msg00055.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.mandriva.com/security/advisories?name=MDVSA-2015:158"
  }, {
    "type" : "WEB",
    "url" : "http://www.oracle.com/technetwork/security-advisory/cpujul2017-3236622.html"
  }, {
    "type" : "PACKAGE",
    "url" : "jython/frozen-mirror"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-281" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-08-17T22:33:35Z",
    "nvd_published_at" : "2015-02-13T15:59:00Z"
  }
}