CVE-2018-1098: Cross-site Request Forgery (CSRF) in go.etcd.io/etcd/v3/etcdserver

go.etcd.io/etcd/v3 Updated 02 Oct 2025

Summary

15/02/2022
Yes i
High
8.8

CVE-2018-1098: etcd Cross-site Request Forgery (CSRF). Affects go.etcd.io/etcd/v3 versions < 3.4.0. Fixed in 3.4.0. How to fix ↓

Also tracked for

The same CVE-2018-1098 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The go.etcd.io/etcd/v3/etcdserver package is a component of etcd, a distributed key-value store that provides a reliable way to store data across a cluster of machines. It is written in Go and is commonly used for service discovery, coordination, and configuration management. The etcdserver package is responsible for handling server-side operations and interactions with the etcd server. However, versions 3.3.1 and earlier of etcdserver are vulnerable to a cross-site request forgery (CSRF) attack.

Vulnerability Detail

The vulnerability in etcdserver versions 3.3.1 and earlier allows an attacker to perform a CSRF attack by setting up a malicious website that sends a POST request to the etcd server and modifies a key. While adding a key is typically done using the safer PUT method, the POST method allows an attacker to create keys in a specific order. This vulnerability can lead to unauthorized modification of keys and potential data manipulation within the etcd server. The severity of this vulnerability is rated as HIGH with a CVSS score of 8.8.

How To Fix

Minimum fixed version

3.4.0

This is the first release that contains the fix.

go get go.etcd.io/etcd/v3@v3.4.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability. However, it is crucial to ensure that the etcd server is not accessible to untrusted or unauthorized entities. Implementing proper access controls, such as firewalls and network segmentation, can help mitigate the risk of CSRF attacks.

Conclusion

In conclusion, the go.etcd.io/etcd/v3/etcdserver package in etcd versions 3.3.1 and earlier is vulnerable to a cross-site request forgery (CSRF) attack. This vulnerability can lead to unauthorized modifications of keys within the etcd server. To mitigate this issue, it is recommended to upgrade to etcdserver version 3.4.0 or later. Implementing proper access controls and regularly monitoring for vulnerabilities using tools like Vulert can help ensure the security of the etcd server.

See every vulnerability recorded for go.etcd.io/etcd/v3 →

Share this vulnerability

FAQ

Etcd is a distributed key-value store used for service discovery, coordination, and configuration management.

The vulnerability allows an attacker to perform unauthorized modifications to keys within the etcd server, potentially leading to data manipulation and compromise.

You can use the Vulert Playground at Vulert Scanner to check if your application is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities without requiring access to the code or installation.

Yes, upgrading to etcdserver version 3.4.0 or later will fix this vulnerability. It is recommended to update the etcdserver package to the latest version.

The severity of this vulnerability is rated as HIGH with a CVSS score of 8.8.

Related vulnerabilities

Recent vulnerabilities recorded for go.etcd.io/etcd/v3.

How To Fix

Minimum fixed version

3.4.0

This is the first release that contains the fix.

go get go.etcd.io/etcd/v3@v3.4.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback