CVE-2018-1285
XML External Entity attack in log4net
Reported by apache · Published May 11, 2020
log4net is fixed in 2.0.10 (NuGet)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| log4net | NuGet | 2.0.10 |
| org.openengsb.wrapped.csharp:log4net | Maven Central | 2.0.8 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | Apache log4net | Apache log4net up to 2.0.8 |
| n/a | Apache log4net | 2.0.8 |
Timeline
- May 11, 2020 CVE Published
- May 11, 2020 PoC Published (5 in total, the first dated here)
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Aug 5, 2024 CVE Updated
- Mar 6, 2026 Distribution Patch
- Mar 6, 2026 Security Advisory (2 in total, the first dated here)
- Sep 25, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2018-1285
vulnetix vdb fixes CVE-2018-1285
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2018-1285/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- FEDORA-2020-cfc319e067 vendor-advisoryx_refsource_FEDORA
- FEDORA-2020-73d380e9b9 vendor-advisoryx_refsource_FEDORA
- FEDORA-2020-847775bf79 vendor-advisoryx_refsource_FEDORA
- [logging-dev] 20200525 [CVE-2018-1285] XXE vulnerability in Apache log4net mailing-listx_refsource_MLIST
- [logging-dev] 20200525 Re: [CVE-2018-1285] XXE vulnerability in Apache log4net mailing-listx_refsource_MLIST
- [logging-dev] 20200617 Re: [CVE-2018-1285] XXE vulnerability in Apache log4net mailing-listx_refsource_MLIST
- [logging-dev] 20200730 Re: [CVE-2018-1285] XXE vulnerability in Apache log4net mailing-listx_refsource_MLIST
- [logging-dev] 20200826 log4net.dll - does 2.0.9 fix CVE-2018-1285 mailing-listx_refsource_MLIST
- [logging-dev] 20200826 Re: log4net.dll - does 2.0.9 fix CVE-2018-1285 mailing-listx_refsource_MLIST
- [logging-dev] 20200906 [VOTE] [log4net] Release 2.0.10 mailing-listx_refsource_MLIST
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- [logging-dev] 20210817 Solution for vulnerability mailing-listx_refsource_MLIST
- x_refsource_MISC
- x_refsource_CONFIRM