Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

UBUNTU-CVE-2026-46639

0
High
Published: 07/14/2026 (07/14/2026, 22:16:00 UTC)
Source: GCVE Database
Product: php-twig

Description

A vulnerability in the Twig PHP template engine versions from 3.24.0 up to but not including 3.26.0 allows an attacker with write access to a sandboxed Twig template to bypass property and method policy checks. This occurs because object-destructuring assignment compiles CoreExtension::getAttribute() with the sandbox argument hardcoded to false, disabling security checks. The issue is fixed in version 3.26.0. Multiple Ubuntu package versions of php-twig are affected.

CVSS v4.0

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
Low
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N

Affected software

Ubuntu:Pro:20.04:LTSmore threats →ghsa
php-twig
pkg:deb/ubuntu/[email protected]~esm2?arch=source&distro=esm-apps/focal
Affected versions
=2.11.3-2=2.12.1-1=2.12.2-1=2.12.3-1=2.12.5-1=2.12.5-1ubuntu0.1~esm1=2.12.5-1ubuntu0.1~esm2
Ubuntu:Pro:22.04:LTSmore threats →ghsa
php-twig
pkg:deb/ubuntu/[email protected]+esm2?arch=source&distro=esm-apps/jammy
Affected versions
=3.3.2-1ubuntu3=3.3.4-1=3.3.6-1=3.3.7-1=3.3.8-2ubuntu4=3.3.8-2ubuntu4+esm1=3.3.8-2ubuntu4+esm2
Ubuntu:Pro:24.04:LTSmore threats →ghsa
php-twig
pkg:deb/ubuntu/[email protected]+esm1?arch=source&distro=esm-apps/noble
Affected versions
=3.7.0-1=3.7.1-1=3.8.0-2=3.8.0-2ubuntu0.1~esm1=3.8.0-2ubuntu1=3.8.0-2ubuntu1+esm1
Ubuntu:25.10more threats →ghsa
php-twig
pkg:deb/ubuntu/[email protected]?arch=source&distro=questing
Affected versions
=3.20.0-2ubuntu1
Ubuntu:Pro:26.04:LTSmore threats →ghsa
php-twig
pkg:deb/ubuntu/[email protected]~esm1?arch=source&distro=esm-apps/resolute
Affected versions
=3.20.0-2ubuntu1=3.23.0-2build5=3.23.0-2build7=3.23.0-2ubuntu0.1~esm1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/16/2026, 12:29:47 UTC

Technical Analysis

Twig versions 3.24.0 through 3.25.x have a vulnerability where object-destructuring assignment disables sandbox security checks by hardcoding the sandbox argument to false in CoreExtension::getAttribute(). This allows an attacker who can write to a sandboxed Twig template to read public properties or invoke public getters on objects passed to the template engine, potentially exposing sensitive data. The vulnerability is resolved in Twig 3.26.0. Several Ubuntu package versions of php-twig, including those for Ubuntu Pro LTS releases and Ubuntu 25.10, are affected.

Potential Impact

An attacker with write access to a sandboxed Twig template can bypass sandbox restrictions to read public properties or invoke public getters on objects passed to the template engine. This could lead to unauthorized disclosure of information within the application context. There is no indication of privilege escalation or remote code execution. No known exploits in the wild have been reported.

Mitigation Recommendations

Upgrade affected php-twig packages to version 3.26.0 or later where the vulnerability is fixed. Since this is a code-level vulnerability in the Twig template engine, patching to the fixed version is the recommended remediation. Patch status is confirmed fixed in 3.26.0. No other mitigations are indicated.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
UBUNTU-CVE-2026-46639
Osv Schema Version
1.7.0
Aliases
[]
Ecosystems
["Ubuntu:Pro:20.04:LTS","Ubuntu:Pro:22.04:LTS","Ubuntu:Pro:24.04:LTS","Ubuntu:25.10","Ubuntu:Pro:26.04:LTS"]
Database Specific Severity
null
Cvss Version
4.0

Threat ID: 6a58b4a068715ace43da8d35

Added to database: 07/16/2026, 10:38:24 UTC

Last enriched: 07/16/2026, 12:29:47 UTC

Last updated: 07/16/2026, 12:29:47 UTC

Views: 2

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses