{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "cpe": "cpe:2.3:a:samba:samba:*:*:*:*:*:*:*:*",
                "range": [
                  {
                    "introduced": "4.20.0"
                  },
                  {
                    "fixed": "4.22.10"
                  }
                ],
                "source": "CPE_RANGE"
              },
              {
                "cpe": "cpe:2.3:a:samba:samba:*:*:*:*:*:*:*:*",
                "range": [
                  {
                    "introduced": "4.23.0"
                  },
                  {
                    "fixed": "4.23.8"
                  }
                ],
                "source": "CPE_RANGE"
              },
              {
                "cpe": "cpe:2.3:a:samba:samba:*:*:*:*:*:*:*:*",
                "range": [
                  {
                    "introduced": "4.24.0"
                  },
                  {
                    "fixed": "4.24.3"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          },
          "events": [
            {
              "introduced": "8fdd82c8b9ccc39f0b5f5d6cc22fa69f67c913a4"
            },
            {
              "fixed": "0abfaceda097f447ac0284db9f639dabc5070595"
            },
            {
              "introduced": "942092eadf52c46f9bd913525015d53cb1cc8fb1"
            },
            {
              "fixed": "11bc23b9182aca30456c5785f1e63d405899434d"
            },
            {
              "introduced": "86f97e92d182c19435a8b60221a4ca383da77111"
            },
            {
              "fixed": "d125b56c342341d07a6ff03674ceae982fc0539e"
            }
          ],
          "repo": "https://github.com/samba-team/samba",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "redhat",
    "cwe_ids": [
      "CWE-280"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/2xxx/CVE-2026-2340.json",
    "unresolved_ranges": [
      {
        "extracted_events": [
          {
            "range": [
              {
                "fixed": "0:4.23.5-109.el10_2"
              },
              {
                "fixed": "0:4.21.3-114.el10_0.1"
              },
              {
                "fixed": "0:4.19.4-16.el8_10"
              },
              {
                "fixed": "0:4.19.4-16.el8_10"
              },
              {
                "fixed": "0:4.15.5-16.el8_6.1"
              },
              {
                "fixed": "0:4.15.5-16.el8_6.1"
              },
              {
                "fixed": "0:4.17.5-7.el8_8.1"
              },
              {
                "fixed": "0:4.17.5-7.el8_8.1"
              },
              {
                "fixed": "0:4.23.5-10.el9_8"
              },
              {
                "fixed": "0:4.23.5-10.el9_8"
              },
              {
                "fixed": "0:4.17.5-105.el9_2.5"
              },
              {
                "fixed": "0:4.19.4-105.el9_4.4"
              },
              {
                "fixed": "0:4.21.3-14.el9_6.1"
              },
              {
                "fixed": "412.86.202608241157-0"
              },
              {
                "fixed": "412.86.202609082051-0"
              },
              {
                "fixed": "413.92.202609080414-0"
              },
              {
                "fixed": "413.92.202609302032-0"
              },
              {
                "fixed": "414.92.202608172040-0"
              },
              {
                "fixed": "414.92.202609011250-0"
              },
              {
                "fixed": "415.92.202608180329-0"
              },
              {
                "fixed": "415.92.202609140326-0"
              },
              {
                "fixed": "416.94.202608150307-0"
              },
              {
                "fixed": "416.94.202609011112-0"
              },
              {
                "fixed": "417.94.202608250221-0"
              },
              {
                "fixed": "417.94.202609191027-0"
              },
              {
                "fixed": "418.94.202608142238-0"
              },
              {
                "fixed": "418.94.202609031320-0"
              },
              {
                "fixed": "4.19.9.6.202606241344-0"
              }
            ],
            "source": "AFFECTED_FIELD",
            "strategy": "InverseAffectedRanges"
          }
        ]
      }
    ]
  },
  "details": "A flaw was found in Samba’s vfs_worm module. The module is intended to provide write-once, read-many (WORM) protections by preventing modification of files after a configurable grace period. Due to insufficient validation during rename operations, an authenticated user with write access to a share could overwrite a protected file by renaming a newly created file over the existing WORM-protected file.",
  "id": "CVE-2026-2340",
  "modified": "2026-11-08T02:31:11.509120789Z",
  "published": "2026-05-27T12:09:32.601Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://access.redhat.com/downloads/content/package-browser/"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:22644"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:22963"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:25049"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:25979"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:28053"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:28054"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:28055"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:28056"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:28057"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:29863"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:56786"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:56853"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:56911"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:57483"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:59831"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:60019"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:62409"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:62549"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:65839"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:65851"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:65907"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:67857"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:70586"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:77320"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/security/cve/CVE-2026-2340"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/2xxx/CVE-2026-2340.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-2340"
    },
    {
      "type": "REPORT",
      "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2447318"
    },
    {
      "type": "REPORT",
      "url": "https://bugzilla.samba.org/show_bug.cgi?id=15997"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Samba: vfs_worm does not block directory modification"
}