Bug 2066479 (CVE-2022-29599)

Summary: CVE-2022-29599 maven-shared-utils: Command injection via Commandline class
Product: [Other] Security Response Reporter: Pedro Sampaio <psampaio>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: abenaiss, aboyko, aileenc, alazarot, anstephe, aschwart, asoldano, ataylor, avibelli, bbaranow, bbuckingham, bcourt, bgeorges, bmaxwell, boliveir, brian.stansberry, btotty, ccranfor, cdewolf, chazlett, chfoley, clement.escoffier, cmiranda, cmoulliard, csutherl, dandread, darran.lofthouse, dbruscin, dhanak, dkreling, dosoudil, drieden, drosa, ehelms, ellin, emingora, eric.wittmann, etirelli, ewolinet, fjansen, fjuma, fmongiar, ggastald, gmalinko, gmorling, gsmet, gzaronik, hamadhan, hbraun, hhorak, ibek, ikanello, istudens, ivassile, iweiss, janstey, java-sig-commits, jcantril, jclere, jmartisk, jnethert, jochrist, jorton, jpechane, jrokos, jross, jschatte, jscholz, jsherril, jstastny, jwon, kaycoth, krathod, kvanderr, kverlaen, lgao, lthon, lzap, manderse, mhulan, mizdebsk, mkoncek, mmccune, mnovotny, mosmerov, mposolda, msochure, msvehla, mszynkie, myarboro, nipatil, nmoumoul, nwallace, olubyans, orabin, pantinor, pcongius, pcreech, pdelbell, pdrozd, peholase, periklis, pesilva, pgallagh, pjindal, plodge, pmackay, probinso, rareddy, rchan, rgodfrey, rguimara, rkieley, rkubis, rojacob, rrajasek, rruss, rstancel, rstepani, rsvoboda, sausingh, sbiarozk, scorneli, sdouglas, shbose, smaestri, ssilvert, sthorger, swoodman, szappis, tom.jenkinson, tqvarnst, tzimanyi, vmuzikar, ytale
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
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.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-02 12:45:32 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug 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    
Bug Blocks: 2066481    

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