Bug 2066479 (CVE-2022-29599) - CVE-2022-29599 maven-shared-utils: Command injection via Commandline class
Summary: CVE-2022-29599 maven-shared-utils: Command injection via Commandline class
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2022-29599
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2066480 2068193 2068630 2068631 2068632 2068633 2068634 2068635 2068636 2068637 2068638 2068639 2068640 2068641 2068642 2068643 2068644 2068645 2068646 2068647 2068648 2068649 2068650 2068651 2069081 2070057 2070058 2070059
Blocks: 2066481
TreeView+ depends on / blocked
 
Reported: 2022-03-21 21:29 UTC by Pedro Sampaio
Modified: 2024-02-12 10:43 UTC (History)
107 users (show)

Fixed In Version: maven-shared-utils 3.3.3
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the maven-shared-utils package. This issue allows a Command Injection due to improper escaping, allowing a shell injection attack.
Clone Of:
Environment:
Last Closed: 2022-05-02 12:45:32 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2022:1674 0 None None None 2022-05-02 18:12:04 UTC
Red Hat Product Errata RHBA-2022:1707 0 None None None 2022-05-04 12:51:34 UTC
Red Hat Product Errata RHBA-2022:4780 0 None None None 2022-05-26 12:43:09 UTC
Red Hat Product Errata RHBA-2022:4837 0 None None None 2022-05-31 10:32:19 UTC
Red Hat Product Errata RHBA-2022:4838 0 None None None 2022-05-31 10:45:05 UTC
Red Hat Product Errata RHBA-2022:4878 0 None None None 2022-06-01 18:27:01 UTC
Red Hat Product Errata RHBA-2022:4923 0 None None None 2022-06-07 09:14:58 UTC
Red Hat Product Errata RHBA-2022:4995 0 None None None 2022-06-13 10:21:32 UTC
Red Hat Product Errata RHBA-2022:4996 0 None None None 2022-06-13 10:22:00 UTC
Red Hat Product Errata RHBA-2022:5007 0 None None None 2022-06-13 13:05:21 UTC
Red Hat Product Errata RHBA-2023:0717 0 None None None 2023-02-09 19:57:21 UTC
Red Hat Product Errata RHSA-2022:1541 0 None None None 2022-04-26 10:21:32 UTC
Red Hat Product Errata RHSA-2022:1662 0 None Closed [BZ] When we try to fetch sosreport from server its getting hung. 2022-05-20 20:31:14 UTC
Red Hat Product Errata RHSA-2022:4699 0 None None None 2022-05-23 11:57:06 UTC
Red Hat Product Errata RHSA-2022:4797 0 None None None 2022-05-30 12:35:59 UTC
Red Hat Product Errata RHSA-2022:4798 0 None None None 2022-05-30 12:59:27 UTC
Red Hat Product Errata RHSA-2022:9098 0 None None None 2023-01-04 16:58:39 UTC
Red Hat Product Errata RHSA-2023:0573 0 None None None 2023-02-09 12:47:31 UTC
Red Hat Product Errata RHSA-2023:3198 0 None None None 2023-05-17 17:50:36 UTC
Red Hat Product Errata RHSA-2023:3610 0 None None None 2023-06-15 00:14:54 UTC
Red Hat Product Errata RHSA-2023:3622 0 None None None 2023-06-15 09:01:28 UTC
Red Hat Product Errata RHSA-2023:6179 0 None None None 2023-10-30 12:35:02 UTC
Red Hat Product Errata RHSA-2023:7288 0 None None None 2023-11-15 19:24:33 UTC
Red Hat Product Errata RHSA-2024:0775 0 None None None 2024-02-12 10:43:41 UTC
Red Hat Product Errata RHSA-2024:0776 0 None None None 2024-02-12 10:23:49 UTC
Red Hat Product Errata RHSA-2024:0777 0 None None None 2024-02-12 10:25:11 UTC
Red Hat Product Errata RHSA-2024:0778 0 None None None 2024-02-12 10:36:31 UTC

Description Pedro Sampaio 2022-03-21 21:29:09 UTC
org.apache.maven.shared:maven-shared-utils is a functional replacement for plexus-utils in Maven. Affected versions of this package are vulnerable to Command Injection. The Commandline class can emit double-quoted strings without proper escaping, allowing shell injection attacks. The BourneShell class should unconditionally single-quote emitted strings (including the name of the command itself being quoted), with {{'"'"'}} used for embedded single quotes, for maximum safety across shells implementing a superset of POSIX quoting rules. 

References:

https://security.snyk.io/vuln/SNYK-JAVA-ORGAPACHEMAVENSHARED-570592
https://issues.apache.org/jira/browse/MSHARED-297
https://github.com/apache/maven-shared-utils/pull/40

Comment 1 Pedro Sampaio 2022-03-21 21:29:41 UTC
Created maven-shared-utils tracking bugs for this issue:

Affects: fedora-all [bug 2066480]

Comment 9 errata-xmlrpc 2022-04-26 10:21:27 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2022:1541 https://access.redhat.com/errata/RHSA-2022:1541

Comment 10 errata-xmlrpc 2022-05-02 08:02:35 UTC
This issue has been addressed in the following products:

  Red Hat Software Collections for Red Hat Enterprise Linux 7

Via RHSA-2022:1662 https://access.redhat.com/errata/RHSA-2022:1662

Comment 11 Product Security DevOps Team 2022-05-02 12:45:26 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2022-29599

Comment 12 errata-xmlrpc 2022-05-23 11:57:00 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.1 Update Services for SAP Solutions

Via RHSA-2022:4699 https://access.redhat.com/errata/RHSA-2022:4699

Comment 13 errata-xmlrpc 2022-05-30 12:35:53 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.4 Extended Update Support
  Red Hat Enterprise Linux 8
  Red Hat Enterprise Linux 8.2 Extended Update Support

Via RHSA-2022:4797 https://access.redhat.com/errata/RHSA-2022:4797

Comment 14 errata-xmlrpc 2022-05-30 12:59:21 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.2 Extended Update Support
  Red Hat Enterprise Linux 8.4 Extended Update Support
  Red Hat Enterprise Linux 8

Via RHSA-2022:4798 https://access.redhat.com/errata/RHSA-2022:4798

Comment 17 errata-xmlrpc 2023-01-04 16:58:34 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.10

Via RHSA-2022:9098 https://access.redhat.com/errata/RHSA-2022:9098

Comment 18 errata-xmlrpc 2023-02-09 12:47:27 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.9

Via RHSA-2023:0573 https://access.redhat.com/errata/RHSA-2023:0573

Comment 22 errata-xmlrpc 2023-05-17 17:50:32 UTC
This issue has been addressed in the following products:

  OpenShift Developer Tools and Services for OCP 4.11

Via RHSA-2023:3198 https://access.redhat.com/errata/RHSA-2023:3198

Comment 24 errata-xmlrpc 2023-06-15 00:14:50 UTC
This issue has been addressed in the following products:

  OpenShift Developer Tools and Services for OCP 4.12

Via RHSA-2023:3610 https://access.redhat.com/errata/RHSA-2023:3610

Comment 25 errata-xmlrpc 2023-06-15 09:01:24 UTC
This issue has been addressed in the following products:

  OpenShift Developer Tools and Services for OCP 4.13

Via RHSA-2023:3622 https://access.redhat.com/errata/RHSA-2023:3622

Comment 26 errata-xmlrpc 2023-10-30 12:34:57 UTC
This issue has been addressed in the following products:

  OpenShift Developer Tools and Services for OCP 4.13

Via RHSA-2023:6179 https://access.redhat.com/errata/RHSA-2023:6179

Comment 27 errata-xmlrpc 2023-11-15 19:24:28 UTC
This issue has been addressed in the following products:

  OpenShift Developer Tools and Services for OCP 4.14

Via RHSA-2023:7288 https://access.redhat.com/errata/RHSA-2023:7288

Comment 28 errata-xmlrpc 2024-02-12 10:23:43 UTC
This issue has been addressed in the following products:

  OpenShift Developer Tools and Services for OCP 4.13

Via RHSA-2024:0776 https://access.redhat.com/errata/RHSA-2024:0776

Comment 29 errata-xmlrpc 2024-02-12 10:25:06 UTC
This issue has been addressed in the following products:

  OpenShift Developer Tools and Services for OCP 4.14

Via RHSA-2024:0777 https://access.redhat.com/errata/RHSA-2024:0777

Comment 30 errata-xmlrpc 2024-02-12 10:36:25 UTC
This issue has been addressed in the following products:

  OpenShift Developer Tools and Services for OCP 4.12

Via RHSA-2024:0778 https://access.redhat.com/errata/RHSA-2024:0778

Comment 31 errata-xmlrpc 2024-02-12 10:43:36 UTC
This issue has been addressed in the following products:

  OpenShift Developer Tools and Services for OCP 4.11

Via RHSA-2024:0775 https://access.redhat.com/errata/RHSA-2024:0775


Note You need to log in before you can comment on or make changes to this bug.