Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. phpmailer/phpmailer
  4. ›
  5. CVE-2012-0796

CVE-2012-0796: Improper Control of Generation of Code ('Code Injection')

October 6, 2022

class.phpmailer.php in the PHPMailer library, as used in Moodle 1.9.x before 1.9.16, 2.0.x before 2.0.7, 2.1.x before 2.1.4, and 2.2.x before 2.2.1 and other products, allows remote authenticated users to inject arbitrary e-mail headers via vectors involving a crafted (1) From: or (2) Sender: header.

References

  • github.com/PHPMailer/PHPMailer/security/advisories/GHSA-398j-f7m7-795j
  • github.com/advisories/GHSA-398j-f7m7-795j

Code Behaviors & Features

Detect and mitigate CVE-2012-0796 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 2.2.1

Fixed versions

  • 2.2.1

Solution

Upgrade to version 2.2.1 or above.

Impact 4 MEDIUM

AV:N/AC:L/Au:S/C:N/I:P/A:N

Learn more about CVSS

Weakness

  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

packagist/phpmailer/phpmailer/CVE-2012-0796.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:57 +0000.