Vulnerabilities in pkg:maven/org.cryptacular/cryptacular

PACKAGE
Advisory Identifier: GHSA-x64g-4xx9-fh6x
Advisory Summary

CVE-2020-7226 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-770: Allocation of Resources Without Limits or Throttling) affecting Cryptacular libraries in the Maven ecosystem. The issue involves denial of service in cryptacular. Remediation is available by upgrading affected packages to version 1.1.4, 1.2.4.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.cryptacular/cryptacular

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.cryptacular/cryptacular. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-x64g-4xx9-fh6x CVE-2020-7226 HIGH Denial of Service in Cryptacular

CVE-2020-7226 at a Glance

CVE Identifier CVE-2020-7226
GHSA Identifier GHSA-x64g-4xx9-fh6x
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-770: Allocation of Resources Without Limits or Throttling
Affected Product Cryptacular
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:N/I:N/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 None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2020-7226

To remediate this vulnerability, upgrade all affected Cryptacular 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.cryptacular:cryptacular fixed: 1.1.4
<dependency>
    <groupId>org.cryptacular</groupId>
    <artifactId>cryptacular</artifactId>
    <version>1.1.4</version>
</dependency>
org.cryptacular:cryptacular fixed: 1.2.4
<dependency>
    <groupId>org.cryptacular</groupId>
    <artifactId>cryptacular</artifactId>
    <version>1.2.4</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.cryptacular

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.cryptacular

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

Note: The mvn dependency:tree -Dincludes=org.cryptacular 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-770: Allocation of Resources Without Limits or Throttling, where the product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated. In Cryptacular, 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

CiphertextHeader.java in Cryptacular before 1.2.4, as used in Apereo CAS and other products, allows attackers to trigger excessive memory allocation during a decode operation, because the nonce array length associated with &quot;new byte&quot; may depend on untrusted input within the header of encoded data.

CVE-2020-7226 Affected Cryptacular Versions

2 component(s)
Fixed Versions:
1.1.41.2.4
Product / Package Ecosystem Affected Versions Fixed Version
org.cryptacular:cryptacular
Maven
< 1.1.4
1.1.4
org.cryptacular:cryptacular
Maven
≥ 1.2.0
< 1.2.4
1.2.4

References

NVD — CVE-2020-7226 NVD
https://nvd.nist.gov/vuln/detail/CVE-2020-7226
Cryptacular Source Repository REPOSITORY
https://github.com/vt-middleware/cryptacular/issues/52
Cryptacular Source Repository REPOSITORY
https://github.com/apereo/cas/pull/4685
Cryptacular Source Repository REPOSITORY
https://github.com/vt-middleware/cryptacular/pull/56
Security Fix Commit FIX COMMIT
https://github.com/apereo/cas/commit/8810f2b6c71d73341d4dde6b09a18eb46cfd6d45
Security Fix Commit FIX COMMIT
https://github.com/apereo/cas/commit/93b1c3e9d90e36a19d0fa0f6efb863c6f0235e75
Security Fix Commit FIX COMMIT
https://github.com/apereo/cas/commit/a042808d6adbbf44753d52c55cac5f533e24101f
Security Fix Commit FIX COMMIT
https://github.com/vt-middleware/cryptacular/commit/311baf12252abf21947afd07bf0a0291ec3ec796
Security Fix Commit FIX COMMIT
https://github.com/vt-middleware/cryptacular/commit/ec2fb65f2455c479376695e3d75d30c7f6884b3f
Cryptacular Security Information SECURITY
https://www.oracle.com/security-alerts/cpuoct2021.html
Cryptacular Security Information SECURITY
https://www.oracle.com/security-alerts/cpuapr2022.html
lists.apache.org/thread.html/rfa4647... WEB
https://lists.apache.org/thread.html/rfa4647c58e375996e62a9094bffff6dc350ec311ba955b430e738945@%3Cdev.ws.apache.org%3E
lists.apache.org/thread.html/re7f46c... WEB
https://lists.apache.org/thread.html/re7f46c4cc29a4616e0aa669c84a0eb34832e83a8eef05189e2e59b44@%3Cdev.ws.apache.org%3E
lists.apache.org/thread.html/re04e4f... WEB
https://lists.apache.org/thread.html/re04e4f8f0d095387fb6b0ff9016a0af8c93f42e1de93b09298bfa547@%3Ccommits.ws.apache.org%3E
lists.apache.org/thread.html/rc36b75... WEB
https://lists.apache.org/thread.html/rc36b75cabb4d700b48035d15ad8b8c2712bb32123572a1bdaec2510a@%3Cdev.ws.apache.org%3E
lists.apache.org/thread.html/r77c48c... WEB
https://lists.apache.org/thread.html/r77c48cd851f60833df9a9c9c31f12243508e15d1b2a0961066d44fc6@%3Ccommits.tomee.apache.org%3E
lists.apache.org/thread.html/r4a6213... WEB
https://lists.apache.org/thread.html/r4a62133ad01d5f963755021027a4cce23f76b8674a13860d2978c7c8@%3Ccommits.tomee.apache.org%3E
lists.apache.org/thread.html/r380781... WEB
https://lists.apache.org/thread.html/r380781f5b489cb3c818536cd3b3757e806bfe0bca188591e0051ac03@%3Ccommits.ws.apache.org%3E
lists.apache.org/thread.html/r2237a2... WEB
https://lists.apache.org/thread.html/r2237a27040b57adc2fcc5570bd530ad2038e67fcb2a3ce65283d3143@%3Ccommits.tomee.apache.org%3E
lists.apache.org/thread.html/r209de8... WEB
https://lists.apache.org/thread.html/r209de85beae4d257d27fc577e3a3e97039bdb4c2dc6f4a8e5a5a5811@%3Ccommits.tomee.apache.org%3E
lists.apache.org/thread.html/r0847c7... WEB
https://lists.apache.org/thread.html/r0847c7eb78c8f9e87d5b841fbd5da52b2ad4b4345e04b51c30621d88@%3Ccommits.tomee.apache.org%3E
Cryptacular Source Repository REPOSITORY
https://github.com/vt-middleware/cryptacular/blob/master/src/main/java/org/cryptacular/CiphertextHeader.java#L153
Cryptacular Source Repository REPOSITORY
https://github.com/vt-middleware/cryptacular/blob/fafccd07ab1214e3588a35afe3c361519129605f/src/main/java/org/cryptacular/CiphertextHeader.java#L153
Cryptacular Source Repository REPOSITORY
https://github.com/vt-middleware/cryptacular

Frequently Asked Questions

What is CVE-2020-7226?
CVE-2020-7226 is a security vulnerability in Cryptacular involving Denial of Service in Cryptacular under CWE-770: Allocation of Resources Without Limits or Throttling.
Which Cryptacular versions are affected?
Affected versions include releases prior to 1.1.4, 1.2.4 across affected packages: org.cryptacular:cryptacular.
What version fixes CVE-2020-7226?
Upgrading to 1.1.4, 1.2.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is cryptacular affected?
Yes, org.cryptacular:cryptacular is affected in releases prior to 1.1.4, 1.2.4. Upgrade your dependency to 1.1.4, 1.2.4 or later.
What is the CVSS score of CVE-2020-7226?
CVE-2020-7226 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:N/I:N/A:H.
What CWE is associated with CVE-2020-7226?
CVE-2020-7226 is classified under CWE-770: Allocation of Resources Without Limits or Throttling (The product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.).
How can I check Maven dependencies for CVE-2020-7226?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.cryptacular'. 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-x64g-4xx9-fh6x",
  "modified" : "2021-10-21T21:14:28Z",
  "published" : "2020-06-10T20:02:58Z",
  "aliases" : [ "CVE-2020-7226" ],
  "summary" : "Denial of Service in Cryptacular",
  "details" : "CiphertextHeader.java in Cryptacular before 1.2.4, as used in Apereo CAS and other products, allows attackers to trigger excessive memory allocation during a decode operation, because the nonce array length associated with &quot;new byte&quot; may depend on untrusted input within the header of encoded data.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.cryptacular:cryptacular"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.1.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.cryptacular:cryptacular"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.2.0"
      }, {
        "fixed" : "1.2.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-7226"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/vt-middleware/cryptacular/issues/52"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apereo/cas/pull/4685"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/vt-middleware/cryptacular/pull/56"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apereo/cas/commit/8810f2b6c71d73341d4dde6b09a18eb46cfd6d45"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apereo/cas/commit/93b1c3e9d90e36a19d0fa0f6efb863c6f0235e75"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apereo/cas/commit/a042808d6adbbf44753d52c55cac5f533e24101f"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/vt-middleware/cryptacular/commit/311baf12252abf21947afd07bf0a0291ec3ec796"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/vt-middleware/cryptacular/commit/ec2fb65f2455c479376695e3d75d30c7f6884b3f"
  }, {
    "type" : "WEB",
    "url" : "https://www.oracle.com/security-alerts/cpuoct2021.html"
  }, {
    "type" : "WEB",
    "url" : "https://www.oracle.com/security-alerts/cpuapr2022.html"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/rfa4647c58e375996e62a9094bffff6dc350ec311ba955b430e738945@%3Cdev.ws.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/re7f46c4cc29a4616e0aa669c84a0eb34832e83a8eef05189e2e59b44@%3Cdev.ws.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/re04e4f8f0d095387fb6b0ff9016a0af8c93f42e1de93b09298bfa547@%3Ccommits.ws.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/rc36b75cabb4d700b48035d15ad8b8c2712bb32123572a1bdaec2510a@%3Cdev.ws.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r77c48cd851f60833df9a9c9c31f12243508e15d1b2a0961066d44fc6@%3Ccommits.tomee.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r4a62133ad01d5f963755021027a4cce23f76b8674a13860d2978c7c8@%3Ccommits.tomee.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r380781f5b489cb3c818536cd3b3757e806bfe0bca188591e0051ac03@%3Ccommits.ws.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r2237a27040b57adc2fcc5570bd530ad2038e67fcb2a3ce65283d3143@%3Ccommits.tomee.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r209de85beae4d257d27fc577e3a3e97039bdb4c2dc6f4a8e5a5a5811@%3Ccommits.tomee.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r0847c7eb78c8f9e87d5b841fbd5da52b2ad4b4345e04b51c30621d88@%3Ccommits.tomee.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/vt-middleware/cryptacular/blob/master/src/main/java/org/cryptacular/CiphertextHeader.java#L153"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/vt-middleware/cryptacular/blob/fafccd07ab1214e3588a35afe3c361519129605f/src/main/java/org/cryptacular/CiphertextHeader.java#L153"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/vt-middleware/cryptacular"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-770" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-10T18:23:35Z",
    "nvd_published_at" : "2020-01-24T15:15:00Z"
  }
}