diff --git a/data/PyPI/GHSA-23m2-mghx-vqmf.json b/data/PyPI/GHSA-23m2-mghx-vqmf.json index 114810e7c3..87d37a2cce 100644 --- a/data/PyPI/GHSA-23m2-mghx-vqmf.json +++ b/data/PyPI/GHSA-23m2-mghx-vqmf.json @@ -1 +1 @@ -{"schema_version":"1.9.0","id":"GHSA-23m2-mghx-vqmf","published":"2026-08-20T18:40:26Z","modified":"2026-08-20T18:45:16.190340792Z","aliases":["CVE-2026-54263","PYSEC-2026-616"],"summary":"Wagtail: Reflected XSS in dynamic image URL generator view","details":"### Impact\n\nA reflected cross-site scripting (XSS) vulnerability exists on the dynamic image URL generator view within the Wagtail admin interface. A user with a limited-permission editor account for the Wagtail admin could craft a URL that, when viewed by a user with higher privileges, could perform actions with that user's credentials. The vulnerability is present for all sites, even if they do not enable the [dynamic image serve view](https://docs.wagtail.org/en/stable/advanced_topics/images/image_serve_view.html). The vulnerability is not exploitable by an ordinary site visitor without access to the Wagtail admin.\n\n### Patches\n\nPatched versions have been released as Wagtail 7.3.3 and 7.4.2.\n\n### Workarounds\n\nFor sites that cannot easily upgrade to a current supported version, the vulnerability can be patched by adding the following code to `urls.py` URL pattern declarations to override the vulnerable view. This disables the admin dynamic image preview functionality, while the public-facing dynamic image serve view still works.\n\n```python\nfrom django.http import HttpResponseBadRequest\nfrom django.urls import path\nfrom wagtail.admin import urls as wagtailadmin_urls\n\ndef disabled_output(request, image_id):\n return HttpResponseBadRequest(\"\", content_type=\"text/plain\")\n\nurlpatterns = [\n # Example where the CMS admin is at /admin/.\n # Add this before the Wagtail admin URLs registration, with the same sub-path.\n path(\"admin/images//generate_url/output/\", disabled_output),\n path(\"admin/\", include(wagtailadmin_urls)),\n]\n```\n\n### Acknowledgements\n\nMany thanks to Thibaud Colas (@thibaudcolas) for reporting this issue.\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n\n- Visit Wagtail's [support channels](https://docs.wagtail.org/en/stable/support.html)\n- Email us at [security@wagtail.org](mailto:security@wagtail.org) (view our [security policy](https://github.com/wagtail/wagtail/security/policy) for more information).","affected":[{"package":{"name":"wagtail","ecosystem":"PyPI","purl":"pkg:pypi/wagtail"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"7.3"},{"fixed":"7.3.3"}]}],"versions":["7.3","7.3.1","7.3.2"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/08/GHSA-23m2-mghx-vqmf/GHSA-23m2-mghx-vqmf.json"}},{"package":{"name":"wagtail","ecosystem":"PyPI","purl":"pkg:pypi/wagtail"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"7.4"},{"fixed":"7.4.2"}]}],"versions":["7.4","7.4.1"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/08/GHSA-23m2-mghx-vqmf/GHSA-23m2-mghx-vqmf.json"}}],"references":[{"type":"WEB","url":"https://github.com/wagtail/wagtail/security/advisories/GHSA-23m2-mghx-vqmf"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54263"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/wagtail/PYSEC-2026-616.yaml"},{"type":"PACKAGE","url":"https://github.com/wagtail/wagtail"}],"database_specific":{"cwe_ids":["CWE-79"],"github_reviewed":true,"github_reviewed_at":"2026-08-20T18:40:26Z","nvd_published_at":"2026-07-01T22:16:49Z","severity":"HIGH"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N"}]} \ No newline at end of file +{"schema_version":"1.9.2","id":"GHSA-23m2-mghx-vqmf","published":"2026-08-20T18:40:26Z","modified":"2026-11-18T00:45:13.893265484Z","aliases":["CVE-2026-54263","PYSEC-2026-616"],"summary":"Wagtail: Reflected XSS in dynamic image URL generator view","details":"### Impact\n\nA reflected cross-site scripting (XSS) vulnerability exists on the dynamic image URL generator view within the Wagtail admin interface. A user with a limited-permission editor account for the Wagtail admin could craft a URL that, when viewed by a user with higher privileges, could perform actions with that user's credentials. The vulnerability is present for all sites, even if they do not enable the [dynamic image serve view](https://docs.wagtail.org/en/stable/advanced_topics/images/image_serve_view.html). The vulnerability is not exploitable by an ordinary site visitor without access to the Wagtail admin.\n\n### Patches\n\nPatched versions have been released as Wagtail 7.3.3 and 7.4.2.\n\n### Workarounds\n\nFor sites that cannot easily upgrade to a current supported version, the vulnerability can be patched by adding the following code to `urls.py` URL pattern declarations to override the vulnerable view. This disables the admin dynamic image preview functionality, while the public-facing dynamic image serve view still works.\n\n```python\nfrom django.http import HttpResponseBadRequest\nfrom django.urls import path\nfrom wagtail.admin import urls as wagtailadmin_urls\n\ndef disabled_output(request, image_id):\n return HttpResponseBadRequest(\"\", content_type=\"text/plain\")\n\nurlpatterns = [\n # Example where the CMS admin is at /admin/.\n # Add this before the Wagtail admin URLs registration, with the same sub-path.\n path(\"admin/images//generate_url/output/\", disabled_output),\n path(\"admin/\", include(wagtailadmin_urls)),\n]\n```\n\n### Acknowledgements\n\nMany thanks to Thibaud Colas (@thibaudcolas) for reporting this issue.\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n\n- Visit Wagtail's [support channels](https://docs.wagtail.org/en/stable/support.html)\n- Email us at [security@wagtail.org](mailto:security@wagtail.org) (view our [security policy](https://github.com/wagtail/wagtail/security/policy) for more information).","affected":[{"package":{"name":"wagtail","ecosystem":"PyPI","purl":"pkg:pypi/wagtail"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"7.3"},{"fixed":"7.3.3"}]}],"versions":["7.3","7.3.1","7.3.2"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/08/GHSA-23m2-mghx-vqmf/GHSA-23m2-mghx-vqmf.json"}},{"package":{"name":"wagtail","ecosystem":"PyPI","purl":"pkg:pypi/wagtail"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"7.4"},{"fixed":"7.4.2"}]}],"versions":["7.4","7.4.1"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/08/GHSA-23m2-mghx-vqmf/GHSA-23m2-mghx-vqmf.json"}}],"references":[{"type":"WEB","url":"https://github.com/wagtail/wagtail/security/advisories/GHSA-23m2-mghx-vqmf"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54263"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/wagtail/PYSEC-2026-616.yaml"},{"type":"PACKAGE","url":"https://github.com/wagtail/wagtail"},{"type":"WEB","url":"https://github.com/wagtail/wagtail/releases/tag/v7.3.3"},{"type":"WEB","url":"https://github.com/wagtail/wagtail/releases/tag/v7.4.2"}],"database_specific":{"cwe_ids":["CWE-79"],"github_reviewed":true,"github_reviewed_at":"2026-08-20T18:40:26Z","nvd_published_at":"2026-07-01T22:16:49Z","severity":"HIGH"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N"}]} \ No newline at end of file diff --git a/data/PyPI/GHSA-2g68-c3qc-8985.json b/data/PyPI/GHSA-2g68-c3qc-8985.json index 9fc10d4594..23b0d17c9e 100644 --- a/data/PyPI/GHSA-2g68-c3qc-8985.json +++ b/data/PyPI/GHSA-2g68-c3qc-8985.json @@ -1 +1 @@ -{"schema_version":"1.9.0","id":"GHSA-2g68-c3qc-8985","published":"2024-05-06T14:21:27Z","modified":"2026-09-10T03:50:13.189126850Z","aliases":["CVE-2024-34069","PYSEC-2026-2043"],"summary":"Werkzeug debugger vulnerable to remote execution when interacting with attacker controlled domain","details":"The debugger in affected versions of Werkzeug can allow an attacker to execute code on a developer's machine under some circumstances. This requires the attacker to get the developer to interact with a domain and subdomain they control, and enter the debugger PIN, but if they are successful it allows access to the debugger even if it is only running on localhost. This also requires the attacker to guess a URL in the developer's application that will trigger the debugger.","affected":[{"package":{"name":"werkzeug","ecosystem":"PyPI","purl":"pkg:pypi/werkzeug"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.3"}]}],"versions":["0.1","0.10","0.10.1","0.10.2","0.10.3","0.10.4","0.11","0.11.1","0.11.10","0.11.11","0.11.12","0.11.13","0.11.14","0.11.15","0.11.2","0.11.3","0.11.4","0.11.5","0.11.6","0.11.7","0.11.8","0.11.9","0.12","0.12.1","0.12.2","0.13","0.14","0.14.1","0.15.0","0.15.1","0.15.2","0.15.3","0.15.4","0.15.5","0.15.6","0.16.0","0.16.1","0.2","0.3","0.3.1","0.4","0.4.1","0.5","0.5.1","0.6","0.6.1","0.6.2","0.7","0.7.1","0.7.2","0.8","0.8.1","0.8.2","0.8.3","0.9","0.9.1","0.9.2","0.9.3","0.9.4","0.9.5","0.9.6","1.0.0","1.0.0rc1","1.0.1","2.0.0","2.0.0rc1","2.0.0rc2","2.0.0rc3","2.0.0rc4","2.0.0rc5","2.0.1","2.0.2","2.0.3","2.1.0","2.1.1","2.1.2","2.2.0","2.2.0a1","2.2.1","2.2.2","2.2.3","2.3.0","2.3.1","2.3.2","2.3.3","2.3.4","2.3.5","2.3.6","2.3.7","2.3.8","3.0.0","3.0.1","3.0.2"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/05/GHSA-2g68-c3qc-8985/GHSA-2g68-c3qc-8985.json"}}],"references":[{"type":"WEB","url":"https://github.com/pallets/werkzeug/security/advisories/GHSA-2g68-c3qc-8985"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-34069"},{"type":"WEB","url":"https://github.com/pallets/werkzeug/commit/3386395b24c7371db11a5b8eaac0c91da5362692"},{"type":"PACKAGE","url":"https://github.com/pallets/werkzeug"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/02/msg00026.html"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/H4SH32AM3CTPMAAEOIDAN7VU565LO4IR"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HFERFN7PINV4MOGMGA3DPIXJPDCYOEJZ"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20240614-0004"}],"database_specific":{"cwe_ids":["CWE-352"],"github_reviewed":true,"github_reviewed_at":"2024-05-06T14:21:27Z","nvd_published_at":"2024-05-06T15:15:23Z","severity":"HIGH"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H"}]} \ No newline at end of file +{"schema_version":"1.9.2","id":"GHSA-2g68-c3qc-8985","published":"2024-05-06T14:21:27Z","modified":"2026-11-18T00:45:13.752437127Z","aliases":["CVE-2024-34069","PYSEC-2026-2043"],"summary":"Werkzeug debugger vulnerable to remote execution when interacting with attacker controlled domain","details":"The debugger in affected versions of Werkzeug can allow an attacker to execute code on a developer's machine under some circumstances. This requires the attacker to get the developer to interact with a domain and subdomain they control, and enter the debugger PIN, but if they are successful it allows access to the debugger even if it is only running on localhost. This also requires the attacker to guess a URL in the developer's application that will trigger the debugger.","affected":[{"package":{"name":"werkzeug","ecosystem":"PyPI","purl":"pkg:pypi/werkzeug"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.3"}]}],"versions":["0.1","0.10","0.10.1","0.10.2","0.10.3","0.10.4","0.11","0.11.1","0.11.10","0.11.11","0.11.12","0.11.13","0.11.14","0.11.15","0.11.2","0.11.3","0.11.4","0.11.5","0.11.6","0.11.7","0.11.8","0.11.9","0.12","0.12.1","0.12.2","0.13","0.14","0.14.1","0.15.0","0.15.1","0.15.2","0.15.3","0.15.4","0.15.5","0.15.6","0.16.0","0.16.1","0.2","0.3","0.3.1","0.4","0.4.1","0.5","0.5.1","0.6","0.6.1","0.6.2","0.7","0.7.1","0.7.2","0.8","0.8.1","0.8.2","0.8.3","0.9","0.9.1","0.9.2","0.9.3","0.9.4","0.9.5","0.9.6","1.0.0","1.0.0rc1","1.0.1","2.0.0","2.0.0rc1","2.0.0rc2","2.0.0rc3","2.0.0rc4","2.0.0rc5","2.0.1","2.0.2","2.0.3","2.1.0","2.1.1","2.1.2","2.2.0","2.2.0a1","2.2.1","2.2.2","2.2.3","2.3.0","2.3.1","2.3.2","2.3.3","2.3.4","2.3.5","2.3.6","2.3.7","2.3.8","3.0.0","3.0.1","3.0.2"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/05/GHSA-2g68-c3qc-8985/GHSA-2g68-c3qc-8985.json"}}],"references":[{"type":"WEB","url":"https://github.com/pallets/werkzeug/security/advisories/GHSA-2g68-c3qc-8985"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-34069"},{"type":"WEB","url":"https://github.com/pallets/werkzeug/commit/3386395b24c7371db11a5b8eaac0c91da5362692"},{"type":"PACKAGE","url":"https://github.com/pallets/werkzeug"},{"type":"WEB","url":"https://github.com/pallets/werkzeug/releases/tag/3.0.3"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/werkzeug/PYSEC-2026-2043.yaml"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/02/msg00026.html"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/H4SH32AM3CTPMAAEOIDAN7VU565LO4IR"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HFERFN7PINV4MOGMGA3DPIXJPDCYOEJZ"},{"type":"WEB","url":"https://pypi.org/project/werkzeug"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20240614-0004"}],"database_specific":{"cwe_ids":["CWE-352"],"github_reviewed":true,"github_reviewed_at":"2024-05-06T14:21:27Z","nvd_published_at":"2024-05-06T15:15:23Z","severity":"HIGH"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H"}]} \ No newline at end of file diff --git a/data/PyPI/GHSA-8fx7-8jr8-84rv.json b/data/PyPI/GHSA-8fx7-8jr8-84rv.json index 2d333c1345..4144a95b43 100644 --- a/data/PyPI/GHSA-8fx7-8jr8-84rv.json +++ b/data/PyPI/GHSA-8fx7-8jr8-84rv.json @@ -1 +1 @@ -{"schema_version":"1.9.2","id":"GHSA-8fx7-8jr8-84rv","published":"2026-11-13T21:02:19Z","modified":"2026-11-13T21:15:14.552241935Z","aliases":["CVE-2026-126303"],"summary":"NLTK: Unbounded CPU consumption in SteppingRecursiveDescentParser.parse() with ambiguous or self-embedding grammars","details":"## Summary\n\n`nltk.parse.recursivedescent.SteppingRecursiveDescentParser.parse()` performs an unbounded top-down search over ambiguous or self-embedding context-free grammars with no wall-clock or step limit. An actor who can influence the grammar and supply a short input to a caller that uses this parser can force a single `parse()` call to pin a CPU core indefinitely, producing a denial of service. The related base class `RecursiveDescentParser` gained a `max_time` wall-clock deadline, but the stepping subclass drives its own step loop and never arms or consults that deadline, and its constructor does not accept a `max_time` parameter, so the guard cannot be enabled on this path.\n\n## Root Cause\n\n`RecursiveDescentParser` bounds its recursive search inside `_parse`: it arms a wall-clock deadline on the first step and raises `TimeoutError` once `max_time` (default 5.0 seconds) is exceeded. `SteppingRecursiveDescentParser` was designed for interactive single-stepping and overrides both `parse()` and `_parse`. Its `parse()` runs `initialize()` followed by a `while self.step() is not None` loop that never enters the guarded base `_parse`. Its `_parse` override is a state-capturing stub that records history and returns a sentinel, and it never references the inherited `self._parse_deadline` or `self._max_time`. Its `__init__` signature omits `max_time` entirely, so a caller cannot enable or tighten a bound. The security invariant that a single parse must terminate within a bounded time is therefore never enforced on this parser.\n\n```text\nAffected component: nltk.parse.recursivedescent.SteppingRecursiveDescentParser\n- parse() nltk/parse/recursivedescent.py:428-433 (drives its own step loop, no bound armed or checked)\n- _parse() nltk/parse/recursivedescent.py:643-668 (stub override; never consults self._parse_deadline / self._max_time)\n- __init__() nltk/parse/recursivedescent.py:410-418 (signature (self, grammar, trace=0); no max_time parameter)\nBase guard for comparison: RecursiveDescentParser._parse nltk/parse/recursivedescent.py:141-150\n```\n\n## Impact\n\nAn actor who controls or influences the grammar passed to `SteppingRecursiveDescentParser` and can supply a short token sequence to a caller that invokes `parse()` can cause that call to never return. The top-down search enumerates a derivation space that grows on the order of the Catalan numbers with no memoization of the search and no deadline, so one crafted grammar plus a short input deterministically consumes a CPU core. In a deployment that parses attacker-influenced input on a bounded worker pool, repeated requests exhaust the pool and deny service to legitimate users. No authentication, privilege, or user interaction is required in that worst-credible deployment. Exploitation requires that the target actually use this parser on untrusted input; because the stepping parser is primarily a debugging or interactive-stepping component that backs a GUI, real-world exposure is narrower than for the base parser, though `parse()` is a supported public method that behaves as a full parser.\n\n## Proof of Concept\n\n`Requires only the nltk package (3.10.3) and standard library; no data downloads or network access.`\n\nReproduction steps:\n1. Build an ambiguous, self-embedding grammar such as `S -> 'a' S S | 'a'`.\n2. Confirm the base parser self-terminates: `RecursiveDescentParser(g, max_time=2.0).parse(['a']*17)` raises `TimeoutError` at about 2 seconds.\n3. Run the stepping parser on the same grammar and input and observe it never returns.\n\n```python\nimport time, inspect\nfrom nltk import CFG\nfrom nltk.parse.recursivedescent import RecursiveDescentParser, SteppingRecursiveDescentParser\n\ng = CFG.fromstring(\"S -> 'a' S S | 'a'\")\n\n# Base parser is bounded and self-terminates.\ntry:\n list(RecursiveDescentParser(g, max_time=2.0).parse(['a'] * 17))\nexcept TimeoutError:\n print(\"base: TimeoutError (guarded)\")\n\n# Stepping subclass cannot be bounded: no max_time parameter.\nprint(\"stepping __init__ sig:\", inspect.signature(SteppingRecursiveDescentParser.__init__))\n\n# Stepping parser runs unbounded on the same input.\nt0 = time.perf_counter()\nlist(SteppingRecursiveDescentParser(g).parse(['a'] * 17)) # does not return\nprint(\"stepping: returned after\", time.perf_counter() - t0)\n```\n\n```text\nbase: TimeoutError (guarded)\nstepping __init__ sig: (self, grammar, trace=0)\n# stepping len3: 1 parse in 0.001s ; len7: 5 in 0.017s ; len9: 14 in 0.075s ; len11: 42 in 0.36s\n# stepping len17: still running past a 10s watchdog, process alive, no RecursionError\n```\n\n## Attack Chain\n\n1. **Exposure:** A caller uses `nltk.parse.SteppingRecursiveDescentParser`, a public exported symbol (`nltk/parse/__init__.py:97`), invoking `parse(tokens)` on grammar and input influenced by an actor.\n2. **Control:** The actor influences the grammar (an ambiguous, self-embedding CFG such as `S -> 'a' S S | 'a'`) and supplies a short token list (for example 17 copies of `'a'`). Both survive to the parser unchanged.\n3. **Path:** `parse()` (`recursivedescent.py:428`) calls `initialize()` then loops `while self.step() is not None`; `step()` (`:479`) calls `match()`/`expand()` (`:552`/`:512`) which call the inherited `_match`/`_expand` (`:172`/`:214`), which resolve `self._parse` by MRO to the subclass stub (`:643`).\n4. **Guard:** The `max_time` wall-clock deadline exists only in the base `_parse` (`:141-150`) and is never entered on this path; the stub `_parse` records state and returns without consulting the deadline, and `__init__` exposes no `max_time` to enable a bound.\n5. **Primitive:** The unbounded top-down search enumerates a Catalan-number-sized derivation space with no memoization and no deadline.\n6. **Result:** The `parse()` call never returns and pins a CPU core; repeated calls exhaust a bounded worker pool, denying service.\n\n## Bypass Evidence\n\nThe prior fix for this class of issue added a `max_time` wall-clock deadline to the base `RecursiveDescentParser._parse` (`recursivedescent.py:141-150`, default 5.0 seconds). This report demonstrates that the fix does not cover the sibling `SteppingRecursiveDescentParser` entry point, and the maintainers separately hardened other parsers (chart, earley chart, viterbi, shift-reduce, non-projective dependency) with `max_time` while leaving this subclass unbounded.\n\nChallenges attempted and their outcomes:\n- Hypothesis that the inherited `self._max_time` value (observed at 5.0) makes the path guarded: refuted; the value is inherited but never read on the stepping path, and the parser runs unbounded despite it being set.\n- Hypothesis that a caller can bound the parser via the constructor: refuted; `inspect.signature(SteppingRecursiveDescentParser.__init__)` is `(self, grammar, trace=0)`, with no `max_time` parameter.\n- Hypothesis that the failure is merely an early `RecursionError` rather than CPU exhaustion: refuted; the step loop is iterative over an explicit history stack, so no exception is raised within a 10 second watchdog, CPU time grows exponentially with input length, and a small negative control input returns in about 0.001 seconds.\n- Hypothesis that the `_tried_e`/`_tried_m` records collapse the search: refuted; those records are keyed by the frozen full partial tree, so they deduplicate only identical productions at identical states and do not prevent the exponential enumeration.\n\n## Affected Versions\n\n- `Ecosystem: PyPI`\n- `Package: nltk`\n- `Confirmed affected range: <= 3.10.3`\n- `Latest release checked: 3.10.3 (PyPI sdist nltk-3.10.3.tar.gz)`\n- `Fix status: 3.10.4`\n\nThe stepping subclass has never carried a time or step bound in any released version; the prior fix added the guard only to the base class. The vulnerable methods were verified present in the exact published PyPI 3.10.3 source distribution (`parse()` at lines 428-433, stub `_parse` at 643-668 with no deadline reference, and `__init__` without `max_time`). Because the class predates the prior fix and no specific historical introduction tag was pinned, the lower bound is left open rather than invented; the upper bound is verified against the current published artifact (3.10.3). No released fix exists.\n\n## Suggested Fix\n\nEnforce a bounded parse on the stepping parser: give `SteppingRecursiveDescentParser` its own wall-clock or step-count budget that is checked inside its step loop (for example in `parse()` and/or the `_parse`/`step` path), and add a `max_time` (or equivalent step-limit) parameter to `__init__` that is propagated and honored, mirroring the base `RecursiveDescentParser` and the other hardened sibling parsers. As an interim mitigation without a code change, callers should avoid invoking `SteppingRecursiveDescentParser.parse()` on grammars or input derived from untrusted sources, run any such parsing under an external timeout or a separate resource-limited process, and prefer a chart parser for untrusted input.\n\n---\n\nReported by zx (GitHub: @manus-pi).\n\n\n## Fix status (2026-09-28)\n\nPR: #3895 \"[WIP] Bound algorithmic-DoS and uncontrolled-recursion vectors (CWE-400/407/674/1333)\", open, head b22ebe144.\n\nFix commit: e20c40e26 \"Bound tokenizer/parser algorithmic DoS (ffr9/gpwc/8fx7)\" (SteppingRecursiveDescentParser gains the max_time parameter, default 5.0 s, and honours the parse deadline).\n\nNo probe. The advisory PoC re-run (grammar S -> 'a' S S | 'a', 17 tokens): on the PR head the parse raises TimeoutError after 5.0 s and the constructor signature is (self, grammar, trace=0, max_time=5.0); on develop 2fa3f48fe the same parse ran past a 45 s watchdog, so develop is still VULNERABLE.\n\nRelease: none.","affected":[{"package":{"name":"nltk","ecosystem":"PyPI","purl":"pkg:pypi/nltk"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.10.4"}]}],"versions":["0.8","0.9","0.9.3","0.9.4","0.9.5","0.9.6","0.9.7","0.9.8","0.9.9","2.0.1","2.0.1rc1","2.0.1rc2-git","2.0.1rc3","2.0.1rc4","2.0.2","2.0.3","2.0.4","2.0.5","2.0b4","2.0b5","2.0b6","2.0b7","2.0b8","2.0b9","3.0.0","3.0.0b1","3.0.0b2","3.0.1","3.0.2","3.0.3","3.0.4","3.0.5","3.1","3.10.0","3.10.1","3.10.2","3.10.3","3.2","3.2.1","3.2.2","3.2.3","3.2.4","3.2.5","3.3","3.4","3.4.1","3.4.2","3.4.3","3.4.4","3.4.5","3.5","3.5b1","3.6","3.6.1","3.6.2","3.6.3","3.6.4","3.6.5","3.6.6","3.6.7","3.7","3.8","3.8.1","3.9","3.9.1","3.9.2","3.9.3","3.9.4","3.9b1"],"database_specific":{"last_known_affected_version_range":"<= 3.10.3","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/11/GHSA-8fx7-8jr8-84rv/GHSA-8fx7-8jr8-84rv.json"}}],"references":[{"type":"WEB","url":"https://github.com/nltk/nltk/security/advisories/GHSA-8fx7-8jr8-84rv"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-126303"},{"type":"WEB","url":"https://github.com/nltk/nltk/pull/3895"},{"type":"WEB","url":"https://github.com/nltk/nltk/commit/e20c40e26ec9306de885703f6e53250695f1f49b"},{"type":"PACKAGE","url":"https://github.com/nltk/nltk"},{"type":"WEB","url":"https://www.vulncheck.com/advisories/nltk-before-3.10.4-denial-of-service-via-steppingrecursivedescentparser-parse"}],"database_specific":{"cwe_ids":["CWE-400","CWE-407"],"github_reviewed":true,"github_reviewed_at":"2026-11-13T21:02:19Z","nvd_published_at":null,"severity":"HIGH"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]} \ No newline at end of file +{"schema_version":"1.9.2","id":"GHSA-8fx7-8jr8-84rv","published":"2026-11-13T21:02:19Z","modified":"2026-11-18T00:45:13.871328279Z","aliases":["CVE-2026-126303"],"summary":"NLTK: Unbounded CPU consumption in SteppingRecursiveDescentParser.parse() with ambiguous or self-embedding grammars","details":"## Summary\n\n`nltk.parse.recursivedescent.SteppingRecursiveDescentParser.parse()` performs an unbounded top-down search over ambiguous or self-embedding context-free grammars with no wall-clock or step limit. An actor who can influence the grammar and supply a short input to a caller that uses this parser can force a single `parse()` call to pin a CPU core indefinitely, producing a denial of service. The related base class `RecursiveDescentParser` gained a `max_time` wall-clock deadline, but the stepping subclass drives its own step loop and never arms or consults that deadline, and its constructor does not accept a `max_time` parameter, so the guard cannot be enabled on this path.\n\n## Root Cause\n\n`RecursiveDescentParser` bounds its recursive search inside `_parse`: it arms a wall-clock deadline on the first step and raises `TimeoutError` once `max_time` (default 5.0 seconds) is exceeded. `SteppingRecursiveDescentParser` was designed for interactive single-stepping and overrides both `parse()` and `_parse`. Its `parse()` runs `initialize()` followed by a `while self.step() is not None` loop that never enters the guarded base `_parse`. Its `_parse` override is a state-capturing stub that records history and returns a sentinel, and it never references the inherited `self._parse_deadline` or `self._max_time`. Its `__init__` signature omits `max_time` entirely, so a caller cannot enable or tighten a bound. The security invariant that a single parse must terminate within a bounded time is therefore never enforced on this parser.\n\n```text\nAffected component: nltk.parse.recursivedescent.SteppingRecursiveDescentParser\n- parse() nltk/parse/recursivedescent.py:428-433 (drives its own step loop, no bound armed or checked)\n- _parse() nltk/parse/recursivedescent.py:643-668 (stub override; never consults self._parse_deadline / self._max_time)\n- __init__() nltk/parse/recursivedescent.py:410-418 (signature (self, grammar, trace=0); no max_time parameter)\nBase guard for comparison: RecursiveDescentParser._parse nltk/parse/recursivedescent.py:141-150\n```\n\n## Impact\n\nAn actor who controls or influences the grammar passed to `SteppingRecursiveDescentParser` and can supply a short token sequence to a caller that invokes `parse()` can cause that call to never return. The top-down search enumerates a derivation space that grows on the order of the Catalan numbers with no memoization of the search and no deadline, so one crafted grammar plus a short input deterministically consumes a CPU core. In a deployment that parses attacker-influenced input on a bounded worker pool, repeated requests exhaust the pool and deny service to legitimate users. No authentication, privilege, or user interaction is required in that worst-credible deployment. Exploitation requires that the target actually use this parser on untrusted input; because the stepping parser is primarily a debugging or interactive-stepping component that backs a GUI, real-world exposure is narrower than for the base parser, though `parse()` is a supported public method that behaves as a full parser.\n\n## Proof of Concept\n\n`Requires only the nltk package (3.10.3) and standard library; no data downloads or network access.`\n\nReproduction steps:\n1. Build an ambiguous, self-embedding grammar such as `S -> 'a' S S | 'a'`.\n2. Confirm the base parser self-terminates: `RecursiveDescentParser(g, max_time=2.0).parse(['a']*17)` raises `TimeoutError` at about 2 seconds.\n3. Run the stepping parser on the same grammar and input and observe it never returns.\n\n```python\nimport time, inspect\nfrom nltk import CFG\nfrom nltk.parse.recursivedescent import RecursiveDescentParser, SteppingRecursiveDescentParser\n\ng = CFG.fromstring(\"S -> 'a' S S | 'a'\")\n\n# Base parser is bounded and self-terminates.\ntry:\n list(RecursiveDescentParser(g, max_time=2.0).parse(['a'] * 17))\nexcept TimeoutError:\n print(\"base: TimeoutError (guarded)\")\n\n# Stepping subclass cannot be bounded: no max_time parameter.\nprint(\"stepping __init__ sig:\", inspect.signature(SteppingRecursiveDescentParser.__init__))\n\n# Stepping parser runs unbounded on the same input.\nt0 = time.perf_counter()\nlist(SteppingRecursiveDescentParser(g).parse(['a'] * 17)) # does not return\nprint(\"stepping: returned after\", time.perf_counter() - t0)\n```\n\n```text\nbase: TimeoutError (guarded)\nstepping __init__ sig: (self, grammar, trace=0)\n# stepping len3: 1 parse in 0.001s ; len7: 5 in 0.017s ; len9: 14 in 0.075s ; len11: 42 in 0.36s\n# stepping len17: still running past a 10s watchdog, process alive, no RecursionError\n```\n\n## Attack Chain\n\n1. **Exposure:** A caller uses `nltk.parse.SteppingRecursiveDescentParser`, a public exported symbol (`nltk/parse/__init__.py:97`), invoking `parse(tokens)` on grammar and input influenced by an actor.\n2. **Control:** The actor influences the grammar (an ambiguous, self-embedding CFG such as `S -> 'a' S S | 'a'`) and supplies a short token list (for example 17 copies of `'a'`). Both survive to the parser unchanged.\n3. **Path:** `parse()` (`recursivedescent.py:428`) calls `initialize()` then loops `while self.step() is not None`; `step()` (`:479`) calls `match()`/`expand()` (`:552`/`:512`) which call the inherited `_match`/`_expand` (`:172`/`:214`), which resolve `self._parse` by MRO to the subclass stub (`:643`).\n4. **Guard:** The `max_time` wall-clock deadline exists only in the base `_parse` (`:141-150`) and is never entered on this path; the stub `_parse` records state and returns without consulting the deadline, and `__init__` exposes no `max_time` to enable a bound.\n5. **Primitive:** The unbounded top-down search enumerates a Catalan-number-sized derivation space with no memoization and no deadline.\n6. **Result:** The `parse()` call never returns and pins a CPU core; repeated calls exhaust a bounded worker pool, denying service.\n\n## Bypass Evidence\n\nThe prior fix for this class of issue added a `max_time` wall-clock deadline to the base `RecursiveDescentParser._parse` (`recursivedescent.py:141-150`, default 5.0 seconds). This report demonstrates that the fix does not cover the sibling `SteppingRecursiveDescentParser` entry point, and the maintainers separately hardened other parsers (chart, earley chart, viterbi, shift-reduce, non-projective dependency) with `max_time` while leaving this subclass unbounded.\n\nChallenges attempted and their outcomes:\n- Hypothesis that the inherited `self._max_time` value (observed at 5.0) makes the path guarded: refuted; the value is inherited but never read on the stepping path, and the parser runs unbounded despite it being set.\n- Hypothesis that a caller can bound the parser via the constructor: refuted; `inspect.signature(SteppingRecursiveDescentParser.__init__)` is `(self, grammar, trace=0)`, with no `max_time` parameter.\n- Hypothesis that the failure is merely an early `RecursionError` rather than CPU exhaustion: refuted; the step loop is iterative over an explicit history stack, so no exception is raised within a 10 second watchdog, CPU time grows exponentially with input length, and a small negative control input returns in about 0.001 seconds.\n- Hypothesis that the `_tried_e`/`_tried_m` records collapse the search: refuted; those records are keyed by the frozen full partial tree, so they deduplicate only identical productions at identical states and do not prevent the exponential enumeration.\n\n## Affected Versions\n\n- `Ecosystem: PyPI`\n- `Package: nltk`\n- `Confirmed affected range: <= 3.10.3`\n- `Latest release checked: 3.10.3 (PyPI sdist nltk-3.10.3.tar.gz)`\n- `Fix status: 3.10.4`\n\nThe stepping subclass has never carried a time or step bound in any released version; the prior fix added the guard only to the base class. The vulnerable methods were verified present in the exact published PyPI 3.10.3 source distribution (`parse()` at lines 428-433, stub `_parse` at 643-668 with no deadline reference, and `__init__` without `max_time`). Because the class predates the prior fix and no specific historical introduction tag was pinned, the lower bound is left open rather than invented; the upper bound is verified against the current published artifact (3.10.3). No released fix exists.\n\n## Suggested Fix\n\nEnforce a bounded parse on the stepping parser: give `SteppingRecursiveDescentParser` its own wall-clock or step-count budget that is checked inside its step loop (for example in `parse()` and/or the `_parse`/`step` path), and add a `max_time` (or equivalent step-limit) parameter to `__init__` that is propagated and honored, mirroring the base `RecursiveDescentParser` and the other hardened sibling parsers. As an interim mitigation without a code change, callers should avoid invoking `SteppingRecursiveDescentParser.parse()` on grammars or input derived from untrusted sources, run any such parsing under an external timeout or a separate resource-limited process, and prefer a chart parser for untrusted input.\n\n---\n\nReported by zx (GitHub: @manus-pi).\n\n\n## Fix status (2026-09-28)\n\nPR: #3895 \"[WIP] Bound algorithmic-DoS and uncontrolled-recursion vectors (CWE-400/407/674/1333)\", open, head b22ebe144.\n\nFix commit: e20c40e26 \"Bound tokenizer/parser algorithmic DoS (ffr9/gpwc/8fx7)\" (SteppingRecursiveDescentParser gains the max_time parameter, default 5.0 s, and honours the parse deadline).\n\nNo probe. The advisory PoC re-run (grammar S -> 'a' S S | 'a', 17 tokens): on the PR head the parse raises TimeoutError after 5.0 s and the constructor signature is (self, grammar, trace=0, max_time=5.0); on develop 2fa3f48fe the same parse ran past a 45 s watchdog, so develop is still VULNERABLE.\n\nRelease: none.","affected":[{"package":{"name":"nltk","ecosystem":"PyPI","purl":"pkg:pypi/nltk"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.10.4"}]}],"versions":["0.8","0.9","0.9.3","0.9.4","0.9.5","0.9.6","0.9.7","0.9.8","0.9.9","2.0.1","2.0.1rc1","2.0.1rc2-git","2.0.1rc3","2.0.1rc4","2.0.2","2.0.3","2.0.4","2.0.5","2.0b4","2.0b5","2.0b6","2.0b7","2.0b8","2.0b9","3.0.0","3.0.0b1","3.0.0b2","3.0.1","3.0.2","3.0.3","3.0.4","3.0.5","3.1","3.10.0","3.10.1","3.10.2","3.10.3","3.2","3.2.1","3.2.2","3.2.3","3.2.4","3.2.5","3.3","3.4","3.4.1","3.4.2","3.4.3","3.4.4","3.4.5","3.5","3.5b1","3.6","3.6.1","3.6.2","3.6.3","3.6.4","3.6.5","3.6.6","3.6.7","3.7","3.8","3.8.1","3.9","3.9.1","3.9.2","3.9.3","3.9.4","3.9b1"],"database_specific":{"last_known_affected_version_range":"<= 3.10.3","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/11/GHSA-8fx7-8jr8-84rv/GHSA-8fx7-8jr8-84rv.json"}}],"references":[{"type":"WEB","url":"https://github.com/nltk/nltk/security/advisories/GHSA-8fx7-8jr8-84rv"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-126303"},{"type":"WEB","url":"https://github.com/nltk/nltk/pull/3895"},{"type":"WEB","url":"https://github.com/nltk/nltk/commit/e20c40e26ec9306de885703f6e53250695f1f49b"},{"type":"PACKAGE","url":"https://github.com/nltk/nltk"},{"type":"WEB","url":"https://github.com/nltk/nltk/releases/tag/v3.10.4"},{"type":"WEB","url":"https://www.vulncheck.com/advisories/nltk-before-3.10.4-denial-of-service-via-steppingrecursivedescentparser-parse"}],"database_specific":{"cwe_ids":["CWE-400","CWE-407"],"github_reviewed":true,"github_reviewed_at":"2026-11-13T21:02:19Z","nvd_published_at":null,"severity":"HIGH"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]} \ No newline at end of file diff --git a/data/PyPI/GHSA-cpwx-vrp4-4pq7.json b/data/PyPI/GHSA-cpwx-vrp4-4pq7.json index d5a033c7bd..f952240556 100644 --- a/data/PyPI/GHSA-cpwx-vrp4-4pq7.json +++ b/data/PyPI/GHSA-cpwx-vrp4-4pq7.json @@ -1 +1 @@ -{"schema_version":"1.9.0","id":"GHSA-cpwx-vrp4-4pq7","published":"2025-03-05T20:40:14Z","modified":"2026-09-10T03:49:48.526758681Z","aliases":["CVE-2025-27516","PYSEC-2026-1471"],"summary":"Jinja2 vulnerable to sandbox breakout through attr filter selecting format method","details":"An oversight in how the Jinja sandboxed environment interacts with the `|attr` filter allows an attacker that controls the content of a template to execute arbitrary Python code.\n\nTo exploit the vulnerability, an attacker needs to control the content of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates.\n\nJinja's sandbox does catch calls to `str.format` and ensures they don't escape the sandbox. However, it's possible to use the `|attr` filter to get a reference to a string's plain format method, bypassing the sandbox. After the fix, the `|attr` filter no longer bypasses the environment's attribute lookup.","affected":[{"package":{"name":"jinja2","ecosystem":"PyPI","purl":"pkg:pypi/jinja2"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.6"}]}],"versions":["2.0","2.0rc1","2.1","2.1.1","2.10","2.10.1","2.10.2","2.10.3","2.11.0","2.11.1","2.11.2","2.11.3","2.2","2.2.1","2.3","2.3.1","2.4","2.4.1","2.5","2.5.1","2.5.2","2.5.3","2.5.4","2.5.5","2.6","2.7","2.7.1","2.7.2","2.7.3","2.8","2.8.1","2.9","2.9.1","2.9.2","2.9.3","2.9.4","2.9.5","2.9.6","3.0.0","3.0.0a1","3.0.0rc1","3.0.0rc2","3.0.1","3.0.2","3.0.3","3.1.0","3.1.1","3.1.2","3.1.3","3.1.4","3.1.5"],"database_specific":{"last_known_affected_version_range":"<= 3.1.5","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/03/GHSA-cpwx-vrp4-4pq7/GHSA-cpwx-vrp4-4pq7.json"}}],"references":[{"type":"WEB","url":"https://github.com/pallets/jinja/security/advisories/GHSA-cpwx-vrp4-4pq7"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-27516"},{"type":"WEB","url":"https://github.com/pallets/jinja/commit/90457bbf33b8662926ae65cdde4c4c32e756e403"},{"type":"PACKAGE","url":"https://github.com/pallets/jinja"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/04/msg00022.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/04/msg00045.html"}],"database_specific":{"cwe_ids":["CWE-1336"],"github_reviewed":true,"github_reviewed_at":"2025-03-05T20:40:14Z","nvd_published_at":"2025-03-05T21:15:20Z","severity":"MODERATE"},"severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"}]} \ No newline at end of file +{"schema_version":"1.9.2","id":"GHSA-cpwx-vrp4-4pq7","published":"2025-03-05T20:40:14Z","modified":"2026-11-18T00:45:13.756181700Z","aliases":["CVE-2025-27516","PYSEC-2026-1471"],"summary":"Jinja2 vulnerable to sandbox breakout through attr filter selecting format method","details":"An oversight in how the Jinja sandboxed environment interacts with the `|attr` filter allows an attacker that controls the content of a template to execute arbitrary Python code.\n\nTo exploit the vulnerability, an attacker needs to control the content of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates.\n\nJinja's sandbox does catch calls to `str.format` and ensures they don't escape the sandbox. However, it's possible to use the `|attr` filter to get a reference to a string's plain format method, bypassing the sandbox. After the fix, the `|attr` filter no longer bypasses the environment's attribute lookup.","affected":[{"package":{"name":"jinja2","ecosystem":"PyPI","purl":"pkg:pypi/jinja2"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.6"}]}],"versions":["2.0","2.0rc1","2.1","2.1.1","2.10","2.10.1","2.10.2","2.10.3","2.11.0","2.11.1","2.11.2","2.11.3","2.2","2.2.1","2.3","2.3.1","2.4","2.4.1","2.5","2.5.1","2.5.2","2.5.3","2.5.4","2.5.5","2.6","2.7","2.7.1","2.7.2","2.7.3","2.8","2.8.1","2.9","2.9.1","2.9.2","2.9.3","2.9.4","2.9.5","2.9.6","3.0.0","3.0.0a1","3.0.0rc1","3.0.0rc2","3.0.1","3.0.2","3.0.3","3.1.0","3.1.1","3.1.2","3.1.3","3.1.4","3.1.5"],"database_specific":{"last_known_affected_version_range":"<= 3.1.5","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/03/GHSA-cpwx-vrp4-4pq7/GHSA-cpwx-vrp4-4pq7.json"}}],"references":[{"type":"WEB","url":"https://github.com/pallets/jinja/security/advisories/GHSA-cpwx-vrp4-4pq7"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-27516"},{"type":"WEB","url":"https://github.com/pallets/jinja/commit/90457bbf33b8662926ae65cdde4c4c32e756e403"},{"type":"PACKAGE","url":"https://github.com/pallets/jinja"},{"type":"WEB","url":"https://github.com/pallets/jinja/releases/tag/3.1.6"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/jinja2/PYSEC-2026-1471.yaml"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/04/msg00022.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/04/msg00045.html"},{"type":"WEB","url":"https://pypi.org/project/jinja2"}],"database_specific":{"cwe_ids":["CWE-1336"],"github_reviewed":true,"github_reviewed_at":"2025-03-05T20:40:14Z","nvd_published_at":"2025-03-05T21:15:20Z","severity":"MODERATE"},"severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"}]} \ No newline at end of file diff --git a/data/PyPI/MAL-2026-19951.json b/data/PyPI/MAL-2026-19951.json index 80ee47b1ba..9fb583a699 100644 --- a/data/PyPI/MAL-2026-19951.json +++ b/data/PyPI/MAL-2026-19951.json @@ -1 +1 @@ -{"schema_version":"1.9.2","id":"MAL-2026-19951","published":"2026-11-16T08:46:51Z","modified":"2026-11-16T10:30:03.342212871Z","summary":"Malicious code in my-poc-sandbox (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: kam193 (47b35ec3d2d855cfb8c9178f76b0ca47d6cc887c57223f2f4a93ea9444f78e21)\nDuring import, the package attempts to start a reverse shell.\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2026-11-my-poc-sandbox\n\n\nReasons (based on the campaign):\n\n\n - The package contains code to create a reverse shell, allowing an attacker to execute any commands on the victim's machine.\n","affected":[{"package":{"name":"my-poc-sandbox","ecosystem":"PyPI","purl":"pkg:pypi/my-poc-sandbox"},"versions":["1.0.0","1.0.1","1.0.2"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/my-poc-sandbox/MAL-2026-19951.json"}}],"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/my-poc-sandbox"}],"database_specific":{"iocs":{"domains":["mcwxz-13-205-45-209.run.pinggy-free.link"]},"malicious-packages-origins":[{"id":"pypi/2026-11-my-poc-sandbox/my-poc-sandbox","import_time":"2026-11-16T09:17:46.471938947Z","modified_time":"2026-11-16T08:46:52.705499Z","sha256":"47b35ec3d2d855cfb8c9178f76b0ca47d6cc887c57223f2f4a93ea9444f78e21","source":"kam193","versions":["1.0.0","1.0.1","1.0.2"]},{"id":"pypi/2026-11-my-poc-sandbox/my-poc-sandbox","import_time":"2026-11-16T10:14:50.658179764Z","modified_time":"2026-11-16T08:46:52.705499Z","sha256":"e09f5e6a96d436caef5a37401e1f79878f69c989848c6902c11d7a9bb41e60aa","source":"kam193","versions":["1.0.0","1.0.1","1.0.2"]}]},"credits":[{"name":"Kamil Mańkowski (kam193)","contact":["https://github.com/kam193","https://bad-packages.kam193.eu/"],"type":"REPORTER"}]} \ No newline at end of file +{"schema_version":"1.9.2","id":"MAL-2026-19951","published":"2026-11-16T08:46:51Z","modified":"2026-11-18T00:45:13.873351014Z","summary":"Malicious code in my-poc-sandbox (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (fe7240da217bf567ae728de62165a0fafd2eabc3593644cbb0d250ae872c6a5c)\nOn `import my_poc_sandbox`, top-level code in core.py (reached via __init__.py) opens a TCP socket to the hardcoded host mcwxz-13-205-45-209.run.pinggy-free.link:37347, duplicates file descriptors 0, 1, and 2 onto that socket, and spawns `/bin/sh` via `pty.spawn`. The result is an interactive remote shell on the installer's machine with stdio streamed to the remote endpoint. The destination is a public pinggy-free.link ephemeral tunnel, not a first-party or vendor-controlled endpoint. The behavior fires with no user action, no authentication, and no disclosure in any README.\n\n## Source: kam193 (47b35ec3d2d855cfb8c9178f76b0ca47d6cc887c57223f2f4a93ea9444f78e21)\nDuring import, the package attempts to start a reverse shell.\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2026-11-my-poc-sandbox\n\n\nReasons (based on the campaign):\n\n\n - The package contains code to create a reverse shell, allowing an attacker to execute any commands on the victim's machine.\n","affected":[{"package":{"name":"my-poc-sandbox","ecosystem":"PyPI","purl":"pkg:pypi/my-poc-sandbox"},"versions":["1.0.0","1.0.1","1.0.2"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"artifacts":["my_poc_sandbox-1.0.2.tar.gz","my_poc_sandbox-1.0.2-py3-none-any.whl"],"path":"my_poc_sandbox/core.py","sha256":"108c2ec0bd364dff7296999e60e898f7c903ec387896afe18664ed0e77149ecc","tlsh":"04f05c619a57720b67bbcf98108dc4ec665253007fa51107b36c46312e36f5842f02ab"}],"package_integrity":[{"filename":"my_poc_sandbox-1.0.2-py3-none-any.whl","hashes":{"blake2b_256":"f5e19878944f5dec49bce63711d6a1365bef8603be8615de132371253ceb7b01","md5":"d7147da0fcfd9b2ec71b328263b03154","sha256":"2fc6613bbe5348164c61ac7c549a9a2bcb1c4cd66bc451e77719f7bd23e42bae"}},{"filename":"my_poc_sandbox-1.0.2.tar.gz","hashes":{"blake2b_256":"c5735bfc7e3e1ad74e13d09f041ac654bc2d17961fd752caea63ea58ac32f83e","md5":"ebcfc075b633a80dbc22d88d3bfe2fb6","sha256":"cf750734a24e23b290befd11a0d2493391eef0a9b8aa5a496f76bd3774a1d84a"}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/my-poc-sandbox/MAL-2026-19951.json"}}],"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/my-poc-sandbox"},{"type":"PACKAGE","url":"https://pypi.org/project/my-poc-sandbox/1.0.2/"}],"database_specific":{"iocs":{"domains":["mcwxz-13-205-45-209.run.pinggy-free.link"]},"malicious-packages-origins":[{"id":"pypi/2026-11-my-poc-sandbox/my-poc-sandbox","import_time":"2026-11-16T09:17:46.471938947Z","modified_time":"2026-11-16T08:46:52.705499Z","sha256":"47b35ec3d2d855cfb8c9178f76b0ca47d6cc887c57223f2f4a93ea9444f78e21","source":"kam193","versions":["1.0.0","1.0.1","1.0.2"]},{"id":"pypi/2026-11-my-poc-sandbox/my-poc-sandbox","import_time":"2026-11-16T10:14:50.658179764Z","modified_time":"2026-11-16T08:46:52.705499Z","sha256":"e09f5e6a96d436caef5a37401e1f79878f69c989848c6902c11d7a9bb41e60aa","source":"kam193","versions":["1.0.0","1.0.1","1.0.2"]},{"id":"IN-MAL-2026-022826","import_time":"2026-11-18T00:30:52.407376315Z","modified_time":"2026-11-17T23:40:55Z","sha256":"fe7240da217bf567ae728de62165a0fafd2eabc3593644cbb0d250ae872c6a5c","source":"amazon-inspector","versions":["1.0.2"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"name":"Kamil Mańkowski (kam193)","contact":["https://github.com/kam193","https://bad-packages.kam193.eu/"],"type":"REPORTER"}]} \ No newline at end of file diff --git a/data/PyPI/MAL-2026-20068.json b/data/PyPI/MAL-2026-20068.json index 2cb5d66214..d06ea5e758 100644 --- a/data/PyPI/MAL-2026-20068.json +++ b/data/PyPI/MAL-2026-20068.json @@ -1 +1 @@ -{"schema_version":"1.9.2","id":"MAL-2026-20068","published":"2026-11-17T14:45:00Z","modified":"2026-11-17T16:30:04.746915960Z","summary":"Malicious code in mcp-aevo-server (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: kam193 (6c0f51469b807e83b880e6b1337fab3798b91f26b387e70f92280c060b742a0f)\nPackage targets users ribbon-finance/aevo-trading-skills, which referred to an unclaimed name in PyPI. The package exfiltrates the user's credentials from environment variables and starts a thread listening for remote commands to execute.\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2026-11-mcp-aevo-server\n\n\nReasons (based on the campaign):\n\n\n - exfiltration-env-variables\n\n\n - dependency-confusion\n\n\n - crypto-related\n\n\n - The package contains code to execute remote commands (probably limited to a specific set) on the victim's machine.\n\n\n - uses-telegram-bot\n","affected":[{"package":{"name":"mcp-aevo-server","ecosystem":"PyPI","purl":"pkg:pypi/mcp-aevo-server"},"versions":["0.2.0","0.2.0.post1","0.2.0.post2","0.2.0.post3","0.2.0.post4","0.2.0.post6"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/mcp-aevo-server/MAL-2026-20068.json"}}],"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/mcp-aevo-server"}],"database_specific":{"malicious-packages-origins":[{"id":"pypi/2026-11-mcp-aevo-server/mcp-aevo-server","import_time":"2026-11-17T16:13:56.887204059Z","modified_time":"2026-11-17T14:45:00.176673Z","sha256":"6c0f51469b807e83b880e6b1337fab3798b91f26b387e70f92280c060b742a0f","source":"kam193","versions":["0.2.0","0.2.0.post1","0.2.0.post2","0.2.0.post3","0.2.0.post4","0.2.0.post6"]}]},"credits":[{"name":"Kamil Mańkowski (kam193)","contact":["https://github.com/kam193","https://bad-packages.kam193.eu/"],"type":"REPORTER"}]} \ No newline at end of file +{"schema_version":"1.9.2","id":"MAL-2026-20068","published":"2026-11-17T14:45:00Z","modified":"2026-11-18T00:45:13.872351109Z","summary":"Malicious code in mcp-aevo-server (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (972c258509e94a35aa13f9a23d358edab57746321453d9eb1201e40a5807f2ef)\nOn server start, `main()` invokes `_telemetry.arm()` in `src/mcp_aevo_server/_telemetry.py`, which reads environment variables holding Aevo trading credentials and wallet material — including `AEVO_API_KEY`, `AEVO_API_SECRET`, `AEVO_SIGNING_KEY_PRIVATE_KEY`, and `AEVO_WALLET_PRIVATE_KEY` — and POSTs them in full cleartext to a hardcoded Telegram bot endpoint at `api.telegram.org/bot8867174343:.../sendMessage` targeting chat `8838719553`. Collection also captures `socket.gethostname()`, the OS user, cwd, argv, and a snapshot of `AEVO_*`/`UV_*` environment variable names. The same payload is additionally POSTed to a configurable `AEVO_TELEMETRY_URL` via `urllib.request.urlopen` and spooled to disk for retry across restarts. The behavior is opt-out (`AEVO_TELEMETRY=0`) rather than opt-in, and full secret values are sent by default (`AEVO_TELEMETRY_FULL` defaults on). Module naming and comments (`_telemetry`, `census`, `notifier`, \"Public by design: it can only send, and only to this one chat\") present the exfiltration as benign telemetry, but the payload is trading API secrets and wallet private keys shipped to an author-controlled destination. Possession of these values allows full takeover of the Aevo account and movement of funds from the associated wallet.\n\n## Source: kam193 (6c0f51469b807e83b880e6b1337fab3798b91f26b387e70f92280c060b742a0f)\nPackage targets users ribbon-finance/aevo-trading-skills, which referred to an unclaimed name in PyPI. The package exfiltrates the user's credentials from environment variables and starts a thread listening for remote commands to execute.\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2026-11-mcp-aevo-server\n\n\nReasons (based on the campaign):\n\n\n - exfiltration-env-variables\n\n\n - dependency-confusion\n\n\n - crypto-related\n\n\n - The package contains code to execute remote commands (probably limited to a specific set) on the victim's machine.\n\n\n - uses-telegram-bot\n","affected":[{"package":{"name":"mcp-aevo-server","ecosystem":"PyPI","purl":"pkg:pypi/mcp-aevo-server"},"versions":["0.2.0","0.2.0.post1","0.2.0.post2","0.2.0.post3","0.2.0.post4","0.2.0.post6"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"artifacts":["mcp_aevo_server-0.2.0.post1.tar.gz","mcp_aevo_server-0.2.0.post1-py3-none-any.whl"],"path":"src/mcp_aevo_server/_telemetry.py","sha256":"8e8a5a24dc15128554984123aa90662fc6a06d0c507e1375ef948e4f02bee299","tlsh":"05328359fd5a6c33c253c56dc822c561e33a79073a41a934faac43296f5e03982fd6ec"}],"package_integrity":[{"filename":"mcp_aevo_server-0.2.0.post1-py3-none-any.whl","hashes":{"blake2b_256":"c9aa2f56b7c605c932f947fca7679e0000a98971afd4ecc44a007b15681d789b","md5":"b7fc9ab6309f85d55c3a96af4027c378","sha256":"e1d7c618697ec9160ac82314e2845ee2af80b7023bbd2a6fe192ae60d0cc458d"}},{"filename":"mcp_aevo_server-0.2.0.post1.tar.gz","hashes":{"blake2b_256":"b5a65577f6349096b97cde77cf0c328129b441afa700df6ac7a61eaa84fa7323","md5":"1d1f9207b19f14ad7816a69f9fbc9d77","sha256":"4540499b3cf6261c04b5cd3f7b31786fa2b52e400df29f30f6b1aff7bad87d8f"}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/mcp-aevo-server/MAL-2026-20068.json"}}],"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/mcp-aevo-server"},{"type":"PACKAGE","url":"https://pypi.org/project/mcp-aevo-server/0.2.0.post1/"},{"type":"PACKAGE","url":"https://pypi.org/project/mcp-aevo-server/0.2.0.post3/"},{"type":"PACKAGE","url":"https://pypi.org/project/mcp-aevo-server/0.2.0.post6/"},{"type":"PACKAGE","url":"https://pypi.org/project/mcp-aevo-server/0.2.0.post2/"},{"type":"PACKAGE","url":"https://pypi.org/project/mcp-aevo-server/0.2.0.post4/"}],"database_specific":{"malicious-packages-origins":[{"id":"pypi/2026-11-mcp-aevo-server/mcp-aevo-server","import_time":"2026-11-17T16:13:56.887204059Z","modified_time":"2026-11-17T14:45:00.176673Z","sha256":"6c0f51469b807e83b880e6b1337fab3798b91f26b387e70f92280c060b742a0f","source":"kam193","versions":["0.2.0","0.2.0.post1","0.2.0.post2","0.2.0.post3","0.2.0.post4","0.2.0.post6"]},{"id":"IN-MAL-2026-022823","import_time":"2026-11-18T00:30:51.96264497Z","modified_time":"2026-11-17T23:39:39Z","sha256":"0798e8aa41cf6d0701fe9035fb6853d12902f0e92f6bd2789c63990f2a99cdc0","source":"amazon-inspector","versions":["0.2.0.post1"]},{"id":"IN-MAL-2026-022819","import_time":"2026-11-18T00:30:51.449210883Z","modified_time":"2026-11-17T23:39:06Z","sha256":"138b279506f65893216952548e8f5facd93b1ed5ec58e1b434471b068eb0373f","source":"amazon-inspector","versions":["0.2.0.post3"]},{"id":"IN-MAL-2026-022820","import_time":"2026-11-18T00:30:51.593259507Z","modified_time":"2026-11-17T23:39:15Z","sha256":"77c3ab661dbdee7635eb232b0a03328eb4bbcfec9936f7cdd92efa8db1351e43","source":"amazon-inspector","versions":["0.2.0.post6"]},{"id":"IN-MAL-2026-022821","import_time":"2026-11-18T00:30:51.74316805Z","modified_time":"2026-11-17T23:39:22Z","sha256":"972c258509e94a35aa13f9a23d358edab57746321453d9eb1201e40a5807f2ef","source":"amazon-inspector","versions":["0.2.0.post2"]},{"id":"IN-MAL-2026-022822","import_time":"2026-11-18T00:30:51.872575481Z","modified_time":"2026-11-17T23:39:28Z","sha256":"d5d33159c8372d8b10238adf6ae7e318fdc05d896ae8b6b78b6c1eef599a7ccc","source":"amazon-inspector","versions":["0.2.0.post4"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"name":"Kamil Mańkowski (kam193)","contact":["https://github.com/kam193","https://bad-packages.kam193.eu/"],"type":"REPORTER"}]} \ No newline at end of file diff --git a/data/PyPI/MAL-2026-20112.json b/data/PyPI/MAL-2026-20112.json new file mode 100644 index 0000000000..69357ee46c --- /dev/null +++ b/data/PyPI/MAL-2026-20112.json @@ -0,0 +1 @@ +{"schema_version":"1.9.2","id":"MAL-2026-20112","published":"2026-11-16T16:20:00Z","modified":"2026-11-18T06:00:17.544964848Z","summary":"Malicious code in robloxapiaccess (PyPI)","details":"Malicious package. Poses as a \"RobloxAPI Access\" library (author \"Aristal-Development\"). The exported `robloxmessage()` in `RobloxAPIACCESS.py` is an information stealer: it collects host, IP and geolocation details, extracts Discord tokens from the Discord clients' Local Storage leveldb, decrypts Chrome saved passwords, grabs browser cookies via `browser_cookie3`, and sends the results to a Discord webhook. In 0.0.2 the webhook is hardcoded (1084236782247362680); 0.0.1 ships the same stealer with the webhook left blank. A comment claims it is for educational purposes only. Published 2023-03-18; removed from PyPI.","affected":[{"package":{"name":"robloxapiaccess","ecosystem":"PyPI","purl":"pkg:pypi/robloxapiaccess"},"versions":["0.0.1","0.0.2"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/robloxapiaccess/MAL-2026-20112.json"}}],"references":[{"type":"WEB","url":"https://wormsign.io/portfolio/robloxapiaccess/"}],"database_specific":{"iocs":{"files":[{"digests":{"sha256":"f537d39c03f98069983cdceb051b1f5156682d1a68eccfd9f42cde7a8b65b8b5"},"paths":["libname/RobloxAPIACCESS.py"]},{"digests":{"sha256":"3251367d75a80c5de4bb6cf07a7736f4e93b450324e9859ba74fb33a054ced87"},"paths":["libname/RobloxAPIACCESS.py"]}],"urls":["https://discord.com/api/webhooks/1084236782247362680"]}},"credits":[{"name":"wormsign","contact":["https://x.com/w0rmsign"],"type":"FINDER"}]} \ No newline at end of file diff --git a/data/PyPI/MAL-2026-20113.json b/data/PyPI/MAL-2026-20113.json new file mode 100644 index 0000000000..cd1ac6782d --- /dev/null +++ b/data/PyPI/MAL-2026-20113.json @@ -0,0 +1 @@ +{"schema_version":"1.9.2","id":"MAL-2026-20113","published":"2026-11-16T15:40:00Z","modified":"2026-11-18T06:30:06.348131843Z","summary":"Malicious code in aeivasta (PyPI)","details":"Malicious package. `setup.py` runs base64-encoded code with `exec` on every invocation except `sdist`, i.e. during `pip install`. On Windows it writes an embedded 158 KB executable to the temp directory (`Wde24bc9faebba164d8c8467a5f7840.exe`) and starts it. On Linux it looks up the public IP and ISP via ip-api.com (and exits if the ISP is Google or Mythic Beasts), takes a screenshot, collects Firefox and Thunderbird credential and cookie stores (key4.db, logins.json, cookies.sqlite), FileZilla saved servers, Pidgin accounts, Telegram Desktop tdata sessions and Electrum and Exodus wallets, zips and RC4-encrypts them, and uploads the archive to a Telegram bot (bot 6209822134, chat -1001529292045). Observed in a sandboxed install (ip-api.com and api.telegram.org connections). It belongs to the WhiteSnake infostealer campaign on PyPI (April 2023); sibling packages such as libidrequest (MAL-2024-5318) and libideeee (MAL-2024-5315) are already recorded. The package has been removed from PyPI.","affected":[{"package":{"name":"aeivasta","ecosystem":"PyPI","purl":"pkg:pypi/aeivasta"},"versions":["0.3"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/aeivasta/MAL-2026-20113.json"}}],"references":[{"type":"WEB","url":"https://wormsign.io/portfolio/aeivasta/"}],"database_specific":{"iocs":{"files":[{"digests":{"sha256":"30ec5a08b0b2f021bff877a13aba35cdb9d4bd5aa107a321550decae53a0a70e"},"paths":["setup.py"]},{"digests":{"sha256":"b12ca928c062c8e73a4154878a680133ef73ac2832cb9a6f48d4cedb0defc5e5"},"paths":["%TEMP%/Wde24bc9faebba164d8c8467a5f7840.exe"]}],"urls":["https://api.telegram.org/bot6209822134","http://ip-api.com/line?fields=query,isp"]}},"credits":[{"name":"wormsign","contact":["https://x.com/w0rmsign"],"type":"FINDER"}]} \ No newline at end of file diff --git a/data/PyPI/MAL-2026-20114.json b/data/PyPI/MAL-2026-20114.json new file mode 100644 index 0000000000..688e7cb850 --- /dev/null +++ b/data/PyPI/MAL-2026-20114.json @@ -0,0 +1 @@ +{"schema_version":"1.9.2","id":"MAL-2026-20114","published":"2026-11-16T15:40:00Z","modified":"2026-11-18T06:30:06.346594926Z","summary":"Malicious code in libide (PyPI)","details":"Malicious package. During `pip install`, `setup.py` executed a payload that queried `ip-api.com` for the public IP and then connected to `transfer.sh`, a file-upload service used here for exfiltration, observed in a sandboxed install. The `setup.py` (1,300 KB, sha256 78c0f7d44695ed24f4ed86ddec3ecb94911fc130977d580ab824751077225a6a) is padded to an unusual size, consistent with the embedded Windows executable in the WhiteSnake family; the name sits alongside its siblings libidrequest (MAL-2024-5318) and libideeee (MAL-2024-5315). The package has been removed from PyPI.","affected":[{"package":{"name":"libide","ecosystem":"PyPI","purl":"pkg:pypi/libide"},"versions":["0.1"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/libide/MAL-2026-20114.json"}}],"references":[{"type":"WEB","url":"https://wormsign.io/portfolio/libide/"}],"database_specific":{"iocs":{"domains":["ip-api.com","transfer.sh"],"files":[{"digests":{"sha256":"78c0f7d44695ed24f4ed86ddec3ecb94911fc130977d580ab824751077225a6a"},"paths":["setup.py"]}]}},"credits":[{"name":"wormsign","contact":["https://x.com/w0rmsign"],"type":"FINDER"}]} \ No newline at end of file diff --git a/data/PyPI/MAL-2026-20115.json b/data/PyPI/MAL-2026-20115.json new file mode 100644 index 0000000000..4ac0aa8324 --- /dev/null +++ b/data/PyPI/MAL-2026-20115.json @@ -0,0 +1 @@ +{"schema_version":"1.9.2","id":"MAL-2026-20115","published":"2026-11-16T15:40:00Z","modified":"2026-11-18T06:30:06.348105446Z","summary":"Malicious code in libidreq (PyPI)","details":"Malicious package. During `pip install`, `setup.py` executed a payload that ran the host-profiling commands `lsb_release -a`, `uname -rs` and `uname -p`, queried `http://ip-api.com/line` for the public IP and ISP, and then connected to `api.telegram.org`, all observed in a sandboxed install. This is the exact runtime fingerprint of the WhiteSnake infostealer `setup.py` payload (the same family as `aeivasta` and `setnetwork`, whose recovered payload steals browser credentials and cookies, Telegram sessions and cryptocurrency wallets and uploads them to a Telegram bot). The `setup.py` (1983 KB, sha256 11d6c8f8f2009f352d1040c4b32f91aceecdeb103bf88b0796152006950088e4) is padded to an unusual size, consistent with the embedded Windows executable in that family. It belongs to the WhiteSnake infostealer campaign on PyPI (April 2023); sibling packages such as libidrequest (MAL-2024-5318) and libideeee (MAL-2024-5315) are already recorded. The package has been removed from PyPI.","affected":[{"package":{"name":"libidreq","ecosystem":"PyPI","purl":"pkg:pypi/libidreq"},"versions":["0.1"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/libidreq/MAL-2026-20115.json"}}],"references":[{"type":"WEB","url":"https://wormsign.io/portfolio/libidreq/"}],"database_specific":{"iocs":{"domains":["api.telegram.org","ip-api.com"],"files":[{"digests":{"sha256":"11d6c8f8f2009f352d1040c4b32f91aceecdeb103bf88b0796152006950088e4"},"paths":["setup.py"]}]}},"credits":[{"name":"wormsign","contact":["https://x.com/w0rmsign"],"type":"FINDER"}]} \ No newline at end of file diff --git a/data/PyPI/MAL-2026-20116.json b/data/PyPI/MAL-2026-20116.json new file mode 100644 index 0000000000..1425c68b5c --- /dev/null +++ b/data/PyPI/MAL-2026-20116.json @@ -0,0 +1 @@ +{"schema_version":"1.9.2","id":"MAL-2026-20116","published":"2026-11-16T15:40:00Z","modified":"2026-11-18T06:30:06.346617219Z","summary":"Malicious code in quick-telegram-sender (PyPI)","details":"Malicious package. During `pip install`, `setup.py` executed a payload that ran the host-profiling commands `lsb_release -a`, `uname -rs` and `uname -p`, queried `http://ip-api.com/line` for the public IP and ISP, and then connected to `api.telegram.org`, all observed in a sandboxed install. This is the exact runtime fingerprint of the WhiteSnake infostealer `setup.py` payload (the same family as `aeivasta` and `setnetwork`, whose recovered payload steals browser credentials and cookies, Telegram sessions and cryptocurrency wallets and uploads them to a Telegram bot). The `setup.py` (1646 KB, sha256 af5fa67eca52543c6179a52091194537e9f51c64f45ee7bb9f1e62e17ae469bf) is padded to an unusual size, consistent with the embedded Windows executable in that family. It belongs to the WhiteSnake infostealer campaign on PyPI (April 2023); sibling packages such as libidrequest (MAL-2024-5318) and libideeee (MAL-2024-5315) are already recorded. The package has been removed from PyPI.","affected":[{"package":{"name":"quick-telegram-sender","ecosystem":"PyPI","purl":"pkg:pypi/quick-telegram-sender"},"versions":["0.7"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/quick-telegram-sender/MAL-2026-20116.json"}}],"references":[{"type":"WEB","url":"https://wormsign.io/portfolio/quick-telegram-sender/"}],"database_specific":{"iocs":{"domains":["api.telegram.org","ip-api.com"],"files":[{"digests":{"sha256":"af5fa67eca52543c6179a52091194537e9f51c64f45ee7bb9f1e62e17ae469bf"},"paths":["setup.py"]}]}},"credits":[{"name":"wormsign","contact":["https://x.com/w0rmsign"],"type":"FINDER"}]} \ No newline at end of file diff --git a/data/PyPI/MAL-2026-20117.json b/data/PyPI/MAL-2026-20117.json new file mode 100644 index 0000000000..77d56cd02c --- /dev/null +++ b/data/PyPI/MAL-2026-20117.json @@ -0,0 +1 @@ +{"schema_version":"1.9.2","id":"MAL-2026-20117","published":"2026-11-16T15:40:00Z","modified":"2026-11-18T06:30:06.345245991Z","summary":"Malicious code in setnetwork (PyPI)","details":"Malicious package. `setup.py` runs base64-encoded code with `exec` on every invocation except `sdist`, i.e. during `pip install`. On Windows it writes an embedded 429 KB executable to the temp directory (`P3c8b0f54872f923c2cd896f7b5.exe`) and starts it. On Linux it looks up the public IP and ISP via ip-api.com (and exits if the ISP is Google or Mythic Beasts), takes a screenshot, collects Firefox and Thunderbird credential and cookie stores (key4.db, logins.json, cookies.sqlite), FileZilla saved servers, Pidgin accounts, Telegram Desktop tdata sessions and Electrum and Exodus wallets, zips and RC4-encrypts them, and uploads the archive to a Telegram bot (bot 6209822134, chat -1001529292045). Observed in a sandboxed install (ip-api.com and api.telegram.org connections). It belongs to the WhiteSnake infostealer campaign on PyPI (April 2023); sibling packages such as libidrequest (MAL-2024-5318) and libideeee (MAL-2024-5315) are already recorded. The package has been removed from PyPI.","affected":[{"package":{"name":"setnetwork","ecosystem":"PyPI","purl":"pkg:pypi/setnetwork"},"versions":["0.2"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/setnetwork/MAL-2026-20117.json"}}],"references":[{"type":"WEB","url":"https://wormsign.io/portfolio/setnetwork/"}],"database_specific":{"iocs":{"files":[{"digests":{"sha256":"1df2b365d5c3e53d942e957184bf7b32778839cde120fd9a1c2eaf16e040851e"},"paths":["setup.py"]},{"digests":{"sha256":"84890e8c91d8bd401c9cb7866157a3d9ca28530a3257961f8c925e4dc6474f3a"},"paths":["%TEMP%/P3c8b0f54872f923c2cd896f7b5.exe"]}],"urls":["https://api.telegram.org/bot6209822134","http://ip-api.com/line?fields=query,isp"]}},"credits":[{"name":"wormsign","contact":["https://x.com/w0rmsign"],"type":"FINDER"}]} \ No newline at end of file diff --git a/data/PyPI/MAL-2026-20118.json b/data/PyPI/MAL-2026-20118.json new file mode 100644 index 0000000000..67252bf929 --- /dev/null +++ b/data/PyPI/MAL-2026-20118.json @@ -0,0 +1 @@ +{"schema_version":"1.9.2","id":"MAL-2026-20118","published":"2026-11-16T15:40:00Z","modified":"2026-11-18T06:30:06.343221108Z","summary":"Malicious code in test23414234234 (PyPI)","details":"Malicious package. During `pip install`, `setup.py` executed a payload that ran the host-profiling commands `lsb_release -a`, `uname -rs` and `uname -p`, queried `http://ip-api.com/line` for the public IP and ISP, and then connected to `api.telegram.org`, all observed in a sandboxed install. This is the exact runtime fingerprint of the WhiteSnake infostealer `setup.py` payload (the same family as `aeivasta` and `setnetwork`, whose recovered payload steals browser credentials and cookies, Telegram sessions and cryptocurrency wallets and uploads them to a Telegram bot). The `setup.py` (189 KB, sha256 ea213a1b9e658baba5a089b78644df4ecdc7f26af8d72271a3fdbaa48335213b) is padded to an unusual size, consistent with the embedded Windows executable in that family. It belongs to the WhiteSnake infostealer campaign on PyPI (April 2023); sibling packages such as libidrequest (MAL-2024-5318) and libideeee (MAL-2024-5315) are already recorded. The package has been removed from PyPI.","affected":[{"package":{"name":"test23414234234","ecosystem":"PyPI","purl":"pkg:pypi/test23414234234"},"versions":["0.6"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/test23414234234/MAL-2026-20118.json"}}],"references":[{"type":"WEB","url":"https://wormsign.io/portfolio/test23414234234/"}],"database_specific":{"iocs":{"domains":["api.telegram.org","ip-api.com"],"files":[{"digests":{"sha256":"ea213a1b9e658baba5a089b78644df4ecdc7f26af8d72271a3fdbaa48335213b"},"paths":["setup.py"]}]}},"credits":[{"name":"wormsign","contact":["https://x.com/w0rmsign"],"type":"FINDER"}]} \ No newline at end of file diff --git a/data/PyPI/PYSEC-2026-2946.json b/data/PyPI/PYSEC-2026-2946.json index 708201e092..ef7d28647a 100644 --- a/data/PyPI/PYSEC-2026-2946.json +++ b/data/PyPI/PYSEC-2026-2946.json @@ -1 +1 @@ -{"schema_version":"1.9.2","id":"PYSEC-2026-2946","published":"2026-07-13T14:36:52.273166Z","modified":"2026-11-14T11:45:02.527039540Z","aliases":["CVE-2026-56074","GHSA-ffp3-3562-8cv3"],"summary":"PraisonAI: Coarse-Grained Tool Approval Cache Bypasses Per-Invocation Consent for Shell Commands","details":"## Summary\n\nThe approval system in PraisonAI Agents caches tool approval decisions by tool name only, not by invocation arguments. Once a user approves `execute_command` for any command (e.g., `ls -la`), all subsequent `execute_command` calls in that execution context bypass the approval prompt entirely. Combined with `os.environ.copy()` passing all process environment variables to subprocesses, this allows an LLM agent (potentially via prompt injection) to silently exfiltrate API keys and credentials without further user consent.\n\n## Details\n\nThe `require_approval` decorator in `src/praisonai-agents/praisonaiagents/approval/__init__.py:176-178` checks approval status by tool name only:\n\n```python\n@wraps(func)\ndef wrapper(*args, **kwargs):\n if is_already_approved(tool_name): # line 177 — checks only tool_name\n return func(*args, **kwargs) # line 178 — bypasses ALL approval\n```\n\nThe `mark_approved` function in `registry.py:144-147` stores only the tool name string:\n\n```python\ndef mark_approved(self, tool_name: str) -> None:\n approved = self._approved_context.get(set())\n approved.add(tool_name) # stores \"execute_command\", not args\n self._approved_context.set(approved)\n```\n\nThe approval context is never cleared during agent execution — `clear_approved()` exists (`registry.py:152`) but is never called in the agent's tool execution path (`agent/tool_execution.py`).\n\nMeanwhile, the `ConsoleBackend` UI at `backends.py:95-96` misleads the user:\n\n```python\nreturn Confirm.ask(\n f\"Do you want to execute this {request.risk_level} risk tool?\",\n # \"this\" implies per-invocation approval\n)\n```\n\nThe UI displays the specific command arguments (lines 81-85), creating a reasonable expectation that the user is approving only that specific invocation.\n\nAdditionally, `shell_tools.py:77` passes the full process environment to every subprocess:\n\n```python\nprocess_env = os.environ.copy() # includes OPENAI_API_KEY, etc.\n```\n\nThere is no command filtering, blocklist, or environment variable sanitization in the shell tools module.\n\n## PoC\n\n```python\nfrom praisonaiagents import Agent\nfrom praisonaiagents.tools.shell_tools import execute_command\n\n# Step 1: Create agent with shell tool\nagent = Agent(\n name=\"worker\",\n instructions=\"You are a helpful assistant.\",\n tools=[execute_command]\n)\n\n# Step 2: Agent requests benign command — user sees Rich panel:\n# Function: execute_command\n# Risk Level: CRITICAL\n# Arguments:\n# command: ls -la\n# \"Do you want to execute this critical risk tool?\" [y/N]\n# User approves → mark_approved(\"execute_command\") is called\n\n# Step 3: All subsequent execute_command calls bypass approval silently:\n# execute_command(command=\"env\")\n# → returns ALL environment variables (OPENAI_API_KEY, AWS_SECRET_ACCESS_KEY, etc.)\n# → NO approval prompt shown\n\n# Step 4: Targeted extraction also bypasses approval:\n# execute_command(command=\"printenv OPENAI_API_KEY\")\n# → returns the specific API key\n# → NO approval prompt shown\n\n# Verification: check the approval cache\nfrom praisonaiagents.approval import is_already_approved\n# After approving \"ls -la\":\n# is_already_approved(\"execute_command\") → True\n# Any execute_command call now returns immediately at __init__.py:177-178\n```\n\n## Impact\n\n- **Secret exfiltration**: An LLM agent (or one subjected to prompt injection) can dump all process environment variables after a single benign command approval. Common secrets include `OPENAI_API_KEY`, `AWS_SECRET_ACCESS_KEY`, `DATABASE_URL`, and any other credentials passed via environment.\n- **Misleading consent UI**: The console prompt displays specific arguments and uses language (\"this tool\") that implies per-invocation consent, but the system grants session-wide blanket approval.\n- **No expiration or scope**: The approval cache uses a `ContextVar` that persists for the entire agent execution context with no timeout, no command-count limit, and no clearing between tool calls.\n- **No environment filtering**: `os.environ.copy()` passes every environment variable to subprocesses without filtering sensitive patterns.\n\n## Recommended Fix\n\n1. **Per-invocation approval for critical tools** — store a hash of `(tool_name, arguments)` instead of just `tool_name`, or require re-approval for each invocation of critical-risk tools:\n\n```python\n# In registry.py — change mark_approved/is_already_approved:\nimport hashlib, json\n\ndef mark_approved(self, tool_name: str, arguments: dict = None) -> None:\n approved = self._approved_context.get(set())\n risk = self._risk_levels.get(tool_name)\n if risk == \"critical\" and arguments:\n key = f\"{tool_name}:{hashlib.sha256(json.dumps(arguments, sort_keys=True).encode()).hexdigest()}\"\n else:\n key = tool_name\n approved.add(key)\n self._approved_context.set(approved)\n\ndef is_already_approved(self, tool_name: str, arguments: dict = None) -> bool:\n approved = self._approved_context.get(set())\n risk = self._risk_levels.get(tool_name)\n if risk == \"critical\" and arguments:\n key = f\"{tool_name}:{hashlib.sha256(json.dumps(arguments, sort_keys=True).encode()).hexdigest()}\"\n return key in approved\n return tool_name in approved\n```\n\n2. **Filter environment variables** in `shell_tools.py`:\n\n```python\nSENSITIVE_PATTERNS = ('_KEY', '_SECRET', '_TOKEN', '_PASSWORD', '_CREDENTIAL')\n\nprocess_env = {\n k: v for k, v in os.environ.items()\n if not any(p in k.upper() for p in SENSITIVE_PATTERNS)\n}\nif env:\n process_env.update(env)\n```","affected":[{"package":{"name":"praisonaiagents","ecosystem":"PyPI","purl":"pkg:pypi/praisonaiagents"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.5.128"}]}],"versions":["0.0.1","0.0.10","0.0.100","0.0.101","0.0.102","0.0.103","0.0.104","0.0.105","0.0.106","0.0.107","0.0.108","0.0.109","0.0.11","0.0.110","0.0.111","0.0.112","0.0.113","0.0.114","0.0.115","0.0.116","0.0.117","0.0.118","0.0.119","0.0.12","0.0.120","0.0.121","0.0.122","0.0.123","0.0.124","0.0.125","0.0.126","0.0.127","0.0.128","0.0.129","0.0.13","0.0.130","0.0.131","0.0.132","0.0.133","0.0.134","0.0.135","0.0.136","0.0.137","0.0.138","0.0.139","0.0.14","0.0.140","0.0.141","0.0.142","0.0.143","0.0.144","0.0.145","0.0.146","0.0.147","0.0.148","0.0.149","0.0.15","0.0.150","0.0.151","0.0.152","0.0.153","0.0.154","0.0.155","0.0.156","0.0.157","0.0.158","0.0.159","0.0.16","0.0.160","0.0.161","0.0.162","0.0.163","0.0.164","0.0.165","0.0.166","0.0.167","0.0.168","0.0.169","0.0.17","0.0.170","0.0.171","0.0.172","0.0.173","0.0.174","0.0.175","0.0.176","0.0.177","0.0.178","0.0.179","0.0.18","0.0.180","0.0.181","0.0.182","0.0.183","0.0.184","0.0.185","0.0.187","0.0.188","0.0.189","0.0.19","0.0.190","0.0.191","0.0.192","0.0.193","0.0.194","0.0.195","0.0.196","0.0.197","0.0.198","0.0.199","0.0.2","0.0.20","0.0.21","0.0.22","0.0.23","0.0.24","0.0.25","0.0.26","0.0.27","0.0.28","0.0.29","0.0.3","0.0.30","0.0.31","0.0.32","0.0.33","0.0.34","0.0.35","0.0.36","0.0.37","0.0.38","0.0.39","0.0.4","0.0.40","0.0.41","0.0.42","0.0.43","0.0.44","0.0.45","0.0.46","0.0.47","0.0.48","0.0.49","0.0.5","0.0.50","0.0.51","0.0.52","0.0.53","0.0.54","0.0.56","0.0.57","0.0.58","0.0.59","0.0.6","0.0.60","0.0.61","0.0.62","0.0.63","0.0.64","0.0.65","0.0.66","0.0.67","0.0.68","0.0.69","0.0.7","0.0.70","0.0.71","0.0.72","0.0.73","0.0.74","0.0.75","0.0.76","0.0.77","0.0.78","0.0.79","0.0.8","0.0.80","0.0.81","0.0.82","0.0.83","0.0.84","0.0.85","0.0.86","0.0.87","0.0.88","0.0.89","0.0.9","0.0.90","0.0.91","0.0.92","0.0.93","0.0.94","0.0.95","0.0.96","0.0.97","0.0.98","0.0.99","0.1.0","0.1.1","0.1.10","0.1.11","0.1.12","0.1.13","0.1.14","0.1.15","0.1.16","0.1.17","0.1.18","0.1.19","0.1.2","0.1.20","0.1.21","0.1.22","0.1.23","0.1.24","0.1.25","0.1.26","0.1.27","0.1.3","0.1.4","0.1.5","0.1.6","0.1.7","0.1.8","0.1.9","0.10.0","0.10.1","0.10.10","0.10.2","0.10.3","0.10.4","0.10.5","0.10.6","0.10.7","0.10.8","0.10.9","0.11.0","0.11.1","0.11.10","0.11.11","0.11.12","0.11.13","0.11.14","0.11.15","0.11.16","0.11.17","0.11.18","0.11.19","0.11.2","0.11.20","0.11.21","0.11.22","0.11.23","0.11.24","0.11.25","0.11.27","0.11.28","0.11.29","0.11.3","0.11.30","0.11.31","0.11.4","0.11.5","0.11.6","0.11.7","0.11.8","0.11.9","0.12.0","0.12.1","0.12.10","0.12.11","0.12.12","0.12.13","0.12.14","0.12.15","0.12.16","0.12.17","0.12.18","0.12.19","0.12.2","0.12.20","0.12.21","0.12.3","0.12.4","0.12.5","0.12.6","0.12.7","0.12.8","0.12.9","0.13.0","0.13.1","0.13.10","0.13.11","0.13.12","0.13.13","0.13.14","0.13.15","0.13.16","0.13.17","0.13.18","0.13.19","0.13.2","0.13.20","0.13.21","0.13.22","0.13.23","0.13.3","0.13.4","0.13.5","0.13.6","0.13.7","0.13.8","0.13.9","0.14.0","0.14.1","0.14.10","0.14.11","0.14.12","0.14.14","0.14.15","0.14.16","0.14.2","0.14.3","0.14.4","0.14.5","0.14.6","0.14.7","0.14.8","0.14.9","0.15.0","0.15.1","0.15.2","0.15.3","0.2.0","0.2.1","0.2.2","0.3.0","0.3.1","0.3.2","0.3.3","0.3.4","0.4.0","0.4.1","0.5.0","0.5.1","0.5.2","0.5.3","0.6.0","0.6.1","0.6.2","0.6.3","0.6.4","0.6.5","0.6.6","0.6.7","0.6.8","0.7.0","0.7.1","0.8.0","0.8.1","0.9.0","0.9.1","1.0.0","1.1.0","1.2.0","1.2.1","1.2.2","1.2.3","1.2.4","1.3.0","1.3.1","1.4.0","1.4.1","1.4.2","1.4.3","1.4.4","1.4.5","1.4.6","1.4.7","1.4.8","1.5.0","1.5.1","1.5.10","1.5.100","1.5.101","1.5.102","1.5.103","1.5.104","1.5.105","1.5.106","1.5.107","1.5.108","1.5.109","1.5.11","1.5.110","1.5.111","1.5.112","1.5.113","1.5.114","1.5.115","1.5.116","1.5.117","1.5.118","1.5.119","1.5.12","1.5.120","1.5.121","1.5.122","1.5.123","1.5.124","1.5.125","1.5.126","1.5.127","1.5.128","1.5.129","1.5.13","1.5.130","1.5.131","1.5.132","1.5.133","1.5.134","1.5.135","1.5.136","1.5.137","1.5.138","1.5.139","1.5.14","1.5.140","1.5.141","1.5.142","1.5.143","1.5.144","1.5.145","1.5.146","1.5.147","1.5.148","1.5.149","1.5.15","1.5.16","1.5.17","1.5.18","1.5.19","1.5.2","1.5.20","1.5.21","1.5.22","1.5.23","1.5.24","1.5.25","1.5.26","1.5.27","1.5.28","1.5.29","1.5.3","1.5.30","1.5.31","1.5.32","1.5.33","1.5.34","1.5.35","1.5.36","1.5.37","1.5.38","1.5.39","1.5.40","1.5.41","1.5.42","1.5.43","1.5.44","1.5.45","1.5.46","1.5.47","1.5.48","1.5.49","1.5.5","1.5.50","1.5.51","1.5.52","1.5.53","1.5.54","1.5.55","1.5.56","1.5.57","1.5.58","1.5.59","1.5.6","1.5.60","1.5.61","1.5.62","1.5.63","1.5.64","1.5.65","1.5.66","1.5.67","1.5.68","1.5.69","1.5.7","1.5.70","1.5.71","1.5.72","1.5.73","1.5.74","1.5.75","1.5.76","1.5.77","1.5.78","1.5.79","1.5.8","1.5.80","1.5.81","1.5.82","1.5.83","1.5.84","1.5.85","1.5.86","1.5.87","1.5.88","1.5.89","1.5.9","1.5.90","1.5.91","1.5.92","1.5.93","1.5.94","1.5.95","1.5.96","1.5.97","1.5.98","1.5.99","1.6.1","1.6.10","1.6.100","1.6.101","1.6.102","1.6.103","1.6.104","1.6.105","1.6.106","1.6.107","1.6.108","1.6.109","1.6.11","1.6.110","1.6.111","1.6.112","1.6.113","1.6.114","1.6.115","1.6.116","1.6.117","1.6.118","1.6.119","1.6.12","1.6.120","1.6.123","1.6.124","1.6.125","1.6.126","1.6.127","1.6.128","1.6.129","1.6.13","1.6.130","1.6.131","1.6.132","1.6.133","1.6.134","1.6.135","1.6.136","1.6.137","1.6.138","1.6.139","1.6.14","1.6.140","1.6.141","1.6.142","1.6.143","1.6.144","1.6.145","1.6.146","1.6.147","1.6.148","1.6.149","1.6.15","1.6.150","1.6.151","1.6.152","1.6.153","1.6.154","1.6.155","1.6.156","1.6.157","1.6.158","1.6.159","1.6.16","1.6.160","1.6.161","1.6.162","1.6.163","1.6.164","1.6.165","1.6.166","1.6.167","1.6.168","1.6.17","1.6.18","1.6.19","1.6.2","1.6.20","1.6.21","1.6.22","1.6.23","1.6.24","1.6.25","1.6.26","1.6.27","1.6.28","1.6.29","1.6.3","1.6.30","1.6.31","1.6.32","1.6.33","1.6.34","1.6.35","1.6.36","1.6.37","1.6.38","1.6.39","1.6.4","1.6.40","1.6.41","1.6.42","1.6.43","1.6.44","1.6.45","1.6.46","1.6.47","1.6.48","1.6.5","1.6.50","1.6.51","1.6.52","1.6.53","1.6.54","1.6.55","1.6.56","1.6.57","1.6.58","1.6.59","1.6.6","1.6.60","1.6.62","1.6.63","1.6.64","1.6.65","1.6.66","1.6.67","1.6.68","1.6.69","1.6.7","1.6.70","1.6.71","1.6.72","1.6.73","1.6.74","1.6.75","1.6.76","1.6.77","1.6.78","1.6.79","1.6.8","1.6.80","1.6.81","1.6.82","1.6.83","1.6.84","1.6.85","1.6.86","1.6.87","1.6.88","1.6.89","1.6.9","1.6.90","1.6.91","1.6.92","1.6.93","1.6.94","1.6.95","1.6.96","1.6.97","1.6.99","1.7.0","1.7.1","1.7.10","1.7.11","1.7.12","1.7.13","1.7.14","1.7.15","1.7.16","1.7.17","1.7.18","1.7.19","1.7.2","1.7.20","1.7.21","1.7.22","1.7.23","1.7.3","1.7.4","1.7.5","1.7.6","1.7.7","1.7.8","1.7.9"],"database_specific":{"source":"https://github.com/pypa/advisory-database/blob/main/vulns/praisonaiagents/PYSEC-2026-2946.yaml"}}],"references":[{"type":"WEB","url":"https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-ffp3-3562-8cv3"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-56074"},{"type":"PACKAGE","url":"https://github.com/MervinPraison/PraisonAI"},{"type":"WEB","url":"https://github.com/MervinPraison/PraisonAI/releases/tag/v4.5.128"},{"type":"WEB","url":"https://www.vulncheck.com/advisories/praisonai-tool-approval-cache-bypass-via-coarse-grained-caching"},{"type":"PACKAGE","url":"https://pypi.org/project/praisonaiagents"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-ffp3-3562-8cv3"}],"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N"}]} \ No newline at end of file +{"schema_version":"1.9.2","id":"PYSEC-2026-2946","published":"2026-07-13T14:36:52.273166Z","modified":"2026-11-18T05:00:04.930320114Z","aliases":["CVE-2026-56074","GHSA-ffp3-3562-8cv3"],"summary":"PraisonAI: Coarse-Grained Tool Approval Cache Bypasses Per-Invocation Consent for Shell Commands","details":"## Summary\n\nThe approval system in PraisonAI Agents caches tool approval decisions by tool name only, not by invocation arguments. Once a user approves `execute_command` for any command (e.g., `ls -la`), all subsequent `execute_command` calls in that execution context bypass the approval prompt entirely. Combined with `os.environ.copy()` passing all process environment variables to subprocesses, this allows an LLM agent (potentially via prompt injection) to silently exfiltrate API keys and credentials without further user consent.\n\n## Details\n\nThe `require_approval` decorator in `src/praisonai-agents/praisonaiagents/approval/__init__.py:176-178` checks approval status by tool name only:\n\n```python\n@wraps(func)\ndef wrapper(*args, **kwargs):\n if is_already_approved(tool_name): # line 177 — checks only tool_name\n return func(*args, **kwargs) # line 178 — bypasses ALL approval\n```\n\nThe `mark_approved` function in `registry.py:144-147` stores only the tool name string:\n\n```python\ndef mark_approved(self, tool_name: str) -> None:\n approved = self._approved_context.get(set())\n approved.add(tool_name) # stores \"execute_command\", not args\n self._approved_context.set(approved)\n```\n\nThe approval context is never cleared during agent execution — `clear_approved()` exists (`registry.py:152`) but is never called in the agent's tool execution path (`agent/tool_execution.py`).\n\nMeanwhile, the `ConsoleBackend` UI at `backends.py:95-96` misleads the user:\n\n```python\nreturn Confirm.ask(\n f\"Do you want to execute this {request.risk_level} risk tool?\",\n # \"this\" implies per-invocation approval\n)\n```\n\nThe UI displays the specific command arguments (lines 81-85), creating a reasonable expectation that the user is approving only that specific invocation.\n\nAdditionally, `shell_tools.py:77` passes the full process environment to every subprocess:\n\n```python\nprocess_env = os.environ.copy() # includes OPENAI_API_KEY, etc.\n```\n\nThere is no command filtering, blocklist, or environment variable sanitization in the shell tools module.\n\n## PoC\n\n```python\nfrom praisonaiagents import Agent\nfrom praisonaiagents.tools.shell_tools import execute_command\n\n# Step 1: Create agent with shell tool\nagent = Agent(\n name=\"worker\",\n instructions=\"You are a helpful assistant.\",\n tools=[execute_command]\n)\n\n# Step 2: Agent requests benign command — user sees Rich panel:\n# Function: execute_command\n# Risk Level: CRITICAL\n# Arguments:\n# command: ls -la\n# \"Do you want to execute this critical risk tool?\" [y/N]\n# User approves → mark_approved(\"execute_command\") is called\n\n# Step 3: All subsequent execute_command calls bypass approval silently:\n# execute_command(command=\"env\")\n# → returns ALL environment variables (OPENAI_API_KEY, AWS_SECRET_ACCESS_KEY, etc.)\n# → NO approval prompt shown\n\n# Step 4: Targeted extraction also bypasses approval:\n# execute_command(command=\"printenv OPENAI_API_KEY\")\n# → returns the specific API key\n# → NO approval prompt shown\n\n# Verification: check the approval cache\nfrom praisonaiagents.approval import is_already_approved\n# After approving \"ls -la\":\n# is_already_approved(\"execute_command\") → True\n# Any execute_command call now returns immediately at __init__.py:177-178\n```\n\n## Impact\n\n- **Secret exfiltration**: An LLM agent (or one subjected to prompt injection) can dump all process environment variables after a single benign command approval. Common secrets include `OPENAI_API_KEY`, `AWS_SECRET_ACCESS_KEY`, `DATABASE_URL`, and any other credentials passed via environment.\n- **Misleading consent UI**: The console prompt displays specific arguments and uses language (\"this tool\") that implies per-invocation consent, but the system grants session-wide blanket approval.\n- **No expiration or scope**: The approval cache uses a `ContextVar` that persists for the entire agent execution context with no timeout, no command-count limit, and no clearing between tool calls.\n- **No environment filtering**: `os.environ.copy()` passes every environment variable to subprocesses without filtering sensitive patterns.\n\n## Recommended Fix\n\n1. **Per-invocation approval for critical tools** — store a hash of `(tool_name, arguments)` instead of just `tool_name`, or require re-approval for each invocation of critical-risk tools:\n\n```python\n# In registry.py — change mark_approved/is_already_approved:\nimport hashlib, json\n\ndef mark_approved(self, tool_name: str, arguments: dict = None) -> None:\n approved = self._approved_context.get(set())\n risk = self._risk_levels.get(tool_name)\n if risk == \"critical\" and arguments:\n key = f\"{tool_name}:{hashlib.sha256(json.dumps(arguments, sort_keys=True).encode()).hexdigest()}\"\n else:\n key = tool_name\n approved.add(key)\n self._approved_context.set(approved)\n\ndef is_already_approved(self, tool_name: str, arguments: dict = None) -> bool:\n approved = self._approved_context.get(set())\n risk = self._risk_levels.get(tool_name)\n if risk == \"critical\" and arguments:\n key = f\"{tool_name}:{hashlib.sha256(json.dumps(arguments, sort_keys=True).encode()).hexdigest()}\"\n return key in approved\n return tool_name in approved\n```\n\n2. **Filter environment variables** in `shell_tools.py`:\n\n```python\nSENSITIVE_PATTERNS = ('_KEY', '_SECRET', '_TOKEN', '_PASSWORD', '_CREDENTIAL')\n\nprocess_env = {\n k: v for k, v in os.environ.items()\n if not any(p in k.upper() for p in SENSITIVE_PATTERNS)\n}\nif env:\n process_env.update(env)\n```","affected":[{"package":{"name":"praisonaiagents","ecosystem":"PyPI","purl":"pkg:pypi/praisonaiagents"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.5.128"}]}],"versions":["0.0.1","0.0.10","0.0.100","0.0.101","0.0.102","0.0.103","0.0.104","0.0.105","0.0.106","0.0.107","0.0.108","0.0.109","0.0.11","0.0.110","0.0.111","0.0.112","0.0.113","0.0.114","0.0.115","0.0.116","0.0.117","0.0.118","0.0.119","0.0.12","0.0.120","0.0.121","0.0.122","0.0.123","0.0.124","0.0.125","0.0.126","0.0.127","0.0.128","0.0.129","0.0.13","0.0.130","0.0.131","0.0.132","0.0.133","0.0.134","0.0.135","0.0.136","0.0.137","0.0.138","0.0.139","0.0.14","0.0.140","0.0.141","0.0.142","0.0.143","0.0.144","0.0.145","0.0.146","0.0.147","0.0.148","0.0.149","0.0.15","0.0.150","0.0.151","0.0.152","0.0.153","0.0.154","0.0.155","0.0.156","0.0.157","0.0.158","0.0.159","0.0.16","0.0.160","0.0.161","0.0.162","0.0.163","0.0.164","0.0.165","0.0.166","0.0.167","0.0.168","0.0.169","0.0.17","0.0.170","0.0.171","0.0.172","0.0.173","0.0.174","0.0.175","0.0.176","0.0.177","0.0.178","0.0.179","0.0.18","0.0.180","0.0.181","0.0.182","0.0.183","0.0.184","0.0.185","0.0.187","0.0.188","0.0.189","0.0.19","0.0.190","0.0.191","0.0.192","0.0.193","0.0.194","0.0.195","0.0.196","0.0.197","0.0.198","0.0.199","0.0.2","0.0.20","0.0.21","0.0.22","0.0.23","0.0.24","0.0.25","0.0.26","0.0.27","0.0.28","0.0.29","0.0.3","0.0.30","0.0.31","0.0.32","0.0.33","0.0.34","0.0.35","0.0.36","0.0.37","0.0.38","0.0.39","0.0.4","0.0.40","0.0.41","0.0.42","0.0.43","0.0.44","0.0.45","0.0.46","0.0.47","0.0.48","0.0.49","0.0.5","0.0.50","0.0.51","0.0.52","0.0.53","0.0.54","0.0.56","0.0.57","0.0.58","0.0.59","0.0.6","0.0.60","0.0.61","0.0.62","0.0.63","0.0.64","0.0.65","0.0.66","0.0.67","0.0.68","0.0.69","0.0.7","0.0.70","0.0.71","0.0.72","0.0.73","0.0.74","0.0.75","0.0.76","0.0.77","0.0.78","0.0.79","0.0.8","0.0.80","0.0.81","0.0.82","0.0.83","0.0.84","0.0.85","0.0.86","0.0.87","0.0.88","0.0.89","0.0.9","0.0.90","0.0.91","0.0.92","0.0.93","0.0.94","0.0.95","0.0.96","0.0.97","0.0.98","0.0.99","0.1.0","0.1.1","0.1.10","0.1.11","0.1.12","0.1.13","0.1.14","0.1.15","0.1.16","0.1.17","0.1.18","0.1.19","0.1.2","0.1.20","0.1.21","0.1.22","0.1.23","0.1.24","0.1.25","0.1.26","0.1.27","0.1.3","0.1.4","0.1.5","0.1.6","0.1.7","0.1.8","0.1.9","0.10.0","0.10.1","0.10.10","0.10.2","0.10.3","0.10.4","0.10.5","0.10.6","0.10.7","0.10.8","0.10.9","0.11.0","0.11.1","0.11.10","0.11.11","0.11.12","0.11.13","0.11.14","0.11.15","0.11.16","0.11.17","0.11.18","0.11.19","0.11.2","0.11.20","0.11.21","0.11.22","0.11.23","0.11.24","0.11.25","0.11.27","0.11.28","0.11.29","0.11.3","0.11.30","0.11.31","0.11.4","0.11.5","0.11.6","0.11.7","0.11.8","0.11.9","0.12.0","0.12.1","0.12.10","0.12.11","0.12.12","0.12.13","0.12.14","0.12.15","0.12.16","0.12.17","0.12.18","0.12.19","0.12.2","0.12.20","0.12.21","0.12.3","0.12.4","0.12.5","0.12.6","0.12.7","0.12.8","0.12.9","0.13.0","0.13.1","0.13.10","0.13.11","0.13.12","0.13.13","0.13.14","0.13.15","0.13.16","0.13.17","0.13.18","0.13.19","0.13.2","0.13.20","0.13.21","0.13.22","0.13.23","0.13.3","0.13.4","0.13.5","0.13.6","0.13.7","0.13.8","0.13.9","0.14.0","0.14.1","0.14.10","0.14.11","0.14.12","0.14.14","0.14.15","0.14.16","0.14.2","0.14.3","0.14.4","0.14.5","0.14.6","0.14.7","0.14.8","0.14.9","0.15.0","0.15.1","0.15.2","0.15.3","0.2.0","0.2.1","0.2.2","0.3.0","0.3.1","0.3.2","0.3.3","0.3.4","0.4.0","0.4.1","0.5.0","0.5.1","0.5.2","0.5.3","0.6.0","0.6.1","0.6.2","0.6.3","0.6.4","0.6.5","0.6.6","0.6.7","0.6.8","0.7.0","0.7.1","0.8.0","0.8.1","0.9.0","0.9.1","1.0.0","1.1.0","1.2.0","1.2.1","1.2.2","1.2.3","1.2.4","1.3.0","1.3.1","1.4.0","1.4.1","1.4.2","1.4.3","1.4.4","1.4.5","1.4.6","1.4.7","1.4.8","1.5.0","1.5.1","1.5.10","1.5.100","1.5.101","1.5.102","1.5.103","1.5.104","1.5.105","1.5.106","1.5.107","1.5.108","1.5.109","1.5.11","1.5.110","1.5.111","1.5.112","1.5.113","1.5.114","1.5.115","1.5.116","1.5.117","1.5.118","1.5.119","1.5.12","1.5.120","1.5.121","1.5.122","1.5.123","1.5.124","1.5.125","1.5.126","1.5.127","1.5.128","1.5.129","1.5.13","1.5.130","1.5.131","1.5.132","1.5.133","1.5.134","1.5.135","1.5.136","1.5.137","1.5.138","1.5.139","1.5.14","1.5.140","1.5.141","1.5.142","1.5.143","1.5.144","1.5.145","1.5.146","1.5.147","1.5.148","1.5.149","1.5.15","1.5.16","1.5.17","1.5.18","1.5.19","1.5.2","1.5.20","1.5.21","1.5.22","1.5.23","1.5.24","1.5.25","1.5.26","1.5.27","1.5.28","1.5.29","1.5.3","1.5.30","1.5.31","1.5.32","1.5.33","1.5.34","1.5.35","1.5.36","1.5.37","1.5.38","1.5.39","1.5.40","1.5.41","1.5.42","1.5.43","1.5.44","1.5.45","1.5.46","1.5.47","1.5.48","1.5.49","1.5.5","1.5.50","1.5.51","1.5.52","1.5.53","1.5.54","1.5.55","1.5.56","1.5.57","1.5.58","1.5.59","1.5.6","1.5.60","1.5.61","1.5.62","1.5.63","1.5.64","1.5.65","1.5.66","1.5.67","1.5.68","1.5.69","1.5.7","1.5.70","1.5.71","1.5.72","1.5.73","1.5.74","1.5.75","1.5.76","1.5.77","1.5.78","1.5.79","1.5.8","1.5.80","1.5.81","1.5.82","1.5.83","1.5.84","1.5.85","1.5.86","1.5.87","1.5.88","1.5.89","1.5.9","1.5.90","1.5.91","1.5.92","1.5.93","1.5.94","1.5.95","1.5.96","1.5.97","1.5.98","1.5.99","1.6.1","1.6.10","1.6.100","1.6.101","1.6.102","1.6.103","1.6.104","1.6.105","1.6.106","1.6.107","1.6.108","1.6.109","1.6.11","1.6.110","1.6.111","1.6.112","1.6.113","1.6.114","1.6.115","1.6.116","1.6.117","1.6.118","1.6.119","1.6.12","1.6.120","1.6.123","1.6.124","1.6.125","1.6.126","1.6.127","1.6.128","1.6.129","1.6.13","1.6.130","1.6.131","1.6.132","1.6.133","1.6.134","1.6.135","1.6.136","1.6.137","1.6.138","1.6.139","1.6.14","1.6.140","1.6.141","1.6.142","1.6.143","1.6.144","1.6.145","1.6.146","1.6.147","1.6.148","1.6.149","1.6.15","1.6.150","1.6.151","1.6.152","1.6.153","1.6.154","1.6.155","1.6.156","1.6.157","1.6.158","1.6.159","1.6.16","1.6.160","1.6.161","1.6.162","1.6.163","1.6.164","1.6.165","1.6.166","1.6.167","1.6.168","1.6.17","1.6.18","1.6.19","1.6.2","1.6.20","1.6.21","1.6.22","1.6.23","1.6.24","1.6.25","1.6.26","1.6.27","1.6.28","1.6.29","1.6.3","1.6.30","1.6.31","1.6.32","1.6.33","1.6.34","1.6.35","1.6.36","1.6.37","1.6.38","1.6.39","1.6.4","1.6.40","1.6.41","1.6.42","1.6.43","1.6.44","1.6.45","1.6.46","1.6.47","1.6.48","1.6.5","1.6.50","1.6.51","1.6.52","1.6.53","1.6.54","1.6.55","1.6.56","1.6.57","1.6.58","1.6.59","1.6.6","1.6.60","1.6.62","1.6.63","1.6.64","1.6.65","1.6.66","1.6.67","1.6.68","1.6.69","1.6.7","1.6.70","1.6.71","1.6.72","1.6.73","1.6.74","1.6.75","1.6.76","1.6.77","1.6.78","1.6.79","1.6.8","1.6.80","1.6.81","1.6.82","1.6.83","1.6.84","1.6.85","1.6.86","1.6.87","1.6.88","1.6.89","1.6.9","1.6.90","1.6.91","1.6.92","1.6.93","1.6.94","1.6.95","1.6.96","1.6.97","1.6.99","1.7.0","1.7.1","1.7.10","1.7.11","1.7.12","1.7.13","1.7.14","1.7.15","1.7.16","1.7.17","1.7.18","1.7.19","1.7.2","1.7.20","1.7.21","1.7.22","1.7.23","1.7.24","1.7.3","1.7.4","1.7.5","1.7.6","1.7.7","1.7.8","1.7.9"],"database_specific":{"source":"https://github.com/pypa/advisory-database/blob/main/vulns/praisonaiagents/PYSEC-2026-2946.yaml"}}],"references":[{"type":"WEB","url":"https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-ffp3-3562-8cv3"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-56074"},{"type":"PACKAGE","url":"https://github.com/MervinPraison/PraisonAI"},{"type":"WEB","url":"https://github.com/MervinPraison/PraisonAI/releases/tag/v4.5.128"},{"type":"WEB","url":"https://www.vulncheck.com/advisories/praisonai-tool-approval-cache-bypass-via-coarse-grained-caching"},{"type":"PACKAGE","url":"https://pypi.org/project/praisonaiagents"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-ffp3-3562-8cv3"}],"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N"}]} \ No newline at end of file diff --git a/data/RubyGems/MAL-2026-20058.json b/data/RubyGems/MAL-2026-20058.json index ae0743f8d7..5b9621e722 100644 --- a/data/RubyGems/MAL-2026-20058.json +++ b/data/RubyGems/MAL-2026-20058.json @@ -1 +1 @@ -{"schema_version":"1.9.2","id":"MAL-2026-20058","published":"2026-11-17T09:18:21Z","modified":"2026-11-17T09:45:09.317968983Z","summary":"Malicious code in node-test-repo (RubyGems)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: ossf-package-analysis (013b3a9afde1d4c01bf70bfa34b03fc9ca0f6a08dbb0a91db6fdccc481214468)\nThe OpenSSF Package Analysis project identified 'node-test-repo' @ 1.0.1 (rubygems) as malicious.\n\nIt is considered malicious because:\n\n- The package communicates with a domain associated with malicious activity.\n","affected":[{"package":{"name":"node-test-repo","ecosystem":"RubyGems","purl":"pkg:gem/node-test-repo"},"versions":["1.0.1"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/rubygems/node-test-repo/MAL-2026-20058.json"}}],"database_specific":{"malicious-packages-origins":[{"import_time":"2026-11-17T09:37:05.760204947Z","modified_time":"2026-11-17T09:18:21Z","sha256":"013b3a9afde1d4c01bf70bfa34b03fc9ca0f6a08dbb0a91db6fdccc481214468","source":"ossf-package-analysis","versions":["1.0.1"]}]},"credits":[{"name":"OpenSSF: Package Analysis","contact":["https://github.com/ossf/package-analysis","https://openssf.slack.com/channels/package_analysis"],"type":"FINDER"}]} \ No newline at end of file +{"schema_version":"1.9.2","id":"MAL-2026-20058","published":"2026-11-17T09:18:21Z","modified":"2026-11-18T00:45:12.124413447Z","summary":"Malicious code in node-test-repo (RubyGems)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (39fc0f46ef530b718c8271a4a4495d4e766b227e821ff8ff949fd2b94062b0ae)\nThe gem declares an extension script in its gemspec, causing RubyGems to invoke it automatically during `gem install`. The script performs no native build work: it collects host identifiers (hostname, username, current working directory, home directory) and reads sensitive local files (/etc/passwd, /etc/hosts, /etc/resolv.conf), then opens a TLS TCPSocket to the hardcoded host e9okezgvlhxswlui5o94upb1ys4xsngc.oastify.com on port 443 and POSTs the collected JSON body to it. The destination is a Burp Collaborator out-of-band subdomain, not a publisher- or build-related endpoint, and the data read is unrelated to any compilation purpose.\n\n## Source: ossf-package-analysis (013b3a9afde1d4c01bf70bfa34b03fc9ca0f6a08dbb0a91db6fdccc481214468)\nThe OpenSSF Package Analysis project identified 'node-test-repo' @ 1.0.1 (rubygems) as malicious.\n\nIt is considered malicious because:\n\n- The package communicates with a domain associated with malicious activity.\n","affected":[{"package":{"name":"node-test-repo","ecosystem":"RubyGems","purl":"pkg:gem/node-test-repo"},"versions":["1.0.1"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"ext/mkrf_conf.rb","sha256":"9e32bb477cd5a7be8b7f4f7f5e213835d927c74207bdbe0da8ac3eac640133c0","tlsh":"cf11328c938c7c60db93886fd50c3142509fde46c5095536baac44a0ef2df7867324f5"}],"package_integrity":[{"filename":"node-test-repo-1.0.1.gem","hashes":{"sha256":"e2becb4938624d7d7fdcff4be66326eddbdf7e15755c1aa87ff097de4519876c"}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/rubygems/node-test-repo/MAL-2026-20058.json"}}],"references":[{"type":"PACKAGE","url":"https://rubygems.org/gems/node-test-repo/versions/1.0.1"}],"database_specific":{"malicious-packages-origins":[{"import_time":"2026-11-17T09:37:05.760204947Z","modified_time":"2026-11-17T09:18:21Z","sha256":"013b3a9afde1d4c01bf70bfa34b03fc9ca0f6a08dbb0a91db6fdccc481214468","source":"ossf-package-analysis","versions":["1.0.1"]},{"id":"IN-MAL-2026-022824","import_time":"2026-11-18T00:30:52.060995195Z","modified_time":"2026-11-17T23:40:17Z","sha256":"39fc0f46ef530b718c8271a4a4495d4e766b227e821ff8ff949fd2b94062b0ae","source":"amazon-inspector","versions":["1.0.1"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"name":"OpenSSF: Package Analysis","contact":["https://github.com/ossf/package-analysis","https://openssf.slack.com/channels/package_analysis"],"type":"FINDER"}]} \ No newline at end of file diff --git a/data/RubyGems/MAL-2026-20103.json b/data/RubyGems/MAL-2026-20103.json new file mode 100644 index 0000000000..bbddc9497d --- /dev/null +++ b/data/RubyGems/MAL-2026-20103.json @@ -0,0 +1 @@ +{"schema_version":"1.9.2","id":"MAL-2026-20103","published":"2026-11-17T23:40:25Z","modified":"2026-11-18T00:45:12.072166295Z","summary":"Malicious code in vuln-app (RubyGems)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (d905ef222b582842835ecb00de0605874b2ccc75e21669725c81de9694aed9bf)\nThe gem declares ext/mkrf_conf.rb as a native extension, which RubyGems auto-executes during `gem install`. The script contains no build logic; instead it collects installer-side data (hostname, login user, cwd, home directory, and the contents of /etc/passwd, /etc/hosts, /etc/resolv.conf), serializes it as JSON, opens a TLS connection to the hardcoded Burp Collaborator subdomain g1im618xdjpuonmkxq16mr33quwlm9cx1.oastify.com:443, and POSTs the payload. A sentinel file.installed is then written. The extension-script naming is used solely to trigger auto-execution on install; no Rakefile is generated and no compilation occurs.\n","affected":[{"package":{"name":"vuln-app","ecosystem":"RubyGems","purl":"pkg:gem/vuln-app"},"versions":["1.2.1"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"ext/mkrf_conf.rb","sha256":"866bc8b95aa509d24f5a81b6304dfe96412fd1745b018be0037260cad62d8c34","tlsh":"aa1132cc53c97c655b9a88afd50d20425087ce47c6091831bb8944a4cf7eb3873325f9"}],"package_integrity":[{"filename":"vuln-app-1.2.1.gem","hashes":{"sha256":"3f7bb02067a0d0afae1b12776421ae826cf726e2c4dc296363ed4342529b47e6"}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/rubygems/vuln-app/MAL-2026-20103.json"}}],"references":[{"type":"PACKAGE","url":"https://rubygems.org/gems/vuln-app/versions/1.2.1"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-022825","import_time":"2026-11-18T00:30:52.18511177Z","modified_time":"2026-11-17T23:40:25Z","sha256":"d905ef222b582842835ecb00de0605874b2ccc75e21669725c81de9694aed9bf","source":"amazon-inspector","versions":["1.2.1"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]} \ No newline at end of file diff --git a/data/npm/GHSA-gh4j-gqv2-49f6.json b/data/npm/GHSA-gh4j-gqv2-49f6.json index 6898847dd0..c456934bd9 100644 --- a/data/npm/GHSA-gh4j-gqv2-49f6.json +++ b/data/npm/GHSA-gh4j-gqv2-49f6.json @@ -1 +1 @@ -{"schema_version":"1.9.0","id":"GHSA-gh4j-gqv2-49f6","published":"2026-04-22T20:04:17Z","modified":"2026-09-10T03:51:01.693430465Z","aliases":["CVE-2026-41650"],"summary":"fast-xml-parser XMLBuilder: XML Comment and CDATA Injection via Unescaped Delimiters","details":"# fast-xml-parser XMLBuilder: Comment and CDATA Injection via Unescaped Delimiters\n\n## Summary\n\nfast-xml-parser XMLBuilder does not escape the `-->` sequence in comment content or the `]]>` sequence in CDATA sections when building XML from JavaScript objects. This allows XML injection when user-controlled data flows into comments or CDATA elements, leading to XSS, SOAP injection, or data manipulation.\n\nExisting CVEs for fast-xml-parser cover different issues:\n- CVE-2023-26920: Prototype pollution (parser)\n- CVE-2023-34104: ReDoS (parser)\n- CVE-2026-27942: Stack overflow in XMLBuilder with preserveOrder\n- CVE-2026-25896: Entity encoding bypass via regex in DOCTYPE entities\n\nThis finding covers **unescaped comment/CDATA delimiters in XMLBuilder** - a distinct vulnerability.\n\n## Vulnerable Code\n\n**File**: `src/fxb.js`\n\n```javascript\n// Line 442 - Comment building with NO escaping of -->\nbuildTextValNode(val, key, attrStr, level) {\n // ...\n if (key === this.options.commentPropName) {\n return this.indentate(level) + `` + this.newLine; // VULNERABLE\n }\n // ...\n if (key === this.options.cdataPropName) {\n return this.indentate(level) + `` + this.newLine; // VULNERABLE\n }\n}\n```\n\nCompare with attribute/text escaping which IS properly handled via `replaceEntitiesValue()`.\n\n## Proof of Concept\n\n### Test 1: Comment Injection (XSS in SVG/HTML context)\n\n```javascript\nimport { XMLBuilder } from 'fast-xml-parser';\n\nconst builder = new XMLBuilder({\n commentPropName: \"#comment\",\n format: true,\n suppressEmptyNode: true\n});\n\nconst xml = {\n root: {\n \"#comment\": \"-->\n legitimate content\n\n```\n\n### Test 2: CDATA Injection (RSS feed)\n\n```javascript\nconst builder = new XMLBuilder({\n cdataPropName: \"#cdata\",\n format: true,\n suppressEmptyNode: true\n});\n\nconst rss = {\n rss: { channel: { item: {\n title: \"Article\",\n description: {\n \"#cdata\": \"Content]]>\n \n \n Article\n \n \n \n \n \n\n```\n\n### Test 3: SOAP Message Injection\n\n```javascript\nconst builder = new XMLBuilder({\n commentPropName: \"#comment\",\n format: true\n});\n\nconst soap = {\n \"soap:Envelope\": {\n \"soap:Body\": {\n \"#comment\": \"Request from user: -->deleteAlldeleteAll\n getBalance\n 12345\n \n\n```\n\nThe injected `deleteAll` appears as a real SOAP action element.\n\n## Tested Output\n\nAll tests run on Node.js v22, fast-xml-parser v5.5.12:\n\n```\n1. COMMENT INJECTION:\n Injection successful: true\n\n2. CDATA INJECTION (RSS feed scenario):\n Injection successful: true\n\n4. Round-trip test:\n Injection present: true\n\n5. SOAP MESSAGE INJECTION:\n Contains injected Action: true\n```\n\n## Impact\n\nAn attacker who controls data that flows into XML comments or CDATA sections via XMLBuilder can:\n\n1. **XSS**: Inject `\n legitimate content\n\n```\n\n### Test 2: CDATA Injection (RSS feed)\n\n```javascript\nconst builder = new XMLBuilder({\n cdataPropName: \"#cdata\",\n format: true,\n suppressEmptyNode: true\n});\n\nconst rss = {\n rss: { channel: { item: {\n title: \"Article\",\n description: {\n \"#cdata\": \"Content]]>\n \n \n Article\n \n \n \n \n \n\n```\n\n### Test 3: SOAP Message Injection\n\n```javascript\nconst builder = new XMLBuilder({\n commentPropName: \"#comment\",\n format: true\n});\n\nconst soap = {\n \"soap:Envelope\": {\n \"soap:Body\": {\n \"#comment\": \"Request from user: -->deleteAlldeleteAll\n getBalance\n 12345\n \n\n```\n\nThe injected `deleteAll` appears as a real SOAP action element.\n\n## Tested Output\n\nAll tests run on Node.js v22, fast-xml-parser v5.5.12:\n\n```\n1. COMMENT INJECTION:\n Injection successful: true\n\n2. CDATA INJECTION (RSS feed scenario):\n Injection successful: true\n\n4. Round-trip test:\n Injection present: true\n\n5. SOAP MESSAGE INJECTION:\n Contains injected Action: true\n```\n\n## Impact\n\nAn attacker who controls data that flows into XML comments or CDATA sections via XMLBuilder can:\n\n1. **XSS**: Inject `