{"items":[{"id":"NVI-00004107","kind":"vulnerability","title":"Twig: Possible sandbox bypass when using a source policy","revision":2,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected."],"lifecycle":"active","identifiers":["GHSA-2q52-x2ff-qgfr","CVE-2026-24425"],"plain_summary":"OSV carries this publisher advisory for twig/twig, 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-58190e6c4c205f30c6c00b8a7ff39355"],"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-1ef1ac6020a1a4cc4d1be5f956824ba7"],"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.758%","meaning":"FIRST EPSS model v2026.06.15; exploitation probability over 30 days, percentile 0.55226. Missing scores are unknown.","source_id":"sr-1ef1ac6020a1a4cc4d1be5f956824ba7"}],"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-58190e6c4c205f30c6c00b8a7ff39355","url":"https://github.com/advisories/GHSA-2q52-x2ff-qgfr","basis":"vendor_advisory","notes":"GitHub-origin advisory, CC-BY-4.0; OSV is an aggregate copy, not independent corroboration.","title":"GHSA-2q52-x2ff-qgfr","publisher":"GitHub Advisory Database via OSV","observed_at":"2026-10-31T21:41:49.643Z"},{"id":"sr-1ef1ac6020a1a4cc4d1be5f956824ba7","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-24425","publisher":"FIRST EPSS","observed_at":"2026-10-31T22:06:15.376Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-58190e6c4c205f30c6c00b8a7ff39355"],"technology":"twig/twig","known_exclusions":[],"conditions_summary":"# Description\n\nWhen using the sandbox with a `SourcePolicyInterface`, Twig does not always apply the sandbox restriction that forbids non-`Closure` callbacks for callback-accepting filters.\n\nThe issue affects the `sort`, `filter`, `map`, and `reduce` filters.\n\nIn the affected versions, the runtime check that rejects non-`Closure` callbacks in sandbox mode does not use the current template `Source`. As a result, when the sandbox is enabled through a source policy instead of being enabled globally, Twig can incorrectly treat the current execution as non-sandboxed for these callback checks.\n\nThis can allow user-controlled templates to pass arbitrary PHP callables to callback-accepting filters even though the template is being sandboxed through a source policy.\n\nThe issue happens when all these conditions are met:\n\n- The sandbox is not enabled globally;\n- A `SourcePolicyInterface` enables the sandbox for the rendered template;\n- The template uses one of the `sort`, `filter`, `map`, or `reduce` filters;\n- The callback is not a `Closure`.\n\n# Resolution\n\nThe patch makes callback sandbox checks source-aware by propagating the current template `Source` to callback-accepting filters and usin","public_affected_ranges":["ECOSYSTEM: introduced 2.16.0; last_affected 2.16.1"]},{"certainty":"source_listed","source_ids":["sr-58190e6c4c205f30c6c00b8a7ff39355"],"technology":"twig/twig","known_exclusions":[],"conditions_summary":"# Description\n\nWhen using the sandbox with a `SourcePolicyInterface`, Twig does not always apply the sandbox restriction that forbids non-`Closure` callbacks for callback-accepting filters.\n\nThe issue affects the `sort`, `filter`, `map`, and `reduce` filters.\n\nIn the affected versions, the runtime check that rejects non-`Closure` callbacks in sandbox mode does not use the current template `Source`. As a result, when the sandbox is enabled through a source policy instead of being enabled globally, Twig can incorrectly treat the current execution as non-sandboxed for these callback checks.\n\nThis can allow user-controlled templates to pass arbitrary PHP callables to callback-accepting filters even though the template is being sandboxed through a source policy.\n\nThe issue happens when all these conditions are met:\n\n- The sandbox is not enabled globally;\n- A `SourcePolicyInterface` enables the sandbox for the rendered template;\n- The template uses one of the `sort`, `filter`, `map`, or `reduce` filters;\n- The callback is not a `Closure`.\n\n# Resolution\n\nThe patch makes callback sandbox checks source-aware by propagating the current template `Source` to callback-accepting filters and usin","public_affected_ranges":["ECOSYSTEM: introduced 3.9.0; fixed 3.26.0"]}],"null_published_at":"2026-10-31T22:27:09.607Z","source_updated_at":"2026-09-10T03:51:07.523Z","source_disclosed_at":"2026-06-05T20:41:33.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.643Z"},{"id":"NVI-00004107","kind":"vulnerability","title":"Twig: Possible sandbox bypass when using a source policy","revision":1,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected."],"lifecycle":"active","identifiers":["GHSA-2q52-x2ff-qgfr","CVE-2026-24425"],"plain_summary":"OSV carries this publisher advisory for twig/twig, 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-58190e6c4c205f30c6c00b8a7ff39355"],"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-58190e6c4c205f30c6c00b8a7ff39355","url":"https://github.com/advisories/GHSA-2q52-x2ff-qgfr","basis":"vendor_advisory","notes":"GitHub-origin advisory, CC-BY-4.0; OSV is an aggregate copy, not independent corroboration.","title":"GHSA-2q52-x2ff-qgfr","publisher":"GitHub Advisory Database via OSV","observed_at":"2026-10-31T21:41:49.643Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-58190e6c4c205f30c6c00b8a7ff39355"],"technology":"twig/twig","known_exclusions":[],"conditions_summary":"# Description\n\nWhen using the sandbox with a `SourcePolicyInterface`, Twig does not always apply the sandbox restriction that forbids non-`Closure` callbacks for callback-accepting filters.\n\nThe issue affects the `sort`, `filter`, `map`, and `reduce` filters.\n\nIn the affected versions, the runtime check that rejects non-`Closure` callbacks in sandbox mode does not use the current template `Source`. As a result, when the sandbox is enabled through a source policy instead of being enabled globally, Twig can incorrectly treat the current execution as non-sandboxed for these callback checks.\n\nThis can allow user-controlled templates to pass arbitrary PHP callables to callback-accepting filters even though the template is being sandboxed through a source policy.\n\nThe issue happens when all these conditions are met:\n\n- The sandbox is not enabled globally;\n- A `SourcePolicyInterface` enables the sandbox for the rendered template;\n- The template uses one of the `sort`, `filter`, `map`, or `reduce` filters;\n- The callback is not a `Closure`.\n\n# Resolution\n\nThe patch makes callback sandbox checks source-aware by propagating the current template `Source` to callback-accepting filters and usin","public_affected_ranges":["ECOSYSTEM: introduced 2.16.0; last_affected 2.16.1"]},{"certainty":"source_listed","source_ids":["sr-58190e6c4c205f30c6c00b8a7ff39355"],"technology":"twig/twig","known_exclusions":[],"conditions_summary":"# Description\n\nWhen using the sandbox with a `SourcePolicyInterface`, Twig does not always apply the sandbox restriction that forbids non-`Closure` callbacks for callback-accepting filters.\n\nThe issue affects the `sort`, `filter`, `map`, and `reduce` filters.\n\nIn the affected versions, the runtime check that rejects non-`Closure` callbacks in sandbox mode does not use the current template `Source`. As a result, when the sandbox is enabled through a source policy instead of being enabled globally, Twig can incorrectly treat the current execution as non-sandboxed for these callback checks.\n\nThis can allow user-controlled templates to pass arbitrary PHP callables to callback-accepting filters even though the template is being sandboxed through a source policy.\n\nThe issue happens when all these conditions are met:\n\n- The sandbox is not enabled globally;\n- A `SourcePolicyInterface` enables the sandbox for the rendered template;\n- The template uses one of the `sort`, `filter`, `map`, or `reduce` filters;\n- The callback is not a `Closure`.\n\n# Resolution\n\nThe patch makes callback sandbox checks source-aware by propagating the current template `Source` to callback-accepting filters and usin","public_affected_ranges":["ECOSYSTEM: introduced 3.9.0; fixed 3.26.0"]}],"null_published_at":"2026-10-31T22:12:52.628Z","source_updated_at":"2026-09-10T03:51:07.523Z","source_disclosed_at":"2026-06-05T20:41:33.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.643Z"}],"next_cursor":null,"snapshot_revision":"42594"}