CVE Catalog

CVE-2026-46627

MediumCVSS 6.5
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.39%

31th percentile - higher than 31% of all known CVEs

Summary

A vulnerability in the Twig library for PHP (before version 3.26.0) allows untrusted templates to exhaust CPU, memory, or wall-clock time, even under the strictest allow-list. The issue is addressed in version 3.26.0 by documenting that the sandbox does not protect against resource exhaustion.

Risk Assessment

The organization is exposed to denial-of-service (DoS) attacks through malicious Twig templates, potentially causing server overload and application downtime.

Recommendation

Immediately update the Twig library to version 3.26.0 or later. Additionally, implement monitoring and limits on template execution time and memory usage.

Other vulnerabilities in Twig

See all
Original NVD description (English source)

Twig is a template language for PHP. Prior to 3.26.0, the Twig sandbox does not prevent a template from consuming CPU, memory, or wall-clock time, even under the strictest allow-list, allowing untrusted templates to cause resource exhaustion. This issue is addressed in version 3.26.0 by documenting that the sandbox does not protect against resource exhaustion.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS