{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "5.0"
                  },
                  {
                    "last_affected": "5.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandaloneSingleVersion"
              },
              {
                "range": [
                  {
                    "introduced": "5.1"
                  },
                  {
                    "last_affected": "5.1"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandaloneSingleVersion"
              },
              {
                "range": [
                  {
                    "introduced": "5.2"
                  },
                  {
                    "last_affected": "5.2"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandaloneSingleVersion"
              },
              {
                "range": [
                  {
                    "introduced": "5.3.0"
                  },
                  {
                    "last_affected": "5.3.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandaloneSingleVersion"
              },
              {
                "range": [
                  {
                    "fixed": "7b0edb49799630b56aec5c24d639ff530ebcf1a8"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              }
            ]
          },
          "events": [
            {
              "introduced": "897ba365baa1cb2105b46964082d378e7b14b47b"
            },
            {
              "last_affected": "99428a1e7f7447955aa860f7c969273a12095b8f"
            },
            {
              "fixed": "7b0edb49799630b56aec5c24d639ff530ebcf1a8"
            }
          ],
          "repo": "https://github.com/rt-thread/rt-thread",
          "type": "GIT"
        }
      ],
      "versions": [
        "5.0",
        "5.1",
        "5.2",
        "5.3.0"
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulDB",
    "cwe_ids": [
      "CWE-119",
      "CWE-787"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138312.json"
  },
  "details": "A security vulnerability has been detected in RT-Thread up to 5.3.0. Affected is the function pipe_fops_ioctl of the file components/drivers/ipc/pipe.c of the component POSIX Pipe IPC Driver. Such manipulation leads to out-of-bounds write. The attack needs to be performed locally. The exploit has been disclosed publicly and may be used. The name of the patch is 7b0edb49799630b56aec5c24d639ff530ebcf1a8. Applying a patch is advised to resolve this issue.",
  "id": "CVE-2026-138312",
  "modified": "2026-11-29T21:46:11.648724139Z",
  "published": "2026-11-29T20:45:20.968Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138312.json"
    },
    {
      "type": "WEB",
      "url": "https://github.com/RT-Thread/rt-thread/"
    },
    {
      "type": "FIX",
      "url": "https://github.com/RT-Thread/rt-thread/commit/7b0edb49799630b56aec5c24d639ff530ebcf1a8"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/RT-Thread/rt-thread/issues/11958"
    },
    {
      "type": "FIX",
      "url": "https://github.com/RT-Thread/rt-thread/pull/11971"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-138312"
    },
    {
      "type": "ADVISORY",
      "url": "https://vuldb.com/cve/CVE-2026-138312"
    },
    {
      "type": "ADVISORY",
      "url": "https://vuldb.com/submit/1075659"
    },
    {
      "type": "ADVISORY",
      "url": "https://vuldb.com/vuln/445137"
    },
    {
      "type": "REPORT",
      "url": "https://vuldb.com/vuln/445137/cti"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N/E:P",
      "type": "CVSS_V4"
    }
  ],
  "summary": "RT-Thread POSIX Pipe IPC Driver pipe.c pipe_fops_ioctl out-of-bounds write"
}