serilog-contrib/serilog-enrichers-clientinfo · Security
Serilog Client IP Spoofing vulnerability
- GHSA ID
- GHSA-5x5q-cqf6-gj8r
- CVE ID
- CVE-2024-44930
- Severity
- medium
- Published
- Updated
- CVSS
- 6.5 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
- CVSS v3
- 6.5 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
- CVSS v4
- 6.9 · CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
Description
Serilog (before v2.1.0) contains a Client IP Spoofing vulnerability, which allows attackers to falsify their IP addresses in log files by specifying an arbitrary IP as a value of X-Forwarded-For or Client-Ip headers while performing HTTP requests.
It is not possible to configure Serilog.Enrichers.ClientInfo to not trust the X-Forwarded-For header.
CWEs
- CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
- CWE-348 · Use of Less Trusted Source
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-44930 ↗
- https://github.com/serilog-contrib/serilog-enrichers-clientinfo/issues/29 ↗
- https://github.com/serilog-contrib/serilog-enrichers-clientinfo/releases/tag/v2.1.0 ↗
- https://github.com/serilog-contrib/serilog-enrichers-clientinfo/pull/38 ↗
- https://github.com/serilog-contrib/serilog-enrichers-clientinfo/commit/a72051d1900131e6fb30bcfd9491a988167fb6ac ↗
- https://github.com/advisories/GHSA-5x5q-cqf6-gj8r ↗