SpEL Injection in `PUT /api/v1/events/subscriptions` in OpenMetadata
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-94.
Summary
OpenMetadata is a unified platform for discovery, observability, and governance powered by a central metadata repository, in-depth lineage, and seamless team collaboration. Similarly to the GHSL-2023-250 issue, `AlertUtil::validateExpression` is also called from `EventSubscriptionRepository.prepare()`, which can lead to Remote Code Execution. `prepare()` is called from `EntityRepository.prepareInternal()` which, in turn, gets called from `EntityResource.createOrUpdate()`. Note that, even though there is an authorization check (`authorizer.authorize()`), it gets called after `prepareInternal()` gets called and, therefore, after the SpEL expression has been evaluated. In order to reach this method, an attacker can send a PUT request to `/api/v1/events/subscriptions` which gets handled by `EventSubscriptionResource.createOrUpdateEventSubscription()`. This vulnerability was discovered with the help of CodeQL's Expression language injection (Spring) query. This issue may lead to Remote Code Execution and has been addressed in version 1.2.4. Users are advised to upgrade. There are no known workarounds for this vulnerability. This issue is also tracked as `GHSL-2023-251`.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| open-metadata | OpenMetadata | before 1.2.4 | 1.2.4 | Patch available | CNA |
| — | org.open-metadata:openmetadata-service (Maven) | before 1.2.4 | 1.2.4 | Patch available | GHSA-8p5r-6mvv-2435 |
- OpenMetadata Vendoropen-metadata Affected before 1.2.4 Fixed in 1.2.4 Patch available CNA
- org.open-metadata:openmetadata-service (Maven) Vendor— Affected before 1.2.4 Fixed in 1.2.4 Patch available GHSA-8p5r-6mvv-2435
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:open-metadata:openmetadata:*:*:*:*:*:*:*:* | before 1.2.4 | Vulnerable | open-metadata |
- cpe:2.3:a:open-metadata:openmetadata:*:*:*:*:*:*:*:* Versions before 1.2.4 Vulnerable ·open-metadata
Remediation
- Fix · CNA OpenMetadata (open-metadata) Fixed in 1.2.4
- Fix · GHSA-8p5r-6mvv-2435 org.open-metadata:openmetadata-service (Maven) Fixed in 1.2.4 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2024-28847
- 2026-10-03 Alias added: GHSA-8p5r-6mvv-2435
References
Advisory 2
Other 6
- https://codeql.github.com/codeql-query-help/java/java-spel-expression-injection
- https://github.com/open-metadata/OpenMetadata/blob/b6b337e09a05101506a5faba4b45d370cc3c9fc8/openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/EntityRepository.java#L693
- https://github.com/open-metadata/OpenMetadata/blob/b6b337e09a05101506a5faba4b45d370cc3c9fc8/openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/EventSubscriptionRepository.java#L69-L83
- https://github.com/open-metadata/OpenMetadata/blob/b6b337e09a05101506a5faba4b45d370cc3c9fc8/openmetadata-service/src/main/java/org/openmetadata/service/resources/EntityResource.java#L219
- https://github.com/open-metadata/OpenMetadata/blob/b6b337e09a05101506a5faba4b45d370cc3c9fc8/openmetadata-service/src/main/java/org/openmetadata/service/resources/events/subscription/EventSubscriptionResource.java#L289
- https://github.com/open-metadata/OpenMetadata
More open-metadata Openmetadata vulnerabilities
- TI-2024-18814 Authentication Bypass in OpenMetadata CVSS 3.1CRITICAL 9.8
- TI-2024-19050 SpEL Injection in `GET /api/v1/policies/validation/condition/<expr>` in OpenMetadata CVSS 3.1HIGH 8.8
- TI-2024-18813 SpEL Injection in `GET /api/v1/events/subscriptions/validation/condition/<expr>` in OpenMetadata CVSS 3.1HIGH 8.8
- TI-2026-17854 OpenMetadata Server-Side Template Injection (SSTI) in FreeMarker email templates that leads to RCE CVSS 4.0HIGH 8.5
- TI-2024-36809 OpenMetadata <=1.4.1 is vulnerable to SQL Injection. CVSS 3.1HIGH 8.8
- TI-2026-21024 Leaky JWTs in OpenMetadata exposing highly-privileged bot users CVSS 3.1HIGH 7.6
Sources
- CVE-2024-28847 · CVE Program
- CVE-2024-28847 · NVD
- FIRST EPSS
- GHSA-8p5r-6mvv-2435 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences