GitHub Advisory Database
GHSA-c8cc-p3j7-4c7f
Moderate severity vulnerability that affects org.apache.mesos:mesos
Details
Apache Mesos can be configured to require authentication to call the Executor HTTP API using JSON Web Token (JWT). In Apache Mesos versions pre-1.4.2, 1.5.0, 1.5.1, 1.6.0 the comparison of the generated HMAC value against the provided signature in the JWT implementation used is vulnerable to a timing attack because instead of a constant-time string comparison routine a standard == operator has been used. A malicious actor can therefore abuse the timing difference of when the JWT validation function returns to reveal the correct HMAC value.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Maven | org.apache.mesos:mesos | All versions before 1.4.2 (fixed in 1.4.2) |
| Maven | org.apache.mesos:mesos | From 1.5.0 before 1.5.2 (fixed in 1.5.2) |
| Maven | org.apache.mesos:mesos | From 1.6.0 before 1.6.1 (fixed in 1.6.1) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2018-8023
- https://github.com/advisories/GHSA-c8cc-p3j7-4c7f
- https://lists.apache.org/thread.html/9b9d3f6bd09f3ebd2284b82077033bdc71da550a1c4c010c2494acc3@%3Cdev.mesos.apache.org%3E
- https://lists.apache.org/thread.html/r0dd7ff197b2e3bdd80a0326587ca3d0c22e10d1dba17c769d6da7d7a@%3Cuser.flink.apache.org%3E