Vulnerabilityin the log4net package.
Proof of concept public (GitHub).
Apache log4net versions before 2.0.10 do not disable XML external entities when parsing log4net configuration files. This allows for XXE-based attacks in applications that accept attacker-controlled log4net configuration files.
- Upgrade log4net (NuGet) to 2.0.10 or later.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 7 Dec 2017CVE ID reserved by apache.
- 11 May 2020Published in the CVE List.
- 31 Dec 2021First public proof of concept on GitHub.
- 5 Aug 2024CVE record last updated.
Attack code anyone can find
Exploit maturity: Proof of concept (GitHub).
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Other vulnerabilities in this package
- lists.fedoraproject.org vendor-advisory, x_refsource_FEDORA
- lists.fedoraproject.org vendor-advisory, x_refsource_FEDORA
- lists.fedoraproject.org vendor-advisory, x_refsource_FEDORA
- lists.apache.org mailing-list, x_refsource_MLIST
- lists.apache.org mailing-list, x_refsource_MLIST
- lists.apache.org mailing-list, x_refsource_MLIST
- lists.apache.org mailing-list, x_refsource_MLIST
- lists.apache.org mailing-list, x_refsource_MLIST
- lists.apache.org mailing-list, x_refsource_MLIST
- lists.apache.org mailing-list, x_refsource_MLIST
- www.oracle.com x_refsource_MISC
- lists.apache.org x_refsource_MISC
- issues.apache.org x_refsource_MISC
- www.oracle.com x_refsource_MISC
- lists.apache.org mailing-list, x_refsource_MLIST
- www.oracle.com x_refsource_MISC
- security.netapp.com x_refsource_CONFIRM
Patchminder. CVE-2018-1285: Vulnerability in the log4net package. https://patchminder.com/cve/cve-2018-1285/ (accessed 5 December 2026).