#VU73271 Information disclosure in Twig


Published: 2023-03-13

Vulnerability identifier: #VU73271

Vulnerability risk: Low

CVSSv3.1: 3.2 [CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N/E:U/RL:O/RC:C]

CVE-ID: CVE-2019-9942

CWE-ID: CWE-200

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
Twig
Web applications / CMS

Vendor: Symfony

Description

The vulnerability allows a remote attacker to gain access to potentially sensitive information.

The vulnerability exists due to sandbox information disclosure via the __toString() method call on an object that even can be disabled by the security policy in place. A remote attacker can gain unauthorized access to sensitive information on the system.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

Twig: 2.6.0 - 2.6.2, 2.5.0, 2.4.0 - 2.4.8, 2.3.0 - 2.3.2, 2.2.0, 2.1.0, 2.0.0, 1.37.0 - 1.37.1, 1.36.0, 1.35.0 - 1.35.4, 1.34.0 - 1.34.4, 1.33.0 - 1.33.2, 1.32.0, 1.31.0, 1.30.0, 1.3.0, 1.29.0, 1.28.0 - 1.28.2, 1.27.0, 1.26.0 - 1.26.1, 1.25.0, 1.24.0 - 1.24.2, 1.23.0 - 1.23.3, 1.22.0 - 1.22.3, 1.21.0 - 1.21.2, 1.20.0, 1.2.0, 1.19.0, 1.18.0 - 1.18.2, 1.17.0, 1.16.0 - 1.16.3, 1.15.0 - 1.15.1, 1.14.0 - 1.14.2, 1.13.0 - 1.13.2, 1.12.0 - 1.12.3, 1.11.0 - 1.11.1, 1.10.0 - 1.10.3, 1.1.0 - 1.1.2, 1.9.0 - 1.9.2, 1.8.0 - 1.8.3, 1.7.0, 1.6.0 - 1.6.5, 1.5.0 - 1.5.1, 1.4.0, 1.0.0


External links
http://symfony.com/blog/twig-sandbox-information-disclosure
http://github.com/twigphp/Twig/commit/eac5422956e1dcca89a3669a03a3ff32f0502077
http://www.debian.org/security/2019/dsa-4419
http://seclists.org/bugtraq/2019/Mar/60


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.


Latest bulletins with this vulnerability