{"items":[{"id":"NVI-00007008","kind":"vulnerability","title":"Twig: `template_from_string()` escapes a SourcePolicy-driven sandbox via synthesized template name","revision":4,"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-24x9-r6q4-q93w","CVE-2026-46634"],"plain_summary":"GitHub lists this reviewed advisory for twig/twig. 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-0458192b369f274c3cbde657b0df9612"],"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},{"summary":"The original advisory lists fixed boundaries 3.26.0 for twig/twig. Confirm the publisher’s latest guidance.","source_ids":["sr-cb1a2934f7603fc88577458f718a9416"],"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":[{"kind":"CVSS","as_of":"2026-10-24T22:10:00.210Z","value":"9.8 CRITICAL (3.1)","meaning":"nvd@nist.gov severity; no combined Null risk score.","source_id":"sr-d71a8b063b9ba97e9d43fb09c50025c9"},{"kind":"CVSS","as_of":"2026-10-24T22:10:00.210Z","value":"7.7 HIGH (4.0)","meaning":"security-advisories@github.com severity; no combined Null risk score.","source_id":"sr-d71a8b063b9ba97e9d43fb09c50025c9"},{"kind":"EPSS","as_of":"2026-11-03T12:00:27.000Z","value":"0.616%","meaning":"FIRST EPSS model v2026.06.15; exploitation probability over 30 days, percentile 0.49548. Missing scores are unknown.","source_id":"sr-0458192b369f274c3cbde657b0df9612"}],"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-5337bbb4b62d668ad924179f8d85a977","url":"https://github.com/advisories/GHSA-24x9-r6q4-q93w","basis":"vendor_advisory","notes":"GitHub Advisory Database; CC-BY-4.0. Each advisory links its original attribution. Null normalizes fields.","title":"GHSA-24x9-r6q4-q93w","publisher":"GitHub Advisory Database","observed_at":"2026-11-07T07:02:15.138Z"},{"id":"sr-cb1a2934f7603fc88577458f718a9416","url":"https://github.com/advisories/GHSA-24x9-r6q4-q93w","basis":"vendor_advisory","notes":"GitHub-origin advisory, CC-BY-4.0; OSV is an aggregate copy, not independent corroboration.","title":"GHSA-24x9-r6q4-q93w","publisher":"GitHub Advisory Database via OSV","observed_at":"2026-10-31T21:41:40.009Z"},{"id":"sr-d71a8b063b9ba97e9d43fb09c50025c9","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-46634","basis":"official_catalog","notes":"This product uses data from the NVD API but is not endorsed or certified by the NVD.","title":"CVE-2026-46634","publisher":"NIST National Vulnerability Database","observed_at":"2026-11-01T07:24:11.754Z"},{"id":"sr-0458192b369f274c3cbde657b0df9612","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-46634","publisher":"FIRST EPSS","observed_at":"2026-11-03T17:44:07.786Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-5337bbb4b62d668ad924179f8d85a977"],"technology":"twig/twig","known_exclusions":[],"conditions_summary":"### Description\n\nWhen the sandbox is enabled selectively via `SourcePolicyInterface` (and not globally), a sandboxed template that is allowed to call `template_from_string` and `include` can render an arbitrary inner template with no security policy enforcement.\n\n`Environment::createTemplate()` compiles the inner string under a synthesized name (`__string_template__`), so a name/path-based `SourcePolicy` returns `false` for it, and the inner template's `checkSecurity()` becomes a no-op. From a template the integrator believes is sandboxed, an attacker can use any tag/filter/function (including `constant()` to read secrets, or `|map(\"system\")` to execute shell commands).\n\n### Resolution\n\nThis is a configuration trap rather than a code bug: there is no legitimate use case for exposing `template_from_string` to untrusted template authors, and propagating the parent sandbox state through `template_from_string` would require invasive changes to `SourcePolicyInterface` semantics with their own risks.\n\nStarting with Twig 3.26.0, the documentation and the PHPDoc of `StringLoaderExtension::templateFromString()` explicitly warn against allowing `template_from_string` in a sandboxed env","public_affected_ranges":[">= 3.9.0, < 3.26.0"]},{"certainty":"source_listed","source_ids":["sr-cb1a2934f7603fc88577458f718a9416"],"technology":"twig/twig","known_exclusions":[],"conditions_summary":"### Description\n\nWhen the sandbox is enabled selectively via `SourcePolicyInterface` (and not globally), a sandboxed template that is allowed to call `template_from_string` and `include` can render an arbitrary inner template with no security policy enforcement.\n\n`Environment::createTemplate()` compiles the inner string under a synthesized name (`__string_template__`), so a name/path-based `SourcePolicy` returns `false` for it, and the inner template's `checkSecurity()` becomes a no-op. From a template the integrator believes is sandboxed, an attacker can use any tag/filter/function (including `constant()` to read secrets, or `|map(\"system\")` to execute shell commands).\n\n### Resolution\n\nThis is a configuration trap rather than a code bug: there is no legitimate use case for exposing `template_from_string` to untrusted template authors, and propagating the parent sandbox state through `template_from_string` would require invasive changes to `SourcePolicyInterface` semantics with their own risks.\n\nStarting with Twig 3.26.0, the documentation and the PHPDoc of `StringLoaderExtension::templateFromString()` explicitly warn against allowing `template_from_string` in a sandboxed env","public_affected_ranges":["ECOSYSTEM: introduced 3.9.0; fixed 3.26.0"]}],"null_published_at":"2026-11-08T15:11:47.489Z","source_updated_at":"2026-05-21T21:25:13.000Z","source_disclosed_at":"2026-05-21T21:25:12.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:40.009Z"},{"id":"NVI-00007008","kind":"vulnerability","title":"Twig: `template_from_string()` escapes a SourcePolicy-driven sandbox via synthesized template name","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-24x9-r6q4-q93w","CVE-2026-46634"],"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-cb1a2934f7603fc88577458f718a9416"],"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-0458192b369f274c3cbde657b0df9612"],"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":"9.8 CRITICAL (3.1)","meaning":"nvd@nist.gov severity; no combined Null risk score.","source_id":"sr-d71a8b063b9ba97e9d43fb09c50025c9"},{"kind":"CVSS","as_of":"2026-10-24T22:10:00.210Z","value":"7.7 HIGH (4.0)","meaning":"security-advisories@github.com severity; no combined Null risk score.","source_id":"sr-d71a8b063b9ba97e9d43fb09c50025c9"},{"kind":"EPSS","as_of":"2026-11-03T12:00:27.000Z","value":"0.616%","meaning":"FIRST EPSS model v2026.06.15; exploitation probability over 30 days, percentile 0.49548. Missing scores are unknown.","source_id":"sr-0458192b369f274c3cbde657b0df9612"}],"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-cb1a2934f7603fc88577458f718a9416","url":"https://github.com/advisories/GHSA-24x9-r6q4-q93w","basis":"vendor_advisory","notes":"GitHub-origin advisory, CC-BY-4.0; OSV is an aggregate copy, not independent corroboration.","title":"GHSA-24x9-r6q4-q93w","publisher":"GitHub Advisory Database via OSV","observed_at":"2026-10-31T21:41:40.009Z"},{"id":"sr-d71a8b063b9ba97e9d43fb09c50025c9","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-46634","basis":"official_catalog","notes":"This product uses data from the NVD API but is not endorsed or certified by the NVD.","title":"CVE-2026-46634","publisher":"NIST National Vulnerability Database","observed_at":"2026-11-01T07:24:11.754Z"},{"id":"sr-0458192b369f274c3cbde657b0df9612","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-46634","publisher":"FIRST EPSS","observed_at":"2026-11-03T17:44:07.786Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-cb1a2934f7603fc88577458f718a9416"],"technology":"twig/twig","known_exclusions":[],"conditions_summary":"### Description\n\nWhen the sandbox is enabled selectively via `SourcePolicyInterface` (and not globally), a sandboxed template that is allowed to call `template_from_string` and `include` can render an arbitrary inner template with no security policy enforcement.\n\n`Environment::createTemplate()` compiles the inner string under a synthesized name (`__string_template__`), so a name/path-based `SourcePolicy` returns `false` for it, and the inner template's `checkSecurity()` becomes a no-op. From a template the integrator believes is sandboxed, an attacker can use any tag/filter/function (including `constant()` to read secrets, or `|map(\"system\")` to execute shell commands).\n\n### Resolution\n\nThis is a configuration trap rather than a code bug: there is no legitimate use case for exposing `template_from_string` to untrusted template authors, and propagating the parent sandbox state through `template_from_string` would require invasive changes to `SourcePolicyInterface` semantics with their own risks.\n\nStarting with Twig 3.26.0, the documentation and the PHPDoc of `StringLoaderExtension::templateFromString()` explicitly warn against allowing `template_from_string` in a sandboxed env","public_affected_ranges":["ECOSYSTEM: introduced 3.9.0; fixed 3.26.0"]}],"null_published_at":"2026-11-07T22:29:23.453Z","source_updated_at":"2026-09-10T03:51:04.122Z","source_disclosed_at":"2026-05-21T21:25:12.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:40.009Z"},{"id":"NVI-00007008","kind":"vulnerability","title":"Twig: `template_from_string()` escapes a SourcePolicy-driven sandbox via synthesized template name","revision":2,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected."],"lifecycle":"active","identifiers":["GHSA-24x9-r6q4-q93w","CVE-2026-46634"],"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-cb1a2934f7603fc88577458f718a9416"],"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-0458192b369f274c3cbde657b0df9612"],"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-11-03T12:00:27.000Z","value":"0.616%","meaning":"FIRST EPSS model v2026.06.15; exploitation probability over 30 days, percentile 0.49548. Missing scores are unknown.","source_id":"sr-0458192b369f274c3cbde657b0df9612"}],"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-cb1a2934f7603fc88577458f718a9416","url":"https://github.com/advisories/GHSA-24x9-r6q4-q93w","basis":"vendor_advisory","notes":"GitHub-origin advisory, CC-BY-4.0; OSV is an aggregate copy, not independent corroboration.","title":"GHSA-24x9-r6q4-q93w","publisher":"GitHub Advisory Database via OSV","observed_at":"2026-10-31T21:41:40.009Z"},{"id":"sr-0458192b369f274c3cbde657b0df9612","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-46634","publisher":"FIRST EPSS","observed_at":"2026-11-03T17:44:07.786Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-cb1a2934f7603fc88577458f718a9416"],"technology":"twig/twig","known_exclusions":[],"conditions_summary":"### Description\n\nWhen the sandbox is enabled selectively via `SourcePolicyInterface` (and not globally), a sandboxed template that is allowed to call `template_from_string` and `include` can render an arbitrary inner template with no security policy enforcement.\n\n`Environment::createTemplate()` compiles the inner string under a synthesized name (`__string_template__`), so a name/path-based `SourcePolicy` returns `false` for it, and the inner template's `checkSecurity()` becomes a no-op. From a template the integrator believes is sandboxed, an attacker can use any tag/filter/function (including `constant()` to read secrets, or `|map(\"system\")` to execute shell commands).\n\n### Resolution\n\nThis is a configuration trap rather than a code bug: there is no legitimate use case for exposing `template_from_string` to untrusted template authors, and propagating the parent sandbox state through `template_from_string` would require invasive changes to `SourcePolicyInterface` semantics with their own risks.\n\nStarting with Twig 3.26.0, the documentation and the PHPDoc of `StringLoaderExtension::templateFromString()` explicitly warn against allowing `template_from_string` in a sandboxed env","public_affected_ranges":["ECOSYSTEM: introduced 3.9.0; fixed 3.26.0"]}],"null_published_at":"2026-11-04T10:04:41.543Z","source_updated_at":"2026-09-10T03:51:04.122Z","source_disclosed_at":"2026-05-21T21:25:12.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:40.009Z"},{"id":"NVI-00007008","kind":"vulnerability","title":"Twig: `template_from_string()` escapes a SourcePolicy-driven sandbox via synthesized template name","revision":1,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected."],"lifecycle":"active","identifiers":["GHSA-24x9-r6q4-q93w","CVE-2026-46634"],"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-cb1a2934f7603fc88577458f718a9416"],"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-cb1a2934f7603fc88577458f718a9416","url":"https://github.com/advisories/GHSA-24x9-r6q4-q93w","basis":"vendor_advisory","notes":"GitHub-origin advisory, CC-BY-4.0; OSV is an aggregate copy, not independent corroboration.","title":"GHSA-24x9-r6q4-q93w","publisher":"GitHub Advisory Database via OSV","observed_at":"2026-10-31T21:41:40.009Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-cb1a2934f7603fc88577458f718a9416"],"technology":"twig/twig","known_exclusions":[],"conditions_summary":"### Description\n\nWhen the sandbox is enabled selectively via `SourcePolicyInterface` (and not globally), a sandboxed template that is allowed to call `template_from_string` and `include` can render an arbitrary inner template with no security policy enforcement.\n\n`Environment::createTemplate()` compiles the inner string under a synthesized name (`__string_template__`), so a name/path-based `SourcePolicy` returns `false` for it, and the inner template's `checkSecurity()` becomes a no-op. From a template the integrator believes is sandboxed, an attacker can use any tag/filter/function (including `constant()` to read secrets, or `|map(\"system\")` to execute shell commands).\n\n### Resolution\n\nThis is a configuration trap rather than a code bug: there is no legitimate use case for exposing `template_from_string` to untrusted template authors, and propagating the parent sandbox state through `template_from_string` would require invasive changes to `SourcePolicyInterface` semantics with their own risks.\n\nStarting with Twig 3.26.0, the documentation and the PHPDoc of `StringLoaderExtension::templateFromString()` explicitly warn against allowing `template_from_string` in a sandboxed env","public_affected_ranges":["ECOSYSTEM: introduced 3.9.0; fixed 3.26.0"]}],"null_published_at":"2026-10-31T22:13:14.307Z","source_updated_at":"2026-09-10T03:51:04.122Z","source_disclosed_at":"2026-05-21T21:25:12.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:40.009Z"}],"next_cursor":null,"snapshot_revision":"42594"}