# Research Qusetion 1
The sample data (The list of pull requests considered) is given to visualize the file evolution of Ansible, Kibana, Salt Project for metrics value

The change patch of the files changed by backports are documented in the change_patch_data_code_stable/Codes/ansible::ansible/ directory 

(We provideded change patch data for Ansible project)

#Research Question 2 (Ansible)
Check version specific vulnerability in a package by Safety and Pip-audit library. 

REPORT 

  You are using Safety's free vulnerability database. This data is outdated, limited, and 
  licensed for non-commercial use only.
  All commercial projects must sign up and get an API key at https://pyup.io

  Safety v2.3.1 is scanning for Vulnerabilities...
  Scanning dependencies in your environment:

  -> /usr/lib/python3/dist-packages
  -> /home/scb486/.local/lib/python3.8/site-packages

  Using non-commercial database
  Found and scanned 151 packages
  Timestamp 2022-10-13 23:00:24
  42 vulnerabilities found
  0 vulnerabilities ignored

+======================================================================================================================================================================================================================================================+
 VULNERABILITIES FOUND 
+======================================================================================================================================================================================================================================================+

-> Vulnerability found in insecure-package version 0.1.0
   Vulnerability ID: 25853
   Affected spec: <0.2.0
   ADVISORY: This is an insecure package with lots of exploitable security vulnerabilities.
   PVE-2021-25853
   For more information, please visit https://pyup.io/vulnerabilities/PVE-2021-25853/25853/


-> Vulnerability found in pip version 20.0.2
   Vulnerability ID: 42559
   Affected spec: <21.1
   ADVISORY: A flaw was found in python-pip in the way it handled Unicode separators in git references. A remote attacker could possibly use this issue to install a different revision on a repository. The highest threat from this
   vulnerability is to data integrity. This is fixed in python-pip version 21.1.
   CVE-2021-3572
   For more information, please visit https://pyup.io/vulnerabilities/CVE-2021-3572/42559/


-> Vulnerability found in pip version 20.0.2
   Vulnerability ID: 40291
   Affected spec: <21.1
   ADVISORY: Pip 21.1 updates its dependency 'urllib3' to v1.26.4 due to security issues.
   CVE-2021-28363
   For more information, please visit https://pyup.io/vulnerabilities/CVE-2021-28363/40291/


-> Vulnerability found in pillow version 7.0.0
   Vulnerability ID: 40264
   Affected spec: <8.0.1
   ADVISORY: Pillow 8.0.1 updates 'FreeType' used in binary wheels to v2.10.4 to include a security fix.
   CVE-2020-15999
   For more information, please visit https://pyup.io/vulnerabilities/CVE-2020-15999/40264/


-> Vulnerability found in pillow version 7.0.0
   Vulnerability ID: 40271
   Affected spec: <8.1.0
   ADVISORY: Pillow 8.1.0 includes a fix for SGI Decode buffer overrun. CVE-2020-35655 #5173.
   CVE-2020-35655
   For more information, please visit https://pyup.io/vulnerabilities/CVE-2020-35655/40271/


-> Vulnerability found in pillow version 7.0.0
   Vulnerability ID: 40270
   Affected spec: <8.1.0
   ADVISORY: In Pillow before 8.1.0, PcxDecode has a buffer over-read when decoding a crafted PCX file because the user-supplied stride value is trusted for buffer calculations.
   CVE-2020-35653
   For more information, please visit https://pyup.io/vulnerabilities/CVE-2020-35653/40270/


-> Vulnerability found in pillow version 7.0.0
   Vulnerability ID: 40265
   Affected spec: <8.1.0
   ADVISORY: Pillow 8.1.0 fixes TIFF OOB Write error. CVE-2020-35654 #5175.
   CVE-2020-35654
   For more information, please visit https://pyup.io/vulnerabilities/CVE-2020-35654/40265/


-> Vulnerability found in pillow version 7.0.0
   Vulnerability ID: 40263
   Affected spec: <8.1.1
   ADVISORY: Pillow 8.1.1 includes a fix for CVE-2021-27921: Pillow before 8.1.1 allows attackers to cause a denial of service (memory consumption) because the reported size of a contained image is not properly checked for a BLP container,
   and thus an attempted memory allocation can be very large.https://pillow.readthedocs.io/en/stable/releasenotes/8.1.1.html
   CVE-2021-27921
   For more information, please visit https://pyup.io/vulnerabilities/CVE-2021-27921/40263/


-> Vulnerability found in pillow version 7.0.0
   Vulnerability ID: 40273
   Affected spec: <8.1.1
   ADVISORY: Pillow 8.1.1 includes a fix for CVE-2021-25293: There is an out-of-bounds read in SGIRleDecode.c.https://pillow.readthedocs.io/en/stable/releasenotes/8.1.1.html
   CVE-2021-25293
   For more information, please visit https://pyup.io/vulnerabilities/CVE-2021-25293/40273/


-> Vulnerability found in pillow version 7.0.0
   Vulnerability ID: 40274
   Affected spec: <8.1.1
   ADVISORY: Pillow 8.1.1 includes a fix for CVE-2021-25289: TiffDecode has a heap-based buffer overflow when decoding crafted YCbCr files because of certain interpretation conflicts with LibTIFF in RGBA mode. NOTE: this issue exists
   because of an incomplete fix for CVE-2020-35654.https://pillow.readthedocs.io/en/stable/releasenotes/8.1.1.html
   CVE-2021-25289
   For more information, please visit https://pyup.io/vulnerabilities/CVE-2021-25289/40274/


-> Vulnerability found in pillow version 7.0.0
   Vulnerability ID: 40267
   Affected spec: <8.1.1
   ADVISORY: Pillow 8.1.1 includes a fix for CVE-2021-27922: Pillow before 8.1.1 allows attackers to cause a denial of service (memory consumption) because the reported size of a contained image is not properly checked for an ICNS
   container, and thus an attempted memory allocation can be very large.https://pillow.readthedocs.io/en/stable/releasenotes/8.1.1.html
   CVE-2021-27922
   For more information, please visit https://pyup.io/vulnerabilities/CVE-2021-27922/40267/


-> Vulnerability found in pillow version 7.0.0
   Vulnerability ID: 40272
   Affected spec: <8.1.1
   ADVISORY: Pillow 8.1.1 includes a fix for CVE-2021-25291: In TiffDecode.c, there is an out-of-bounds read in TiffreadRGBATile via invalid tile boundaries.https://pillow.readthedocs.io/en/stable/releasenotes/8.1.1.html
   CVE-2021-25291
   For more information, please visit https://pyup.io/vulnerabilities/CVE-2021-25291/40272/


-> Vulnerability found in pillow version 7.0.0
   Vulnerability ID: 40275
   Affected spec: <8.1.1
   ADVISORY: Pillow 8.1.1 includes a fix for CVE-2021-25290: In TiffDecode.c, there is a negative-offset memcpy with an invalid size.https://pillow.readthedocs.io/en/stable/releasenotes/8.1.1.html
   CVE-2021-25290
   For more information, please visit https://pyup.io/vulnerabilities/CVE-2021-25290/40275/


-> Vulnerability found in pillow version 7.0.0
   Vulnerability ID: 40266
   Affected spec: <8.1.1
   ADVISORY: Pillow 8.1.1 includes a fix for CVE-2021-25292: The PDF parser allows a regular expression DoS (ReDoS) attack via a crafted PDF file because of a catastrophic backtracking
   regex.https://pillow.readthedocs.io/en/stable/releasenotes/8.1.1.html
   CVE-2021-25292
   For more information, please visit https://pyup.io/vulnerabilities/CVE-2021-25292/40266/


-> Vulnerability found in pillow version 7.0.0
   Vulnerability ID: 40596
   Affected spec: <8.2.0
   ADVISORY: Pillow version 8.2.0 includes a fix for CVE-2021-28678: For BLP data, BlpImagePlugin did not properly check that reads (after jumping to file offsets) returned data. This could lead to a DoS where the decoder could be run a
   large number of times on empty data.https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MQHA5HAIBOYI3R6HDWCLAGFTIQP767FL/https://github.com/python-...
   CVE-2021-28678
   For more information, please visit https://pyup.io/vulnerabilities/CVE-2021-28678/40596/


-> Vulnerability found in pillow version 7.0.0
   Vulnerability ID: 40594
   Affected spec: <8.2.0
   ADVISORY: Pillow version 8.2.0 includes a fix for CVE-2021-28676: For FLI data, FliDecode did not properly check that the block advance was non-zero, potentially leading to an infinite loop on
   load.https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MQHA5HAIBOYI3R6HDWCLAGFTIQP767FL/https://github.com/python-...
   CVE-2021-28676
   For more information, please visit https://pyup.io/vulnerabilities/CVE-2021-28676/40594/


-> Vulnerability found in pillow version 7.0.0
   Vulnerability ID: 40592
   Affected spec: <8.2.0
   ADVISORY: Pillow 8.2.0 includes a fix for CVE-2021-25287: There is an out-of-bounds read in J2kDecode, in j2ku_graya_la.https://pillow.readthedocs.io/en/stable/releasenotes/8.2.0.html#cve-2021-25287-cve-2021-25288-fix-oob-read-in-
   jpeg2kdecode
   CVE-2021-25287
   For more information, please visit https://pyup.io/vulnerabilities/CVE-2021-25287/40592/


-> Vulnerability found in pillow version 7.0.0
   Vulnerability ID: 40593
   Affected spec: <8.2.0
   ADVISORY: Pillow 8.2.0 includes a fix for CVE-2021-25288: There is an out-of-bounds read in J2kDecode, in j2ku_gray_i.https://pillow.readthedocs.io/en/stable/releasenotes/8.2.0.html#cve-2021-25287-cve-2021-25288-fix-oob-read-in-
   jpeg2kdecode
   CVE-2021-25288
   For more information, please visit https://pyup.io/vulnerabilities/CVE-2021-25288/40593/


-> Vulnerability found in pillow version 7.0.0
   Vulnerability ID: 40595
   Affected spec: <8.2.0
   ADVISORY: Pillow version 8.2.0 includes a fix for CVE-2021-28677: For EPS data, the readline implementation used in EPSImageFile has to deal with any combination of \r and \n as line endings. It used an accidentally quadratic method of
   accumulating lines while looking for a line ending. A malicious EPS file could use this to perform a DoS of Pillow in the open phase, before an image was accepted for opening.https://lists.fedoraproject.org/archives/list/package-...
   CVE-2021-28677
   For more information, please visit https://pyup.io/vulnerabilities/CVE-2021-28677/40595/


-> Vulnerability found in pillow version 7.0.0
   Vulnerability ID: 40965
   Affected spec: <8.3.0
   ADVISORY: Pillow version 8.3.0 includes a fix for CVE-2021-34552: Pillow through 8.2.0 and PIL (also known as Python Imaging Library) through 1.1.7 allow an attacker to pass controlled parameters directly into a convert function to
   trigger a buffer overflow in Convert.chttps://pillow.readthedocs.io/en/stable/releasenotes/8.3.0.html#buffer-overflowhttps://pillow.readthedocs.io/en/stable/releasenotes/index.html
   CVE-2021-34552
   For more information, please visit https://pyup.io/vulnerabilities/CVE-2021-34552/40965/


-> Vulnerability found in pillow version 7.0.0
   Vulnerability ID: 44525
   Affected spec: <9.0.0
   ADVISORY: Pillow 9.0.0 excludes carriage return in PDF regex to help prevent ReDoS.https://github.com/python-pillow/Pillow/pull/5912https://github.com/python-pillow/Pillow/commit/43b800d933c996226e4d7df00c33fcbe46d97363
   PVE-2021-44525
   For more information, please visit https://pyup.io/vulnerabilities/PVE-2021-44525/44525/


-> Vulnerability found in pillow version 7.0.0
   Vulnerability ID: 44486
   Affected spec: <9.0.0
   ADVISORY: Pillow 9.0.0 includes a fix for CVE-2022-22816: path_getbbox in path.c in Pillow before 9.0.0 has a buffer over-read during initialization of ImagePath.Path.https://pillow.readthedocs.io/en/stable/releasenotes/9.0.0.html#fixed-
   imagepath-path-array-handling
   CVE-2022-22816
   For more information, please visit https://pyup.io/vulnerabilities/CVE-2022-22816/44486/


-> Vulnerability found in pillow version 7.0.0
   Vulnerability ID: 44524
   Affected spec: <9.0.0
   ADVISORY: Pillow 9.0.0 ensures JpegImagePlugin stops at the end of a truncated file to avoid Denial of Service attacks.https://github.com/python-pillow/Pillow/pull/5921
   PVE-2022-44524
   For more information, please visit https://pyup.io/vulnerabilities/PVE-2022-44524/44524/


-> Vulnerability found in pillow version 7.0.0
   Vulnerability ID: 44485
   Affected spec: <9.0.0
   ADVISORY: Pillow 9.0.0 includes a fix for CVE-2022-22815: path_getbbox in path.c in Pillow before 9.0.0 improperly initializes ImagePath.Path.https://pillow.readthedocs.io/en/stable/releasenotes/9.0.0.html#fixed-imagepath-path-array-
   handling
   CVE-2022-22815
   For more information, please visit https://pyup.io/vulnerabilities/CVE-2022-22815/44485/


-> Vulnerability found in pillow version 7.0.0
   Vulnerability ID: 45356
   Affected spec: <9.0.1
   ADVISORY: Pillow before 9.0.1 allows attackers to delete files because spaces in temporary pathnames are mishandled.
   CVE-2022-24303
   For more information, please visit https://pyup.io/vulnerabilities/CVE-2022-24303/45356/


-> Vulnerability found in pillow version 7.0.0
   Vulnerability ID: 44487
   Affected spec: <9.0.1
   ADVISORY: Pillow 9.0.1 includes a fix for CVE-2022-22817: PIL.ImageMath.eval in Pillow before 9.0.0 allows evaluation of arbitrary expressions, such as ones that use the Python exec method. A first patch was issued for version 9.0.0 but
   it did not prevent builtins available to lambda expressions.https://pillow.readthedocs.io/en/stable/releasenotes/9.0.1.html#security
   CVE-2022-22817
   For more information, please visit https://pyup.io/vulnerabilities/CVE-2022-22817/44487/


-> Vulnerability found in pillow version 7.0.0
   Vulnerability ID: 38452
   Affected spec: <=7.0.0
   ADVISORY: In libImaging/SgiRleDecode.c in Pillow through 7.0.0, a number of out-of-bounds reads exist in the parsing of SGI image files. See: CVE-2020-11538. Note that this is a different issue than CVE-2020-5311.
   CVE-2020-11538
   For more information, please visit https://pyup.io/vulnerabilities/CVE-2020-11538/38452/


-> Vulnerability found in pillow version 7.0.0
   Vulnerability ID: 40268
   Affected spec: >=4.3.0,<8.1.1
   ADVISORY: Pillow before 8.1.1 allows attackers to cause a denial of service (memory consumption) because the reported size of a contained image is not properly checked for an ICO container, and thus an attempted memory allocation can be
   very large.
   CVE-2021-27923
   For more information, please visit https://pyup.io/vulnerabilities/CVE-2021-27923/40268/


-> Vulnerability found in pillow version 7.0.0
   Vulnerability ID: 41271
   Affected spec: >=5.2.0,<8.3.2
   ADVISORY: The package pillow from 5.2.0 and before 8.3.2 is vulnerable to Regular Expression Denial of Service (ReDoS) via the getrgb function.https://github.com/python-
   pillow/Pillow/commit/9e08eb8f78fdfd2f476e1b20b7cf38683754866bhttps://pillow.readthedocs.io/en/stable/releasenotes/8.3.2.html
   CVE-2021-23437
   For more information, please visit https://pyup.io/vulnerabilities/CVE-2021-23437/41271/


-> Vulnerability found in pillow version 7.0.0
   Vulnerability ID: 38450
   Affected spec: >=7.0.0,<7.0.1
   ADVISORY: In Pillow before 6.2.3 and 7.x before 7.0.1, there are two Buffer Overflows in libImaging/TiffDecode.c. See: CVE-2020-10379.
   CVE-2020-10379
   For more information, please visit https://pyup.io/vulnerabilities/CVE-2020-10379/38450/


-> Vulnerability found in pillow version 7.0.0
   Vulnerability ID: 38449
   Affected spec: >=7.0.0,<7.0.1
   ADVISORY: In libImaging/PcxDecode.c in Pillow before 6.2.3 and 7.x before 7.0.1, an out-of-bounds read can occur when reading PCX files where state->shuffle is instructed to read beyond state->buffer. See: CVE-2020-10378.
   CVE-2020-10378
   For more information, please visit https://pyup.io/vulnerabilities/CVE-2020-10378/38449/


-> Vulnerability found in pyyaml version 5.3.1
   Vulnerability ID: 39611
   Affected spec: <5.4
   ADVISORY: Pyyaml version 5.4 includes a fix for CVE-2020-14343: A vulnerability was discovered in the PyYAML library in versions before 5.4, where it is susceptible to arbitrary code execution when it processes untrusted YAML files
   through the full_load method or with the FullLoader loader. Applications that use the library to process untrusted input may be vulnerable to this flaw. This flaw allows an attacker to execute arbitrary code on the system by abusing the...
   CVE-2020-14343
   For more information, please visit https://pyup.io/vulnerabilities/CVE-2020-14343/39611/


-> Vulnerability found in reportlab version 3.5.34
   Vulnerability ID: 39642
   Affected spec: >=0
   ADVISORY: All versions of the package reportlab are vulnerable to Server-side Request Forgery (SSRF) via img tags. In order to reduce risk, use trustedSchemes & trustedHosts (see in Reportlab's
   documentation).https://www.reportlab.com/docs/reportlab-userguide.pdf
   CVE-2020-28463
   For more information, please visit https://pyup.io/vulnerabilities/CVE-2020-28463/39642/


-> Vulnerability found in cryptography version 2.8
   Vulnerability ID: 39606
   Affected spec: <3.3.2
   ADVISORY: In the cryptography package before 3.3.2 for Python, certain sequences of update calls to symmetrically encrypt multi-GB values could result in an integer overflow and buffer overflow, as demonstrated by the Fernet class.
   CVE-2020-36242
   For more information, please visit https://pyup.io/vulnerabilities/CVE-2020-36242/39606/


-> Vulnerability found in cryptography version 2.8
   Vulnerability ID: 38932
   Affected spec: <=3.2
   ADVISORY: Cryptography 3.2 and prior are vulnerable to Bleichenbacher timing attacks in the RSA decryption API, via timed processing of valid PKCS#1 v1.5 ciphertext.
   CVE-2020-25659
   For more information, please visit https://pyup.io/vulnerabilities/CVE-2020-25659/38932/


-> Vulnerability found in pycrypto version 2.6.1
   Vulnerability ID: 35015
   Affected spec: <=2.6.1
   ADVISORY: Heap-based buffer overflow in the ALGnew function in block_templace.c in Python Cryptography Toolkit (aka pycrypto) 2.6.1 allows remote attackers to execute arbitrary code as demonstrated by a crafted iv parameter to
   cryptmsg.py.
   CVE-2013-7459
   For more information, please visit https://pyup.io/vulnerabilities/CVE-2013-7459/35015/


-> Vulnerability found in urllib3 version 1.25.8
   Vulnerability ID: 38834
   Affected spec: <1.25.9
   ADVISORY: Urllib3 before 1.25.9 allows CRLF injection if the attacker controls the HTTP request method, as demonstrated by inserting CR and LF control characters in the first argument of putrequest(). NOTE: this is similar to
   CVE-2020-26116.
   CVE-2020-26137
   For more information, please visit https://pyup.io/vulnerabilities/CVE-2020-26137/38834/


-> Vulnerability found in urllib3 version 1.25.8
   Vulnerability ID: 43975
   Affected spec: <1.26.5
   ADVISORY: Urllib3 1.26.5 includes a fix for CVE-2021-33503: An issue was discovered in urllib3 before 1.26.5. When provided with a URL containing many @ characters in the authority component, the authority regular expression exhibits
   catastrophic backtracking, causing a denial of service if a URL were passed as a parameter or redirected to via an HTTP redirect.https://github.com/advisories/GHSA-q2q7-5pp4-w6pg
   CVE-2021-33503
   For more information, please visit https://pyup.io/vulnerabilities/CVE-2021-33503/43975/


-> Vulnerability found in mako version 1.1.0
   Vulnerability ID: 50870
   Affected spec: <1.2.2
   ADVISORY: Mako 1.2.2 includes a fix for a REDoS vulnerability.https://github.com/sqlalchemy/mako/issues/366
   PVE-2022-50870
   For more information, please visit https://pyup.io/vulnerabilities/PVE-2022-50870/50870/


-> Vulnerability found in httplib2 version 0.14.0
   Vulnerability ID: 38368
   Affected spec: <0.18.0
   ADVISORY: In httplib2 before version 0.18.0, an attacker controlling unescaped part of uri for `httplib2.Http.request()` could change request headers and body, send additional hidden requests to same server. This vulnerability impacts
   software that uses httplib2 with uri constructed by string concatenation, as opposed to proper urllib building with escaping. This has been fixed in 0.18.0. See CVE-2020-11078.
   CVE-2020-11078
   For more information, please visit https://pyup.io/vulnerabilities/CVE-2020-11078/38368/


-> Vulnerability found in httplib2 version 0.14.0
   Vulnerability ID: 38303
   Affected spec: <0.18.0
   ADVISORY: Httplib2 0.18.0 is an important security update to patch a CWE-93 CRLF injection vulnerability which forces %xx quote of space, CR, LF characters in uri. See: <https://cwe.mitre.org/data/definitions/93.html>.
   PVE-2021-38303
   For more information, please visit https://pyup.io/vulnerabilities/PVE-2021-38303/38303/


-> Vulnerability found in httplib2 version 0.14.0
   Vulnerability ID: 39608
   Affected spec: <0.19.0
   ADVISORY: httplib2 is a comprehensive HTTP client library for Python. In httplib2 before version 0.19.0, a malicious server which responds with long series of "\xa0" characters in the "www-authenticate" header may cause Denial of Service
   (CPU burn while parsing header) of the httplib2 client accessing said server. This is fixed in version 0.19.0 which contains a new implementation of auth headers parsing using the pyparsing library. See CVE-2021-21240.
   CVE-2021-21240
   For more information, please visit https://pyup.io/vulnerabilities/CVE-2021-21240/39608/

 Scan was completed. 42 vulnerabilities were found. 


