Codehaus-plexus: directory traversal
Description
A directory traversal vulnerability in codehaus-plexus allows remote attackers to read arbitrary files via crafted path sequences.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
A directory traversal vulnerability in codehaus-plexus allows remote attackers to read arbitrary files via crafted path sequences.
Vulnerability
Overview CVE-2022-4244 is a directory traversal flaw in the codehaus-plexus project, specifically in the plexus-utils component. The vulnerability allows an attacker to manipulate file paths using dot-dot-slash (../) sequences or absolute file paths to access files outside the intended directory [1][2].
Attack
Vector This vulnerability is network-exploitable with low complexity, requiring no authentication or user interaction. An attacker can send crafted requests to the vulnerable application to traverse the file system [3].
Impact
Successful exploitation enables an attacker to read arbitrary files on the server, including application source code and configuration files. However, access is limited to the file system permissions of the application user, typically resulting in limited confidentiality impact [3]. Red Hat rated this as Important severity [4].
Mitigation
Patches are available in later versions of plexus-utils. Red Hat included a fix in their Camel K 1.10.1 security update (RHSA-2023:3906) [4]. Users should update to the latest patched version to mitigate this vulnerability.
AI Insight generated on May 20, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
org.codehaus.plexus:plexus-utilsMaven | < 3.0.24 | 3.0.24 |
Affected products
29- Red Hat/Red Hat JBoss A-MQ 7v5cpe:/a:redhat:amq_broker:7
- Red Hat/A-MQ Clients 2v5cpe:/a:redhat:a_mq_clients:2
- Red Hat/Red Hat A-MQ Onlinev5cpe:/a:redhat:amq_online:1
- Red Hat/RHINT Camel-K-1.10.1v5cpe:/a:redhat:camel_k:1
- Red Hat/Red Hat Integration Camel Quarkusv5cpe:/a:redhat:camel_quarkus:2
- cpe:/a:redhat:camel_spring_boot:3
- Red Hat/Red Hat Integration Change Data Capturev5cpe:/a:redhat:integration:1
- Red Hat/Red Hat JBoss Data Grid 7v5cpe:/a:redhat:jboss_data_grid:7
- Red Hat/Red Hat Data Grid 8v5cpe:/a:redhat:jboss_data_grid:8
- cpe:/a:redhat:jbosseapxp
cpe:/a:redhat:jboss_enterprise_application_platform:6+ 1 more
- cpe:/a:redhat:jboss_enterprise_application_platform:6
- cpe:/a:redhat:jboss_enterprise_application_platform:7
- cpe:/a:redhat:jboss_enterprise_bpms_platform:7
- Red Hat/RHPAM 7.13.1 asyncv5cpe:/a:redhat:jboss_enterprise_bpms_platform:7.13
- Red Hat/Red Hat Decision Manager 7v5cpe:/a:redhat:jboss_enterprise_brms_platform:7
cpe:/a:redhat:jboss_enterprise_web_server:3+ 1 more
- cpe:/a:redhat:jboss_enterprise_web_server:3
- cpe:/a:redhat:jboss_enterprise_web_server:5
- Red Hat/Red Hat JBoss Fuse 6v5cpe:/a:redhat:jboss_fuse:6
- Red Hat/Red Hat JBoss Fuse 7v5cpe:/a:redhat:jboss_fuse:7
- cpe:/a:redhat:jboss_fuse_service_works:6
- Red Hat/Red Hat support for Spring Bootv5cpe:/a:redhat:openshift_application_runtimes:1.0
- Red Hat/Red Hat build of Quarkusv5cpe:/a:redhat:quarkus:2
- cpe:/a:redhat:red_hat_single_sign_on:7
- cpe:/a:redhat:rhel_software_collections:3
- Red Hat/Red Hat Integration Service Registryv5cpe:/a:redhat:service_registry:2
cpe:/o:redhat:enterprise_linux:7+ 2 more
- cpe:/o:redhat:enterprise_linux:7
- cpe:/o:redhat:enterprise_linux:8
- cpe:/o:redhat:enterprise_linux:9
Patches
133a2853df818o Updated to guard against directory traversal issues.
1 file changed · +6 −0
src/main/java/org/codehaus/plexus/util/Expand.java+6 −0 modified@@ -136,6 +136,12 @@ protected void extractFile( File srcF, File dir, InputStream compressedInputStre throws Exception { File f = FileUtils.resolveFile( dir, entryName ); + + if ( !f.getAbsolutePath().startsWith( dir.getAbsolutePath() ) ) + { + throw new IOException( "Entry '" + entryName + "' outside the target directory." ); + } + try { if ( !overwrite && f.exists() && f.lastModified() >= entryDate.getTime() )
Vulnerability mechanics
Generated on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
9- access.redhat.com/errata/RHSA-2023:2135ghsavendor-advisoryx_refsource_REDHATWEB
- access.redhat.com/errata/RHSA-2023:3906ghsavendor-advisoryx_refsource_REDHATWEB
- github.com/advisories/GHSA-g6ph-x5wf-g337ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2022-4244ghsaADVISORY
- access.redhat.com/security/cve/CVE-2022-4244ghsavdb-entryx_refsource_REDHATWEB
- bugzilla.redhat.com/show_bug.cgighsaissue-trackingx_refsource_REDHATWEB
- github.com/codehaus-plexus/plexus-utils/commit/33a2853df8185b4519b1b8bfae284f03392618efghsaWEB
- github.com/codehaus-plexus/plexus-utils/issues/4ghsaWEB
- security.snyk.io/vuln/SNYK-JAVA-ORGCODEHAUSPLEXUS-31521ghsaWEB
News mentions
0No linked articles in our index yet.