{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "4.15.0.0"
              },
              {
                "fixed": "4.20.3.0"
              },
              {
                "introduced": "4.21.0.0"
              },
              {
                "fixed": "4.22.1.0"
              }
            ],
            "source": "DESCRIPTION"
          },
          "events": [
            {
              "introduced": "280c13a4bb103dd748ec304bfe0714a148c24602"
            },
            {
              "fixed": "c8599040b4756034c7105806a53d2c99eb7ea0fe"
            },
            {
              "introduced": "f9513b47bf8cda46c2cee7e31d4d662346bc7399"
            },
            {
              "fixed": "348ce953a99246a756b527994f7745a7be038234"
            }
          ],
          "repo": "https://github.com/apache/cloudstack",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "apache",
    "cwe_ids": [
      "CWE-284"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/66xxx/CVE-2026-66797.json",
    "unresolved_ranges": [
      {
        "extracted_events": [
          {
            "introduced": "4.16.0.0"
          },
          {
            "last_affected": "4.20.3.0"
          },
          {
            "introduced": "4.21.0.0"
          },
          {
            "last_affected": "4.22.1.0"
          }
        ],
        "source": "AFFECTED_FIELD"
      },
      {
        "extracted_events": [
          {
            "introduced": "4.15.0.0"
          },
          {
            "fixed": "4.20.3.0"
          },
          {
            "introduced": "4.21.0.0"
          },
          {
            "fixed": "4.22.1.0"
          }
        ],
        "source": "DESCRIPTION"
      }
    ]
  },
  "details": "Improper access control in CloudStack's annotation functionality allows unauthorized comment creation and disclosure.\n\n\n\n\nThe addAnnotation and listAnnotation APIs perform an ownership check when an entity's UUID is specified, but fail to honor its result correctly. This lets any authenticated user write annotations to, and disclose existing annotations/comments on, an entity they don't own by simply supplying its UUID.\n\n\n\n\nThis issue affects Apache CloudStack: from 4.15.0.0 through 4.20.3.0 and from 4.21.0.0 through 4.22.1.0.\n\n\n\n\n\nUsers are recommended to upgrade to version 4.20.3.1 or 4.22.1.1 or later, which fixes the issue.",
  "id": "CVE-2026-66797",
  "modified": "2026-08-29T03:30:20.475791606Z",
  "published": "2026-08-21T08:21:58.452Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/66xxx/CVE-2026-66797.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://lists.apache.org/thread/g6cwddtjrwbh1d56wjz4cfp3fzfm4kbc"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-66797"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Apache CloudStack: Unauthorised comment creation and disclosure"
}