🛡️ CVE-2012-0796 — phpmailer
Description
PHPMailer vulnerable to email header injection
Impact
Arbitrary additional email headers can be injected via crafted From or Sender headers.
Patches
Fixed in 2.2.1
Workarounds
Filter user-supplied values prior to using them in From or Sender properties.
References
https://nvd.nist.gov/vuln/detail/CVE-2012-0796
For more information
If you have any questions or comments about this advisory:
- Open a private issue in [the PHPMailer project](https://github.com/PHPMailer/PHPMailer)
Weakness class
CVE-2012-0796 is classified as CWE-94: Code Injection. Input is incorporated into code that the runtime evaluates, so an attacker can have their own code executed.
Affected software
CVE-2012-0796 is recorded against 1 package.
- phpmailer/phpmailer (fixed in 2.2.1)
Timeline and source
Published on 6 October 2022 and last revised on 8 November 2023. No public exploit is currently recorded for this entry. Record sourced from OSV.
References
github.com (Web)
nvd.nist.gov (Advisory)
bugzilla.redhat.com (Web)
git.moodle.org (Web)
github.com (Package)
moodle.org (Web)
www.debian.org (Web)
Details
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| phpmailer/phpmailer | — | 2.2.1 |
References
Similar Threats
- Unknown CLSA-2026-1771375983
- Unknown CVE-2006-5734
- High CVE-2007-3215
- High CVE-2008-5619
More CVE 2012 advisories
Browse all of CVE 2012 in the advisory index.
Site Security Check
Is phpmailer part of your stack?
CVE-2012-0796 is rated CVSS 8.0 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.
Scan My Site Free →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.