CVE-2016-6652
Improper Neutralization of Special Elements used in an SQL Command Pivotal Spring Data JPA
Description
SQL injection vulnerability in Pivotal Spring Data JPA before 1.9.6 (Gosling SR6) and 1.10.x before 1.10.4 (Hopper SR4), when used with a repository that defines a String query using the @Query annotation, allows attackers to execute arbitrary JPQL commands via a sort instance with a function call.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.springframework.data » spring-data-jpa | < 1.9.6>= 1.10.0, < 1.10.4 | 1.9.6, 1.10.4 |
Blast radius
54% of the dependent artifacts (643) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 3,646 |
| 2 hops | 9,851 |
| 3 hops | 4,898 |
| 4 hops | 818 |
| 5 hops | 128 |
| 6 hops | 9 |
Most used dependents
- org.springframework.boot » spring-boot-starter-data-jpa4,162 usages
- com.silverpeas.core » lib-core110 usages
- org.springframework.data » spring-data-rest-webmvc101 usages
- org.squashtest.tm » tm.service79 usages
- org.squashtest.tm » tm.domain69 usages
- org.springframework.data » spring-data-envers64 usages
- org.marketcetera » core60 usages
- io.cronapp » cronapi-java48 usages
- org.squashtest.tm » core.bugtracker.api45 usages
- org.squashtest.tm » tm.web44 usages
- ca.uhn.hapi.fhir » hapi-fhir-jpaserver-base37 usages
- org.egov » egov-egi32 usages
- be.vlaanderen.omgeving » omv-up-basis25 usages
- net.anotheria.portalkit » pk-services-common25 usages
- ca.uhn.hapi.fhir » hapi-fhir-testpage-overlay21 usages
Computed from the dependency graph of build 20261125.0317 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2016-6652 | nvd.nist.gov |
| Web | spring-projects/spring-data-jpa commit b8e7fe | github.com |
| Web | browse/DATAJPA-965 | jira.spring.io |
| Web | security/cve-2016-6652 | pivotal.io |
| Web | glsa/201701-01 | security.gentoo.org |
| Web | bid/93276 | securityfocus.com |
