Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. twig/twig
  4. ›
  5. CVE-2019-9942

CVE-2019-9942: Information Exposure

March 23, 2019 (updated April 1, 2019)

Under some circumstances, it is possible to call the __toString() method on an object even if not allowed by the security policy in place.

References

  • nvd.nist.gov/vuln/detail/CVE-2019-9942
  • symfony.com/blog/twig-sandbox-information-disclosure

Code Behaviors & Features

Detect and mitigate CVE-2019-9942 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.38.0, all versions starting from 2.0.0 before 2.7.0

Fixed versions

  • 1.38.0
  • 2.7.0

Solution

Upgrade to versions 1.38.0, 2.7.0 or above.

Impact 3.7 LOW

CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor

Source file

packagist/twig/twig/CVE-2019-9942.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:41 +0000.