swagger-api / swagger-api/swagger-codegen
CVE-2017-15288 (High) detected in scala-compiler-2.10.0.jar
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
CVE-2017-15288 - High Severity Vulnerability
Vulnerable Library - scala-compiler-2.10.0.jar
Compiler for the Scala Programming Language
Library home page: http://www.scala-lang.org/
Path to dependency file: /samples/client/petstore/scala/build.gradle
Path to vulnerable library: /home/wss-scanner/.gradle/caches/modules-2/files-2.1/org.scala-lang/scala-compiler/2.10.0/fec8066cd2b4f8dc7ff7ba7a8e0a792939d9f9a/scala-compiler-2.10.0.jar,/home/wss-scanner/.gradle/caches/modules-2/files-2.1/org.scala-lang/scala-compiler/2.10.0/fec8066cd2b4f8dc7ff7ba7a8e0a792939d9f9a/scala-compiler-2.10.0.jar
Dependency Hierarchy:
- swagger-async-httpclient_2.10-0.3.5.jar (Root Library)
- json4s-jackson_2.10-3.2.10.jar
- json4s-core_2.10-3.2.10.jar
- scalap-2.10.0.jar
- ❌ scala-compiler-2.10.0.jar (Vulnerable Library)
- scalap-2.10.0.jar
- json4s-core_2.10-3.2.10.jar
- json4s-jackson_2.10-3.2.10.jar
Found in HEAD commit: 4b7a8d7d7384aa6a27d6309c35ade0916edae7ed
Found in base branch: master
Vulnerability Details
The compilation daemon in Scala before 2.10.7, 2.11.x before 2.11.12, and 2.12.x before 2.12.4 uses weak permissions for private files in /tmp/scala-devel/${USER:shared}/scalac-compile-server-port, which allows local users to write to arbitrary class files and consequently gain privileges.
Publish Date: 2017-11-15
URL: CVE-2017-15288
CVSS 3 Score Details (7.8)
Base Score Metrics:
- Exploitability Metrics:
- Attack Vector: Local
- Attack Complexity: Low
- Privileges Required: Low
- User Interaction: None
- Scope: Unchanged
- Impact Metrics:
- Confidentiality Impact: High
- Integrity Impact: High
- Availability Impact: High
Suggested Fix
Type: Upgrade version
Origin: https://nvd.nist.gov/vuln/detail/CVE-2017-15288
Release Date: 2017-11-15
Fix Resolution: 2.10.7,2.11.12,2.12.4
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with /samples/client/petstore/scala/build.gradle and inspect the dependency path from swagger-async-httpclient through json4s and scalap to scala-compiler. Check the resolved Scala compiler version against the CVE's fixed versions, then verify the dependency tree no longer contains scala-compiler-2.10.0.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- scala
- Domain
- build-system, security
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100