A denial of service vulnerability exists in the GraphQL-core library used by Moto due to a memory leak triggered by aborted validations when the number of validation errors exceeds the max_errors limit (default 100). This causes a shared exception instance to accumulate traceback frames, retaining memory indefinitely and leading to memory exhaustion. The issue affects Moto versions >=5.2.3_1 and <5.2.5 and is fixed in version 5.2.5.
A vulnerability in joserfc 1.7.4 allows attacker-controlled segments to be allocated in memory before size validation rejects them. This occurs because the library calls bytes.split() on the input before checking its length, causing an additional allocation roughly the size of the payload. This undermines the intended size guard and can lead to excessive memory usage. The issue is fixed in version 5.2.5.
The joserfc library's decrypt_json() function for JWE General JSON Serialization does not limit the number of recipients in the 'recipients' array. This allows an attacker to craft a JWE with an unbounded number of recipients, causing the library to perform a costly RSA private-key decryption operation for each recipient. This results in a CPU exhaustion denial-of-service (DoS) vulnerability with a high severity score (CVSS 7.5). The library's existing mitigation option verify_all_recipients=False does not reduce CPU usage, as all recipients are decrypted before this flag is checked. A fix is available in version 5.2.3_1.
A denial of service vulnerability in GraphQL-core's parser allows comment tokens to bypass the max_tokens limit, leading to excessive memory allocation. The parser's max_tokens counter did not include comment tokens, enabling an attacker to craft documents with many comments that consume large amounts of memory without triggering the limit. This can cause memory exhaustion and potential worker process termination. The issue is fixed in versions 3.2.12 and 3.3.0rc1 by counting comment tokens towards the max_tokens limit.
A denial of service vulnerability exists in GraphQL-core's OverlappingFieldsCanBeMerged validation rule due to quadratic complexity in processing certain queries. A crafted query can cause excessive CPU consumption during validation, potentially exhausting server resources for minutes. This affects all GraphQL-core based servers with default settings. The issue is fixed in versions 5.2.3_1 and later.
CVE-2024-49766 is a vulnerability affecting Mapproxy on Windows systems running Python versions earlier than 3.11. It stems from Werkzeug's safe_join() function incorrectly handling UNC paths as absolute due to reliance on os.path.isabs() in these Python versions. This flaw can lead to unsafe path joins and potentially unintended data access. Systems using Python 3.11 or later, or non-Windows platforms, are not affected. A patch is available to remediate this issue.
A vulnerability in the Moto project using Jinja2 templates allows sandbox breakout via the attr filter selecting the format method. An attacker controlling template content can execute arbitrary Python code by bypassing sandbox restrictions. This affects applications that execute untrusted templates using vulnerable Moto versions. The issue is fixed in Moto version 5.1.1_1.
A vulnerability in the Werkzeug debugger used by the Moto project allows remote code execution if an attacker can trick a developer into interacting with a malicious domain and entering the debugger PIN. This grants debugger access even when it is restricted to localhost, contingent on the attacker guessing a URL that triggers the debugger.
The pydantic-settings library's NestedSecretsSettingsSource component improperly follows symbolic links inside a configured secrets directory that point outside this directory, allowing unintended local file reads. This behavior also bypasses the configured maximum size limit for secrets directories, potentially leading to resource exhaustion. The vulnerability requires the ability to place symlinks inside the secrets directory and is not remotely exploitable on its own. Applications using NestedSecretsSettingsSource with secrets_nested_subdir=True and a secrets directory writable or influenced by lower-privileged components are affected. The issue is fixed in pydantic-settings version 5.2.2_1.
The joserfc library's JWT decoding function accepts attacker-forged HMAC-signed tokens when the verification key is empty or None. This occurs because the library does not reject zero-length HMAC keys, allowing attackers to forge tokens without secret knowledge if the configured secret is empty. This vulnerability affects joserfc versions up to 1.6.7 with no patched release available at the time of this report.
The joserfc library version 1.6.5 and earlier allow oversized RFC7797 b64=false JWS payloads to bypass the configured maximum payload size limit during deserialization. While normal JWS payloads are rejected if they exceed the max_payload_length, the unencoded payloads in RFC7797 JWS tokens are not checked, allowing larger payloads to be accepted. This can lead to moderate availability or resource exhaustion risks in applications relying on joserfc for payload size enforcement.
A resource exhaustion vulnerability in the joserfc library allows an unauthenticated attacker to cause a Denial of Service (DoS) by specifying an unbounded iteration count (p2c) in PBES2 password-based encryption during JSON Web Encryption (JWE) token decryption. The p2c parameter controls the number of iterations for the PBKDF2 key derivation function and is not validated or bounded, enabling attackers to force excessive CPU usage. This affects all high-level JWE and JWT decryption interfaces that allow PBES2 algorithms. The vulnerability is fixed in joserfc version 5.1.21_2.
The joserfc Python JWT library has a vulnerability where logging error messages embeds non-decoded JWT token parts, allowing an attacker to cause uncontrolled resource consumption by sending arbitrarily large JWT bearer tokens. This can lead to excessively large log entries and memory usage during token decoding, especially if the web application is not protected by a production-grade web server or reverse proxy that enforces header size limits. The issue arises because the library raises an ExceededSizeError exception containing the full large payload, which is already loaded in memory. The vulnerability affects joserfc versions >=5.1.13 and <5.1.17 and is fixed in version 5.1.17.
Pallets Click versions 8.3.2 and below contain a command injection vulnerability in the click.edit() function. This flaw allows attackers to execute arbitrary operating system commands from an unprivileged account. A security update addressing this issue is available. The vulnerability has been rated with medium severity. There are no known exploits in the wild at this time.
### Impact
A specially crafted argument to the `idna.encode()` function could consume significant resources. This may lead to a denial-of-service.
### Patches
The function has been refined to reject such strings without the associated resource consumption in version 3.7.
### Workarounds
Domain names cannot exceed 253 characters in length, if this length limit is enforced prior to passing the domain to the `idna.encode()` function it should no longer consume significant resources. This is triggered by arbitrarily large inputs that would not occur in normal usage, but may be passed to the library assuming there is no preliminary input validation by the higher-level application.
### References
* https://huntr.com/bounties/93d78d07-d791-4b39-a845-cbfabc44aadb