{"id":"GHSA-q4hm-33rc-572g","aliases":[],"summary":"Flawed Hostname Check allows Puppet Client Impersonation","published_at":"2026-11-03T20:05:00Z","modified_at":"2026-11-03T20:05:00Z","products":[{"slug":"puppet","name":"Puppet / OpenVox","category":"iac"}],"rating":{"severity":"critical","score":9.5,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","attack_path":"internet_unauthenticated","user_interaction":false,"malicious":false},"fix_available":true,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"priority":11.5,"record_count":1,"vendors":["GitHub"],"details":"### Summary\r\n\r\nFlawed hostname ACL check allows attackers to impersonate puppet clients with enabled autosign and allows puppet catalog downloads for arbitrary hosts.\r\n\r\n### Details\r\n\r\nACL checks for authorized endpoints like GET /puppet/v3/catalog/target.lab.local are processed at the puppetmaster\r\nin the following clojure code:\r\n\r\nhttps://github.com/OpenVoxProject/trapperkeeper-authorization/blob/e686fe844ceeb9a7884eeaa0d7f9fe0d6b265a47/src/puppetlabs/trapperkeeper/authorization/acl.clj#L122-L130\r\n\r\n```clojure\r\n;; splits \"target.lab.local\" -> (\"local\" \"lab\" \"target\")\r\n(schema/defn ^:private split-domain :- [schema/Str]\r\n  \"Given a domain string, split it on '.' and reverse it. For examples,\r\n  'sylvia.plath.net' becomes ('net' 'plath' 'sylvia'). This is used for domain\r\n  matching.\"\r\n  [domain :- schema/Str]\r\n  (-> domain\r\n      (string/lower-case)\r\n      (string/split #\"\\.\")\r\n      reverse))\r\n```\r\n\r\n-> https://github.com/OpenVoxProject/trapperkeeper-authorization/blob/0fad59303b6046891ce0002843e48cf0965ce3ea/src/puppetlabs/trapperkeeper/authorization/acl.clj#L197-L204\r\n\r\n```clojure\r\n(schema/defn ^:private match-domain? :- schema/Bool\r\n  \"Checks that name matches the given ace\"\r\n  [{:keys [value match]} :- ACE\r\n   to-match :- schema/Str]\r\n  (let [match-split-domain (split-domain to-match)]\r\n    (if (= :regex match)\r\n      (boolean (re-find (re-pattern value) to-match)) ;; zips the two reversed-segment lists and stops at the SHORTER one, then requires every zipped pair to be equal. No length comparison\r\n      (every? (fn [[a b]] (= a b)) (map vector value match-split-domain)))))\r\n```\r\n\r\nThe zip-like code in match-domain will stop at the shorter hostname entry and compare the zipped values without a length  comparison. This means that a cert issued for evil.target.lab.local will match target.lab.local. With autosign enabled (which is not  default, but common in real world deployments), this will lead to the following attack scenario:\r\n* Attacker does CSR to puppet with evil.somehost.company.tld. As this host ist not registered yet, a cert for client auth will be issued\r\n* Attacker uses the cert for evil.somehost.company.tld to impersonate somehost.company.tld, e.g\r\n  * Grab puppet catalog with provisioned secrets\r\n  * Push fake facts / software versions to the puppet master\r\n\r\n### Proof of concept\r\n\r\n* Create CSR for host with openssl\r\n* Send CSR to `/puppet-ca/v1/certificate_request/<certname>`\r\n* Retrieve certificate from `/puppet-ca/v1/certificate/<certname>`\r\n* Use client authentication to download catalog of impersonated host via `/puppet/v3/catalog/<certname>?environment=<puppet_env>`\r\n\r\n### Impact\r\n\r\naccess data from other nodes\r\n\r\n### Related\r\n\r\nThis vulnerability also affects Puppet Enterprise, including impacts to other integrated components.\r\n\r\n* `CVE-2026-115732 – Certificate Name Authorization Bypass – CVSS 4.0: 9.0 (Critical)`","affected_stack":[{"ecosystem":"GitHub","package":"OpenVoxProject/trapperkeeper-authorization/OpenVox Server","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"9.2.0 and 8.18.0"}]}],"fixed":["9.2.0 and 8.18.0"],"provider":"github-repo-advisories","source":"GHSA-q4hm-33rc-572g","relation":"self"},{"ecosystem":"GitHub","package":"OpenVoxProject/trapperkeeper-authorization/OpenVoxDB","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"9.2.0 and 8.18.0"}]}],"fixed":["9.2.0 and 8.18.0"],"provider":"github-repo-advisories","source":"GHSA-q4hm-33rc-572g","relation":"self"}],"affected_other":[],"product_status":[],"records":[{"provider":"github-repo-advisories","source_id":"GHSA-q4hm-33rc-572g","relation":"self","url":"https://github.com/OpenVoxProject/trapperkeeper-authorization/security/advisories/GHSA-q4hm-33rc-572g","license":"GitHub Terms of Service","published_at":"2026-11-03T20:05:00Z","modified_at":"2026-11-03T20:05:00Z","summary":"Flawed Hostname Check allows Puppet Client Impersonation","details":"### Summary\r\n\r\nFlawed hostname ACL check allows attackers to impersonate puppet clients with enabled autosign and allows puppet catalog downloads for arbitrary hosts.\r\n\r\n### Details\r\n\r\nACL checks for authorized endpoints like GET /puppet/v3/catalog/target.lab.local are processed at the puppetmaster\r\nin the following clojure code:\r\n\r\nhttps://github.com/OpenVoxProject/trapperkeeper-authorization/blob/e686fe844ceeb9a7884eeaa0d7f9fe0d6b265a47/src/puppetlabs/trapperkeeper/authorization/acl.clj#L122-L130\r\n\r\n```clojure\r\n;; splits \"target.lab.local\" -> (\"local\" \"lab\" \"target\")\r\n(schema/defn ^:private split-domain :- [schema/Str]\r\n  \"Given a domain string, split it on '.' and reverse it. For examples,\r\n  'sylvia.plath.net' becomes ('net' 'plath' 'sylvia'). This is used for domain\r\n  matching.\"\r\n  [domain :- schema/Str]\r\n  (-> domain\r\n      (string/lower-case)\r\n      (string/split #\"\\.\")\r\n      reverse))\r\n```\r\n\r\n-> https://github.com/OpenVoxProject/trapperkeeper-authorization/blob/0fad59303b6046891ce0002843e48cf0965ce3ea/src/puppetlabs/trapperkeeper/authorization/acl.clj#L197-L204\r\n\r\n```clojure\r\n(schema/defn ^:private match-domain? :- schema/Bool\r\n  \"Checks that name matches the given ace\"\r\n  [{:keys [value match]} :- ACE\r\n   to-match :- schema/Str]\r\n  (let [match-split-domain (split-domain to-match)]\r\n    (if (= :regex match)\r\n      (boolean (re-find (re-pattern value) to-match)) ;; zips the two reversed-segment lists and stops at the SHORTER one, then requires every zipped pair to be equal. No length comparison\r\n      (every? (fn [[a b]] (= a b)) (map vector value match-split-domain)))))\r\n```\r\n\r\nThe zip-like code in match-domain will stop at the shorter hostname entry and compare the zipped values without a length  comparison. This means that a cert issued for evil.target.lab.local will match target.lab.local. With autosign enabled (which is not  default, but common in real world deployments), this will lead to the following attack scenario:\r\n* Attacker does CSR to puppet with evil.somehost.company.tld. As this host ist not registered yet, a cert for client auth will be issued\r\n* Attacker uses the cert for evil.somehost.company.tld to impersonate somehost.company.tld, e.g\r\n  * Grab puppet catalog with provisioned secrets\r\n  * Push fake facts / software versions to the puppet master\r\n\r\n### Proof of concept\r\n\r\n* Create CSR for host with openssl\r\n* Send CSR to `/puppet-ca/v1/certificate_request/<certname>`\r\n* Retrieve certificate from `/puppet-ca/v1/certificate/<certname>`\r\n* Use client authentication to download catalog of impersonated host via `/puppet/v3/catalog/<certname>?environment=<puppet_env>`\r\n\r\n### Impact\r\n\r\naccess data from other nodes\r\n\r\n### Related\r\n\r\nThis vulnerability also affects Puppet Enterprise, including impacts to other integrated components.\r\n\r\n* `CVE-2026-115732 – Certificate Name Authorization Bypass – CVSS 4.0: 9.0 (Critical)`","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","source":"GHSA-q4hm-33rc-572g"}],"affected":[{"ecosystem":"GitHub","package":"OpenVoxProject/trapperkeeper-authorization/OpenVox Server","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"9.2.0 and 8.18.0"}]}],"fixed":["9.2.0 and 8.18.0"],"provider":"github-repo-advisories","source":"GHSA-q4hm-33rc-572g","relation":"self"},{"ecosystem":"GitHub","package":"OpenVoxProject/trapperkeeper-authorization/OpenVoxDB","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"9.2.0 and 8.18.0"}]}],"fixed":["9.2.0 and 8.18.0"],"provider":"github-repo-advisories","source":"GHSA-q4hm-33rc-572g","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://github.com/OpenVoxProject/trapperkeeper-authorization/security/advisories/GHSA-q4hm-33rc-572g"}]}],"references":[{"type":"ADVISORY","url":"https://github.com/OpenVoxProject/trapperkeeper-authorization/security/advisories/GHSA-q4hm-33rc-572g"}],"sources":[{"provider":"github-repo-advisories","source_id":"GHSA-q4hm-33rc-572g","url":"https://github.com/OpenVoxProject/trapperkeeper-authorization/security/advisories/GHSA-q4hm-33rc-572g","license":"GitHub Terms of Service","modified_at":"2026-11-03T20:05:00Z","relation":"self"}]}
