{"items":[{"id":"NVI-00016111","kind":"vulnerability","title":"container: pf Rule Injection via Domain Name Argument in `container system dns create --localhost` Command","revision":1,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected."],"lifecycle":"active","identifiers":["GHSA-39g5-644c-qwcg"],"plain_summary":"GitHub lists this reviewed advisory for github.com/apple/container. Published version ranges and source prerequisites are shown below; this is not an inspection of a visitor’s application.","review_status":"source_listed","control_topics":[],"public_actions":[{"summary":"Identify the exact component and deployed version, examine the linked publisher’s conditions, and retain evidence of any mitigation.","source_ids":["sr-24c60fa130938114a7556bd38e914bc2"],"action_type":"investigate","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null}],"schema_version":"1.1.0","source_metrics":[],"why_it_matters":"Published affected context helps an owner decide what evidence to gather. This report has not examined your application.","related_sources":[{"id":"sr-24c60fa130938114a7556bd38e914bc2","url":"https://github.com/advisories/GHSA-39g5-644c-qwcg","basis":"vendor_advisory","notes":"GitHub Advisory Database; CC-BY-4.0. Each advisory links its original attribution. Null normalizes fields.","title":"GHSA-39g5-644c-qwcg","publisher":"GitHub Advisory Database","observed_at":"2026-11-04T09:59:26.779Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-24c60fa130938114a7556bd38e914bc2"],"technology":"github.com/apple/container","known_exclusions":[],"conditions_summary":"#### Product\n\nName: container\n\nGithub Link: https://github.com/apple/container\n\nVersion: <= 0.12.2\n\n\n\n#### Summary\n\nThe `container system dns create --localhost` command accepts a `domainName` argument and passes it unsanitized into the pf anchor file (`/etc/pf.anchors/com.apple.container`) as a comment in a rule line. A domain name containing a newline character breaks out of the comment context and injects an arbitrary pf rule into the anchor file. When `pfctl -f` subsequently loads the configuration, the attacker-controlled rule is loaded into the macOS kernel packet filter.\n\nA `isValidDomainName()` function exists in `Parser.swift:892` but is **never called** from `DNSCreate`.\n\n**The core harm caused by this vulnerability is the bypassing of sudo privileges. An administrator may have only granted a user or an automation tool such as CI/CD the ability to execute `container system dns create` with root privileges, expecting that the user or automation tool could only add redirects from other IPs to localhost in the firewall rules file via `--localhost`. However, an attacker can exploit this vulnerability to write arbitrary rules into the firewall rules file: the target address is","public_affected_ranges":["<= 0.12.2"]}],"null_published_at":"2026-11-04T10:04:27.893Z","source_updated_at":"2026-07-16T04:24:18.000Z","source_disclosed_at":"2026-05-07T01:43:31.000Z","is_synthetic_fixture":false,"null_last_reviewed_at":null,"public_change_summary":"First indexed by Null; source disclosure date is shown separately.","null_first_observed_at":"2026-11-04T09:59:26.779Z"}],"next_cursor":null,"snapshot_revision":"42594"}