CVE-2026-48807Network attack vector

Sandbox policy bypass via unguarded string coercion

Published Jul 14, 2026 · Updated Jul 14, 2026

Sandbox bypass in Twig before 3.27.0 allows remote authenticated users to invoke disallowed __toString() methods through crafted templates. SandboxExtension stops recursion at arrays, while join, replace, in, and not in later coerce unchecked Stringable objects from Traversable values or operands. Exploitation requires control of a sandboxed template and access to objects in its render context; consequences are disallowed method side effects and string disclosure.

CVSS severity7.1
High
EPSS probability0.37%
Next 30 days · Sep 16, 2026
Known exploitationUnconfirmed
Based on sourced intelligence
Hinoki checkNot available
Coverage for this vulnerability

See if you're affected

Explore vulnerability checks for your environment with Hinoki.

Book a demo

Summary

What happened

Sandbox bypass in Twig before 3.27.0 allows remote authenticated users to invoke disallowed __toString() methods through crafted templates. SandboxExtension stops recursion at arrays, while join, replace, in, and not in later coerce unchecked Stringable objects from Traversable values or operands. Exploitation requires control of a sandboxed template and access to objects in its render context; consequences are disallowed method side effects and string disclosure.

The record

CVE
CVE-2026-48807
Published
Jul 14, 2026
Updated
Jul 14, 2026
Vendor
Twig
Product
Twig
Classifications
CWE-863, CWE-693
Attack vector
network
Privileges
authenticated

Timeline

How it unfolded

  1. Jul 14, 2026CVE publishedPublication date reported by the CVE source.
  2. Jul 14, 2026Record updatedLatest update available in the CVE record.

Exploitability

Present is not the same as exploitable

Compare your product and version with the public record. A matching version still requires validation against your environment.

Is a vulnerable build present?

Compare these published version ranges with your installed build and any vendor patches.

  1. Affected versionversion=< 3.27.0

What conditions does exploitation require?

Attack vectornetwork
Required privilegesauthenticated

What is affected?

Twig · Twigversion=< 3.27.0

Published CVSS scores

7.1GitHub CNACVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N

CVSS describes severity. EPSS estimates exploitation probability.

Attacks

What attackers are doing with it

Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.

Daily unique IPsNo honeypot observations are available for this CVE in the selected window.

No observations available

Sep 10, 2026Sep 16, 2026
Latest reporting daySep 16, 2026
Latest daily unique IPsUnavailable
Prior 30-day averageUnavailable
SourceShadowserver honeypots (KEV)
Vectornetwork
Privilegesauthenticated
Known exploitationUnconfirmed
Public exploitUnconfirmed

Weakness, pattern, technique

CWE-863Incorrect Authorization
CWE-693Protection Mechanism Failure

Public exploit references

No public exploit references are available in this record.

Labels summarize the accepted research assessment. They do not indicate a test against your environment.

Technologies

Your stack

See the directory against your own environment.

Your stack

Check the software in your environment

Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.

Book a demo