CVE-2021-26028: Joomla/archive Path Traversal Vulnerability

MODERATE
Advisory Identifier: GHSA-vgwr-773q-7j3c
CWE-22
Published
Advisory Summary

CVE-2021-26028 is a MODERATE path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Joomla/archive libraries in the Packagist ecosystem. The issue involves path traversal within joomla/archive zip class. Remediation is available by upgrading affected packages to version 1.1.10.

CVE-2021-26028 at a Glance

CVE Identifier CVE-2021-26028
GHSA Identifier GHSA-vgwr-773q-7j3c
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Product Joomla/archive
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix CVE-2021-26028

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

joomla/archive fixed: 1.1.10
Upgrade joomla/archive to 1.1.10
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for joomla/archive

How to Check if You Are Affected

To determine whether your application is affected by CVE-2021-26028, inspect your project dependencies for Joomla/archive:

inspect dependencies for joomla/archive

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

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Joomla/archive, 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

An issue was discovered in Joomla! 3.0.0 through 3.9.24. Extracting an specifilcy crafted zip package could write files outside of the intended path.

CVE-2021-26028 Affected Joomla/archive Versions

1 component(s)
Fixed Versions:
1.1.10
Product / Package Ecosystem Affected Versions Fixed Version
joomla/archive
Packagist
< 1.1.10
1.1.10

References

Frequently Asked Questions

What is CVE-2021-26028?
CVE-2021-26028 is a security vulnerability in Joomla/archive involving Path Traversal within joomla/archive zip class under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').
Which Joomla/archive versions are affected?
Affected versions include releases prior to 1.1.10 across affected packages: joomla/archive.
What version fixes CVE-2021-26028?
Upgrading to 1.1.10 (or the latest patched release for your respective branch) resolves the vulnerability.
Is joomla/archive affected?
Yes, joomla/archive is affected in releases prior to 1.1.10. Upgrade your dependency to 1.1.10 or later.
What CWE is associated with CVE-2021-26028?
CVE-2021-26028 is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.).
How can I check Packagist dependencies for CVE-2021-26028?
Run the dependency tree command: 'inspect dependencies for joomla/archive'. 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-vgwr-773q-7j3c",
  "modified" : "2021-03-24T17:57:48Z",
  "published" : "2021-03-24T17:58:13Z",
  "aliases" : [ "CVE-2021-26028" ],
  "summary" : "Path Traversal within joomla/archive zip class",
  "details" : "An issue was discovered in Joomla! 3.0.0 through 3.9.24. Extracting an specifilcy crafted zip package could write files outside of the intended path.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "joomla/archive"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.1.10"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-26028"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/joomla-framework/archive/commit/32c9009a1020d16bc1060c0d06339898b697cf2c"
  }, {
    "type" : "WEB",
    "url" : "https://developer.joomla.org/security-centre/848-20210308-core-path-traversal-within-joomla-archive-zip-class.html"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/joomla/archive/CVE-2021-26028.yaml"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-03-24T17:57:48Z",
    "nvd_published_at" : null
  }
}