{
  "id": "CVE-2025-49136",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-49136",
  "published_at": "2025-06-09T16:21:48.266Z",
  "title": "listmonk's Sprig template Injection vulnerability leads to reading of Environment Variable for low privilege user",
  "vendor": "knadh",
  "product": "listmonk",
  "cvss": {
    "score": 9.1,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2025-10-08T20:02:24Z",
    "first_seen_at": null,
    "days_after_publication": 121.2,
    "source": "metasploit",
    "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/gather/listmonk_env_disclosure.rb"
  },
  "poc_repo_count": 0,
  "exploit_count": 1,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "listmonk is a standalone, self-hosted, newsletter and mailing list manager. Starting in version 4.0.0 and prior to version 5.0.2, the `env` and `expandenv` template functions which is enabled by default in Sprig enables capturing of env variables on host. While this may not be a problem on single-user (super admin) installations, on multi-user installations, this allows non-super-admin users with campaign or template permissions to use the `{{ env }}` template expression to capture sensitive environment variables. Users should upgrade to v5.0.2 to mitigate the issue.",
  "cwe": "CWE-1336",
  "cpes": [
    "cpe:2.3:a:nadh:listmonk:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 9.1,
    "nvd": 6.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "knadh",
        "product": "listmonk",
        "ranges": [
          "\u003e= 4.0.0, \u003c 5.0.2"
        ],
        "fixed_in": [
          "5.0.2"
        ]
      }
    ],
    "upgrade": [
      "Upgrade listmonk to 5.0.2 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/knadh/listmonk/security/advisories/GHSA-jc7g-x28f-3v3h"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/knadh/listmonk/commit/d27d2c32cf3af2d0b24e29ea5a686ba149b49b3e"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/knadh/listmonk/releases/tag/v5.0.2"
      }
    ]
  },
  "exploit_refs": [
    {
      "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/gather/listmonk_env_disclosure.rb",
      "source": "metasploit",
      "title": "Metasploit auxiliary: Listmonk Insecure Sprig Template Functions Environment Disclosure (auxiliary/gather/listmonk_env_disclosure)",
      "published_at": "2025-10-08T20:02:24Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    }
  ],
  "hunt_profile": [],
  "rules": []
}
