{
  "id": "CVE-2026-11837",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-11837",
  "published_at": "2026-06-10T05:03:05.734Z",
  "title": "Ansible-collection-ansible-posix: ansible.posix authorized_key: local privilege escalation via symlink-following chown",
  "vendor": "Red Hat",
  "product": "Red Hat",
  "cvss": {
    "score": 7.3,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "A local privilege escalation vulnerability was found in the ansible.posix authorized_key module. The module's keyfile() function uses os.chown() instead of os.lchown() and opens files without O_NOFOLLOW when managing SSH authorized keys. An unprivileged local user can pre-stage symbolic links in their ~/.ssh directory to redirect file ownership changes to arbitrary system paths when an operator runs the authorized_key task as root, leading to local privilege escalation.",
  "cwe": "CWE-59",
  "cvss_by_source": {
    "cna": 7.3
  },
  "repos": [
    {
      "repo": "M8seven/cve-2026-11837-ansible-posix-authorized-key",
      "url": "https://github.com/M8seven/cve-2026-11837-ansible-posix-authorized-key",
      "created_at": "2026-06-23T14:05:58Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 1,
      "is_poc": "no",
      "kind": "writeup",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2026-01-11T21:09:52Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 10",
        "ranges": null,
        "fixed_in": [
          "0:0.2.10-1.el10_2"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 10.0 Extended Update Support",
        "ranges": null,
        "fixed_in": [
          "0:0.2.3-6.el10_0.2"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support",
        "ranges": null,
        "fixed_in": [
          "0:0.1.8-2.el8_6.1"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On",
        "ranges": null,
        "fixed_in": [
          "0:0.1.8-2.el8_6.1"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 8.8 Telecommunications Update Service",
        "ranges": null,
        "fixed_in": [
          "0:0.1.8-5.el8_8.1"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions",
        "ranges": null,
        "fixed_in": [
          "0:0.1.8-5.el8_8.1"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Red Hat Enterprise Linux 10 to 0:0.2.10-1.el10_2 or later.",
      "Upgrade Red Hat Enterprise Linux 10.0 Extended Update Support to 0:0.2.3-6.el10_0.2 or later.",
      "Upgrade Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support to 0:0.1.8-2.el8_6.1 or later.",
      "Upgrade Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On to 0:0.1.8-2.el8_6.1 or later.",
      "Upgrade Red Hat Enterprise Linux 8.8 Telecommunications Update Service to 0:0.1.8-5.el8_8.1 or later.",
      "Upgrade Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions to 0:0.1.8-5.el8_8.1 or later."
    ],
    "workarounds": [
      "The following practices would help for avoiding exposure and mitigate this flaw:\n\n1) Do not run the ansible.posix authorized_key module with elevated privileges against untrusted user accounts. \n2) Validate that target user home directories do not contain unexpected symbolic links before running playbooks."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:42946"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:79112"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:80508"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:82339"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
