{"items":[{"id":"NVI-00006021","kind":"vulnerability","title":"Twig: Arbitrary PHP code execution via `_self.()` macro-reference compilation","revision":3,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected.","NVD lastModified does not establish freshness of every associated CPE record."],"lifecycle":"active","identifiers":["GHSA-45vw-wh46-2vx8","CVE-2026-46640"],"plain_summary":"OSV carries this publisher advisory for twig/twig. This is an aggregated source copy; consult the original publisher and compare update dates.","review_status":"source_listed","control_topics":[],"public_actions":[{"summary":"The original advisory lists fixed boundaries 3.26.0 for twig/twig. Confirm the publisher’s latest guidance.","source_ids":["sr-a499c934913b1ed0bd71daf2878e7423"],"action_type":"vendor_patch","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null},{"summary":"Identify the exact component and deployed version, examine the linked publisher’s conditions, and retain evidence of any mitigation.","source_ids":["sr-4f2b573ff57caadb8b2ffbd868eeb93e"],"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":[{"kind":"CVSS","as_of":"2026-10-24T22:10:00.210Z","value":"8.8 HIGH (3.1)","meaning":"nvd@nist.gov severity; no combined Null risk score.","source_id":"sr-91766f2cca55a79d24f29bad2b4bd188"},{"kind":"CVSS","as_of":"2026-10-24T22:10:00.210Z","value":"8.7 HIGH (4.0)","meaning":"security-advisories@github.com severity; no combined Null risk score.","source_id":"sr-91766f2cca55a79d24f29bad2b4bd188"},{"kind":"EPSS","as_of":"2026-10-31T12:00:27.000Z","value":"0.642%","meaning":"FIRST EPSS model v2026.06.15; exploitation probability over 30 days, percentile 0.50807. Missing scores are unknown.","source_id":"sr-4f2b573ff57caadb8b2ffbd868eeb93e"}],"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-a499c934913b1ed0bd71daf2878e7423","url":"https://github.com/advisories/GHSA-45vw-wh46-2vx8","basis":"vendor_advisory","notes":"GitHub-origin advisory, CC-BY-4.0; OSV is an aggregate copy, not independent corroboration.","title":"GHSA-45vw-wh46-2vx8","publisher":"GitHub Advisory Database via OSV","observed_at":"2026-10-31T21:41:49.665Z"},{"id":"sr-91766f2cca55a79d24f29bad2b4bd188","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-46640","basis":"official_catalog","notes":"This product uses data from the NVD API but is not endorsed or certified by the NVD.","title":"CVE-2026-46640","publisher":"NIST National Vulnerability Database","observed_at":"2026-11-01T07:24:11.754Z"},{"id":"sr-4f2b573ff57caadb8b2ffbd868eeb93e","url":"https://www.first.org/epss/data.html","basis":"official_catalog","notes":"FIRST EPSS; probability of exploitation in the next 30 days, not local compromise. Dataset date/model retained; FIRST services terms apply.","title":"CVE-2026-46640","publisher":"FIRST EPSS","observed_at":"2026-10-31T22:06:15.379Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-a499c934913b1ed0bd71daf2878e7423"],"technology":"twig/twig","known_exclusions":[],"conditions_summary":"### Description\n\nThe `obj.(expr)` dynamic-attribute syntax (added in 3.15.0 as the replacement for the deprecated `attribute()` function) lets the attribute be an arbitrary expression. When the receiver is `_self` (or any `{% import %}` alias) and the parenthesised expression is a string literal, `DotExpressionParser` short-circuits to the macro-call path and concatenates the attacker-controlled string into a `MacroReferenceExpression` name with no identifier validation. `MacroReferenceExpression::compile()` then emits that name raw into the generated PHP source.\n\nAn attacker who can supply template source can inject arbitrary PHP into the compiled template and execute it at template-load time, before `checkSecurity()` is ever called. This is a complete bypass of `SandboxExtension`, including a globally-enabled sandbox with an empty `SecurityPolicy` allowlist.\n\n### Resolution\n\nThe parser now validates that the dynamic attribute resolves to a valid macro identifier before routing through `MacroReferenceExpression`, and the macro-reference compiler emits the name through a properly escaped path.\n\n### Credits\n\nTwig would like to thank Claude Mythos Preview (via Project Glasswing) for ","public_affected_ranges":["ECOSYSTEM: introduced 3.15.0; fixed 3.26.0"]}],"null_published_at":"2026-11-04T18:04:03.198Z","source_updated_at":"2026-09-10T03:51:04.496Z","source_disclosed_at":"2026-05-21T21:31:08.000Z","is_synthetic_fixture":false,"null_last_reviewed_at":null,"public_change_summary":"Source facts changed; compare the preserved prior revision.","null_first_observed_at":"2026-10-31T21:41:49.665Z"},{"id":"NVI-00006021","kind":"vulnerability","title":"Twig: Arbitrary PHP code execution via `_self.()` macro-reference compilation","revision":2,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected."],"lifecycle":"active","identifiers":["GHSA-45vw-wh46-2vx8","CVE-2026-46640"],"plain_summary":"OSV carries this publisher advisory for twig/twig. This is an aggregated source copy; consult the original publisher and compare update dates.","review_status":"source_listed","control_topics":[],"public_actions":[{"summary":"The original advisory lists fixed boundaries 3.26.0 for twig/twig. Confirm the publisher’s latest guidance.","source_ids":["sr-a499c934913b1ed0bd71daf2878e7423"],"action_type":"vendor_patch","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null},{"summary":"Identify the exact component and deployed version, examine the linked publisher’s conditions, and retain evidence of any mitigation.","source_ids":["sr-4f2b573ff57caadb8b2ffbd868eeb93e"],"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":[{"kind":"EPSS","as_of":"2026-10-31T12:00:27.000Z","value":"0.642%","meaning":"FIRST EPSS model v2026.06.15; exploitation probability over 30 days, percentile 0.50807. Missing scores are unknown.","source_id":"sr-4f2b573ff57caadb8b2ffbd868eeb93e"}],"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-a499c934913b1ed0bd71daf2878e7423","url":"https://github.com/advisories/GHSA-45vw-wh46-2vx8","basis":"vendor_advisory","notes":"GitHub-origin advisory, CC-BY-4.0; OSV is an aggregate copy, not independent corroboration.","title":"GHSA-45vw-wh46-2vx8","publisher":"GitHub Advisory Database via OSV","observed_at":"2026-10-31T21:41:49.665Z"},{"id":"sr-4f2b573ff57caadb8b2ffbd868eeb93e","url":"https://www.first.org/epss/data.html","basis":"official_catalog","notes":"FIRST EPSS; probability of exploitation in the next 30 days, not local compromise. Dataset date/model retained; FIRST services terms apply.","title":"CVE-2026-46640","publisher":"FIRST EPSS","observed_at":"2026-10-31T22:06:15.379Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-a499c934913b1ed0bd71daf2878e7423"],"technology":"twig/twig","known_exclusions":[],"conditions_summary":"### Description\n\nThe `obj.(expr)` dynamic-attribute syntax (added in 3.15.0 as the replacement for the deprecated `attribute()` function) lets the attribute be an arbitrary expression. When the receiver is `_self` (or any `{% import %}` alias) and the parenthesised expression is a string literal, `DotExpressionParser` short-circuits to the macro-call path and concatenates the attacker-controlled string into a `MacroReferenceExpression` name with no identifier validation. `MacroReferenceExpression::compile()` then emits that name raw into the generated PHP source.\n\nAn attacker who can supply template source can inject arbitrary PHP into the compiled template and execute it at template-load time, before `checkSecurity()` is ever called. This is a complete bypass of `SandboxExtension`, including a globally-enabled sandbox with an empty `SecurityPolicy` allowlist.\n\n### Resolution\n\nThe parser now validates that the dynamic attribute resolves to a valid macro identifier before routing through `MacroReferenceExpression`, and the macro-reference compiler emits the name through a properly escaped path.\n\n### Credits\n\nTwig would like to thank Claude Mythos Preview (via Project Glasswing) for ","public_affected_ranges":["ECOSYSTEM: introduced 3.15.0; fixed 3.26.0"]}],"null_published_at":"2026-10-31T23:18:17.285Z","source_updated_at":"2026-09-10T03:51:04.496Z","source_disclosed_at":"2026-05-21T21:31:08.000Z","is_synthetic_fixture":false,"null_last_reviewed_at":null,"public_change_summary":"Dated EPSS estimate updated; this is not a new disclosure or proof of exploitation.","null_first_observed_at":"2026-10-31T21:41:49.665Z"},{"id":"NVI-00006021","kind":"vulnerability","title":"Twig: Arbitrary PHP code execution via `_self.()` macro-reference compilation","revision":1,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected."],"lifecycle":"active","identifiers":["GHSA-45vw-wh46-2vx8","CVE-2026-46640"],"plain_summary":"OSV carries this publisher advisory for twig/twig. This is an aggregated source copy; consult the original publisher and compare update dates.","review_status":"source_listed","control_topics":[],"public_actions":[{"summary":"The original advisory lists fixed boundaries 3.26.0 for twig/twig. Confirm the publisher’s latest guidance.","source_ids":["sr-a499c934913b1ed0bd71daf2878e7423"],"action_type":"vendor_patch","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-a499c934913b1ed0bd71daf2878e7423","url":"https://github.com/advisories/GHSA-45vw-wh46-2vx8","basis":"vendor_advisory","notes":"GitHub-origin advisory, CC-BY-4.0; OSV is an aggregate copy, not independent corroboration.","title":"GHSA-45vw-wh46-2vx8","publisher":"GitHub Advisory Database via OSV","observed_at":"2026-10-31T21:41:49.665Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-a499c934913b1ed0bd71daf2878e7423"],"technology":"twig/twig","known_exclusions":[],"conditions_summary":"### Description\n\nThe `obj.(expr)` dynamic-attribute syntax (added in 3.15.0 as the replacement for the deprecated `attribute()` function) lets the attribute be an arbitrary expression. When the receiver is `_self` (or any `{% import %}` alias) and the parenthesised expression is a string literal, `DotExpressionParser` short-circuits to the macro-call path and concatenates the attacker-controlled string into a `MacroReferenceExpression` name with no identifier validation. `MacroReferenceExpression::compile()` then emits that name raw into the generated PHP source.\n\nAn attacker who can supply template source can inject arbitrary PHP into the compiled template and execute it at template-load time, before `checkSecurity()` is ever called. This is a complete bypass of `SandboxExtension`, including a globally-enabled sandbox with an empty `SecurityPolicy` allowlist.\n\n### Resolution\n\nThe parser now validates that the dynamic attribute resolves to a valid macro identifier before routing through `MacroReferenceExpression`, and the macro-reference compiler emits the name through a properly escaped path.\n\n### Credits\n\nTwig would like to thank Claude Mythos Preview (via Project Glasswing) for ","public_affected_ranges":["ECOSYSTEM: introduced 3.15.0; fixed 3.26.0"]}],"null_published_at":"2026-10-31T22:13:05.856Z","source_updated_at":"2026-09-10T03:51:04.496Z","source_disclosed_at":"2026-05-21T21:31:08.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-10-31T21:41:49.665Z"}],"next_cursor":null,"snapshot_revision":"40769"}