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: | vulnerability | Assignee: | Red Hat Product Security <security-response-team> |
| Status: | CLOSED ERRATA | QA Contact: | |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | unspecified | CC: | 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 | ||
Created maven-shared-utils tracking bugs for this issue: Affects: fedora-all [bug 2066480] Upstream commit: https://github.com/apache/maven-shared-utils/commit/f751e614c09df8de1a080dc1153931f3f68991c9 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 |
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