Home / Apache log4net / Apache log4net / CVE-2018-1285
CVE-2018-1285: is it exploited, and which versions of Apache log4net are affected and fixed?
CVE-2018-1285 is a XML external entity (XXE) vulnerability in Apache log4net. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 08:08 UTC). Affected: log4net before 2.0.10 (GitHub advisory GHSA-2cwj-8chv-9pp9). Fixed in 2.0.10 (GitHub advisory GHSA-2cwj-8chv-9pp9). Severity: Critical (9.8, CVSS 3.1, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 08:08 UTC, CVE record November 19, 2026, 07:17 UTC and NVD November 19, 2026, 08:10 UTC.
What is CVE-2018-1285?
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.
From the CVE record by apache, last updated August 5, 2024, 03:59 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Apache log4net | Apache log4net up to 2.0.8 |
As the CVE record by apache states it, last updated August 5, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| NuGet | log4net | < 2.0.10 | 2.0.10 | GHSA-2cwj-8chv-9pp9 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated August 25, 2021. Summary: XML External Entity attack in log4net.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| apache | log4net | before 2.0.10 | application |
| fedoraproject | fedora | 30 | operating system |
| fedoraproject | fedora | 31 | operating system |
| fedoraproject | fedora | 32 | operating system |
| oracle | application testing suite | 13.3.0.1 | application |
| oracle | hospitality opera 5 | 5.5 | application |
| oracle | hospitality opera 5 | 5.6 | application |
| oracle | hospitality simphony | 18.2.7.2 | application |
| oracle | hospitality simphony | 19.1.3 | application |
| netapp | manageability software development kit | all versions | application |
| netapp | snapcenter | all versions | application |
NVD analysis (status Modified), last modified June 17, 2026, 01:50 UTC.
How severe is CVE-2018-1285?
| Score | Version | Vector | Source |
|---|---|---|---|
| Critical 9.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | NVD |
| High 7.5 | CVSS 2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2018-1285 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 17.8% probability of exploitation activity in the next 30 days, percentile 97.2 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-611 Improper Restriction of XML External Entity Reference
Where are the vendor advisories and references?
- FEDORA-2020-cfc319e067 vendor-advisory, x_refsource_FEDORA
- FEDORA-2020-73d380e9b9 vendor-advisory, x_refsource_FEDORA
- FEDORA-2020-847775bf79 vendor-advisory, x_refsource_FEDORA
- [logging-dev] 20200525 [CVE-2018-1285] XXE vulnerability in Apache log4net mailing-list, x_refsource_MLIST
- [logging-dev] 20200525 Re: [CVE-2018-1285] XXE vulnerability in Apache log4net mailing-list, x_refsource_MLIST
- [logging-dev] 20200617 Re: [CVE-2018-1285] XXE vulnerability in Apache log4net mailing-list, x_refsource_MLIST
- [logging-dev] 20200730 Re: [CVE-2018-1285] XXE vulnerability in Apache log4net mailing-list, x_refsource_MLIST
- [logging-dev] 20200826 log4net.dll - does 2.0.9 fix CVE-2018-1285 mailing-list, x_refsource_MLIST
- [logging-dev] 20200826 Re: log4net.dll - does 2.0.9 fix CVE-2018-1285 mailing-list, x_refsource_MLIST
- [logging-dev] 20200906 [VOTE] [log4net] Release 2.0.10 mailing-list, x_refsource_MLIST
- https://www.oracle.com/security-alerts/cpujan2021.html x_refsource_MISC
- https://lists.apache.org/thread.html/reab1c277c95310bad1038255e0757857b2fbe291411b4fa84552028a%40%3Cdev.logging.apache.org%3E x_refsource_MISC
- https://issues.apache.org/jira/browse/LOG4NET-575 x_refsource_MISC
- https://www.oracle.com/security-alerts/cpuApr2021.html x_refsource_MISC
- [logging-dev] 20210817 Solution for vulnerability mailing-list, x_refsource_MLIST
- https://www.oracle.com/security-alerts/cpuapr2022.html x_refsource_MISC
- https://security.netapp.com/advisory/ntap-20220909-0001/ x_refsource_CONFIRM
When was it published, and where is the official record?
- Reserved
- December 7, 2017
- Published
- May 11, 2020, 16:41 UTC
- CVE record updated
- August 5, 2024, 03:59 UTC by apache
- NVD
- Modified, last modified June 17, 2026, 01:50 UTC
- Last checked
- CVE list November 19, 2026, 07:17 UTC; NVD November 19, 2026, 08:10 UTC; KEV December 3, 2026, 08:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
Questions about CVE-2018-1285
Is CVE-2018-1285 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 08:08 UTC. FIRST's EPSS gives it a 17.8% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Apache log4net are affected by CVE-2018-1285?
log4net before 2.0.10, per the GitHub advisory GHSA-2cwj-8chv-9pp9. The tables above give every range the sources list.
Which version fixes CVE-2018-1285?
2.0.10, per the GitHub advisory GHSA-2cwj-8chv-9pp9. Check the vendor's advisory before you rely on it.
How severe is CVE-2018-1285?
Critical (9.8, CVSS 3.1, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2018-1285?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.