Bug 2150011 (CVE-2022-37866)

Summary: CVE-2022-37866 : Apache Ivy: Ivy Path traversal
Product: [Other] Security Response Reporter: Patrick Del Bello <pdelbell>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: aileenc, anstephe, asoldano, avibelli, balejosg, bbaranow, bbuckingham, bcourt, bgeorges, bmaxwell, boliveir, brian.stansberry, btotty, cdewolf, chazlett, darran.lofthouse, dkreling, dosoudil, ehelms, fjuma, fmongiar, gmalinko, hhorak, ivassile, iweiss, janstey, jnethert, jorton, jpavlik, jpoth, jross, jsherril, jwon, lgao, lthon, lzap, mhulan, mizdebsk, mokumar, mosmerov, msochure, msvehla, nmoumoul, nwallace, orabin, pcreech, pdelbell, pdrozd, peholase, pgallagh, pjindal, pmackay, pskopek, rchan, rruss, rstancel, smaestri, sthorger, tcunning, tom.jenkinson, yfang
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: apache ivy 2.5.1 Doc Type: ---
Doc Text:
A flaw was found in Apache Ivy. This may allow an attacker to place artifacts inside and outside of Ivy's repository and overwrite artifacts that the user will use later.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-03 19:16:55 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: 2153785, 2154275, 2154276, 2154277, 2154278, 2154279, 2154282    
Bug Blocks: 2140157    

Description Patrick Del Bello 2022-12-01 15:32:10 UTC
When Apache Ivy downloads artifacts from a repository it stores them in the local file system based on a user-supplied "pattern" that may include placeholders for artifacts coordinates like the organisation, module or version. If said coordinates contain "../" sequences - which are valid characters for Ivy coordinates in general - it is possible the artifacts are stored outside of Ivy's local cache or repository or can overwrite different artifacts inside of the local cache. In order to exploit this vulnerability an attacker needs collaboration by the remote repository as Ivy will issue http requests containing ".." sequences and a "normal" repository will not interpret them as part of the artifact coordinates. Users of Apache Ivy 2.0.0 to 2.5.1 should upgrade to Ivy 2.5.1.

Comment 5 Marian Rehak 2022-12-16 13:40:35 UTC
Created apache-ivy tracking bugs for this issue:

Affects: fedora-all [bug 2154282]

Comment 9 errata-xmlrpc 2023-05-03 14:06:30 UTC
This issue has been addressed in the following products:

  RHINT Camel-Springboot 3.20.1

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

Comment 10 Product Security DevOps Team 2023-05-03 19:16:50 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-37866